/* =====================================================
   Eskotrades — Landing page in stile Apple
   Palette apple.com: bianco, grigio #f5f5f7, blu #0071e3
   ===================================================== */

:root {
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --surface: #ffffff;
  --hairline: #d2d2d7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 28px;
  --container: 1024px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.012em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.container-narrow { max-width: 720px; }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.07;
  color: var(--text);
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); }

.section-title {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  text-align: center;
  margin-bottom: 22px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto 70px;
  letter-spacing: 0;
}

.gradient-text {
  background: linear-gradient(95deg, #0090f7 0%, #5856d6 40%, #bf5af2 70%, #0090f7 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 7s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.gradient-text-blue {
  background: linear-gradient(95deg, #0071e3 0%, #00a2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Bottoni e link ---------- */

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  padding: 12px 26px;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Riflesso che attraversa il bottone al passaggio del mouse */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn-small {
  font-size: 0.75rem;
  padding: 5px 14px;
}

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
}

.link-arrow {
  color: var(--link);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover span { transform: translateX(3px); }

.link-inline { color: var(--link); }
.link-inline:hover { text-decoration: underline; }

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.logo svg { width: 16px; height: 16px; color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.btn) {
  font-size: 0.75rem;
  color: rgba(29, 29, 31, 0.8);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* Selettore lingua IT/EN */
.lang-switch {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  padding: 4px 11px;
  border-radius: 980px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.lang-switch:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(0, 113, 227, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Barra di avanzamento dello scroll */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #0071e3, #00a2ff);
  transition: width 0.1s linear;
}

/* ---------- Ticker mercati (TradingView) ---------- */

.ticker-strip {
  margin-top: 48px;
  min-height: 46px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh; /* su mobile ignora le barre del browser: niente salti */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 22px 90px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 113, 227, 0.07), transparent),
    var(--bg);
}

/* Sfere sfocate fluttuanti: profondità 3D dietro al titolo */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.orb-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.22), transparent 70%);
  top: -12%; left: -10%;
  animation: orb-float 18s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(88, 86, 214, 0.16), transparent 70%);
  bottom: -14%; right: -8%;
  animation: orb-float 22s ease-in-out infinite reverse;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0, 162, 255, 0.14), transparent 70%);
  top: 28%; right: 16%;
  animation: orb-float 26s ease-in-out infinite;
  animation-delay: -9s;
}
@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(44px, -34px, 0) scale(1.07); }
  66%      { transform: translate3d(-32px, 26px, 0) scale(0.96); }
}

/* Mesh di luce animata dietro al hero */
.hero-mesh {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(closest-side at 25% 30%, rgba(0, 113, 227, 0.16), transparent),
    radial-gradient(closest-side at 78% 25%, rgba(88, 86, 214, 0.14), transparent),
    radial-gradient(closest-side at 60% 75%, rgba(0, 162, 255, 0.13), transparent),
    radial-gradient(closest-side at 35% 80%, rgba(191, 90, 242, 0.10), transparent);
  filter: blur(20px);
  animation: mesh-drift 24s ease-in-out infinite;
}
@keyframes mesh-drift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33%      { transform: scale(1.12) translate(2%, -3%); }
  66%      { transform: scale(1.05) translate(-2%, 2%); }
}

.hero-inner { position: relative; z-index: 2; }

.hero-kicker {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 640px;
  margin: 28px auto 0;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 44px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Titolo hero: entra a fuoco */
.hero h1.reveal {
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              filter 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero h1.reveal.visible { filter: blur(0); }

/* Indicatore di scroll */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}
.scroll-cue span {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: cue-bounce 2s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.45; }
  50%      { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}
.scroll-cue.hidden { opacity: 0; }

/* ---------- Sezioni ---------- */

.section { padding: 130px 0; }
.section-gray { background: var(--bg-gray); }

/* ---------- Bento (perché questi corsi) ---------- */

#perche { background: var(--bg-gray); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 70px;
}

.bento-card {
  grid-column: span 3;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease;
}
.bento-card:hover { transform: scale(1.012); }

.bento-wide { grid-column: span 6; }

@media (min-width: 821px) {
  .bento-wide { flex-direction: row; align-items: center; gap: 48px; }
  .bento-wide > * { flex: 1; }
  .bento-wide .bento-visual, .bento-wide .bento-stats { flex: 0 0 42%; }
}

.bento-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
}

.bento-card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
}

.bento-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  letter-spacing: 0;
}

.bento-visual { margin-top: 28px; }
.bento-visual svg { width: 100%; height: auto; overflow: visible; }

/* Scena trading animata: griglia → candele → linea → area → punto live → etichetta */

.chart-grid { stroke: rgba(0, 0, 0, 0.07); }

