/* ================================================================
   fluenta. — Business English finanziato · Regione Lombardia
   Design system: dark premium, aurora + spotlight, 360° horizontal
   ================================================================ */

:root {
  --bg: #f6f7f3;
  --bg-2: #edf0e9;
  --ink: #1a231d;
  --muted: #5f6b62;
  --line: rgba(26, 35, 29, 0.12);
  --brand: #3e7d5f;
  --brand-2: #2e5f49;
  --money: #2f8659;
  --gold: #b3924d;
  --paper: #ffffff;
  --glass: rgba(255, 255, 255, 0.78);
  --radius: 22px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(62, 125, 95, 0.35); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ STAGE (viewport fisso) ============ */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 45%;
}

.scroll-space { width: 1px; }

/* ============ AURORA BACKGROUND ============ */
.aurora { position: absolute; inset: -20%; filter: blur(70px); opacity: 0.5; transform: translateZ(0); }
.aurora-blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; }
.a1 { width: 55vw; height: 55vw; background: radial-gradient(circle, #cfe3d6 0%, transparent 65%); top: -12%; left: -8%; animation: drift1 26s ease-in-out infinite alternate; }
.a2 { width: 45vw; height: 45vw; background: radial-gradient(circle, #d9e7dc 0%, transparent 65%); bottom: -18%; right: -6%; animation: drift2 32s ease-in-out infinite alternate; }
.a3 { width: 30vw; height: 30vw; background: radial-gradient(circle, #c3dccb 0%, transparent 65%); top: 40%; left: 45%; animation: drift3 38s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vw, -12vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-14vw, 8vh) scale(1.25); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(70,82,74,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,82,74,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 30%, transparent 75%);
}

/* Spotlight che segue il mouse (stile Aceternity) */
.spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 40%),
    rgba(62, 125, 95, 0.10), transparent 65%);
  transition: background 0.15s;
  pointer-events: none;
}

/* ============ TRACK ORIZZONTALE 3D ============ */
.track {
  display: flex;
  height: 100vh;
  height: 100dvh;
  transform-style: preserve-3d;
  will-change: transform;
}

.panel {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  padding: 116px 0 88px;
}

.panel-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
}
.panel-inner.narrow { width: min(880px, 92vw); }
.panel-inner.wide { width: min(1320px, 96vw); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.logo-dot { color: var(--money); }

.header-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.header-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--money), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.header-nav a:hover, .header-nav a.active { color: var(--ink); }
.header-nav a:hover::after, .header-nav a.active::after { transform: scaleX(1); }

/* ============ BOTTONI ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
.btn span { position: relative; z-index: 1; }
.btn-small { padding: 10px 20px; font-size: 13px; }

.btn-primary {
  background: linear-gradient(150deg, #359062, var(--brand) 55%, var(--brand-2));
  border: none;
  color: #ffffff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 44px rgba(47,134,89,0.30); }

.btn-ghost { background: rgba(26,35,29,0.04); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(62,125,95,0.5); transform: translateY(-2px); }
.btn-ghost .arrow { transition: transform 0.25s; }
.btn-ghost:hover .arrow { transform: translateX(5px); }

.btn-full { width: 100%; justify-content: center; }

/* Bordo animato rotante (stile Aceternity moving border) */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-glow::before {
  content: "";
  position: absolute; inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 10%, var(--money), var(--gold), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin-border 3.2s linear infinite;
  pointer-events: none;
}
@keyframes spin-border { to { --angle: 360deg; } }
.btn-small.btn-glow { background: rgba(255, 255, 255, 0.85); color: var(--ink); }

/* ============ PROGRESS + DOTS ============ */
.progress-rail {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 60;
  background: rgba(70,82,74,0.08);
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--money), var(--brand-2));
  border-radius: 0 3px 3px 0;
}

.dots {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.dot:hover { transform: scale(1.35); }
.dot.active {
  background: var(--money);
  border-color: var(--money);
  box-shadow: 0 0 14px rgba(47,134,89,0.8);
}
.dot .dot-tip {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.dot:hover .dot-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ FRECCE AGLI ESTREMI ============ */
.edge-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 56;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, background 0.25s, opacity 0.3s;
}
.edge-nav.prev { left: 22px; }
.edge-nav.next { right: 22px; }
.edge-nav:hover {
  transform: translateY(-50%) scale(1.12);
  border-color: rgba(62,125,95,0.6);
  background: rgba(47,134,89,0.12);
}
.edge-nav.disabled { opacity: 0.18; pointer-events: none; }
/* zona cliccabile estesa fino al bordo dello schermo */
.edge-nav::after {
  content: "";
  position: absolute;
  top: -30vh; bottom: -30vh;
  left: -22px; right: -14px;
}
.edge-nav.next::after { left: -14px; right: -22px; }

/* trascinamento del tamburo */
.stage { cursor: grab; }
.stage.dragging { cursor: grabbing; }
body.dragging-lock { user-select: none; }

/* ============ SCROLL HINT ============ */
.scroll-hint {
  position: fixed;
  bottom: 58px; left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  transition: opacity 0.5s;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
.hint-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  padding-top: 6px;
}
.hint-wheel {
  width: 3px; height: 7px;
  border-radius: 3px;
  background: var(--money);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(9px); opacity: 0.2; } }

