/* Menu del sito, da inserire anche nelle pagine archivio. Non tocca immagini e tabelle. */
:root {
    --navy: #10233f;
    --ink: #1c2430;
    --muted: #5c6775;
    --white: #ffffff;
    --line: #e4ddd2;
    --wa: #128c4a;
    --max: 1120px;
}

.topbar,
.site-header {
    font-family: "Outfit", "Segoe UI", sans-serif;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.topbar {
    background: var(--navy) !important;
    color: #d7e0ec !important;
    font-size: 0.92rem;
    position: relative;
    z-index: 60;
}

.wrap {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.topbar p { margin: 0; }

.topbar a {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

.wa-picker { position: relative; }

.wa {
    display: inline-flex;
    align-items: center;
    background: var(--wa) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.92rem;
    border: 0;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
}

.wa-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    min-width: 230px;
    background: #fff;
    color: var(--navy);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(8, 20, 40, 0.22);
}

.wa-menu p {
    margin: 0 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.wa-menu a {
    display: block;
    color: var(--navy) !important;
    background: #f4f7fb !important;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 6px;
    text-decoration: none !important;
}

.site-header {
    background: var(--white) !important;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 50;
}

.header-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit !important;
    text-decoration: none !important;
}

.brand img {
    width: 210px !important;
    max-width: 210px !important;
    height: auto !important;
    display: block;
}

.brand-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    line-height: 1.25;
}

.nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nav-list a {
    display: block !important;
    text-align: center;
    text-decoration: none !important;
    color: var(--navy) !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    background: #f3f6fa !important;
    border-radius: 10px;
    padding: 11px 8px;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    background: var(--navy) !important;
    color: #fff !important;
}

@media (min-width: 960px) {
    .site-header { position: sticky; top: 0; }
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
    }
    .nav-list {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px 2px;
        max-width: 760px;
    }
    .nav-list a {
        background: transparent !important;
        padding: 8px 10px;
    }
    .nav-list a:hover,
    .nav-list a[aria-current="page"] {
        background: #eef3f9 !important;
        color: var(--navy) !important;
    }
}

@media (max-width: 720px) {
    .brand-text { display: none; }
}

@media print {
    .topbar, .site-header { display: none !important; }
}
