
  /* --- EREDITA LE VARIABILI ESATTE DELL'INDEX --- */
:root {
  --bg-color: #F8FAFC;
  --surface-color: #FFFFFF;
  --text-color: #0F172A;
  --secondary-text: #475569;
  --accent-color: #2563EB;
  --border-color: #E2E8F0;

  --font-main: 'Inter', sans-serif;
  --font-logo: 'PT Sans', sans-serif;
  --font-tech: 'JetBrains Mono', monospace;
  --font-hero: 'Clash Display', sans-serif;

  --container-width: 1600px;
  --mouse-x: -1000px;
  --mouse-y: -1000px;
  --header-height: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { width: 100%; overflow-x: hidden; background-color: var(--bg-color); color: var(--text-color); font-family: var(--font-main); line-height: 1.5; cursor: default; }
body.is-loading { overflow: hidden; height: 100%; position: fixed; width: 100%; top: 0; left: 0; }

::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/*LOGO SVG */
.logo-svg {
  height: 180px;
  width: auto;
  display: block;
  transition: color 0.3s ease;
  margin-left: -45px;
}
/* Correzione spazio vuoto sotto il logo nel footer */
.logo-footer {
  margin-bottom: -70px;
  margin-top: -70px;
}

/* --- INTRO PRELOADER --- */
#intro-preloader { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.layer-blue { position: fixed; top: 50%; left: 50%; width: 250vmax; height: 250vmax; background-color: var(--accent-color); border-radius: 50%; transform: translate(-50%, -50%); z-index: 10001; will-change: width, height; }
.layer-white { position: fixed; top: 50%; left: 50%; width: 250vmax; height: 250vmax; background-color: #ffffff; border-radius: 50%; transform: translate(-50%, -50%); z-index: 10002; display: flex; justify-content: center; align-items: center; will-change: width, height; }
.layer-white.collapse { transition: width 1s cubic-bezier(0.77, 0, 0.175, 1), height 1s cubic-bezier(0.77, 0, 0.175, 1); width: 0vw; height: 0vw; }
.layer-blue.collapse { transition: width 1s cubic-bezier(0.77, 0, 0.175, 1), height 1s cubic-bezier(0.77, 0, 0.175, 1); width: 0vw; height: 0vw; }
.intro-content { display: flex; align-items: baseline; gap: 20px; z-index: 10010; transition: opacity 0.3s ease, transform 0.3s ease; }
.intro-logo-text { font-family: var(--font-logo); font-size: clamp(1.8rem, 5vw, 3.5rem); font-weight: 700; color: #000; letter-spacing: -1px; }
.intro-counter { font-family: var(--font-tech); font-size: clamp(1rem, 3vw, 1.5rem); color: #000; font-weight: 600; }

/* --- LAYERS E HEADER --- */
.container { width: 97%; max-width: 1800px; margin: 0 auto; height: 100%; position: relative; z-index: 1; }
header { height: var(--header-height); position: fixed; width: 100%; top: 0; z-index: 9999; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); color: var(--text-color); }
header.header-hidden { transform: translateY(-100%); }
nav { display: flex; justify-content: space-between; align-items: center; height: 100%; position: relative; }
header.over-blue .logo { color: #FFFFFF; transition: color 0.3s ease; }
header.over-blue .nav-item a { color: #FFFFFF; transition: color 0.3s ease; }
header.over-blue .nav-item a span.hover-text { color: var(--text-color); }
header.over-blue .menu-toggle span { background-color: #FFFFFF; transition: background-color 0.3s ease; }
.nav-item.active-nav a { transform: translateY(0) !important; cursor: default; }

.logo { font-family: var(--font-logo); font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; line-height: 1; text-transform: uppercase; opacity: 0; position: relative; z-index: 1001; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 60px; opacity: 0; z-index: 1001; }
.nav-item { position: relative; height: 24px; overflow: hidden; cursor: pointer; }
.nav-item a { display: block; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); }
.nav-item a span { display: block; height: 24px; line-height: 24px; }
.nav-item a span.hover-text { color: var(--accent-color); }
.nav-item:hover a { transform: translateY(-24px); }

  /* --- BOTTONE LINGUA PREMIUM (DESKTOP) --- */
  .lang-switch-container {
    margin-left: 20px;
  }

  .lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Transizione ultra-fluida */
  }

  /* --- EFFETTO VETRO HOVER BASE (Sfondo chiaro) --- */
  .lang-switch-btn:hover {
    background-color: rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow:
      0 4px 10px rgba(37, 99, 235, 0.06),
      inset 0 1px 2px rgba(255, 255, 255, 0.8);
  }

  /* --- EFFETTO VETRO HOVER BLU (Quando l'header scorre) --- */
  header.over-blue .lang-switch-btn:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Bianco ghiaccio trasparente */
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.1),
      inset 0 1px 2px rgba(255, 255, 255, 0.3);
  }

.desktop-spacer { width: 60px; display: block; }

/* --- MOBILE MENU --- */
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 14px; cursor: pointer; z-index: 2002; }
.menu-toggle span { display: block; width: 100%; height: 2px; background-color: var(--text-color); transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); background-color: var(--text-color); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background-color: var(--text-color); }
.menu-ripple { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; clip-path: circle(0% at 100% 0%); pointer-events: none; transition: clip-path 0.7s cubic-bezier(0.8, 0, 0.2, 1); }
.ripple-white-menu { background-color: #000000; z-index: 1998; }
.ripple-blue-menu { background-color: var(--accent-color); z-index: 1999; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--bg-color); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; clip-path: circle(0% at 100% 0%); transition: clip-path 0.7s cubic-bezier(0.8, 0, 0.2, 1); pointer-events: none; }