/* ============ TIPOGRAFIA SEZIONI ============ */
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--money);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.section-head { margin-bottom: clamp(28px, 4.5vh, 56px); }
.section-sub { color: var(--muted); max-width: 640px; }

/* Titoli con reveal a maschera */
.reveal-title { overflow: hidden; }
.panel .reveal-title, .panel .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.panel.in-view .reveal-title, .panel.in-view .reveal { opacity: 1; transform: translateY(0); }
.panel.in-view .reveal[data-d="1"] { transition-delay: 0.1s; }
.panel.in-view .reveal[data-d="2"] { transition-delay: 0.2s; }
.panel.in-view .reveal[data-d="3"] { transition-delay: 0.3s; }
.panel.in-view .reveal[data-d="4"] { transition-delay: 0.42s; }
.panel.in-view .reveal[data-d="5"] { transition-delay: 0.55s; }

/* Testo "shiny" (stile React Bits shiny-text) */
.shiny {
  background: linear-gradient(110deg, var(--ink) 35%, #7fbf9e 47%, var(--money) 52%, var(--ink) 65%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: -240% 0; } }

/* ============ HERO ============ */
.panel-hero { text-align: center; }
.hero-inner { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--glass);

  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 30px;
}
.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--money);
  box-shadow: 0 0 0 0 rgba(47,134,89,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47,134,89,0); } 100% { box-shadow: 0 0 0 0 rgba(47,134,89,0); } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.4vw, 82px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 26px;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--money); -webkit-text-fill-color: var(--money); }

.hero-sub {
  max-width: 660px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-sub .money { color: var(--money); }

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: 18px clamp(20px, 3vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);

}
.tick { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tick-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  background: linear-gradient(120deg, var(--money), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tick-label { font-size: 12.5px; color: var(--muted); }
.tick-sep { width: 1px; height: 42px; background: var(--line); }
.hero-note { margin-top: 14px; font-size: 11.5px; color: rgba(70,82,74,0.55); }

/* Anello orbitante 3D dietro l'hero */
.orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 1;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(62,125,95,0.22);
}
.orbit-ring.r1 { width: min(78vw, 820px); height: min(78vw, 820px); animation: ringspin 60s linear infinite; }
.orbit-ring.r2 { width: min(58vw, 600px); height: min(58vw, 600px); border-color: rgba(47,134,89,0.14); animation: ringspin 45s linear infinite reverse; }
@keyframes ringspin { to { transform: rotate(360deg); } }

.orbit-words { position: absolute; inset: 0; transform-style: preserve-3d; }
.orbit-word {
  position: absolute;
  left: 50%; top: 50%;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.15vw, 15px);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(70,82,74,0.5);
  white-space: nowrap;
  will-change: transform, opacity;
}
.orbit-word.money { color: rgba(47,134,89,0.65); }

/* ============ BENTO GRID (Il bando) ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 16px;
}
.bento-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(26,35,29,0.06);

  padding: 26px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s;
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(62,125,95,0.45); }
.bento-card.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.bento-card.big h3 { font-size: 22px; }
.bento-card p { font-size: 14px; color: var(--muted); }
.bento-card.big p { font-size: 15px; }
.bento-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--money) 20%, var(--brand) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bento-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(70,82,74,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  width: fit-content;
}

/* ============ SEZIONE BANDO: numero gigante + fatti asciutti ============ */
.bando-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.bando-num {
  font-family: var(--font-display);
  font-size: clamp(110px, 13vw, 190px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--money) 20%, var(--brand-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bando-claim {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.45;
  max-width: 420px;
  margin: 14px 0 22px;
}
.bando-facts { display: flex; flex-direction: column; }
.bando-facts li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: clamp(14px, 2.2vh, 22px) 0;
  border-bottom: 1px solid var(--line);
}
.bando-facts li:first-child { border-top: 1px solid var(--line); }
.fact-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-width: 190px;
  white-space: nowrap;
}
.fact-label { color: var(--muted); font-size: 15px; }
.bando-footline {
  margin-top: clamp(22px, 3.5vh, 40px);
  font-size: 14.5px;
  color: var(--muted);
  max-width: 640px;
}
.bando-footline a {
  color: var(--money);
  font-weight: 600;
  white-space: nowrap;
}
.bando-footline a:hover { color: var(--ink); }

