/* =========================================================
   SHELL CONDIVISA — HEADER + FOOTER
   Canonica: Home / Chi siamo
   ========================================================= */

.header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: rgba(251, 250, 246, .96);
    border-bottom: 1px solid rgba(221, 215, 201, .85);
}

.header-inner {
    width: min(1500px, calc(100% - 50px));
    min-height: 94px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.header .brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
}

.header .brand-logo-wrapper {
    width: 57px;
    height: 57px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
}

.header .brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.header .brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header .brand-small {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2px;
}

.header .brand-large {
    font-family: var(--title-font);
    font-size: 17px;
    font-weight: 500;
}

.header .desktop-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.header .desktop-menu a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color .25s ease;
}

.header .desktop-menu a:hover,
.header .desktop-menu a.active {
    color: var(--red);
}

.header .desktop-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--red);
}

.header .admin-button {
    flex: 0 0 auto;
    padding: 13px 18px;
    color: #fff;
    background: var(--red);
    text-decoration: none;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: background .25s ease, transform .25s ease;
}

.header .admin-button:hover {
    color: #fff;
    background: var(--red-dark);
    transform: translateY(-2px);
}

.header .menu-button {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.header .menu-button span {
    width: 25px;
    height: 1px;
    margin: 6px auto;
    display: block;
    background: var(--text);
}

.header .mobile-menu {
    display: none;
}

/* FOOTER */
.footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #1c1717;
    color: #fff;
}

.footer .footer-main {
    width: min(1380px, calc(100% - 80px));
    max-width: none;
    margin: 0 auto;
    padding: 80px 0;
    display: grid;
    grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
    gap: 80px;
    align-items: start;
}

.footer .footer-logo-wrap {
    width: 100%;
    display: block;
}

.footer .footer-logo-wrap > a {
    display: inline-block;
    width: 115px;
    height: 115px;
    overflow: hidden;
    border-radius: 50%;
}

.footer .footer-logo {
    width: 115px;
    height: 115px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.footer .footer-contacts {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    padding-right: 0;
    color: #fff;
}

.footer .footer-contacts h3 {
    margin: 0 0 22px;
    color: #fff;
    font-family: var(--title-font);
    font-size: 32px;
    font-weight: 400;
}

.footer .footer-contacts h4 {
    margin: 30px 0 9px;
    color: #dbc078;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.footer .footer-contacts p {
    margin: 0 0 14px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.85;
}

.footer .footer-contacts a {
    color: inherit;
    text-decoration: none;
}

.footer .footer-links {
    margin-top: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 28px;
}

.footer .footer-admin {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    color: #dbc078 !important;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.footer .footer-bottom {
    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
    padding: 23px 0 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.footer .footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.46);
    font-size: 9px;
    line-height: 1.7;
    letter-spacing: .5px;
}

.footer .privacy-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.footer .privacy-links a,
.footer .privacy-links button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.46);
    font-family: var(--body-font);
    font-size: 9px;
    line-height: 1.7;
    letter-spacing: .5px;
    text-decoration: none;
    cursor: pointer;
    transition: color .25s ease;
}

.footer .privacy-links a:hover,
.footer .privacy-links button:hover {
    color: #dbc078;
}

@media (max-width: 1180px) {
    .header .desktop-menu { gap: 16px; }
    .header .desktop-menu a { font-size: 8px; }
}

@media (max-width: 1020px) {
    .header .desktop-menu,
    .header .desktop-admin { display: none; }

    .header .menu-button { display: block; }

    .header .mobile-menu {
        width: 100%;
        padding: 10px 25px 25px;
        display: none;
        background: var(--background);
        border-top: 1px solid var(--line);
    }

    .header .mobile-menu.open {
        display: flex;
        flex-direction: column;
    }

    .header .mobile-menu a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        color: var(--text);
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .header .mobile-menu .mobile-admin {
        margin-top: 14px;
        padding: 15px;
        border-bottom: 0;
        color: #fff;
        background: var(--red);
        text-align: center;
    }

    .footer .footer-main {
        grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr);
        gap: 55px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        width: calc(100% - 28px);
        min-height: 78px;
    }

    .header .brand-logo-wrapper {
        width: 49px;
        height: 49px;
    }

    .header .brand-small {
        font-size: 6px;
        letter-spacing: 1.3px;
    }

    .header .brand-large {
        max-width: 210px;
        font-size: 13px;
    }

    .footer .footer-main,
    .footer .footer-bottom {
        width: calc(100% - 32px);
    }

    .footer .footer-main {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 60px 0;
    }

    .footer .footer-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .footer .privacy-links {
        justify-content: flex-start;
    }
}

@media (max-width: 450px) {
    .header .brand-large {
        max-width: 170px;
        font-size: 11px;
    }
}


/* =========================================================
   NORMALIZZAZIONE HEADER — dimensioni identiche su ogni pagina
   ========================================================= */
.header,
.header * {
    box-sizing: border-box;
}

.header .desktop-admin.admin-button {
    width: 148px;
    min-width: 148px;
    height: 42px;
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--body-font, "Montserrat", sans-serif);
    line-height: 1;
    white-space: nowrap;
}

.header .mobile-menu .mobile-admin {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: var(--body-font, "Montserrat", sans-serif);
    line-height: 1;
}

/* Frecce SVG: evita il rendering "emoji" su iOS/Android. */
.site-arrow-icon {
    width: 1em;
    height: 1em;
    display: block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.site-arrow-icon.site-arrow-right {
    width: 1.15em;
}

/* =========================================================
   FIX AREA RISERVATA RESPONSIVE
   Desktop: pulsante nell'header.
   Mobile/tablet: pulsante esclusivamente dentro il menu hamburger.
   ========================================================= */
@media (max-width: 1020px) {
    .header .desktop-admin.admin-button {
        display: none !important;
    }

    .header .mobile-menu .mobile-admin {
        display: flex !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 14px 0 0;
    }
}

@media (min-width: 1021px) {
    .header .desktop-admin.admin-button {
        display: inline-flex !important;
    }

    .header .mobile-menu {
        display: none !important;
    }
}
