/* LUXLAB v2 — navbar — estratto da index.html monolite, contenuto invariato */
/* =============== NAVBAR ISLAND - APPLE STYLE =============== */
:root {
    --gold: #d4af37;
    --gold-soft: #FFD700;
    --gold-bright: #f4e168;
    --luxury-green: #355E3B;
    --luxury-green-light: #4A7C59;
    --luxury-green-bright: #5F9B6F;
    --black: #000;
    --white: #fff;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Variables */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --menu-text: #000000;
    /* NAVBAR APPLE STYLE: BIANCA OPACA → TRASPARENTE */
    --navbar-bg-initial: rgba(255, 255, 255, 0.95);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.15);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --menu-bg-solid: rgba(255, 255, 255, 0.98);
    --menu-section-bg: rgba(250, 250, 250, 0.95);
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --menu-text: #e0e0e0;
    /* NAVBAR APPLE STYLE: NERA OPACA → TRASPARENTE */
    --navbar-bg-initial: rgba(15, 15, 15, 0.95);
    --navbar-bg-scrolled: rgba(15, 15, 15, 0.15);
    --navbar-bg: rgba(15, 15, 15, 0.95);
    --menu-bg-solid: rgba(20, 20, 20, 0.98);
    --menu-section-bg: rgba(30, 30, 30, 0.95);
}

#navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1100px;
    width: calc(100% - 40px);
    height: 64px;
    /* INIZIA OPACA */
    background: var(--navbar-bg-initial);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1450;
    /* v2: transition:all -> mirata alle proprietà che cambiano davvero tra gli stati
       (base/.scrolled/.on-dark/.on-light): bg, bordo, ombra, vetro, altezza, top. */
    transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
                box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
                -webkit-backdrop-filter 0.5s var(--ease), height 0.5s var(--ease), top 0.5s var(--ease);
}

/* APPLE STYLE: Dopo hero diventa trasparente */
#navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    height: 55px;
    top: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* =============== NAVBAR ADATTIVA - SU SFONDO NERO → BIANCA =============== */
#navbar.on-dark {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

#navbar.on-dark.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
}

#navbar.on-dark .logo-desktop {
    color: #000 !important;
}

#navbar.on-dark .logo-desktop:hover {
    color: var(--gold) !important;
}

#navbar.on-dark .nav-item {
    color: #000 !important;
}

#navbar.on-dark .hamburger span {
    background: #000 !important;
}

#navbar.on-dark .nav-item:hover {
    color: var(--gold) !important;
}

/* =============== NAVBAR ADATTIVA - SU SFONDO BIANCO → TRASPARENTE =============== */
#navbar.on-light {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

#navbar.on-light.scrolled {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

#navbar.on-light .logo-desktop {
    color: #1a1a1a !important;
}

#navbar.on-light .logo-desktop:hover {
    color: var(--gold) !important;
}

#navbar.on-light .nav-item {
    color: #1a1a1a !important;
}

#navbar.on-light .hamburger span {
    background: #1a1a1a !important;
}

#navbar.on-light .nav-item:hover {
    color: var(--gold) !important;
}

#navbar.on-light .logo-mobile {
    color: var(--gold) !important;
}

/* =============== ONDA ORO ANIMATA =============== */
/* Striscia principale con pulsazione centrale */
#navbar::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(212,175,55,0.1) 15%,
        rgba(212,175,55,0.25) 35%,
        rgba(212,175,55,0.5) 50%,
        rgba(212,175,55,0.25) 65%,
        rgba(212,175,55,0.1) 85%,
        transparent 100%
    );
    border-radius: 2px;
    z-index: 1140;
    pointer-events: none;
    /* v2: alone di picco (era box-shadow al 50% del keyframe) reso statico qui */
    box-shadow: 0 0 8px rgba(212,175,55,0.18);
    animation: goldWave 4s ease-in-out infinite;
}

/* Bagliore centrale extra */
#navbar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: radial-gradient(ellipse at center,
        rgba(255,215,0,0.6) 0%,
        rgba(212,175,55,0.3) 40%,
        transparent 70%
    );
    border-radius: 3px;
    z-index: 1141;
    pointer-events: none;
    animation: centerPulse 3s ease-in-out infinite;
    filter: blur(1px);
}

