/* ========================================================== */
/* EUDORIA HOME — styles.css                                  */
/* Stack: HTML + CSS + vanilla JS. Mobile-first. Dark + lime  */
/* + biophilic. Single source of truth: docs/dna/A-meta.md.   */
/* ========================================================== */

/* ---------- 1. CUSTOM PROPERTIES ---------- */
:root {
  /* DARK THEME (default) — Backgrounds */
  --bg-primary: #0A0A0A;
  --bg-secondary: #1A1A1A;
  --bg-nero: #000000;
  --bg-card: rgba(255, 255, 255, 0.05);

  /* Accent (UN solo lime — uguale entrambi i temi per coerenza brand) */
  --accent-lime: #C5F536;
  --accent-lime-soft: rgba(197, 245, 54, 0.15);
  /* accent-text usato per em italic in testi long-form (lime brillante stona su sfondo chiaro) */
  --accent-text: #C5F536;

  /* Testo */
  --text-primary: #F5F5F0;
  --text-secondary: #9A9A94;
  --text-muted: #6A6A64;

  /* Bordi */
  --border-subtle: #2A2A2A;
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Hero glow (vignette SVG color stop) */
  --hero-glow: #0A0A0A;

  /* ---- VARIABILI UNIVERSALI (SAME both themes) ---- */

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Type */
  --font-headline: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --weight-headline: 700;
  --weight-body: 400;
  --weight-emphasis: 600;

  --size-h1: clamp(2.5rem, 5vw, 4.5rem);
  --size-h2: clamp(2rem, 3.5vw, 3rem);
  --size-h3: clamp(1.5rem, 2.5vw, 2rem);
  --size-body: clamp(1rem, 1.2vw, 1.125rem);
  --size-small: 0.875rem;
  --size-micro: 0.75rem;

  --lh-headline: 1.15;
  --lh-body: 1.6;
  --lh-prose: 1.75;

  --ls-micro: 0.15em;
  --ls-headline: -0.02em;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 200ms;
  --t-mid: 300ms;

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(64px, 9vw, 120px);
  --nav-h: 68px;
}

/* LIGHT THEME — "dark theme con accent forest #3A5C0A invece di lime, eccezione logo". */
html[data-theme="light"] {
  /* Backgrounds — warm cream */
  --bg-primary: #F5F0E5;
  --bg-secondary: #EDE5D6;
  --bg-card: rgba(26, 40, 32, 0.05);

  /* Accent: forest deep #3A5C0A sostituisce lime ovunque (eccezione logo, gestita sotto) */
  --accent-lime: #3A5C0A;            /* forest deep — usato per CTA bg, numeri, hover, dots, ecc. */
  --accent-lime-soft: rgba(58, 92, 10, 0.10);
  --accent-text: #3A5C0A;            /* uguale — single accent throughout */

  /* Testo — dark forest, non puro nero */
  --text-primary: #1A2820;
  --text-secondary: #4A5A50;
  --text-muted: #6A7A70;

  /* Bordi — warm taupe */
  --border-subtle: #D4CCB4;
  --border-glass: rgba(26, 40, 32, 0.08);

  --hero-glow: #F5F0E5;
}

/* ========== LIGHT THEME — overrides specifici ========== */

/* LOGO — eccezione: SEMPRE lime+bianco con text-shadow per visibilità. NO padding, NO background. */
html[data-theme="light"] .logo {
  background: transparent;
  padding: 0;
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(10, 26, 10, 0.5);
}
html[data-theme="light"] .logo em {
  color: #C5F536;            /* lime brand — solo qui */
  /* text-shadow inherits */
}

