/* LUXLAB v2 — base / globali — estratto da index.html monolite, contenuto invariato */

/* Fix touch-action per performance */
/* iOS GPU Acceleration per immagini */
.card__image img,
.app__bg__image img,
.city-slide__darkbg,
.hero-logo,
.footer-logo {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}
/* FIX SWIPE PIU FLUIDO */
.cities-slider,
.cards_wrapper {
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Carosello servizi - swipe orizzontale ottimizzato */
.card_list {
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

/* Performance GPU per scroll */
.city-slide,
.card {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* =============== LOADING SCREEN COMPLETO =============== */
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}
/* Main Website Container */
.main-website {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    margin: 0;
    padding: 0;
}

.main-website.visible {
    opacity: 1;
    visibility: visible;
}

/* Fix spazio sopra hero */
#hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
}

/* FALLBACK: Se JavaScript non carica, mostra comunque il sito dopo 10s */


.main-website {
    animation: forceShowContent 0.1s ease-out 8s forwards;
}

/* Fallback aggressivo - mostra subito se JS fallisce */
.loading-screen:not(.fade-out) ~ .main-website {
    animation-delay: 3s;
}

/* Nasconde loading screen dopo 10s anche senza JS */


.loading-screen {
    animation: forceHideLoading 0.5s ease-out 8s forwards;
}

/* GARANZIA 100% - Funziona anche senza JavaScript */
@media screen {
.main-website {
        animation: forceShowContent 0.5s ease-out 8s forwards !important;
    }
}

/* Per chi ha JS disabilitato */
noscript + .main-website,
.no-js .main-website {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix globale tap-highlight mobile */
button, 
.card_list_btn,
a,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

/* Fix cookie banner e altri elementi che possono creare spazio */
#cookie-banner {
    position: fixed !important;
}

.back-to-top, .floating-particles, .teleport-overlay {
    position: fixed !important;
}

/* LUX LAB CON LED BRILLANTE + INGRANDIMENTO FINALE */
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0.15em;
    position: relative;
    
    /* Riempimento da sinistra a destra - ORO PIÙ BRILLANTE */
    background: linear-gradient(90deg, 
        #FFD700 0%, 
        #FFC400 25%, 
        #FFDF00 50%, 
        #FFD700 75%, 
        #DAA520 100%);
    background-size: 0% 100%;
    background-position: left center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    
    /* Animazioni multiple */
   animation: 
        fillFromLeft 4.5s ease-in-out forwards,
        luxLabZoom 1.5s ease-out 4.5s forwards;
}

/* LED BRILLANTE E INTENSO */
.main-title::before {
    content: 'LUX LAB';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Playfair Display', serif;
    font-size: inherit;
    font-weight: 900;
    letter-spacing: 0.15em;
    
    /* Bordo LED intenso dorato */
    -webkit-text-stroke: 1px #FFD700;
    text-stroke: 1px #FFD700;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    
    /* Glow LED INTENSO */
    filter: drop-shadow(0 0 5px rgba(255,215,0,0.9)) 
            drop-shadow(0 0 10px rgba(255,215,0,0.7))
            drop-shadow(0 0 20px rgba(212,175,55,0.5));
    
    /* Inizia invisibile e segue l'ingrandimento */
    opacity: 0;
    animation: 
        ledDelicateAppear 4.5s ease-in-out forwards,
        luxLabZoom 1.5s ease-out 4.5s forwards;
    
    z-index: 1;
    pointer-events: none;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 300;
    color: rgba(212, 175, 55, 0.6); /* ORO TENUE - un passo indietro */
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
    animation: fadeInUp 1.1s ease-out 0.4s forwards, subtitleBreath 4s ease-in-out 1.5s infinite;
}



/* 🪄 CITAZIONE ARISTOTELE - DELICATA E SUSSURRATA */
.aristotle-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem); /* Leggermente più piccolo */
    text-align: center;
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
    position: relative;
    
    /* Colore DELICATO - quasi sussurrato */
    color: rgba(212, 175, 55, 0.40); /* Molto tenue */
    opacity: 0;
    
    /* Appare delicatamente */
    animation: quoteAppear 1.5s ease-out 1s forwards, quoteBreath 4s ease-in-out 2.5s infinite;
}





/* 💫 Effetto illuminazione lettera per lettera senza puntino visibile */
.aristotle-quote::after {
    content: '"L\'eccellenza non è un atto, ma un\'abitudine." — Aristotele';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: inherit;
    line-height: 1.6;
    text-align: center;
    color: transparent;
    
    /* Illuminazione che si muove lettera per lettera */
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 48%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.8) 52%,
        transparent 100%
    );
    background-size: 6% 100%;
    background-position: -6% center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Movimento irregolare attraverso le lettere */
    animation: letterHighlight 3s ease-in-out 6.2s forwards;
    
    z-index: 1;
    pointer-events: none;
}