/* Spotlight hover per card (stile Aceternity card-spotlight) */
.spot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(62,125,95,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }

/* ============ STEPS (Come funziona) ============ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 26px;
}
.steps-beam {
  position: absolute;
  top: 0; left: 2%;
  width: 96%;
  height: 2px;
  background: rgba(70,82,74,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.steps-beam::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--brand), var(--money));
  transform: scaleX(var(--beam, 0));
  transform-origin: left;
  transition: transform 0.2s linear;
}
.step {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);

  padding: 26px 22px;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(47,134,89,0.4); }
.step-n {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ============ CARDS 3D TILT (Percorsi) ============ */
.cards3d {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  perspective: 1100px;
  max-width: 860px;
  margin: 0 auto;
}
.card3d {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  border-radius: var(--radius);
}
.card3d-body {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff, #f1f4ef);

  padding: 30px 26px;
  height: 100%;
  transform: translateZ(0);
  overflow: hidden;
}
.card3d.featured .card3d-body {
  border-color: rgba(62,125,95,0.5);
  box-shadow: 0 0 60px rgba(62,125,95,0.12) inset;
}
.card3d-icon {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding: 0 12px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  background: linear-gradient(130deg, var(--money), var(--brand-2));
  margin-bottom: 20px;
  transform: translateZ(36px);
}
.card3d h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; transform: translateZ(28px); }
.card3d p { font-size: 14px; color: var(--muted); margin-bottom: 16px; transform: translateZ(20px); }
.card3d ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; transform: translateZ(16px); }
.card3d ul li {
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}
.card3d ul li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--money);
  border-bottom: 2px solid var(--money);
  transform: rotate(-45deg);
}
.card3d-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--money);
  border: 1px solid rgba(47,134,89,0.35);
  background: rgba(47,134,89,0.08);
  border-radius: 999px;
  padding: 6px 14px;
  transform: translateZ(24px);
}
.card3d.featured .card3d-tag { color: var(--gold); border-color: rgba(244,201,93,0.4); background: rgba(244,201,93,0.08); }

/* ============ MARQUEE DOCENTI (stile Magic UI) ============ */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  margin-bottom: 18px;
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.trainer {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--glass);

  border-radius: 18px;
  padding: 14px 22px 14px 14px;
  min-width: 250px;
  transition: border-color 0.3s, transform 0.3s;
}
.trainer:hover { border-color: rgba(62,125,95,0.5); transform: translateY(-3px); }
.trainer-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
}
.trainer-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.trainer-meta { font-size: 12px; color: var(--muted); }
.trainer-cert {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--money);
  border: 1px solid rgba(47,134,89,0.35);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
}

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  background: var(--glass);

  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(62,125,95,0.4); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--brand);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 20px; font-size: 14px; color: var(--muted); }