/* Le candele spuntano dal basso una alla volta, con effetto molla */
.candle {
  opacity: 0;
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.bento-card.visible .candle {
  animation: candle-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--cd, 0s);
}
@keyframes candle-pop {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

/* La linea di tendenza si disegna sopra le candele */
.chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.bento-card.visible .chart-line {
  animation: draw-line 1.8s cubic-bezier(0.4, 0, 0.2, 1) 1.15s forwards,
             line-glow 2.6s ease-in-out 3s infinite;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}
/* Bagliore "respirante" sulla linea dopo il disegno */
@keyframes line-glow {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(0, 113, 227, 0.2)); }
  50%      { filter: drop-shadow(0 0 7px rgba(0, 113, 227, 0.65)); }
}

/* "Comet head": un punto bianco luminoso che corre lungo la linea mentre si disegna */
.chart-spark {
  stroke-dasharray: 0.045 1;   /* breve tratto visibile, resto invisibile */
  stroke-dashoffset: 1;
  opacity: 0;
  filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 10px #0071e3);
}
.bento-card.visible .chart-spark {
  animation: spark-run 1.8s cubic-bezier(0.4, 0, 0.2, 1) 1.15s forwards;
}
@keyframes spark-run {
  0%   { stroke-dashoffset: 1;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: 0.045; opacity: 0; }
}

/* L'area sotto la linea si riempie */
.chart-area { opacity: 0; }
.bento-card.visible .chart-area {
  animation: area-in 0.9s ease 2.3s forwards;
}
@keyframes area-in {
  to { opacity: 1; }
}

/* Punto live in cima alla salita */
.chart-dot { opacity: 0; }
.bento-card.visible .chart-dot {
  animation: dot-in 0.5s ease 2.9s forwards;
}
@keyframes dot-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.chart-pulse { opacity: 0; }
.bento-card.visible .chart-pulse {
  animation: dot-pulse 2.2s ease-out 3.2s infinite;
}
/* Seconda onda sfalsata per un effetto "radar" più ricco */
.bento-card.visible .chart-pulse-2 {
  animation: dot-pulse 2.2s ease-out 4.3s infinite;
}
@keyframes dot-pulse {
  0%   { opacity: 0.75; r: 5;  stroke-width: 2; }
  100% { opacity: 0;   r: 22; stroke-width: 0.5; }
}

/* Etichetta "+128 pip" che scatta in scena alla fine */
.price-tag {
  opacity: 0;
  transform: translateY(10px) scale(0.7);
  transform-box: fill-box;
  transform-origin: center;
}
.bento-card.visible .price-tag {
  animation: tag-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.1s forwards;
}
@keyframes tag-pop {
  to { opacity: 1; transform: none; }
}

.bento-stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.bento-stats div { display: flex; flex-direction: column; }
.bento-stats strong {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #0071e3, #00a2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bento-stats span { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Come funziona (3 passi) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 70px;
}

.step {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 42px 36px;
  transition: transform 0.35s ease;
}
.step:hover { transform: translateY(-4px); }

.step-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(95deg, #0071e3, #00a2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.97rem; letter-spacing: 0; }

/* ---------- Corsi ---------- */

.courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  perspective: 1400px;
}

.course-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}
.course-card:hover {
  box-shadow: 0 30px 60px -22px rgba(0, 60, 130, 0.28);
}

/* Riflesso che segue il cursore (glare 3D) */
.course-card::before,
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 0%), rgba(0, 113, 227, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.course-card:hover::before,
.social-card:hover::before { opacity: 1; }
.course-card > *,
.social-card > * { position: relative; z-index: 2; }

.course-featured {
  box-shadow: 0 0 0 2px var(--blue), 0 24px 50px -20px rgba(0, 0, 0, 0.18);
  animation: featured-glow 3.6s ease-in-out infinite;
}
@keyframes featured-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--blue), 0 24px 50px -20px rgba(0, 0, 0, 0.18); }
  50%      { box-shadow: 0 0 0 2px var(--blue), 0 22px 60px -14px rgba(0, 113, 227, 0.4); }
}

.course-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(95deg, #0071e3, #00a2ff);
  padding: 5px 12px;
  border-radius: 980px;
  overflow: hidden;
}
/* Bagliore che attraversa periodicamente il badge "Esclusivo" */
.course-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: badge-shine 3.5s ease-in-out infinite;
}
@keyframes badge-shine {
  0%, 55% { left: -60%; }
  100%    { left: 140%; }
}

.course-level {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-card h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  letter-spacing: 0;
  margin-bottom: 26px;
}

.course-list {
  list-style: none;
  margin-top: 30px;
  flex-grow: 1;
}
.course-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.course-list li:last-child { border-bottom: none; }
.course-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 19px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
  transform: rotate(-45deg);
}