.loading-bar-container {
    width: 300px;
    height: 4px; /* Leggermente più spessa */
    background: rgba(212, 175, 55, 0.2); /* ORO TRASPARENTE invece di bianco */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Bordo oro delicato */
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        #B8860B 0%,     /* ORO SCURO */
        #d4af37 25%,    /* ORO MEDIO */
        #FFD700 50%,    /* ORO CHIARO */
        #d4af37 75%,    /* ORO MEDIO */
        #B8860B 100%    /* ORO SCURO */
    );
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease-out;
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.8),      /* Glow oro intenso */
        0 0 40px rgba(212, 175, 55, 0.4),      /* Glow oro esteso */
        inset 0 1px 0 rgba(255, 255, 255, 0.3); /* Riflesso interno */
}


.loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem; /* Ancora più piccolo */
    color: rgba(80, 80, 80, 0.4); /* Grigio scuro QUASI INVISIBILE */
    letter-spacing: 0.15em;
    margin-top: 1rem;
    text-transform: uppercase;
    opacity: 0;
    animation: loadTextAppear 1s ease-out 1s forwards;
}



/* 🪄 ANIMAZIONI ILLUMINAZIONE LETTERA PER LETTERA SENZA PUNTINO */

/* Apparizione immediata del testo */


/* Illuminazione delle lettere che si muove in modo irregolare */


/* Existing animations */










/* =============================================
   LOADING SCREEN MOBILE - DISATTIVATO
   ============================================= */
@media (max-width: 768px) {
    /* LOADING DISATTIVATO SU MOBILE */
    .loading-screen {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .main-website {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* NASCONDI elementi non necessari su mobile */
    .loading-screen .aristotle-quote,
    .loading-screen .loading-bar-container,
    .loading-screen .loading-text {
        display: none !important;
    }
    
    .main-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        animation: fillFromLeft 2s ease-in-out forwards;
        
        background: linear-gradient(90deg, 
            #FFD700 0%, 
            #FFC400 25%, 
            #FFDF00 50%, 
            #FFD700 75%, 
            #DAA520 100%);
        background-size: 0% 100%;
        background-position: left center;
        background-repeat: no-repeat;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }
    
    .main-title::before {
        display: block;
        -webkit-text-stroke: 0.5px #FFD700;
        animation: ledDelicateAppear 2s ease-in-out forwards;
        filter: drop-shadow(0 0 5px rgba(255,215,0,0.8));
    }
    
    .subtitle {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out 0.3s forwards;
        color: rgba(212, 175, 55, 0.7);
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }
    
  /* HAMBURGER BLOCCATO durante intro - si sblocca con animazione dopo 3s */
      .hamburger {
          pointer-events: none;
          opacity: 0.3;
          transition: opacity 0.3s ease;
          animation: unlockHamburger 0.3s ease-out 3s forwards;
      }
  }

/* SBLOCCA HAMBURGER - classe da JS */
@media (max-width: 768px) {
    .hamburger.unlocked {
        pointer-events: auto !important;
        opacity: 1 !important;
    }
}

/* Animazione semplificata per mobile */


/* Extra small mobile */
@media (max-width: 480px) {
    .main-title {
        font-size: clamp(2rem, 12vw, 3.5rem) !important;
        letter-spacing: 0.1em !important;
    }
    
    .subtitle {
        font-size: 0.85rem !important;
        letter-spacing: 0.15em !important;
    }
    
    .aristotle-quote {
        font-size: 0.85rem !important;
        padding: 0 20px;
        max-width: 90%;
    }
    
    .loading-bar-container {
        width: 200px;
    }
}

/* iOS Safari fix specifico */
@supports (-webkit-touch-callout: none) {
    .main-title {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .main-title::before {
        display: none !important;
    }
}

        /* Stile del Cookie Banner */
        #cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            color: #fff;
            padding: 20px;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
            z-index: 9999;
            display: none;
            font-family: Arial, sans-serif;
        }

        #cookie-banner.show {
            display: block;
            animation: slideUp 0.4s ease;
        }

        

        .cookie-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .cookie-text {
            flex: 1;
            min-width: 250px;
        }

        .cookie-text h3 {
            margin: 0 0 10px 0;
            font-size: 18px;
        }

        .cookie-text p {
            margin: 0;
            font-size: 14px;
            line-height: 1.5;
            opacity: 0.9;
        }

        .cookie-text a {
            color: #4CAF50;
            text-decoration: underline;
        }

        .cookie-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .cookie-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .cookie-btn-accept {
            background: #c4a702;
            color: white;
        }

        .cookie-btn-accept:hover {
            background: #fad502;
        }

        .cookie-btn-decline {
            background: transparent;
            color: white;
            border: 2px solid white;
        }

        .cookie-btn-decline:hover {
            background: rgba(255,255,255,0.1);
        }


        /* Responsive */
        @media (max-width: 768px) {
            .cookie-content {
                flex-direction: column;
                text-align: center;
            }
            
            .cookie-buttons {
                width: 100%;
                justify-content: center;
            }

            .cookie-btn {
                flex: 1;
                min-width: 120px;
            }
        }
    

:root {
    --gold: #d4af37;
    --gold-soft: #FFD700;
    --black: #000;
    --white: #fff;
    --ease: cubic-bezier(.4,0,.2,1);
    
    /* VARIABILI VIP LUSSUOSE COMPLETE */
    --luxury-green: #355E3B;
    --luxury-green-light: #4A7C59;
    --luxury-green-bright: #5F9B6F;
    
    /* PALETTE ORO AVANZATA */
    --gold-rich: #B8860B;
    --gold-bright: #FFD700;
    --gold-deep: #DAA520;
    
    /* SHADOWS E GLOWS */
    --luxury-shadow: 0 8px 32px rgba(0,0,0,0.12);
    --gold-glow: 0 0 20px rgba(255,215,0,0.4);
    --green-glow: 0 0 25px rgba(53, 94, 59, 0.3);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --text: #000;
    --text-secondary: #666;
    --bg: #fff;
}
[data-theme="dark"] {
    --text: #fff;
    --text-secondary: #ccc;
    --bg: #000;
}

[data-theme="light"] {
    --text: #000;
    --text-secondary: #666;
    --bg: #fff;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
/* ═══════════ FORCE LIGHT MODE - UNICO BLOCCO ═══════════ */
:root, html, body {
    color-scheme: light only !important;
    -webkit-color-scheme: light !important;
    background-color: #ffffff !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    color: var(--black);
    overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
    html, body { 
        background-color: #ffffff !important; 
        color: #000000 !important; 
    }
}
/* ═══════════ FINE FORCE LIGHT MODE ═══════════ */

/* Rimuovi eventuali margini o spazi laterali */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

/* NASCONDE COMPLETAMENTE LA SCROLLBAR - Nessuno spazio bianco */
::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
  background: transparent !important;
}

::-webkit-scrollbar-track {
  background: transparent !important;
  display: none !important;
}

::-webkit-scrollbar-thumb {
  background: transparent !important;
  display: none !important;
}

::-webkit-scrollbar-thumb:hover {
  background: transparent !important;
}

/* Firefox - Nascondi scrollbar */
html, body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* ---------- PARTICELLE FLUTTUANTI GLOBALI ---------- */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--gold), transparent);
  border-radius: 50%;
  animation: floatUp 15s infinite linear;
  opacity: 0;
}



