/* =========================================
   HULTON INSTITUTE HEADER - Premium Design
   ========================================= */

/* Kill ALL parent theme header styles */
.site-header,
.site-header .header-inner,
.site-header .site-branding,
.site-header .site-title,
header.wp-block-template-part,
.wp-site-blocks > header {
    display: none !important;
}

.pcc-main-header {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    z-index: 1000;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    display: block !important;
}

.pcc-main-header,
.pcc-main-header * {
    box-sizing: border-box;
}

/* --- Barra Superiore Blu Scuro --- */
.pcc-header-top-bar {
    background-color: var(--pcc-color-navy);
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    position: relative;
}

/* --- Grid a 3 Colonne --- */
.pcc-header-grid {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* --- Sinistra --- */
.pcc-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
    position: relative;
    z-index: 3;
    min-width: 0;
    padding-right: 12px;
}

.pcc-header-left .pcc-parent-link {
    flex: 0 0 auto;
}

.pcc-header-left .pcc-lang-dropdown {
    flex: 0 0 auto;
    margin-left: 28px;
}

.pcc-header-left .pcc-lang-dropdown-menu {
    left: 0;
    right: auto;
}

.pcc-parent-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, opacity 0.2s ease;
    letter-spacing: 0.2px;
    opacity: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pcc-parent-link:hover {
    color: var(--pcc-color-gold) !important;
}

.pcc-parent-link svg {
    flex-shrink: 0;
    stroke: #d2b688;
    transition: transform 0.2s ease;
}

.pcc-parent-link:hover svg {
    stroke: currentColor;
}

.pcc-parent-link-text {
    display: inline;
}

.pcc-lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 5;
}

.pcc-lang-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font: 700 0.82rem/1 Montserrat, sans-serif;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.pcc-lang-dropdown-toggle:hover,
.pcc-lang-dropdown.is-open .pcc-lang-dropdown-toggle {
    opacity: 0.9;
}

.pcc-lang-dropdown-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pcc-lang-flag-svg {
    display: block;
    width: 20px;
    height: 20px;
}

.pcc-lang-dropdown-toggle .pcc-lang-dropdown-code,
.pcc-lang-dropdown-toggle .pcc-lang-dropdown-chevron {
    color: #ffffff;
}

.pcc-lang-dropdown-code {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

.pcc-lang-dropdown-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pcc-lang-dropdown.is-open .pcc-lang-dropdown-chevron {
    transform: rotate(180deg);
}

.pcc-lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 112px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(26, 43, 74, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    z-index: 10010;
}

.pcc-lang-dropdown-menu[hidden] {
    display: none;
}

.pcc-lang-dropdown-item {
    margin: 0;
    padding: 0;
}

.pcc-lang-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #1a2b4a !important;
    text-decoration: none !important;
    font: 700 0.8rem/1 Montserrat, sans-serif;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pcc-lang-dropdown-option .pcc-lang-dropdown-code {
    color: #1a2b4a !important;
}

.pcc-lang-dropdown-option:hover,
.pcc-lang-dropdown-option.is-active {
    background: rgba(210, 182, 136, 0.18);
    color: #1a2b4a !important;
}

.pcc-lang-dropdown-option:hover .pcc-lang-dropdown-code,
.pcc-lang-dropdown-option.is-active .pcc-lang-dropdown-code {
    color: #1a2b4a !important;
}

.pcc-lang-switcher-link {
    color: inherit;
    text-decoration: none;
}

/* --- Centro: Logo --- */
.pcc-header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pcc-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.pcc-logo-img {
    height: 75px !important;
    width: auto !important;
    max-width: 300px !important;
    display: block;
    object-fit: contain;
}

/* --- Destra: Login Button (stile sito madre Wix) --- */
.pcc-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: stretch;
}

.pcc-header-mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

.pcc-header-login-wrap {
    position: static;
    z-index: 2;
    margin: 61px 80px 0 0;
    transform: none;
}

.pcc-login-btn {
    box-sizing: border-box;
    min-width: 72px;
    width: auto;
    height: 28px;
    padding: 0 10px;
    border: 1px solid #ffffff;
    background: rgba(255, 255, 255, 0);
    border-radius: 0;
    color: #ffffff !important;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    font-family: Poppins, 'Brother 1816', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pcc-login-btn-label {
    display: inline-block;
    color: #ffffff !important;
}

.pcc-login-btn:visited,
.pcc-login-btn:hover,
.pcc-login-btn:focus {
    color: #ffffff !important;
}

.pcc-login-btn:hover {
    background: #d2b688;
}

.pcc-login-btn-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #ffffff;
    stroke: currentColor;
    fill: none;
}

/* --- Barra di Navigazione Dorata (stile sito madre) --- */
.pcc-gold-nav {
    background-color: #d2b688;
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    padding: 0 16px;
}

@media (max-width: 992px) {
    .pcc-gold-nav {
        display: none !important;
    }
}