.course-meta {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Riga "Ideale per": aiuta il cliente a riconoscersi e scegliere */
.course-for {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--text-muted);
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.course-for svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 1px;
}
.course-for strong { color: var(--text); font-weight: 600; }

/* Striscia di rassicurazioni sotto l'intro dei corsi */
.reassure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  max-width: 880px;
  margin: -40px auto 56px;
}
.reassure span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: 0;
}
.reassure svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
}

/* ---------- Docente ---------- */

.teacher { text-align: center; }

.teacher-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin: 40px 0 30px;
}
.teacher-stats div { display: flex; flex-direction: column; }
.teacher-stats strong {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #0071e3, #00a2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.teacher-stats span { color: var(--text-muted); font-size: 0.85rem; }

.teacher-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 12px;
}

.teacher h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 8px;
}

.teacher-role {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 26px;
  letter-spacing: 0;
}

.teacher p:not(.teacher-kicker):not(.teacher-role) {
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Risultati prop (FTMO) ---------- */

.section-dark {
  position: relative;
  overflow: hidden;
  background: #000;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 20% 0%, rgba(52, 199, 89, 0.10), transparent),
    radial-gradient(ellipse 55% 50% at 85% 100%, rgba(0, 113, 227, 0.14), transparent);
  pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark .section-title { color: #f5f5f7; }
.section-dark .section-sub { color: #86868b; }

.props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.prop-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.prop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 199, 89, 0.45);
  box-shadow: 0 24px 50px -20px rgba(52, 199, 89, 0.25);
}

.prop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.prop-firm {
  color: #f5f5f7;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.prop-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #34c759;
  background: rgba(52, 199, 89, 0.14);
  border: 1px solid rgba(52, 199, 89, 0.35);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 980px;
  white-space: nowrap;
}
.prop-status svg { width: 11px; height: 11px; }

.prop-amount {
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #34c759, #30d5c8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prop-label {
  color: #86868b;
  font-size: 0.82rem;
  margin-top: 2px;
  letter-spacing: 0;
}

.prop-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}
.prop-footer strong { color: #f5f5f7; font-size: 0.92rem; }
.prop-footer span { color: #86868b; font-size: 0.8rem; }

.props-note {
  text-align: center;
  color: #6e6e73;
  font-size: 0.78rem;
  letter-spacing: 0;
  margin-top: 44px;
}

/* ---------- Cosa dicono di noi (marquee) ---------- */

.marquee {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  position: relative;
  /* Lo swipe verticale scorre sempre la pagina, niente cattura del tocco */
  touch-action: pan-y;
  /* Sfumatura ai bordi laterali */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
/* I nastri non intercettano il tocco: lo scroll della pagina resta fluido su mobile */
.marquee-track { pointer-events: none; }

.marquee-track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);          /* composizione su GPU: fluido nei webview */
  backface-visibility: hidden;
  animation: marquee-scroll 45s linear infinite;
}
.marquee-reverse { animation-direction: reverse; animation-duration: 55s; }

/* Il nastro continua a scorrere anche col mouse sopra (nessuna pausa) */

@keyframes marquee-scroll {
  to { transform: translate3d(-50%, 0, 0); }
}

.marquee-group {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}

.review {
  flex: 0 0 380px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.stars {
  color: var(--blue);
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.review blockquote {
  font-size: 0.98rem;
  line-height: 1.55;
  letter-spacing: 0;
  flex-grow: 1;
}

.review figcaption {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.review figcaption strong { font-size: 0.95rem; }
.review figcaption span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Social ---------- */

.socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 1400px;
}

@media (max-width: 1024px) {
  .socials { grid-template-columns: repeat(2, 1fr); }
}

.social-card {
  position: relative;
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.18);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.social-icon svg { width: 22px; height: 22px; }

.social-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.social-handle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.social-arrow {
  position: absolute;
  top: 36px;
  right: 30px;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.social-card:hover .social-arrow { transform: translateX(4px); }

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 60px;
  border-top: 1px solid var(--hairline);
}

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--blue); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 40px 28px 4px;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0;
}

/* ---------- Form contatti ---------- */

.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a1a1a6; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #e30000;
}

.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0;
}

.form-feedback {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--link);
  letter-spacing: 0;
  min-height: 1.4em;
}
.form-feedback.error { color: #e30000; }

/* ---------- CTA finale ---------- */

.cta-final {
  position: relative;
  overflow: hidden;
  background: #000;
  text-align: center;
  padding: 130px 22px;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 110%, rgba(0, 113, 227, 0.22), transparent);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}