.ripple-white-menu.active { clip-path: circle(150% at 100% 0%); transition-delay: 0s; }
.ripple-blue-menu.active { clip-path: circle(150% at 100% 0%); transition-delay: 0.1s; }
.mobile-menu-overlay.active { clip-path: circle(150% at 100% 0%); transition-delay: 0.2s; pointer-events: all; }
.mobile-menu-overlay:not(.active) { transition-delay: 0s; }
.ripple-blue-menu:not(.active) { transition-delay: 0.1s; }
.ripple-white-menu:not(.active) { transition-delay: 0.2s; }

.mobile-nav-list { text-align: center; }
.mobile-nav-item { margin: 25px 0; overflow: hidden; }
.mobile-nav-link { display: block; font-size: 2.5rem; font-weight: 800; color: var(--text-color); text-transform: uppercase; letter-spacing: -1px; transform: translateY(100%); opacity: 0; transition: transform 0.5s ease, opacity 0.5s ease; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(1) .mobile-nav-link { transition-delay: 0.4s; transform: translateY(0); opacity: 1; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(2) .mobile-nav-link { transition-delay: 0.5s; transform: translateY(0); opacity: 1; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(3) .mobile-nav-link { transition-delay: 0.6s; transform: translateY(0); opacity: 1; }
.mobile-menu-overlay.active .mobile-nav-item:nth-child(4) .mobile-nav-link { transition-delay: 0.7s; transform: translateY(0); opacity: 1; }
  .mobile-menu-overlay.active .mobile-nav-item:nth-child(5) .mobile-nav-link { transition-delay: 0.7s; transform: translateY(0); opacity: 1; }


/* --- ANIMAZIONI DI PARTENZA --- */
body.start-animations .logo { animation: dropStraight 0.8s ease-out forwards; }
body.start-animations .nav-links { animation: fadeDownCenter 0.8s ease-out 0.2s forwards; }
@keyframes dropStraight { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDownCenter { from { opacity: 0; transform: translateY(-20px) translateX(-50%); } to { opacity: 1; transform: translateY(0) translateX(-50%); } }

/* --- TITOLI E ELEMENTI "REVEALED" --- */
.section-title {
  font-family: var(--font-hero);
  font-size: clamp(4.5rem, 9vw, 12rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Aggiunto: Centra eventuali sottomenù o righe spezzate */

  transform: scaleY(1.15);
  transform-origin: left bottom;
}
.section-title.revealed { opacity: 1; transform: translateY(0) scaleY(1.05); }

/* --- CONTENUTO PAGINA FAQ CON GRIGLIA --- */
.content-scroller {
  position: relative;
  z-index: 20;
  background-color: var(--bg-color);
  min-height: 100vh;
  /* PADDING rimosso da qui e spostato nell'hero! */
  clip-path: inset(0 0 0 0); /* Fix parallasse mobile */
}

/* La griglia di sfondo fissa per le card */
.content-scroller::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image:
    linear-gradient(to right, rgb(218, 228, 255) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(218, 228, 255) 1px, transparent 1px);
  background-size: 100px 100px;
  z-index: -1;
  pointer-events: none;
}

/* --- GRIGLIA EFFETTO TORCIA --- */
.blueprint-grid {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(218, 228, 255) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(218, 228, 255) 1px, transparent 1px);
  background-size: 100px 100px;
  /* Maschera radiale che si aggancia alle coordinate del mouse */
  -webkit-mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
  mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
}

/* --- HERO DELLE FAQ (Fondo bianco + Torcia) --- */
.faq-hero {
  position: relative; /* Fondamentale per la griglia interna */
  text-align: left;
  padding-top: 150px; /* Spostato qui per riempire lo spazio sotto l'header */
  padding-bottom: 80px;
  background-color: var(--surface-color); /* Sfondo bianco pieno */
  overflow: hidden; /* Taglia la torcia che esce dai bordi */
}

/* --- PREMIUM SEPARATOR --- */
.premium-separator {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), rgba(37,99,235,0.8), rgba(37,99,235,0.3), transparent);
  position: relative; z-index: 10;
}

  .hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto; /* RE-INSERITO margin: 0 auto per centrare il blocco testo */
    text-align: center; /* Centra il testo all'interno del blocco */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
.hero-subtitle.revealed { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

/* --- ACCORDION FAQ (EFFETTO GLASSMORPHISM) --- */
.faq-accordion {
  max-width: 950px; /* Allargato leggermente per allinearsi al layout premium */
  margin: 0 auto 100px auto; /* <--- MODIFICA QUI: Aggiungi "auto" a destra e sinistra */
  /* Il Vetro Trasparente */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(3px) saturate(200%);
  -webkit-backdrop-filter: blur(3px) saturate(200%);

  /* Bordi e Ombre Apple Style */
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 10px 50px 30px 50px; /* Padding interno per non far toccare il testo ai bordi */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 25px 50px -12px rgba(15, 23, 42, 0.05);

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
}

.faq-accordion:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 30px 60px -12px rgba(37, 99, 235, 0.15); /* Leggero bagliore azzurro all'hover */
}

.faq-accordion.revealed { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

.faq-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1); /* Bordo separatore delicato e semi-trasparente */
}

