.pp-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2px;
}

.pp-header-nav .pp-header-link {
    white-space: nowrap;
}

.pp-header-separator {
    opacity: 0.55;
    white-space: nowrap;
}

.pp-credit-badge {
    color: #e3c675;
    font-weight: 700;
    white-space: nowrap;
}

.pp-header-action {
    font-weight: 700;
}

.pp-account-menu {
    position: relative;
    display: inline-block;
}

.pp-account-menu summary {
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    color: #f5eff7;
    font: inherit;
    font-weight: 700;
}

.pp-account-menu summary:hover {
    color: #e3c675;
}

.pp-account-menu summary::-webkit-details-marker {
    display: none;
}

.pp-account-menu summary::after {
    content: " ▾";
    color: #e3c675;
}

.pp-account-menu[open] summary::after {
    content: " ▴";
}

.pp-account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1000;
    min-width: 190px;
    padding: 8px;
    background: #17111d;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.pp-account-dropdown a,
.pp-account-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #f5eff7;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.pp-account-dropdown a:hover,
.pp-account-dropdown button:hover {
    background: rgba(221, 185, 96, 0.12);
    color: #e3c675;
}

.pp-account-dropdown form {
    margin: 0;
}

@media (max-width: 980px) {
    .pp-header-nav {
        font-size: 12px;
    }
}

@media (max-width: 760px) {
    .pp-header-nav {
        justify-content: flex-end;
        row-gap: 6px;
    }

    .pp-credit-badge {
        width: 100%;
        text-align: right;
    }
}

/* =========================================================
   V3 - NAVIGAZIONE MOBILE NEL PANNELLO LATERALE
   ========================================================= */

@media (max-width: 700px) {

    .pp-site-header-right .pp-header-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
        font-size: 16px;
    }

    .pp-site-header-right .pp-header-link,
    .pp-site-header-right .pp-credit-badge,
    .pp-site-header-right .pp-account-menu > summary {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 50px;
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: #f5eff7;
        font-size: 16px;
        line-height: 1.25;
        white-space: normal;
        text-align: left;
        opacity: 1;
    }

    .pp-site-header-right .pp-credit-badge {
        color: #e3c675;
        font-weight: 700;
    }

    .pp-site-header-right .pp-header-separator {
        display: none;
    }

    .pp-site-header-right .pp-account-menu {
        display: block;
        width: 100%;
    }

    .pp-site-header-right .pp-account-menu > summary {
        cursor: pointer;
        list-style: none;
    }

    .pp-site-header-right .pp-account-menu > summary::after {
        margin-left: auto;
    }

    .pp-site-header-right .pp-account-dropdown {
        position: static;
        min-width: 0;
        margin: 0 0 8px;
        padding: 4px 0 6px 14px;
        border: 0;
        border-radius: 0;
        background: rgba(255,255,255,.025);
        box-shadow: none;
    }

    .pp-site-header-right .pp-account-dropdown a,
    .pp-site-header-right .pp-account-dropdown button {
        min-height: 46px;
        padding: 11px 10px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        border-radius: 0;
        color: #e9e0ef;
        font-size: 15px;
    }

    .pp-site-header-right .pp-account-dropdown a:last-child,
    .pp-site-header-right .pp-account-dropdown form:last-child button {
        border-bottom: 0;
    }

    .pp-site-header-right .pp-header-link:hover,
    .pp-site-header-right .pp-header-link:focus,
    .pp-site-header-right .pp-account-menu > summary:hover,
    .pp-site-header-right .pp-account-menu > summary:focus {
        color: #e3c675;
        background: rgba(227,198,117,.07);
    }
}