/* ============ CONTATTI ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 18px;
}
.contact-copy > p { color: var(--muted); margin-bottom: 22px; }
.contact-points { display: flex; flex-direction: column; gap: 10px; }
.contact-points li {
  padding-left: 26px;
  position: relative;
  font-size: 14.5px;
}
.contact-points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--money);
  border-bottom: 2.5px solid var(--money);
  transform: rotate(-45deg);
}

/* Form stile Uiverse: floating label + focus glow */
.contact-form {
  border: 1px solid var(--line);
  background: var(--glass);

  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px 16px 7px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field label {
  position: absolute;
  left: 16px; top: 12px;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(62,125,95,0.18), 0 0 24px rgba(62,125,95,0.10);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label {
  top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.select-field select { appearance: none; cursor: pointer; }
.select-field::after {
  content: "";
  position: absolute;
  right: 18px; top: 24px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-50%);
  pointer-events: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input[type="date"] { padding-top: 17px; color: var(--ink); }
.field input[type="date"] + label {
  top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-ok {
  display: none;
  font-size: 14px;
  color: var(--money);
  font-weight: 500;
}
.contact-form.sent .form-ok { display: block; }
.form-privacy { font-size: 11.5px; color: rgba(70,82,74,0.6); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vh, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: rgba(70,82,74,0.65);
}
.footer a:hover { color: var(--ink); }

/* ============ SCHERMI FINO A ~920px DI ALTEZZA: tutto compatto, niente tagli ============ */
@media (max-height: 920px) and (min-width: 861px) {
  .scroll-hint { display: none; }
  .panel { padding: 92px 0 72px; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: clamp(24px, 2.9vw, 38px); }
  .section-sub { font-size: 14px; }
  .kicker { margin-bottom: 8px; font-size: 11.5px; }
  .hero-title { font-size: clamp(32px, 5vw, 62px); margin-bottom: 20px; }
  .hero-ctas { margin-bottom: 26px; gap: 12px; }
  .btn { padding: 13px 26px; font-size: 14px; }
  .badge { margin-bottom: 18px; }
  .hero-ticker { padding: 12px clamp(16px, 2.4vw, 30px); }
  .tick-num { font-size: clamp(20px, 2.2vw, 28px); }
  .bando-num { font-size: clamp(84px, 10vw, 140px); }
  .bando-claim { font-size: 16px; margin: 10px 0 16px; }
  .bando-facts li { padding: 12px 0; }
  .fact-num { font-size: clamp(20px, 2vw, 27px); min-width: 160px; }
  .fact-label { font-size: 13.5px; }
  .bando-footline { margin-top: 18px; font-size: 13px; }
  .bento { gap: 12px; grid-auto-rows: minmax(104px, auto); }
  .bento-card { padding: 16px 18px; }
  .bento-card h3 { font-size: 14.5px; margin-bottom: 5px; }
  .bento-card.big h3 { font-size: 18px; }
  .bento-card p { font-size: 12.5px; line-height: 1.5; }
  .bento-card.big p { font-size: 13.5px; }
  .bento-num { font-size: clamp(44px, 4.8vw, 72px); margin-bottom: 8px; }
  .bento-tag { margin-top: 10px; font-size: 10px; padding: 4px 11px; }
  .steps { gap: 12px; padding-top: 18px; }
  .step { padding: 18px 16px; }
  .step-n { margin-bottom: 8px; font-size: 13px; }
  .step h3 { font-size: 15px; }
  .step p { font-size: 12.5px; }
  .cards3d { gap: 14px; }
  .card3d-body { padding: 20px 18px; }
  .card3d-icon { min-width: 44px; height: 44px; font-size: 14px; margin-bottom: 12px; border-radius: 12px; }
  .card3d h3 { font-size: 17px; margin-bottom: 6px; }
  .card3d p { font-size: 13px; margin-bottom: 10px; }
  .card3d ul { gap: 5px; margin-bottom: 12px; }
  .card3d ul li { font-size: 12.5px; }
  .card3d-tag { font-size: 10.5px; padding: 5px 12px; }
  .trainer { padding: 10px 16px 10px 10px; min-width: 220px; border-radius: 14px; }
  .trainer-avatar { width: 38px; height: 38px; font-size: 13px; }
  .trainer-name { font-size: 13.5px; }
  .faq { gap: 9px; }
  .faq-item summary { padding: 13px 48px 13px 18px; font-size: 14px; }
  .faq-item p { font-size: 13px; padding: 0 18px 14px; }
  .contact-copy h2 { font-size: clamp(24px, 2.8vw, 36px); }
  .contact-copy > p { font-size: 14px; margin-bottom: 14px; }
  .contact-points li { font-size: 13.5px; }
  .contact-form { padding: 18px; gap: 10px; }
  .field input, .field textarea, .field select { padding: 14px 14px 6px; font-size: 13.5px; }
  .field textarea { min-height: 54px; }
  .field label { top: 10px; font-size: 13px; }
  .form-privacy { font-size: 10.5px; }
  .footer { margin-top: 16px; padding-top: 12px; font-size: 11.5px; }
}

/* ============ MOBILE: fallback verticale ============ */
@media (max-width: 860px) {
  .stage { position: static; overflow: visible; perspective: none; }
  .aurora, .grid-overlay, .spotlight { position: fixed; z-index: -1; }
  .track { display: block; height: auto; transform: none !important; }
  .panel {
    flex: none;
    width: 100%;
    min-height: 100svh;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
    padding: 110px 0 60px;
  }
  .scroll-space { display: none; }
  .dots, .scroll-hint, .edge-nav { display: none; }
  .header-nav { display: none; }
  .panel { padding: 120px 0 60px; }
  .bando-layout { grid-template-columns: 1fr; gap: 26px; }
  .fact-num { min-width: 130px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.big { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps-beam { display: none; }
  .cards3d { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .orbit { display: none; }
  .panel .reveal, .panel .reveal-title { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.big { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .hero-ticker { flex-direction: column; gap: 14px; }
  .tick-sep { width: 42px; height: 1px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
}