/* CTA primary — su forest #3A5C0A bg, testo BIANCO + shadow forest (non lime) */
html[data-theme="light"] .cta-primary {
  color: #FFFFFF;
  box-shadow: 0 4px 20px -8px rgba(58, 92, 10, 0.5);
}
html[data-theme="light"] .cta-primary .arrow { color: #FFFFFF; }
html[data-theme="light"] .cta-primary:hover {
  background: #4D7610;          /* forest leggermente più chiaro per tactile feedback */
  box-shadow: 0 8px 28px -6px rgba(58, 92, 10, 0.6);
  /* transform: translateY(-1px) inherited from base */
}

/* Mobile sticky CTA — stessa logica forest shadow */
html[data-theme="light"] .mobile-sticky-cta .cta-primary {
  box-shadow: 0 8px 28px -10px rgba(58, 92, 10, 0.7), 0 2px 12px rgba(26, 40, 32, 0.3);
}

/* Q0 card selected glassmorphism — forest tint invece di lime */
html[data-theme="light"] .q0-card[aria-pressed="true"] {
  background: rgba(58, 92, 10, 0.05);
  box-shadow: 0 0 0 1px var(--accent-lime), 0 8px 32px -10px rgba(58, 92, 10, 0.35);
}

/* Form gentleGlow animation — forest invece di lime */
html[data-theme="light"] .form-inline:not(.form--disabled) {
  animation: gentleGlowLight 600ms var(--ease) 1;
}
@keyframes gentleGlowLight {
  0% { box-shadow: 0 0 0 0 rgba(58, 92, 10, 0); }
  50% { box-shadow: 0 0 24px 4px rgba(58, 92, 10, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(58, 92, 10, 0); }
}

/* FAQ open border — forest invece di lime soft */
html[data-theme="light"] .faq-item[open] {
  border-color: rgba(58, 92, 10, 0.4);
}

/* CTA secondary — border + testo dark forest */
html[data-theme="light"] .cta-secondary {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Light theme: tono leggermente più freddo sull'immagine vision (matte painting fa caldo, vogliamo bilanciare) */
html[data-theme="light"] .manifesto-vision-img {
  filter: saturate(0.9) brightness(1.05);
}
html[data-theme="light"] .value-card svg [stroke="#C5F536"],
html[data-theme="light"] .q0-card svg [stroke="#C5F536"] {
  stroke: #3A5C0A;
}
html[data-theme="light"] .value-card svg [fill="#C5F536"] {
  fill: #3A5C0A;
}

/* Nav transparent-by-default in light: glass solo su scroll (vedi html[data-theme="light"] .nav--scrolled più sotto) */

/* Form inline light */
html[data-theme="light"] .form-inline {
  background: rgba(26, 40, 32, 0.04);
}
html[data-theme="light"] .q0-card[aria-pressed="true"] {
  background: rgba(58, 92, 10, 0.08);
}
html[data-theme="light"] .q0-card[aria-pressed="true"] .q0-check svg {
  stroke: #F5F0E5;          /* checkmark cream su forest bg */
}

/* Selezione testo */
html[data-theme="light"] ::selection {
  background: var(--accent-lime);
  color: #FFFFFF;
}

/* Disabled CTA in light */
html[data-theme="light"] .cta-primary:disabled,
html[data-theme="light"] .cta-secondary:disabled {
  opacity: 0.4;
  filter: saturate(40%);
}

/* Subtle paper-grain texture overlay (warm, organic) */
html[data-theme="light"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* Theme transition (smooth color swap on toggle) */
html, body, .nav, .mobile-menu, .form-inline, .testimonial-card, .value-card, .how-card, .calendar-table-wrap {
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}

/* (Light theme rules consolidate sopra — vedi blocco "LIGHT THEME — fix specifici visivi") */

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

::selection { background: var(--accent-lime); color: var(--bg-primary); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 3. TYPOGRAPHY UTILITIES ---------- */
.headline {
  font-family: var(--font-headline);
  font-weight: var(--weight-headline);
  line-height: var(--lh-headline);
  letter-spacing: var(--ls-headline);
  color: var(--text-primary);
  margin: 0 0 1rem;
}
.headline--xl { font-size: var(--size-h1); }
.headline--lg { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.headline--md { font-size: var(--size-h2); }
.headline em {
  font-style: italic;
  color: var(--accent-lime);
  font-weight: 700;
}
.headline-mark { color: var(--accent-lime); }

/* Brand wordmark — usato nell'hero "Eudoria." con "ia" corsivo lime */
.brand-mark {
  color: var(--text-primary);
  font-style: normal;
}
.brand-mark em {
  font-style: italic;
  color: var(--accent-lime);
}

.micro-label {
  font-family: var(--font-body);
  font-size: var(--size-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-micro);
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-lime);
  border-radius: 50%;
}

.section-sub {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 60ch;
  margin: 0 0 2.5rem;
  line-height: 1.55;
}

.prose p {
  margin: 0 0 1.5rem;
  line-height: var(--lh-prose);
  color: var(--text-primary);
  font-size: clamp(1.02rem, 1.15vw, 1.18rem);
}
.prose p em {
  font-style: italic;
  color: var(--accent-lime);
  font-weight: 500;
}
.prose-close {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
}

.inline-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: var(--size-small);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
  transition: color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.inline-link:hover { color: var(--accent-lime); border-bottom-color: var(--accent-lime); }

/* ---------- 4. CTA ---------- */
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--weight-emphasis);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  transition: transform var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease),
              color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.cta-primary {
  background: var(--accent-lime);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px -8px rgba(197, 245, 54, 0.5);
}
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(197, 245, 54, 0.55); }
.cta-primary:active { transform: translateY(0); }

.cta-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cta-secondary:hover { border-color: var(--accent-lime); color: var(--accent-lime); }

.cta-primary--sm { padding: 11px 20px; font-size: 0.92rem; }
.cta-primary--full { width: 100%; }

.cta-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-lime);
  font-weight: var(--weight-emphasis);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--t-mid) var(--ease);
}
.cta-text:hover { border-bottom-color: var(--accent-lime); }
.cta-text--prominent { font-size: 1rem; margin-top: 1.5rem; }

.arrow { display: inline-block; transition: transform var(--t-mid) var(--ease); }
.cta-primary:hover .arrow,
.cta-secondary:hover .arrow,
.cta-text:hover .arrow { transform: translateX(3px); }

.cta-sublabel {
  margin: 12px 0 0;
  font-size: var(--size-small);
  color: var(--text-muted);
}

.section-cta { margin-top: 3rem; text-align: center; }