.pcc-gold-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
    height: 100%;
}

.pcc-gold-nav-list > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    height: 100%;
}

.pcc-gold-nav-link {
    color: #324158;
    text-decoration: none !important;
    font-family: Poppins, 'Brother 1816', sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    line-height: 0.9em;
    transition: color 0.2s ease;
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: normal;
    text-transform: none;
    background: transparent;
}

.pcc-gold-nav-link:hover {
    background-color: transparent !important;
    color: #8f8f8f !important;
}

.pcc-gold-nav-link:active,
.pcc-gold-nav-link.pcc-nav-active,
.pcc-gold-nav-link.pcc-nav-active:hover {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Cart badge - keep count beside label, not over it */
.pcc-main-header .pcc-cart-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pcc-cart-menu-label {
    display: inline-block;
}

.woocommerce-message .pcc-cart-count,
.woocommerce-info .pcc-cart-count,
.woocommerce-error .pcc-cart-count,
.added_to_cart .pcc-cart-count {
    display: none !important;
}

.pcc-cart-count {
    display: none;
    position: static;
    top: auto;
    right: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    flex-shrink: 0;
}

.pcc-cart-count.is-visible,
.pcc-cart-count:not(:empty) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pcc-mobile-nav-list .pcc-cart-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pcc-mobile-nav-list .pcc-cart-menu-link .pcc-cart-count {
    position: static;
    top: auto;
    right: auto;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

.pcc-mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 0 5px 2px;
    z-index: 1001;
    line-height: 0;
}

.pcc-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 21px;
}

.pcc-hamburger-line {
    display: block;
    height: 3px;
    border-radius: 1.5px;
    background-color: #d2b688;
}

.pcc-hamburger-line--top,
.pcc-hamburger-line--bot {
    width: 50%;
    align-self: flex-end;
}

.pcc-hamburger-line--mid {
    width: 100%;
}

@media (max-width: 992px) {
    .pcc-header-top-bar {
        height: auto;
        min-height: 88px;
        padding: 14px 16px 12px;
        border-bottom: 3px solid #d2b688;
    }

    .pcc-header-grid {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        max-width: 100%;
        gap: 12px;
    }

    .pcc-gold-nav {
        display: none !important;
    }

    .pcc-header-left {
        display: flex !important;
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 8px;
    }

    .pcc-header-left .pcc-parent-link {
        display: none !important;
    }

    .pcc-header-left .pcc-lang-dropdown {
        display: inline-flex;
        margin-left: 0;
    }

    .pcc-header-center {
        flex: 0 1 auto !important;
        min-width: 0;
        justify-content: flex-start;
    }

    .pcc-header-right {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        align-self: center;
    }

    .pcc-header-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    .pcc-header-login-wrap {
        position: static;
        transform: none;
        margin: 0;
    }

    .pcc-mobile-menu-btn {
        display: flex !important;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        margin: 0;
        width: 33px;
        height: 31px;
        padding: 0;
    }

    .pcc-hamburger-icon {
        width: 26px;
        height: 21px;
    }

    .pcc-logo-img {
        height: 52px !important;
        max-width: 210px !important;
    }

    .pcc-login-btn {
        min-width: 72px;
        width: auto;
        height: 28px;
        padding: 0 10px !important;
        font-size: 14px !important;
        gap: 6px !important;
    }

    .pcc-login-btn-icon {
        width: 16px !important;
        height: 16px !important;
    }
}

/* --- Mobile Menu Overlay (stile sito madre Wix) --- */
.pcc-mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background-color: #d2b688 !important;
    z-index: 99999;
    padding: 72px 24px 40px;
    box-shadow: none;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.pcc-mobile-menu-overlay.is-open {
    transform: translateX(0) !important;
}

.pcc-mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #33376b !important;
    font-family: Montserrat, sans-serif;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    padding: 4px;
}

.pcc-mobile-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 48px 0 0 0 !important;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.pcc-mobile-nav-list li {
    margin: 0 0 10px 0 !important;
    width: 100%;
}

.pcc-mobile-nav-list li a {
    color: #33376b !important;
    text-decoration: none !important;
    font: 700 15px/35px Montserrat, sans-serif !important;
    letter-spacing: 0;
    text-transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 35px;
    padding: 0;
    border: none !important;
    transition: color 0.2s ease;
}

.pcc-mobile-nav-list li a:hover {
    color: #33376b !important;
}

.pcc-mobile-nav-list li a:active,
.pcc-mobile-nav-list li a.pcc-nav-active,
.pcc-mobile-nav-list li a.pcc-nav-active:hover {
    color: #ffffff !important;
}

.pcc-mobile-back-link {
    margin-top: 28px !important;
}

.pcc-mobile-back-link a {
    font: 700 15px/35px Montserrat, sans-serif !important;
    opacity: 1;
}

body.menu-is-open {
    overflow: hidden;
}