.cta-final .container { position: relative; }
.cta-final h2 {
  color: #f5f5f7;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
}
.cta-final p {
  color: #86868b;
  font-size: 1.05rem;
  margin: 20px auto 38px;
  max-width: 560px;
  letter-spacing: 0;
}
.cta-final .cta-trust {
  font-size: 0.85rem;
  margin: 22px auto 0;
  opacity: 0.8;
}

.btn-large {
  font-size: 1.15rem;
  padding: 16px 38px;
}

/* ---------- Sticky CTA mobile ---------- */

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 32px;
  border-radius: 980px;
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.35);
  opacity: 0;
  transform: translate(-50%, 90px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}
.sticky-cta.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
@media (min-width: 821px) {
  .sticky-cta { display: none; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-gray);
  padding: 40px 0 50px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

.footer-social { display: flex; gap: 18px; }
.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-social a:hover { color: var(--text); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
}
.footer-bottom a:hover { text-decoration: underline; }
.sep { margin: 0 6px; opacity: 0.5; }

/* Disclaimer legale, in fondo a tutto */
.legal {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  line-height: 1.7;
  letter-spacing: 0;
}
.legal h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.legal p { margin-bottom: 12px; }
.legal p:last-child { margin-bottom: 0; }
.legal strong { color: var(--text); }

/* ---------- Animazioni di reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* Uscita verso l'alto: scorrendo in basso, gli elementi superati svaniscono in su */
.reveal.exit-up { transform: translateY(-32px); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.exit-up { opacity: 1; transform: none; transition: none; }
  .bento-card:hover, .course-card:hover { transform: none; }
  .chart-line { stroke-dashoffset: 0; animation: none !important; }
  .chart-dot { opacity: 1; animation: none !important; }
  .chart-pulse { display: none; }
  .chart-spark { display: none; }
  .course-featured { animation: none !important; }
  .candle { opacity: 1; transform: none; animation: none !important; }
  .chart-area { opacity: 1; animation: none !important; }
  .price-tag { opacity: 1; transform: none; animation: none !important; }
  /* Riduci movimento: niente scorrimento. Recensioni impilate, senza doppioni. */
  .marquee {
    overflow: visible;
    -webkit-mask-image: none; mask-image: none;
    align-items: center;
  }
  .marquee-track {
    animation: none !important;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: auto;
  }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .marquee-group[aria-hidden="true"] { display: none; } /* nasconde i cloni */
  .review { flex-basis: 340px; }
  .orb { animation: none !important; }
  .hero-orbs { transition: none; }
  .gradient-text { animation: none; }
  .step:hover { transform: none; }
  .sticky-cta { transition: none; }
  .btn:hover { transform: none; box-shadow: none; }
  .btn::after, .course-badge::after { display: none; }
  .scroll-cue { display: none; }
  .hero h1.reveal { filter: none; }
  .cta-final::before { animation: none; }
  .hero-mesh { animation: none !important; }
  .course-card::before, .social-card::before { display: none; }
}

/* ============================================
   Liquid Glass — materiale vetro traslucido Apple
   (sfocatura + saturazione, riflesso speculare,
   bordo luminoso interno)
   ============================================ */

:root {
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.18) 38%, rgba(255, 255, 255, 0.04) 70%);
  --glass-blur: saturate(180%) blur(22px);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.bento-card,
.course-card,
.social-card,
.review,
.step,
.contact-form {
  background: var(--glass-sheen), var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-card), var(--glass-edge);
}

/* Sul passaggio del mouse manteniamo il bordo-luce del vetro */
.course-card:hover {
  box-shadow: 0 30px 60px -22px rgba(0, 60, 130, 0.28), var(--glass-edge);
}
.social-card:hover {
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.18), var(--glass-edge);
}

/* Navbar in vero liquid glass */
.navbar {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Sticky CTA e pillola in vetro colorato */
.sticky-cta {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.92), rgba(0, 162, 255, 0.92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Su schermi senza supporto al backdrop-filter, restiamo su fondo pieno leggibile */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bento-card, .course-card, .social-card, .review, .step, .contact-form {
    background: #ffffff;
  }
  .navbar { background: rgba(251, 251, 253, 0.96); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .courses { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .course-featured { order: -1; }
  .teacher-stats { gap: 40px; }
  .props { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* Vetro più leggero su mobile: stessa estetica, metà del costo di GPU */
  :root { --glass-blur: saturate(160%) blur(12px); }

  .section { padding: 90px 0; }

  /* Nastro recensioni più veloce su schermi stretti */
  .marquee-track { animation-duration: 30s; }
  .marquee-reverse { animation-duration: 38s; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 48px; right: 0; left: 0;
    background: rgba(251, 251, 253, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px 36px;
    gap: 22px;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { font-size: 1.05rem; }

  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .props { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 32px 24px; }

  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .review { flex-basis: 300px; }
  .hero-actions .btn { width: 100%; }
}