/* ---------- 5. NAV (glassmorphism — sempre attivo) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 280ms ease,
    backdrop-filter 280ms ease,
    -webkit-backdrop-filter 280ms ease,
    border-color 280ms ease;
}
.nav--scrolled {
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .nav--scrolled { background: var(--bg-primary); }
}
html[data-theme="light"] .nav--scrolled {
  background: rgba(245, 240, 229, 0.7);
  border-bottom-color: rgba(58, 92, 10, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  display: inline-flex;
  align-items: baseline;
  color: var(--text-primary);
  line-height: 1;
  text-rendering: geometricPrecision;
}
.logo em {
  font-style: italic;
  color: var(--accent-lime);
  font-weight: 600;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--t-mid) var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent-lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-actions {
  display: none;
  align-items: center;
  gap: 16px;
}
.nav-login {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color var(--t-mid) var(--ease);
}
.nav-login:hover { color: var(--text-primary); }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  transition: background var(--t-mid) var(--ease);
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 24px var(--gutter) 100px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  z-index: 99;
}
/* Default browser hidden takes over when [hidden] is set; flex only when visible */
.mobile-menu:not([hidden]) { display: flex; }
.mobile-link {
  padding: 14px 8px;
  font-size: 1.05rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--t-mid) var(--ease);
}
.mobile-link:hover { color: var(--accent-lime); }
.mobile-login { color: var(--text-secondary); border-bottom: 0; }

/* Mobile sticky CTA bar */
.mobile-sticky-cta {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 90;
  display: block;
}
.mobile-sticky-cta .cta-primary {
  width: 100%;
  box-shadow: 0 8px 28px -10px rgba(197, 245, 54, 0.7), 0 2px 12px rgba(0, 0, 0, 0.5);
  font-size: 0.95rem;
  padding: 14px 18px;
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  /* Full viewport: 100vh fallback, 100dvh dove supportato (mobile collapse browser bar OK) */
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(72px, 14vw, 140px) 0 clamp(72px, 12vw, 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Scene: hall biophilic image con Ken Burns slow zoom */
.hero-bg-scene {
  position: absolute; inset: 0;
  background: url("img/hall-biophilic.webp") center/cover no-repeat;
  opacity: 0.75;
  animation: kenburns 22s ease-in-out infinite alternate;
  mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 78%, transparent 100%);
  will-change: transform;
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.15) translate3d(-2%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-scene { animation: none; transform: scale(1.08); }
  .hero-bg-aurora { animation: none; }
}

/* Aurora: soft animated radial gradients in lime/green */
.hero-bg-aurora {
  position: absolute; inset: -10%;
  background:
    radial-gradient(50% 40% at 22% 28%, rgba(197,245,54,0.14), transparent 70%),
    radial-gradient(44% 34% at 78% 72%, rgba(58,180,120,0.12), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(12,80,50,0.45), transparent 70%);
  filter: blur(40px);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

/* Stars: tiny sparkle dots */
.hero-bg-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 72% 32%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 38% 68%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 84% 82%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1.3px 1.3px at 55% 12%, rgba(197,245,54,0.55), transparent 60%),
    radial-gradient(1px 1px at 18% 88%, rgba(197,245,54,0.45), transparent 60%);
}

/* Vignette: bordi scuri (match build-v2 — lettura confortevole su scene busy) */
.hero-bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 50% 47%, rgba(4,7,4,0), rgba(4,7,4,0.42) 62%, rgba(4,7,4,0.96) 100%),
    linear-gradient(180deg, rgba(4,7,4,0.05), rgba(4,7,4,0.24) 44%, rgba(4,7,4,0.95));
}

/* Light theme: scene più tenue e vignette in cream invece che nero */
html[data-theme="light"] .hero-bg-scene { opacity: 0.32; }
html[data-theme="light"] .hero-bg-aurora {
  background:
    radial-gradient(50% 40% at 22% 28%, rgba(58,92,10,0.10), transparent 70%),
    radial-gradient(44% 34% at 78% 72%, rgba(58,92,10,0.08), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(58,92,10,0.18), transparent 70%);
}
html[data-theme="light"] .hero-bg-stars { opacity: 0.4; }
html[data-theme="light"] .hero-bg-vignette {
  background:
    radial-gradient(closest-side at 50% 47%, rgba(245,240,229,0) 40%, rgba(245,240,229,0.35) 70%, rgba(245,240,229,0.7) 100%),
    linear-gradient(180deg, rgba(245,240,229,0.2) 0%, transparent 25%, transparent 65%, rgba(245,240,229,0.7) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-narrow);
}

.sub-headline {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 2rem;
}
.sub-headline strong {
  color: var(--text-primary);
  font-weight: var(--weight-emphasis);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 6px;
}

.authority-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 1.5rem 0 0;
  font-size: var(--size-small);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.authority-pills .sep { color: var(--border-subtle); margin: 0 4px; }

