
/* V6 - La voce Home aggiunta nel pannello resta solo mobile */
.pp-mobile-home-link {
    display: none !important;
}

.pp-site-header {
    box-sizing: border-box;
    width: 100%;
    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 22px;

    padding: 8px 20px;

    background: #0d0911;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.10);
}


.pp-site-brand {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    flex: 0 0 auto;

    min-width: 0;

    text-decoration: none;
}


.pp-site-logo {
    display: block;

    width: auto;
    height: 78px;

    flex: 0 0 auto;

    object-fit: contain;
}


.pp-site-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    line-height: 1.05;
}


.pp-site-title {
    color: #f4eef6;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;
    font-weight: bold;

    letter-spacing: .7px;
}


.pp-site-slogan {
    margin-top: 6px;

    color: #d8b75d;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    letter-spacing: .7px;
}


.pp-site-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-left: auto;
}


.pp-header-link {
    color: #e9e0ef;

    text-decoration: none;

    font-size: 13px;
    line-height: 1.2;

    white-space: nowrap;

    opacity: .88;
}


.pp-header-link:hover,
.pp-header-link:focus {
    color: #ddb960;
    opacity: 1;
}



/* V5 - header mobile sempre raggiungibile e ancoraggi non coperti */
@media (max-width: 700px) {
    html {
        scroll-padding-top: 86px;
    }
}

@media (max-width: 700px) {

    .pp-mobile-home-link {
        display: flex !important;
    }

    .pp-site-header {
        min-height: 78px;

        gap: 10px;

        padding: 6px 12px;
    }


    .pp-site-brand {
        gap: 9px;
    }


    .pp-site-logo {
        height: 62px;
    }


    .pp-site-title {
        font-size: 20px;
    }


    .pp-site-slogan {
        margin-top: 4px;

        font-size: 9px;

        letter-spacing: .25px;
    }


    .pp-header-link {
        font-size: 11px;
    }
}


@media (max-width: 470px) {

    .pp-site-slogan {
        display: none;
    }


    .pp-site-title {
        font-size: 18px;
    }


    .pp-site-logo {
        height: 56px;
    }

}

/* =========================================================
   V4 - MENU MOBILE A PANNELLO
   Desktop invariato; attivo solo su schermi piccoli.
   ========================================================= */

.pp-mobile-menu-toggle,
.pp-mobile-menu-close,
.pp-mobile-menu-backdrop,
.pp-mobile-menu-head {
    display: none;
}

@media (max-width: 700px) {

    .pp-site-header {
        position: sticky;
        top: 0;
        z-index: 1200;
        min-height: 76px;
        gap: 10px;
        padding: 7px 12px;
    }

    .pp-site-brand {
        gap: 9px;
        max-width: calc(100% - 62px);
    }

    .pp-site-logo {
        height: 58px;
    }

    .pp-site-title {
        font-size: 20px;
    }

    .pp-site-slogan {
        margin-top: 4px;
        font-size: 9px;
        letter-spacing: .25px;
    }

    .pp-mobile-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 46px;
        height: 46px;
        padding: 0;
        flex: 0 0 46px;
        border: 1px solid rgba(227, 198, 117, .42);
        border-radius: 12px;
        background: rgba(255,255,255,.04);
        cursor: pointer;
    }

    .pp-mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 3px;
        background: #e3c675;
    }

    .pp-site-header-right {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1402;
        display: block;
        width: min(86vw, 360px);
        height: 100dvh;
        margin: 0;
        padding: 0 18px 28px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #17111d;
        border-left: 1px solid rgba(255,255,255,.12);
        box-shadow: -18px 0 42px rgba(0,0,0,.48);
        transform: translateX(105%);
        visibility: hidden;
        transition:
            transform .22s ease,
            visibility .22s ease;
    }

    .pp-site-header.pp-mobile-menu-open .pp-site-header-right {
        transform: translateX(0);
        visibility: visible;
    }

    .pp-mobile-menu-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 74px;
        margin: 0 -18px 12px;
        padding: 0 18px;
        background: #17111d;
        border-bottom: 1px solid rgba(255,255,255,.10);
        color: #e3c675;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 22px;
        font-weight: bold;
    }

    .pp-mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 10px;
        background: rgba(255,255,255,.04);
        color: #f4eef6;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
    }

    .pp-mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1401;
        display: block;
        padding: 0;
        border: 0;
        background: rgba(5,3,8,.72);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity .22s ease,
            visibility .22s ease;
    }

    .pp-site-header.pp-mobile-menu-open .pp-mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.pp-mobile-menu-lock {
        overflow: hidden;
    }
}

@media (max-width: 470px) {

    .pp-site-title {
        font-size: 19px;
    }

    .pp-site-logo {
        height: 54px;
    }

    .pp-site-brand-copy {
        min-width: 0;
    }

    .pp-site-slogan {
        display: none;
    }
}