.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3s; }

/* ---------- EFFETTI SCROLL RIDOTTI ---------- */
.scroll-morph {
  transition: all 0.4s ease;
}

.scroll-morph.in-view {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.scroll-morph:not(.in-view) {
  transform: translateY(30px) scale(0.98);
  opacity: 0;
}

/* ---------- SEZIONI SEMPLIFICATE ---------- */
section {
  position: relative;
  transition: opacity 0.3s ease;
}

/* Effetto teleport flash */


.teleport-flash {
  animation: teleportFlash 0.3s ease-out;
}

/* Overlay per effetto teleport */
.teleport-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.2s ease;
}

.teleport-overlay.active {
  opacity: 0.1;
}

/* ---------- HOVER MAGNETICO GLOBALE ---------- */
.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-hover:hover {
  transform: translateY(-5px) scale(1.02);
  filter: drop-shadow(0 10px 20px rgba(212,175,55,0.2));
}

/* ---------- GLOW PULSANTE SUI LINK ---------- */
a, button, .clickable {
  position: relative;
  overflow: hidden;
}

/* Esclude hamburger e logo dalla glow rettangolare */
.hamburger,
.hamburger span,
.logo-desktop,
.logo-mobile {
  overflow: visible !important;
}

.hamburger::after,
.hamburger span::after,
.logo-desktop::after,
.logo-mobile::after,
.menu-nav-item::after,
.menu-close::after,
.flag-btn::after,
.tool-mega-btn::after,
.tools-back-btn::after {
  display: none !important;
}

a::after, button::after, .clickable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(212,175,55,0.3), transparent);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

a:hover::after, button:hover::after, .clickable:hover::after {
  width: 200%;
  height: 200%;
}


@media (max-width: 480px) {
  .loading-logo-svg {
    width: 300px; /* INGRANDITO */
    height: 95px; /* INGRANDITO */
  }
  
  .loading-logo-svg text {
    font-size: 55px !important; /* INGRANDITO */
    stroke-dasharray: 280 !important;
    stroke-dashoffset: 280 !important;
  }
  
  .loading-text span {
    font-size: 0.65rem !important; /* ANCORA PIÙ RIDOTTO */
    letter-spacing: 3px !important; /* RIDOTTO */
  }
}