/* ---------- Hero trust strip (avatars + rating) ---------- */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 1.75rem 0 0;
}
.hero-trust-faces { display: flex; align-items: center; }
.hero-trust-faces img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  object-fit: cover;
  display: block;
}
.hero-trust-faces img + img { margin-left: -12px; }
.hero-trust-text {
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.hero-trust-stars {
  color: var(--accent-lime);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.hero-trust-label {
  font-size: var(--size-small);
  color: var(--text-secondary);
}
.hero-trust-label strong { color: var(--text-primary); font-weight: 600; }
html[data-theme="light"] .hero-trust-stars { color: #3A5C0A; }

/* ---------- 7. MANIFIESTO ---------- */
.manifesto {
  padding: var(--section-pad) 0;
  background: var(--bg-nero);
}
.manifesto-grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr;
  align-items: start;
}
.manifesto-text { max-width: 65ch; }

.manifesto-illustration {
  display: none;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  /* contesto per halo absolute */
  isolation: isolate;
}
.manifesto-halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(197, 245, 54, 0.18) 0%, rgba(197, 245, 54, 0.06) 40%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}
html[data-theme="light"] .manifesto-halo {
  background: radial-gradient(circle, rgba(58, 92, 10, 0.16) 0%, rgba(58, 92, 10, 0.05) 40%, transparent 70%);
}
.manifesto-vision-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ---------- 8. CÓMO FUNCIONA ---------- */
.how {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  position: relative;
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  position: relative;
}
.how-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  transition:
    border-color var(--t-mid) var(--ease),
    transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
  overflow: hidden;
}
.how-card:hover {
  border-color: rgba(197, 245, 54, 0.30);
  transform: translateY(-3px);
  box-shadow:
    0 0 28px rgba(197, 245, 54, 0.10),
    0 0 60px rgba(197, 245, 54, 0.05);
}
.how-num {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(60px, 9vw, 96px);
  line-height: 0.9;
  color: var(--accent-lime);
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.how-tag {
  display: inline-block;
  font-size: var(--size-micro);
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--accent-lime);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Mobile-only flow arrows between cards (CSS ::after for valid <ol>/<li>) */
.how-card { position: relative; }
.how-card:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  font-size: 1.6rem;
  color: var(--accent-lime);
  opacity: 0.7;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}
/* Increase gap to make room for the arrow */
.how-steps { row-gap: 56px; }
.how-title {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: var(--weight-emphasis);
  color: var(--text-primary);
  margin: 0 0 10px;
}
.how-body {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.98rem;
}
.how-scenario {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--accent-lime);
  font-style: italic;
}
.how-scenario em { font-style: italic; color: inherit; }

/* ---------- 9. VALOR ---------- */
.value {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  transition:
    border-color var(--t-mid) var(--ease),
    transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}
.value-card:hover {
  border-color: rgba(197, 245, 54, 0.30);
  transform: translateY(-3px);
  box-shadow:
    0 0 28px rgba(197, 245, 54, 0.10),
    0 0 60px rgba(197, 245, 54, 0.05);
}
.value-icon {
  display: inline-block;
  width: 40px; height: 40px;
  margin-bottom: 16px;
}
.value-icon svg { width: 100%; height: 100%; }
.value-num {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 64px);
  line-height: 1;
  color: var(--accent-lime);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.value-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: var(--weight-emphasis);
  color: var(--text-primary);
  margin: 0 0 8px;
}
.value-body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- 10. CALENDARIO ---------- */
.calendar { padding: var(--section-pad) 0; background: var(--bg-secondary); }
.calendar-tz {
  font-size: var(--size-small);
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.calendar-table-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.calendar-table {
  width: 100%;
  min-width: 480px; /* mobile: scroll-x se viewport < 480 */
  border-collapse: collapse;
  font-size: 0.95rem;
}
.calendar-table thead { background: rgba(255, 255, 255, 0.02); }
.calendar-table th,
.calendar-table td {
  padding: 14px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .calendar-table th, .calendar-table td { padding: 12px 10px; font-size: 0.88rem; }
  .calendar-table tbody th { width: 56px; }
}
.calendar-table thead th {
  color: var(--accent-lime);
  font-family: var(--font-body);
  font-weight: var(--weight-emphasis);
  font-size: var(--size-micro);
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
}
.calendar-table tbody th {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--text-primary);
  width: 90px;
}
.calendar-table tbody tr:last-child th,
.calendar-table tbody tr:last-child td { border-bottom: 0; }

/* Hover row: lieve glow lime + lift, conferma quale riga stai leggendo */
.calendar-table tbody tr {
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.calendar-table tbody tr:hover {
  background: var(--accent-lime-soft);
  box-shadow: inset 3px 0 0 0 var(--accent-lime);
}
.calendar-table tbody tr:hover th,
.calendar-table tbody tr:hover td { color: var(--text-primary); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--size-micro);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--private {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.tag--open {
  background: var(--accent-lime);
  color: var(--bg-primary);
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Open masterclass row: continuous lime bar on the left edge (V3 style) */
.row-open { position: relative; }
.row-open th:first-child {
  position: relative;
}
.row-open th:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-lime);
}
.row-open th, .row-open td { border-left: 0; }

.row-rest { opacity: 0.5; }

.calendar-note {
  margin: 1.5rem 0 0;
  font-size: var(--size-small);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- 11. DIAGNOSTICO (Q0 + form) — glassmorphism selected + form ---------- */
.diagnostic { padding: var(--section-pad) 0; background: var(--bg-secondary); }

.q0 {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.q0-card {
  position: relative;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease),
              opacity var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease),
              backdrop-filter var(--t-mid) var(--ease);
}
.q0-card:hover {
  border-color: var(--accent-lime);
  transform: scale(1.02);
}
.q0-card:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 4px;
}
.q0-icon {
  display: inline-block;
  width: 36px; height: 36px;
  margin-bottom: 6px;
}
.q0-icon svg { width: 100%; height: 100%; }