/* Animazione onda che si espande dal centro */


/* Pulsazione del bagliore centrale */


/* =============== LEFT SECTION: HAMBURGER + LOGO =============== */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-right {
    width: 40px;
}

/* HAMBURGER - Sempre visibile */
.hamburger {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 7px;
    z-index: 1001;
    transition: all 0.3s ease;
}
.hamburger:hover {
    transform: scale(1.05);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--menu-text);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--gold) !important;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--gold) !important;
}

/* BLOCCA HAMBURGER SU MOBILE PER 2 SECONDI */
@media (max-width: 768px) {
    .hamburger {
        pointer-events: none;
        opacity: 0.3;
        animation: unlockHamburger 0.3s ease-out 2s forwards;
    }
}



/* LOGO DESKTOP - Normale */

.logo-desktop {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.logo-desktop:hover {
    color: var(--gold);
}

.logo-desktop:active {
    color: var(--gold) !important;
    text-shadow: 0 0 8px rgba(212,175,55,0.6), 0 0 15px rgba(212,175,55,0.3);
}
/* LOGO MOBILE - Centrato, IL FULCRO che pulsa oro */
.logo-mobile {
    display: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* v2: glow del "respiro" reso STATICO (valore di picco); ora pulsa solo l'opacity */
    text-shadow:
        0 0 6px rgba(255,215,0,0.3),
        0 0 12px rgba(255,215,0,0.15),
        0 0 18px rgba(212,175,55,0.08);
    animation: logoBreath 5s ease-in-out infinite;
    letter-spacing: 1px;
}

/* Animazione RESPIRO - delicata e viva */


/* =============== CENTER: NAVIGATION DESKTOP =============== */
.nav-center {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    color: #4a4a4a;
    font-weight: 500;
    position: relative;
    font-size: 0.9rem;
}

.nav-item:hover {
    color: var(--gold);
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(212,175,55,0.3);
}

.nav-item.active {
    color: var(--gold);
}

/* EFFETTO ORO AL CLICK - DESKTOP E MOBILE */
.nav-item:active {
    color: var(--gold) !important;
    text-shadow: 0 0 15px rgba(212,175,55,0.8), 0 0 30px rgba(212,175,55,0.4);
    transform: scale(0.95);
}

.menu-nav-item:active {
    color: var(--gold) !important;
    background: rgba(212,175,55,0.2) !important;
    text-shadow: 0 0 15px rgba(212,175,55,0.8);
    box-shadow: inset 4px 0 0 var(--gold);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 8px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 35%;
}

/* VIP Button */
.vip-nav-item {
    background: linear-gradient(135deg, var(--luxury-green) 0%, var(--luxury-green-light) 50%, var(--luxury-green-bright) 100%) !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(53, 94, 59, 0.25);
}

/* Effetto PUFF magico al click */
.vip-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    /* v2: dimensione finale fissa + scale(0) a riposo, puff via transform (compositor) */
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,215,0,0.4) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: none;
    opacity: 0;
    pointer-events: none;
}

.vip-nav-item:active::before {
    animation: vipPuff 0.6s ease-out forwards;
}



/* Sparkle extra al click */
.vip-nav-item:active {
    transform: scale(0.95);
    box-shadow: 
        0 0 20px rgba(255,215,0,0.5),
        0 0 40px rgba(53, 94, 59, 0.3);
}

.vip-nav-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(53, 94, 59, 0.35);
    color: white !important;
}

.vip-nav-item::after {
    display: none !important;
}

/* =============== LA STORIA - STILE ORO ELEGANTE =============== */
.nav-storia-item {
    background: linear-gradient(135deg, #8B7355 0%, #C9A961 50%, #D4AF37 100%) !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nav-storia-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    /* v2: dimensione finale fissa + scale(0) a riposo, puff via transform (compositor) */
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,215,0,0.4) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: none;
    opacity: 0;
    pointer-events: none;
}

.nav-storia-item:active::before {
    animation: storiaPuff 0.6s ease-out forwards;
}



.nav-storia-item:active {
    transform: scale(0.95);
    box-shadow: 
        0 0 20px rgba(255,215,0,0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
}

.nav-storia-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: white !important;
}

.nav-storia-item::after {
    display: none !important;
}

