@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

body[class*="path-local-attestati"],
body[class*="path-local-aziende"],
body.path-login {
    background: #e7f4f8;
    color: #434343;
    font-family: Poppins, "Segoe UI", sans-serif;
}

body.path-login .login-container,
body.path-login .loginform {
    border-top: 6px solid #1560c0;
    border-radius: 16px;
}

body[class*="path-local-attestati"] .navbar,
body[class*="path-local-aziende"] .navbar {
    background: #134f5c !important;
    border-bottom: 0;
}

body[class*="path-local-attestati"] .navbar .nav-link,
body[class*="path-local-aziende"] .navbar .nav-link,
body[class*="path-local-attestati"] .navbar .navbar-brand,
body[class*="path-local-aziende"] .navbar .navbar-brand,
body[class*="path-local-attestati"] .navbar .usermenu .dropdown-toggle,
body[class*="path-local-aziende"] .navbar .usermenu .dropdown-toggle {
    color: #fff !important;
}

body[class*="path-local-attestati"] .navbar .nav-link.active,
body[class*="path-local-aziende"] .navbar .nav-link.active {
    background: #0c3e48 !important;
    color: #ffe14a !important;
}

body[class*="path-local-attestati"] .navbar .nav-link:hover,
body[class*="path-local-attestati"] .navbar .nav-link:focus,
body[class*="path-local-aziende"] .navbar .nav-link:hover,
body[class*="path-local-aziende"] .navbar .nav-link:focus,
body[class*="path-local-attestati"] .navbar .navbar-brand:hover,
body[class*="path-local-aziende"] .navbar .navbar-brand:hover,
body[class*="path-local-attestati"] .navbar .usermenu .dropdown-toggle:hover,
body[class*="path-local-aziende"] .navbar .usermenu .dropdown-toggle:hover {
    background: #ffe14a !important;
    color: #134f5c !important;
}

body[class*="path-local-attestati"] #page-header,
body[class*="path-local-aziende"] #page-header {
    background: transparent;
}

body[class*="path-local-attestati"] #region-main,
body[class*="path-local-aziende"] #region-main {
    background: #fff;
    border-radius: 16px;
    border-top: 6px solid #1560c0;
    box-shadow: 0 10px 28px rgba(21, 96, 192, 0.08);
}

body[class*="path-local-attestati"] h2,
body[class*="path-local-aziende"] h2,
body[class*="path-local-attestati"] h3,
body[class*="path-local-aziende"] h3 {
    color: #134f5c;
    font-weight: 700;
}

body[class*="path-local-attestati"] h3,
body[class*="path-local-aziende"] h3 {
    border-bottom: 3px solid #ffd966;
    display: inline-block;
    padding-bottom: 0.15rem;
    margin-top: 1.4rem;
}

.md-testata {
    position: relative;
    z-index: 1;
    background: #fff;
}

body[class*="path-local-attestati"] .md-testata,
body[class*="path-local-aziende"] .md-testata {
    margin-top: 60px;
}

.md-marchio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1rem;
    background: #fff;
    padding: 0.4rem 1rem 0.35rem;
}

.md-marchio img {
    height: 58px;
    width: auto;
    display: block;
}

.md-centro {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 16rem;
}

.md-servizi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    max-width: 28rem;
}

.md-servizi span {
    border: 1.5px solid #1a1a1a;
    color: #1a1a1a;
    background: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 0.05rem 0.32rem;
}

.md-payoff {
    color: #111;
    font-weight: 700;
    font-style: italic;
    font-size: 1rem;
    background: none;
    padding: 0;
}

.md-sede {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.3rem;
    background: #1560c0;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.32rem 1rem;
}

.md-sede a {
    color: #ffe14a;
    font-weight: 700;
    text-decoration: none;
}

.md-sede a:hover,
.md-sede a:focus {
    color: #fff;
}

.md-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: auto;
}

.md-nav a {
    color: #134f5c;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
}

.md-nav a:hover,
.md-nav a:focus {
    background: #0060a8;
    color: #fff;
}

body[class*="path-local-attestati"] .btn-primary,
body[class*="path-local-aziende"] .btn-primary {
    background: #0060a8;
    border-color: #0060a8;
}

body[class*="path-local-attestati"] .btn-primary:hover,
body[class*="path-local-aziende"] .btn-primary:hover {
    background: #04bcdd;
    border-color: #04bcdd;
    color: #134f5c;
}

body[class*="path-local-attestati"] .btn-secondary,
body[class*="path-local-aziende"] .btn-secondary,
body[class*="path-local-attestati"] .btn-outline-secondary,
body[class*="path-local-aziende"] .btn-outline-secondary {
    background: #fff;
    color: #134f5c;
    border-color: #04bcdd;
}

body[class*="path-local-attestati"] .generaltable,
body[class*="path-local-aziende"] .generaltable {
    border: 1px solid #d7e8ee;
}

body[class*="path-local-attestati"] .generaltable th,
body[class*="path-local-aziende"] .generaltable th,
body.md-gestionale table.generaltable thead th {
    background: #1560c0;
    color: #fff;
    border-color: #1560c0;
}

body[class*="path-local-attestati"] .generaltable tr:nth-child(even) td,
body[class*="path-local-aziende"] .generaltable tr:nth-child(even) td {
    background: #f3fafc;
}

body[class*="path-local-attestati"] .form-control,
body[class*="path-local-aziende"] .form-control {
    border-color: #9fabb0;
    border-radius: 8px;
}

.md-nome-en input,
.md-nome-en textarea {
    background: #fff8d6;
    border: 2px solid #1560c0;
}