.q0-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}
.q0-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--accent-lime);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}
.q0-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.q0-check {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.q0-check svg { width: 16px; height: 16px; }

/* selected state — GLASSMORPHISM ATTIVO + perimeter glow breathing (#2 di 3) */
.q0-card[aria-pressed="true"] {
  border-color: var(--accent-lime);
  background: rgba(197, 245, 54, 0.05);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  animation: cardGlowBreathe 4.5s ease-in-out infinite alternate;
}
@keyframes cardGlowBreathe {
  0% {
    box-shadow:
      0 0 0 1px var(--accent-lime),
      0 8px 28px -10px rgba(197, 245, 54, 0.32),
      0 0 28px rgba(197, 245, 54, 0.10);
  }
  100% {
    box-shadow:
      0 0 0 1px var(--accent-lime),
      0 10px 36px -10px rgba(197, 245, 54, 0.50),
      0 0 56px rgba(197, 245, 54, 0.22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .q0-card[aria-pressed="true"] { animation: none; }
}
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .q0-card[aria-pressed="true"] { background: rgba(197, 245, 54, 0.08); }
}
.q0-card[aria-pressed="true"] .q0-check { opacity: 1; transform: scale(1); }

/* dim non-selected when one is selected */
.q0.has-selection .q0-card:not([aria-pressed="true"]) { opacity: 0.55; }
.q0.has-selection .q0-card:not([aria-pressed="true"]):hover { opacity: 0.85; }

/* Q0 hint (above grid, indica all'utente di selezionare) */
.q0-hint {
  margin: 24px 0 0;
  text-align: center;
  font-size: var(--size-small);
  color: var(--accent-lime);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.q0-hint-icon {
  display: inline-block;
  font-size: 1.2rem;
  animation: gentleBounce 2s ease-in-out infinite;
}
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.q0.has-selection ~ .q0-hint { opacity: 0; pointer-events: none; transform: translateY(-8px); }

/* Urgency tribale (sopra form — Brunson lite, on-brand) */
.urgency-tribal {
  margin: 32px 0 12px;
  text-align: center;
  font-size: var(--size-small);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.urgency-tribal strong { color: var(--accent-lime); font-weight: 700; }
.urgency-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Form inline — GLASSMORPHISM (#3 di 3) */
.form-inline {
  margin: 12px auto 0;
  max-width: 560px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity var(--t-mid) var(--ease), filter var(--t-mid) var(--ease);
}
@supports not ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .form-inline { background: rgba(255, 255, 255, 0.06); }
}

/* Form DISABLED state (finché Q0 non selezionato) */
.form-inline.form--disabled {
  opacity: 0.45;
  filter: grayscale(70%);
  pointer-events: none;
}
.form-inline.form--disabled .cta-primary,
.form-inline.form--disabled .cta-secondary {
  cursor: not-allowed;
}
.form-inline:not(.form--disabled) {
  animation: gentleGlow 600ms var(--ease) 1;
}
@keyframes gentleGlow {
  0% { box-shadow: 0 0 0 0 rgba(197, 245, 54, 0); }
  50% { box-shadow: 0 0 24px 4px rgba(197, 245, 54, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(197, 245, 54, 0); }
}

/* Disabled buttons inside form — visual treatment */
.cta-primary:disabled,
.cta-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(60%);
}

/* Form disclaimer (progressive disclosure, fade-in) */
.form-disclaimer {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  animation: fadeIn 300ms var(--ease) both;
}
.form-disclaimer a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.form-disclaimer a:hover { color: var(--accent-lime); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-label {
  margin: 0;
  font-size: var(--size-small);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.cta-google {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg-primary);
  gap: 10px;
}
.cta-google:hover { background: var(--accent-lime); }
.g-icon { width: 18px; height: 18px; display: inline-block; }
.g-icon svg { width: 100%; height: 100%; }

.form-divider {
  position: relative;
  text-align: center;
  margin: 4px 0;
  color: var(--text-muted);
  font-size: var(--size-small);
}
.form-divider::before,
.form-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border-subtle);
}
.form-divider::before { left: 0; }
.form-divider::after  { right: 0; }
.form-divider span { background: transparent; padding: 0 10px; position: relative; }

.form-email {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.form-email::placeholder { color: var(--text-muted); }
.form-email:focus {
  outline: none;
  border-color: var(--accent-lime);
  background: rgba(255, 255, 255, 0.06);
}
.form-email[aria-invalid="true"] {
  border-color: #ff7a59;
}

.form-error {
  margin: -6px 0 0;
  font-size: var(--size-small);
  color: #ff8770;
}

.cta-submit { width: 100%; position: relative; }
.cta-submit[aria-busy="true"] .cta-submit-text,
.cta-submit[aria-busy="true"] .arrow { opacity: 0.4; }
.cta-submit[aria-busy="true"] .spinner { display: inline-block; }

.spinner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--text-primary);
  border-top-color: var(--accent-lime);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-disclaimer {
  margin: 4px 0 0;
  font-size: var(--size-micro);
  color: var(--text-muted);
  line-height: 1.5;
}
.form-disclaimer a { color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
.form-disclaimer a:hover { color: var(--accent-lime); border-bottom-color: var(--accent-lime); }

/* ---------- 12. PEPE ---------- */
.pepe { padding: var(--section-pad) 0; background: var(--bg-nero); }
.pepe-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
.pepe-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.pepe-halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(197, 245, 54, 0.18) 0%, rgba(197, 245, 54, 0.06) 40%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}
html[data-theme="light"] .pepe-halo {
  background: radial-gradient(circle, rgba(58, 92, 10, 0.16) 0%, rgba(58, 92, 10, 0.05) 40%, transparent 70%);
}
.pepe-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

.pepe-tagline {
  margin: 0 0 1.5rem;
  color: var(--accent-lime);
  font-size: 1.05rem;
  font-weight: 500;
}
.prose--bio p { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }
.prose--bio p strong { color: var(--text-primary); font-weight: var(--weight-emphasis); }
.prose--bio p em { font-style: italic; color: var(--accent-lime); }

.pepe-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.pepe-link {
  font-size: var(--size-small);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2px;
  transition: color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.pepe-link:hover { color: var(--accent-lime); border-bottom-color: var(--accent-lime); }

/* ---------- 13. FAQ ---------- */
/* ---------- TESTIMONIALS (Big Heart from real student voices) ---------- */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
  text-align: center;
}
.testimonials .section-sub { margin-left: auto; margin-right: auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 48px auto 0;
  max-width: var(--container-narrow);
  text-align: center;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 56px) clamp(24px, 4vw, 36px) clamp(24px, 4vw, 36px);
  margin: 0;
  transition:
    border-color var(--t-mid) var(--ease),
    transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
  position: relative;
  text-align: center;
}
.testimonial-card::before {
  content: "\201C";  /* Unicode left double quotation mark — escaped per evitare quote-mismatch in CSS string */
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-headline);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-lime);
  opacity: 0.5;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: rgba(197, 245, 54, 0.30);
  transform: translateY(-3px);
  box-shadow:
    0 0 28px rgba(197, 245, 54, 0.10),
    0 0 60px rgba(197, 245, 54, 0.05);
}
.testimonial-quote {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 400;
}
.testimonial-quote p {
  margin: 0;
  font-style: italic;
}
.testimonial-quote em {
  color: var(--accent-lime);
  font-style: italic;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  align-items: center;
  text-align: center;
}
.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.testimonial-context {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.testimonials-note {
  margin-top: 32px;
  font-size: var(--size-small);
  color: var(--text-muted);
  text-align: center;
}
.testimonials-note span { color: var(--accent-lime); margin-right: 6px; }

/* Desktop: 2 colonne */
@media (min-width: 880px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; max-width: var(--container-wide); }
}