.loading-logo-svg text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px; /* Ingrandito da 68px */
  font-weight: 900;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5; /* Aumentato per migliore visibilità */
  stroke-dasharray: 400; /* Ridotto per animazione più fluida */
  stroke-dashoffset: 400;
  animation: drawText 4.5s ease-in-out infinite;
  letter-spacing: 10px; /* Aggiunto per consistenza */
}

/* Animazione drawText migliorata e più fluida */


/* Fix decorazioni SVG */
.loading-logo-svg line {
  stroke-width: 1;
  animation: lineGlow 4.5s ease-in-out infinite;
}



/* Lusso accessibile PIÙ PICCOLO come richiesto */
.loading-text {
  margin-bottom: 20px;
  margin-top: 8px;
}

.loading-text span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem; /* RIDOTTO da 1.1rem */
  font-weight: 600;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.6);
  letter-spacing: 6px; /* RIDOTTO da 8px */
  text-transform: uppercase;
  animation: subtitlePulse 3.5s ease-in-out infinite;
}



.loading-bar {
  width: 220px;
  height: 0.5px;
  background: rgba(212,175,55,0.2);
  border-radius: 0;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 0 8px rgba(212,175,55,0.3);
  transform-origin: center;
  transition: all 0.5s ease, background 0.3s ease;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f5d87b, #FFD700, #f5d87b, #d4af37);
  background-size: 200% 100%;
  animation: gradientFlow 3s ease-in-out infinite;
  border-radius: 0.5px;
  width: 0%;
  transition: width 0.4s ease, filter 0.4s ease, height 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 0 10px rgba(212,175,55,0.8), inset 0 0 4px rgba(255,215,0,0.6);
}





/* Loading percentage con effetti evidenti sui checkpoint */
.loading-percentage {
  color: #f5d87b;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 12px;
  opacity: 0.95;
  letter-spacing: 2.5px;
  text-shadow: 0 0 8px rgba(212,175,55,0.5);
  position: relative;
  z-index: 10;
  transition: all 0.5s ease;
}

/* Animazione checkpoint glow */


/* ---------- PARALLAX BACKGROUNDS ---------- */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-attachment: fixed;
  will-change: transform;
}

/* FIX iOS - background-attachment: fixed non funziona su Safari iOS */
@supports (-webkit-touch-callout: none) {
  .parallax-layer {
    background-attachment: scroll;
  }
}

/* ---------- ELEMENTI INTERATTIVI 3D ---------- */
.interactive-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.interactive-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

/* ---------- EFFETTI HOVER SEMPLIFICATI ---------- */
.dynamic-hover {
  position: relative;
  transition: transform 0.2s ease;
}

.dynamic-hover:hover {
  transform: translateY(-2px);
}



/* ---------- GLASSMORPHISM EFFECTS ---------- */
.glass-morph {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ---------- NEON GLOW EFFECTS ---------- */
.neon-glow {
  position: relative;
}

.neon-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--gold), #f4d03f, var(--gold));
  border-radius: inherit;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.neon-glow:hover::after {
  opacity: 0.8;
}

/* SVG Chi Siamo - Animazione controllata da scroll */
.service-item .icon svg path,
.service-item .icon svg line,
.service-item .icon svg circle,
.service-item .icon svg ellipse,
.service-item .icon svg rect {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    stroke-opacity: 0.3;
    transition: none;
}

/* Quando la sezione è visibile - parte l'animazione */
.service-item.svg-animate .icon svg path,
.service-item.svg-animate .icon svg line,
.service-item.svg-animate .icon svg circle,
.service-item.svg-animate .icon svg ellipse,
.service-item.svg-animate .icon svg rect {
    animation: svgDrawLoop 4s ease-in-out infinite;
}

/* Delay sfalsati per i 3 elementi */
.service-item:nth-child(1).svg-animate .icon svg * { animation-delay: 0s; }
.service-item:nth-child(2).svg-animate .icon svg * { animation-delay: 0.3s; }
.service-item:nth-child(3).svg-animate .icon svg * { animation-delay: 0.6s; }

/* Animazione: disegna → pausa 1s → cancella → riparte */


/* Glow effect durante il drawing */
.service-item .icon svg {
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
    transition: filter 0.3s ease;
}

.service-item:hover .icon svg {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.service-item:hover .icon svg path,
.service-item:hover .icon svg line,
.service-item:hover .icon svg circle,
.service-item:hover .icon svg ellipse,
.service-item:hover .icon svg rect {
    animation-duration: 2s;
    stroke-width: 17;
}

