/**
 * Navigation Styles - Josetta Saffirio Header
 * Design minimalista identico allo screenshot
 * Version: 2.3.0 - Mobile menu fix con testo scuro su sfondo bianco
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@400;500;600&display=swap');

/* CSS Variables - Palette Colori Screenshot */
:root {
    --beige: #EAE5D9;
    --white: #FFFFFF;
    --dark: #333333;
    --gold: #A39067; /* Colore oro del design system */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --scroll-progress: 0; /* Valore iniziale, aggiornato via JavaScript */
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== HEADER STRUCTURE ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Versione compatta dell'header quando si scrolla */
.site-header.header-compact {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 2rem;
}

.site-header.header-compact .header-logo {
    justify-content: flex-start; /* Logo compatto allineato a sinistra */
}

/* Force tutti i link nell'header ad avere colori corretti */
.site-header a {
    color: inherit;
}

.site-header .nav-link {
    color: var(--dark) !important;
}

.site-header .btn-outline {
    color: #A39067 !important;
}

.site-header .btn-primary {
    color: var(--white) !important;
}

/* ===== LOGO SECTION ===== */
.header-logo {
    padding: 2rem 0 0; /* Rimosso padding bottom per eliminare spazio bianco */
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    justify-content: center; /* Logo esteso centrato */
}

.logo-container {
    position: relative;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 200px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo container più grande su desktop */
@media (min-width: 769px) {
    .site-header:not(.header-compact) .logo-container {
        width: 240px;
        height: 96px;
    }
}

.logo-link {
    text-decoration: none;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Logo più grande su desktop quando header esteso */
@media (min-width: 769px) {
    .site-header:not(.header-compact) .logo-image {
        height: 96px;
    }
}

/* Gestione logo esteso vs compatto */
.logo-full {
    opacity: calc(1 - var(--scroll-progress));
    transform: scale(1) translateY(0);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(0px);
}

.logo-compact {
    opacity: var(--scroll-progress);
    transform: scale(0.8) translateY(10px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(calc(3px * (1 - var(--scroll-progress))));
}

/* Logo Text Fallback */
.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--dark);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.logo-monogram {
    color: #A39067;
    margin: 0 0.5rem;
    font-size: 3rem;
}


/* ===== NAVIGATION SECTION ===== */
.main-navigation {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: none; /* Rimossa linea grigia sotto header */
    z-index: 999;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem 8px; /* Aggiunto padding-bottom per spazio sotto il menu */
}

.desktop-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark) !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: #A39067 !important;
}

.nav-link.active {
    color: #A39067 !important;
}

/* Underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #A39067;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== USER ACTIONS ===== */
.header-actions {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

/* Buttons */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-outline {
    color: #A39067 !important;
    background: transparent !important;
    border: 1px solid #A39067 !important;
}

.btn-outline:hover {
    background: #A39067 !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--white) !important;
    background: #A39067 !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--dark) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== SCROLL BEHAVIOR ===== */
.site-header.header-compact .header-logo {
    padding: 0;
    margin: 0;
}

.site-header.header-compact .logo-image {
    height: 40px;
    width: auto;
}

/* Transizione logo in modalità compatta */
.site-header.header-compact .logo-full {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    filter: blur(1px);
}

.site-header.header-compact .logo-compact {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
}


.site-header.header-compact .main-navigation {
    position: static;
    border: none;
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header.header-compact .nav-container {
    padding: 0;
}

.site-header.header-compact .header-actions {
    position: static;
    transform: none;
}

.logo-hidden {
    display: none;
}

/* ===== SMOOTH LOGO TRANSITION ===== */
/* Transizione progressiva basata su scroll */
.site-header:not(.header-compact) .logo-full {
    opacity: calc(1 - var(--scroll-progress, 0));
    transform: scale(calc(1 - var(--scroll-progress, 0) * 0.2)) translateY(calc(var(--scroll-progress, 0) * -8px));
    filter: blur(calc(var(--scroll-progress, 0) * 0.8px));
}

.site-header:not(.header-compact) .logo-compact {
    opacity: var(--scroll-progress, 0);
    transform: scale(calc(0.8 + var(--scroll-progress, 0) * 0.2)) translateY(calc(12px - var(--scroll-progress, 0) * 12px));
    filter: blur(calc((1 - var(--scroll-progress, 0)) * 0.8px));
}

/* Effetto parallax sottile per il logo container */
.logo-container {
    transform: translateY(calc(var(--scroll-progress, 0) * -2px));
}

/* ===== MOBILE STYLES ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

/* Mobile Menu Header - Design pulito */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.mobile-logo-image {
    height: 40px;
    width: auto;
}

/* Mobile Menu Overlay - Nuovo design bianco pulito */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff !important;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: #1a1a1a !important;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Forza testo scuro su tutto il menu mobile */
.mobile-menu-overlay,
.mobile-menu-overlay * {
    color: #1a1a1a !important;
}

.mobile-menu-overlay .mobile-nav-link,
.mobile-menu-overlay .mobile-dropdown-link,
.mobile-menu-overlay .mobile-dropdown-trigger {
    color: #1a1a1a !important;
}

.mobile-menu-overlay .mobile-nav-link *,
.mobile-menu-overlay .mobile-dropdown-link *,
.mobile-menu-overlay .mobile-dropdown-trigger * {
    color: #1a1a1a !important;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-menu li {
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 1.5rem;
    width: 100%;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mobile-nav-link * {
    color: #1a1a1a !important;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: #f0f0f0;
    color: #000 !important;
}

.mobile-nav-link:hover *,
.mobile-nav-link:active * {
    color: #000 !important;
}

.mobile-nav-link svg {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.mobile-menu-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 0.5rem 0;
    width: 100%;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.5rem;
    gap: 0.75rem;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    background: var(--white);
}

.mobile-action-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* Stile per "Accedi" */
.mobile-action-btn:nth-child(1) {
    color: var(--dark);
    border: 1.5px solid var(--dark);
    background-color: transparent;
}

.mobile-action-btn:nth-child(1):hover {
    background-color: var(--dark);
    color: var(--white);
}

/* Stile per "Registrati" */
.mobile-action-btn:nth-child(2) {
    color: var(--white);
    background-color: var(--dark);
    border: 1.5px solid var(--dark);
}

.mobile-menu-overlay .mobile-menu-actions .mobile-action-btn:nth-child(2) {
    color: var(--white) !important;
}

.mobile-action-btn:nth-child(2):hover {
    background-color: #222;
    border-color: #222;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    width: 40px;
    height: 40px;
}

.mobile-menu-close:hover {
    background: #f5f5f5;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark);
    stroke-width: 2;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Header mobile pulito e compatto */
    .site-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem;
        height: 70px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        padding: 0.5rem;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    .mobile-menu-toggle:active {
        background: #f5f5f5;
    }
    
    .header-actions {
        display: flex; /* Mostra header-actions su mobile per icona carrello */
        gap: 0.5rem;
    }
    
    /* Nascondi i bottoni Accedi/Registrati e user menu su mobile (sono nel menu hamburger) */
    .header-actions .btn,
    .header-actions .user-menu {
        display: none;
    }
    
    /* Mantieni visibile solo il carrello su mobile */
    .header-actions .cart-icon {
        display: flex;
    }
    
    /* Quando header NON è compatto (esteso), centra l'icona carrello rispetto alla pagina */
    .site-header:not(.header-compact) .header-actions {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        top: 1rem;
        right: auto;
    }
    
    /* Quando header è compatto, mantieni carrello a destra normale */
    .site-header.header-compact .header-actions {
        position: absolute;
        right: 1rem;
        transform: none;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-navigation {
        position: relative;
        border-bottom: none;
        width: auto;
    }
    
    .nav-container {
        padding: 0;
    }
    
    .header-logo {
        padding: 0;
        text-align: left;
        justify-content: flex-start;
    }
    
    .logo-container {
        width: 160px;
        height: 50px;
    }
    
    /* Logo compatto allineato a sinistra quando header compatto */
    .site-header.header-compact .header-logo {
        justify-content: flex-start;
    }
    
    .site-header.header-compact {
        height: 70px;
        padding: 0.75rem 1.25rem;
    }
    
    .logo-container {
        width: 150px;
        height: 50px;
    }
    
    .logo-image {
        height: 50px;
    }
    
    
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.3rem 0.8rem;
    }
    
    .logo-container {
        width: 130px;
        height: 40px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    /* Dimensione più compatta per il menu hamburger */
    .hamburger-line {
        width: 22px;
        height: 2px;
    }
    
    .mobile-menu-toggle {
        gap: 3px;
    }
}

/* ===== DROPDOWN MENU STYLES ===== */
/* Desktop Dropdown */
.nav-item-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 12px;
    height: 12px;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 280px;
    padding: 0.75rem 0;
    margin-top: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

/* Assicura che i link del dropdown siano sempre visibili */
.dropdown-menu a {
    color: var(--dark) !important;
}

/* Icone professionali per i link del dropdown */
.dropdown-link::before {
    content: '';
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Icone specifiche per ogni link */
.dropdown-link[href*="wine-shop"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z'/%3E%3C/svg%3E");
}

.dropdown-link[href*="eventi"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.dropdown-link[href*="collezione"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10'/%3E%3C/svg%3E");
}

.dropdown-link[href*="regalo"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7'/%3E%3C/svg%3E");
}

.dropdown-link[href*="sommelier"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

.dropdown-link[href*="abbonamenti"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333333'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z'/%3E%3C/svg%3E");
}

/* Cambia colore delle icone al hover */
.dropdown-link:hover::before {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(39%) sepia(20%) saturate(1000%) hue-rotate(30deg) brightness(0.8) contrast(1.2);
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--dark) !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    gap: 0.75rem;
    line-height: 1.4;
    margin: 0.125rem 0;
}

.dropdown-link:hover {
    background: rgba(163, 144, 103, 0.06);
    color: var(--gold);
    transform: translateX(6px);
    border-radius: 8px;
    margin: 0 0.5rem;
}

.dropdown-link.member-only {
    color: #666666 !important;
    position: relative;
    font-weight: 400;
}

.dropdown-link.member-only::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

/* Mobile Dropdown - Design migliorato e facilmente apribile */
.mobile-nav-item-dropdown {
    position: relative;
}

.mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-dropdown-trigger:active {
    background: #f0f0f0;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    height: 20px;
    stroke: #1a1a1a !important;
    flex-shrink: 0;
    margin-left: auto;
    color: #1a1a1a !important;
}

.mobile-nav-item-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-nav-item-dropdown.active .mobile-dropdown-trigger {
    background: #f0f0f0;
    color: #000 !important;
    font-weight: 700;
}

.mobile-nav-item-dropdown.active .mobile-dropdown-trigger * {
    color: #000 !important;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    margin: 0;
    padding: 0;
    border-top: 1px solid #f0f0f0;
}

.mobile-nav-item-dropdown.active .mobile-dropdown-menu {
    max-height: 600px;
}

.mobile-dropdown-menu li {
    list-style: none;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-menu li:last-child {
    border-bottom: none;
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem 1rem 3rem;
    color: #1a1a1a !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
    position: relative;
    gap: 0.75rem;
    line-height: 1.5;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mobile-dropdown-link * {
    color: #1a1a1a !important;
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link:active {
    background: #f0f0f0;
    color: #000 !important;
    padding-left: 3.25rem;
}

.mobile-dropdown-link:hover *,
.mobile-dropdown-link:active * {
    color: #000 !important;
}

.mobile-dropdown-link.member-only {
    color: #666 !important;
    opacity: 0.8;
    font-weight: 400;
}

.mobile-dropdown-link.member-only * {
    color: #666 !important;
}

/* Icone per mobile dropdown - Rimosse per design più pulito */
.mobile-dropdown-link::before {
    display: none;
}

.mobile-dropdown-link[href*="wine-shop"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z'/%3E%3C/svg%3E");
}

.mobile-dropdown-link[href*="eventi"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.mobile-dropdown-link[href*="collezione"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10'/%3E%3C/svg%3E");
}

.mobile-dropdown-link[href*="regalo"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7'/%3E%3C/svg%3E");
}

.mobile-dropdown-link[href*="sommelier"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

.mobile-dropdown-link[href*="abbonamenti"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z'/%3E%3C/svg%3E");
}

.mobile-dropdown-link.member-only::after {
    content: '🔒';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    opacity: 0.5;
}

/* ===== CONTENT SPACING ===== */
.site-content {
    margin-top: 0; /* Rimosso spazio bianco sotto header */
    transition: var(--transition);
}

@media (max-width: 768px) {
    .site-content {
        margin-top: 0; /* Rimosso spazio bianco sotto header */
    }
}

@media (max-width: 480px) {
    .site-content {
        margin-top: 0; /* Rimosso spazio bianco sotto header */
    }
}