.faq { padding: var(--section-pad) 0; background: var(--bg-secondary); text-align: center; }
.faq .faq-list { text-align: left; } /* answers stay left-aligned for readability */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}
.faq-item:hover {
  border-color: rgba(197, 245, 54, 0.25);
  box-shadow:
    0 0 24px rgba(197, 245, 54, 0.08),
    0 0 50px rgba(197, 245, 54, 0.04);
}
.faq-item[open] {
  border-color: rgba(197, 245, 54, 0.45);
  box-shadow:
    0 0 28px rgba(197, 245, 54, 0.12),
    0 0 60px rgba(197, 245, 54, 0.06);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: var(--weight-emphasis);
  font-size: 1.02rem;
  color: var(--text-primary);
  transition: color var(--t-mid) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-lime); }
.faq-q { flex: 1; }
.faq-toggle {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-lime);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform var(--t-mid) var(--ease);
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }

.faq-a {
  padding: 0 22px 22px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.98rem;
}
.faq-a p { margin: 0; }
.faq-a a {
  color: var(--accent-lime);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease);
}
.faq-a a:hover { border-bottom-color: var(--accent-lime); }
.faq-a strong { color: var(--text-primary); font-weight: var(--weight-emphasis); }

/* ---------- 14. FOOTER ---------- */
.footer {
  background: var(--bg-primary);
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-brand .logo { font-size: 1.5rem; }
.footer-claim { margin: 16px 0 4px; color: var(--text-primary); font-size: 0.95rem; }
.footer-claim-sub { margin: 0; color: var(--text-secondary); font-size: var(--size-small); }

.footer-title {
  font-family: var(--font-body);
  font-size: var(--size-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-micro);
  color: var(--accent-lime);
  font-weight: var(--weight-emphasis);
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--t-mid) var(--ease);
}
.footer-col a:hover { color: var(--accent-lime); }