/* Nasconde la linea finale per non sporcare il bordo arrotondato del vetro */
.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.faq-question:hover { color: var(--accent-color); }

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.faq-icon::before { width: 100%; height: 2px; }
.faq-icon::after { width: 2px; height: 100%; }

.faq-item.active .faq-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(45deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
  opacity: 0;
}
.faq-answer-inner { overflow: hidden; }
.faq-answer p {
  margin: 0;
  padding-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--secondary-text);
  max-width: 95%;
}
.faq-item.active .faq-answer { grid-template-rows: 1fr; opacity: 1; }

/* --- FOOTER (Stesso dell'index) --- */
footer { padding: 80px 0; border-top: 1px solid var(--border-color); background-color: #ffffff; position: relative; z-index: 10; font-size: 0.95rem; color: var(--secondary-text); }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; }
.footer-col h4 { color: var(--text-color); font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.footer-col .logo { color: var(--text-color); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--accent-color); font-weight: 500;}
.contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--secondary-text); transition: 0.3s; font-weight: 500;}
.contact-item:hover { color: var(--accent-color); }
.contact-item svg { width: 20px; height: 20px; stroke-width: 1.5; }
.social-link svg { fill: currentColor; width: 24px; height: 24px; }

@media (max-width: 1024px) {
  .section-title {
    font-size: 3rem;
    text-align: center; /* CAMBIATO da left a center */
    align-items: center; /* Assicura che anche gli elementi flex siano centrati */
  }

  .hero-subtitle {
    text-align: center;
  }  .nav-links, .desktop-spacer { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-question { font-size: 1.1rem; }
  .faq-answer p { font-size: 1rem; }
  .faq-accordion {
    padding: 15px 25px 25px 25px; /* Riduce i margini interni su smartphone */
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10); /* Leggermente più bianco su mobile per massima leggibilità */
  }
  /* Nasconde la griglia e l'effetto torcia su mobile, lasciando il fondo bianco */
  .faq-hero .blueprint-grid {
    display: none;
  }
}