.md-intro {
    color: #134f5c;
    font-size: 1.05rem;
    max-width: 62rem;
}

.md-passi .col-md-4:nth-child(1) .card {
    border-top: 5px solid #1560c0;
}

.md-passi .col-md-4:nth-child(2) .card {
    border-top: 5px solid #ffe14a;
}

.md-passi .col-md-4:nth-child(3) .card {
    border-top: 5px solid #1a1a1a;
}

.md-passi .card {
    border-radius: 14px;
    border: 1px solid #d7e8ee;
    box-shadow: 0 6px 16px rgba(19, 79, 92, 0.06);
}

.md-passi .card h3 {
    border-bottom: 0;
    margin-top: 0;
    color: #0030bf;
}

.md-pratica {
    display: inline-block;
    background: #0060a8;
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.65rem;
    font-size: 0.85rem;
    margin-right: 0.35rem;
}

.md-stato {
    display: inline-block;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.8rem;
}

.md-stato-da_incassare {
    background: #fff6d8;
    color: #7a5b00;
}

.md-stato-incassato {
    background: #e5f7ea;
    color: #146c43;
}

.md-stato-fatturato {
    background: #e7f3fb;
    color: #0060a8;
}

body.md-gestionale {
    padding-top: 0 !important;
    background: #e7f4f8;
}

body.md-gestionale .navbar,
body.md-gestionale .drawer-toggles,
body.md-gestionale .drawer,
body.md-gestionale #nav-drawer {
    display: none !important;
}

body.md-gestionale #page,
body.md-gestionale #page.drawers {
    margin-top: 0 !important;
    margin-left: 240px !important;
    padding-top: 52px !important;
}

.md-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0.8rem;
    background: #111;
    color: #fff;
    font-size: 0.92rem;
}

.md-topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.md-topbar a:hover,
.md-topbar a:focus {
    color: #ffe14a;
}

.md-brand {
    font-weight: 700;
    white-space: nowrap;
}

.md-sezioni {
    display: flex;
    gap: 0.75rem;
    overflow: hidden;
}

.md-utente {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.md-sidebar {
    position: fixed;
    top: 42px;
    left: 0;
    bottom: 0;
    width: 240px;
    z-index: 1030;
    overflow: auto;
    background: #d9ebf8;
    border-right: 1px solid #b7d4ea;
    padding: 0.4rem 0 1.2rem;
}

.md-sidebar details {
    border-bottom: 1px solid #c5dff0;
}

.md-sidebar summary {
    cursor: pointer;
    font-weight: 700;
    color: #134f5c;
    padding: 0.45rem 0.75rem;
}

.md-sidebar nav > a {
    font-weight: 700;
    padding-left: 0.75rem;
}

.md-sidebar a {
    display: block;
    color: #134f5c;
    text-decoration: none;
    padding: 0.28rem 0.75rem 0.28rem 1.35rem;
}

.md-sidebar a.md-attivo,
.md-sidebar a:hover,
.md-sidebar a:focus {
    background: #1560c0;
    color: #fff;
}

.md-fissi {
    background: #e7f3fb;
    border-left: 4px solid #1560c0;
    padding: 0.6rem 0.8rem;
}

.md-proposta-testo {
    color: #134f5c;
    font-weight: 600;
}

.md-intestazione .md-legenda {
    margin-left: 0.4rem;
    vertical-align: middle;
}

.md-legenda {
    position: relative;
    display: inline-block;
    font-weight: 400;
    line-height: 1;
}

.md-legenda:hover,
.md-legenda:focus-within {
    z-index: 40;
}

.md-legenda-i {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    min-width: 1.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1560c0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    cursor: help;
    box-shadow: none;
    vertical-align: middle;
}

.md-legenda-i:hover,
.md-legenda-i:focus {
    background: #0e4a96;
    color: #fff;
    outline: 2px solid #1560c0;
    outline-offset: 2px;
}

.md-legenda-testo {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 41;
    box-sizing: border-box;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.md-legenda:hover .md-legenda-testo,
.md-legenda:focus-within .md-legenda-testo {
    width: min(32rem, 72vw);
    height: auto;
    margin: 0;
    padding: 0.7rem 0.85rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #fff;
    color: #134f5c;
    border: 1px solid #1560c0;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(21, 96, 192, 0.18);
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: left;
}

@media (max-width: 720px) {
    .md-nav {
        margin-left: 0;
        width: 100%;
    }
    .md-marchio img {
        height: 42px;
    }
    body.md-gestionale #page,
    body.md-gestionale #page.drawers {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
    .md-topbar {
        position: static;
        height: auto;
        flex-wrap: wrap;
        padding: 0.4rem 0.6rem;
    }
    .md-sidebar {
        position: static;
        width: auto;
        border-right: 0;
    }
    .md-sezioni {
        flex-wrap: wrap;
    }
}

.md-fad-corso {
    border: 1px solid #d5e6f2;
    border-radius: 12px;
    padding: 0.9rem 1rem 0.4rem;
    margin: 0 0 1rem;
    background: #f7fbfe;
}

.md-fad-corso h3 {
    margin-top: 0;
}

.md-fad-lezioni {
    margin: 0.4rem 0 0.8rem;
    padding-left: 1.3rem;
}

.md-fad-lezioni a {
    color: #134f5c;
    font-weight: 600;
}

.md-fad-percento,
.md-fad-soglia {
    color: #134f5c;
    font-weight: 700;
    margin: 0.15rem 0;
}

.md-fad-meta {
    margin-left: 0.45rem;
    color: #3d5c66;
    font-weight: 700;
}

.md-fad-player video {
    width: 100%;
    max-height: 70vh;
    background: #111;
    border-radius: 8px;
}