.footer-bottom {
  margin: 32px auto 0;
  font-size: var(--size-micro);
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-sep { opacity: 0.4; }

/* Theme toggle (footer link) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--text-secondary);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  transition: color var(--t-mid) var(--ease);
}
.theme-toggle:hover { color: var(--accent-lime); }
.theme-toggle-icon {
  font-size: 1.1em;
  line-height: 1;
  display: inline-block;
  transition: transform var(--t-mid) var(--ease);
}
.theme-toggle:hover .theme-toggle-icon { transform: rotate(180deg); }

/* ---------- 15. RESPONSIVE BREAKPOINTS ---------- */

/* Tablet */
@media (min-width: 720px) {
  .q0 { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Desktop */
@media (min-width: 960px) {
  .nav-links, .nav-actions { display: inline-flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none !important; }
  .mobile-sticky-cta { display: none; }

  .manifesto-grid { grid-template-columns: 1.4fr 1fr; }
  .manifesto-illustration { display: block; }

  .pepe-grid { grid-template-columns: 0.8fr 1.4fr; }
  .pepe-illustration { position: sticky; top: calc(var(--nav-h) + 24px); }

  /* desktop: no connecting line, no arrows — cards stand on their own */
  .how-card::after { display: none !important; }
  .how-steps { row-gap: 24px; }
}

@media (min-width: 1100px) {
  .hero {
    padding-top: clamp(96px, 12vw, 160px);
    padding-bottom: clamp(96px, 10vw, 140px);
  }
  .headline--xl { font-size: clamp(3rem, 5.6vw, 5rem); }
}

/* Mobile-only adjustments */
@media (max-width: 720px) {
  .hero { padding-top: 56px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .cta-primary, .cta-row .cta-secondary { width: 100%; }
  .calendar-table { font-size: 0.85rem; }
  .calendar-table th, .calendar-table td { padding: 12px 10px; }
  .calendar-table tbody th { width: 56px; }
  body { padding-bottom: 80px; } /* room for mobile sticky CTA */
}

/* ========================================================== */
/* UI POLISH                                                  */
/* ========================================================== */

/* Mouse-follow spotlight — appare solo durante movimento del mouse.
   JS aggiunge .mouse-active su <body> mentre si muove, lo toglie dopo 800ms idle.
   Così il glow non resta come "macchia" quando ti fermi a leggere. */
@media (hover: hover) and (pointer: fine) {
  body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 480px;
    height: 480px;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translate(
      calc(var(--mouse-x, 50vw) - 240px),
      calc(var(--mouse-y, 50vh) - 240px)
    );
    background: radial-gradient(circle,
      rgba(197, 245, 54, 0.07) 0%,
      transparent 70%);
    filter: blur(24px);
    mix-blend-mode: screen;
    transition:
      transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.5s ease;
    will-change: transform, opacity;
  }
  body.mouse-active::after { opacity: 1; }
  html[data-theme="light"] body::after {
    background: radial-gradient(circle,
      rgba(58, 92, 10, 0.09) 0%,
      transparent 70%);
    mix-blend-mode: multiply;
  }
}

/* CTA secondary su hover: perimeter glow lime soft + lift (resta outlined,
   coerente con la famiglia lime senza competere col primary) */
.cta-secondary:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(197, 245, 54, 0.40),
    0 4px 18px -4px rgba(197, 245, 54, 0.30),
    0 0 36px rgba(197, 245, 54, 0.18);
}

/* CTA primary su hover: pulsing breathing glow (lime perimeter, solo durante hover) */
.cta-primary:hover {
  animation: ctaPulse 2.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 8px 24px -6px rgba(197, 245, 54, 0.50),
      0 0 24px rgba(197, 245, 54, 0.18);
  }
  50% {
    box-shadow:
      0 10px 32px -6px rgba(197, 245, 54, 0.70),
      0 0 48px rgba(197, 245, 54, 0.32);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-primary:hover { animation: none; }
}

/* Trust strip: soft halo sotto le stelle ★★★★★ (subliminal social proof) */
.hero-trust-stars {
  position: relative;
  z-index: 0;
}
.hero-trust-stars::before {
  content: "";
  position: absolute;
  inset: -10px -18px;
  background: radial-gradient(ellipse at center,
    rgba(197, 245, 54, 0.28) 0%,
    rgba(197, 245, 54, 0.10) 40%,
    transparent 75%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
  animation: starsHaloPulse 5.5s ease-in-out infinite alternate;
}
@keyframes starsHaloPulse {
  0%   { opacity: 0.55; transform: scale(0.97); }
  100% { opacity: 1;    transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-trust-stars::before { animation: none; opacity: 0.8; }
}
html[data-theme="light"] .hero-trust-stars::before {
  background: radial-gradient(ellipse at center,
    rgba(58, 92, 10, 0.24) 0%,
    rgba(58, 92, 10, 0.08) 40%,
    transparent 75%);
}

/* Breathing glow sugli halos esistenti (Pepe + Manifesto vision). */
.pepe-halo,
.manifesto-halo {
  animation: haloBreathe 7s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.manifesto-halo { animation-delay: -2.5s; } /* sfasato per non pulsare in sync */
@keyframes haloBreathe {
  0%   { transform: translateX(-50%) scale(1);    opacity: 1; }
  100% { transform: translateX(-50%) scale(1.06); opacity: 0.78; }
}
@media (prefers-reduced-motion: reduce) {
  .pepe-halo, .manifesto-halo { animation: none; }
}

/* Gradient text animato sulle "ia" (lime → lime chiaro → lime, resta lime) */
.brand-mark em,
.logo em {
  background: linear-gradient(90deg, #C5F536 0%, #E8FFA0 50%, #C5F536 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s linear infinite;
}
html[data-theme="light"] .brand-mark em,
html[data-theme="light"] .logo em {
  background: linear-gradient(90deg, #3A5C0A 0%, #6B9C18 50%, #3A5C0A 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@keyframes gradShift {
  0%   { background-position: 0% center; }
  100% { background-position: -200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark em, .logo em { animation: none; }
}

/* ========================================================== */
/* MASTERCLASS RESERVE POPUP                                  */
/* ========================================================== */
.mc-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mc-modal.is-on { display: flex; }
.mc-card {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid rgba(197, 245, 54, 0.20);
  border-radius: var(--radius-lg);
  padding: 36px 32px 30px;
  box-shadow: 0 24px 60px -24px rgba(197, 245, 54, 0.20), 0 8px 30px rgba(0,0,0,0.6);
  animation: mcIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
html[data-theme="light"] .mc-card { border-color: rgba(58, 92, 10, 0.30); }
@keyframes mcIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mc-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0;
  color: var(--text-secondary);
  font-size: 28px; line-height: 1;
  cursor: pointer; padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.mc-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.mc-kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: var(--ls-micro);
  text-transform: uppercase; font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.mc-kicker-thanks { color: var(--accent-text); font-size: 14px; letter-spacing: 0.04em; text-transform: none; }
.mc-title {
  font-family: var(--font-headline);
  font-style: italic; font-weight: 600;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.mc-body {
  color: var(--text-secondary);
  font-size: 14.5px; line-height: 1.55;
  margin: 0 0 22px;
}
.mc-body strong { color: var(--text-primary); }

.mc-form { display: flex; flex-direction: column; gap: 12px; }
.mc-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color var(--t-fast);
}
.mc-input::placeholder { color: var(--text-muted); }
.mc-input:focus { border-color: var(--accent-lime); }

.mc-cta {
  background: var(--accent-lime);
  color: #0A0A0A;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 22px;
  border: 0; border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  align-self: stretch;
}
html[data-theme="light"] .mc-cta { color: #FFFFFF; }
.mc-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(197, 245, 54, 0.5); }
.mc-cta[disabled] { opacity: 0.5; cursor: wait; }
.mc-cta-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.mc-cta-secondary:hover { background: rgba(255,255,255,0.05); transform: translateY(-1px); box-shadow: none; }

.mc-error {
  margin-top: 10px;
  color: #FF8A80;
  font-size: 13px;
  text-align: center;
}

/* WhatsApp step: intl-tel-input wraps the .mc-phone input.
   Override colori della lib per matchare brand (dark + lime). */
.mc-form .iti { width: 100%; display: block; }
.mc-form .iti__tel-input { width: 100%; }
.mc-form .mc-phone {
  /* L'input è wrapped, il padding-left viene gestito dalla lib */
  padding-left: 95px !important;
}
:root {
  --iti-hover-color: rgba(197, 245, 54, 0.10);
  --iti-border-color: var(--border-glass);
  --iti-dialcode-color: var(--text-secondary);
  --iti-dropdown-bg: var(--bg-secondary);
  --iti-arrow-color: var(--text-secondary);
}
html[data-theme="light"] {
  --iti-hover-color: rgba(58, 92, 10, 0.08);
  --iti-dialcode-color: var(--text-secondary);
  --iti-dropdown-bg: #FFFFFF;
}
.mc-form .iti__country-list {
  background: var(--bg-secondary);
  border-color: var(--border-glass);
  color: var(--text-primary);
  max-height: 280px;
}
.mc-form .iti__country.iti__highlight {
  background-color: rgba(197, 245, 54, 0.12) !important;
}
html[data-theme="light"] .mc-form .iti__country-list { background: #FFFFFF; }
html[data-theme="light"] .mc-form .iti__country.iti__highlight {
  background-color: rgba(58, 92, 10, 0.10) !important;
}
.mc-form .iti__selected-country-primary { padding: 0 8px 0 12px; }
.mc-form .iti__country-name { color: var(--text-primary); }
.mc-form .iti__dial-code { color: var(--text-secondary); }

/* Allinea font/size del dial code (+52) all'input numero, evita sensazione "stonata" */
.mc-form .iti__selected-dial-code,
.mc-form .iti__tel-input {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  color: var(--text-primary);
}
.mc-form .iti__selected-dial-code { color: var(--text-primary); }
.mc-form .iti__search-input {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.mc-skip {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px dashed var(--border-glass);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.mc-skip:hover { color: var(--accent-text); border-color: var(--accent-text); }

/* Step 3 thanks: confetti host area */
.mc-step--thanks { text-align: center; }
.mc-confetti-host {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.mc-confetti-piece {
  position: absolute;
  top: -10vh;
  width: 8px; height: 14px;
  border-radius: 2px;
  background: var(--accent-lime);
  animation: mcConfettiFall 2.4s cubic-bezier(0.28, 0.85, 0.62, 1) forwards;
}
@keyframes mcConfettiFall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--mc-dx, 0), 110vh, 0) rotate(720deg); opacity: 0.2; }
}
.mc-step--thanks > *:not(.mc-confetti-host) { position: relative; z-index: 1; }
.mc-step--thanks .mc-cta { display: inline-flex; margin-top: 18px; }
