/* ============================================================
   Thank you page candidatura — Editing for Freedom
   Palette, font e componenti ripresi da lorenzocannas.com (style.css v125)
   ============================================================ */

:root {
  --bg-radial-from: #1E40AF;
  --bg-radial-to: #000000;

  --accent: #FFD400;
  --accent-soft: rgba(255,212,0,0.85);

  --paper-white: #FFFFFF;
  --ink: #FFFFFF;
  --ink-soft: rgba(255,255,255,0.78);
  --ink-mute: rgba(255,255,255,0.55);
  --line: rgba(255,255,255,0.10);

  --forest-dark: #0A1024;
  --mustard: #E2C879;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --tracking-body: -0.01em;

  --radius: 16px;
  --shadow-lift:
    0 1px 2px rgba(0,0,0,0.40),
    0 4px 12px rgba(0,0,0,0.30),
    0 24px 48px rgba(0,0,0,0.25);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back-out: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at center, var(--bg-radial-from), var(--bg-radial-to));
  background-attachment: fixed;
  color: var(--paper-white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; }
img, video { max-width: 100%; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}
@media (max-width: 768px) { .grain { opacity: 0.018; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 6vw, 96px); }

/* Segnaposto copy: evidenziati finché non arriva il testo definitivo */
.draft { outline: 1px dashed rgba(255,212,0,0.45); outline-offset: 4px; border-radius: 4px; }

/* ------------------------------------------------------------
   Topbar (solo wordmark, niente navigazione: pagina di destinazione)
   ------------------------------------------------------------ */
.topbar { display: flex; justify-content: center; padding: 22px 20px 0; }
.topbar-brand { font-style: italic; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: #FFFFFF; }
.brand-accent { color: var(--accent); }

/* ------------------------------------------------------------
   Eyebrow
   ------------------------------------------------------------ */
.orbit-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 18px 0 14px;
}
.orbit-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 12px rgba(255,212,0,0.6); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }

/* ------------------------------------------------------------
   Hero / above the fold
   ------------------------------------------------------------ */
.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-title {
  font-style: italic; font-weight: 500; line-height: 1.04; letter-spacing: -0.025em;
  font-size: clamp(32px, 5.2vw, 64px); color: #FFFFFF; margin: 0; max-width: 900px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55); text-wrap: balance;
}
.hero-title em { color: var(--accent); font-style: italic; font-weight: 600; }

.hero-sub {
  font-weight: 600; color: rgba(255,255,255,0.92); margin: 16px auto 0; max-width: 680px;
  font-size: clamp(16px, 1.7vw, 21px); line-height: 1.45; text-shadow: 0 2px 14px rgba(0,0,0,0.6); text-wrap: balance;
}
.hero-sub em { color: var(--accent); font-style: normal; font-weight: 700; }

/* Avviso sopra il video: riquadro con icona (proposta A, scelta da Marco l'11/09/2026) */
.vsl-alert {
  display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left;
  max-width: 880px; margin: 0 auto 14px; padding: 12px 18px; border-radius: 12px;
  background: rgba(255,212,0,0.08); border: 1px solid rgba(255,212,0,0.45);
  color: #FFFFFF; font-size: 15px; font-weight: 600; line-height: 1.45; text-wrap: balance;
}
.vsl-alert strong { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.vsl-alert-icon { display: block; flex: none; color: var(--accent); }
.vsl-alert-note { color: rgba(255,255,255,0.6); font-weight: 500; }
@media (max-width: 560px) {
  .vsl-alert { font-size: 14px; padding: 10px 14px; gap: 10px; }
}

/* VSL */
.vsl { width: 100%; max-width: 880px; margin: clamp(28px, 4vw, 44px) auto 0; }
.vsl-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: linear-gradient(140deg, #050816 0%, #142552 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255,212,0,0.10);
}
.vsl-frame::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--bb-angle, 0deg), transparent 0deg 260deg, #FFD400 290deg, #FFFFFF 320deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: bb-spin 6s linear infinite;
}
@property --bb-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes bb-spin { to { --bb-angle: 360deg; } }
.vsl-frame.is-active::after { display: none; }

.vsl-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; transition: transform .45s var(--ease); }
.vsl-frame:hover .vsl-thumb { transform: scale(1.03); }
.vsl-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 50% 55%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.40) 85%), linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
}
.vsl-frame.is-active::before { display: none; }
.vsl-tag {
  position: absolute; top: 14px; left: 16px; z-index: 4;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); padding: 6px 10px; background: rgba(0,0,0,0.5); border-radius: 999px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.vsl-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 76px; height: 76px; border-radius: 999px; background: var(--accent); color: #000; border: none;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 14px 36px rgba(255,212,0,0.40), 0 4px 12px rgba(0,0,0,0.45);
  transition: transform .35s var(--ease-back-out);
}
.vsl-play svg { margin-left: 4px; }
.vsl-play::after {
  content: ''; position: absolute; inset: -8px; border-radius: 999px; border: 2px solid var(--accent);
  opacity: 0; transform: scale(0.85); pointer-events: none;
  transition: transform .55s var(--ease-expo-soft), opacity .55s var(--ease);
}
.vsl-frame:hover .vsl-play { transform: translate(-50%, -50%) scale(1.08); }
.vsl-frame:hover .vsl-play::after { opacity: 0.45; transform: scale(1.35); }
.vsl-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }

/* CTA (stile prisma-hero-cta del sito) */
.hero-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(24px, 3.5vw, 36px); }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #000; border-radius: 999px; padding: 8px 8px 8px 28px;
  font-size: 17px; font-weight: 700; letter-spacing: 0.005em; text-decoration: none;
  box-shadow: 0 8px 28px rgba(255,212,0,0.30), 0 2px 6px rgba(0,0,0,0.45);
  transition: gap .3s var(--ease), transform .3s var(--ease);
}
.cta:hover { gap: 16px; transform: translateY(-1px); }
.cta-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: #000; color: var(--accent); border-radius: 999px; transition: transform .3s var(--ease);
}
.cta:hover .cta-icon { transform: scale(1.1); }
.cta.is-disabled { opacity: 0.55; cursor: not-allowed; }
.hero-micro { margin: 0; font-size: 14px; color: var(--ink-mute); }

/* Prenotazione bloccata finché il lead non ha guardato il video (main.js, 1b) */
.cta.is-locked { opacity: 0.45; cursor: not-allowed; box-shadow: none; filter: saturate(0.6); }
.cta.is-locked:hover { gap: 10px; transform: none; }
.cta-progress {
  width: min(320px, 80%); height: 4px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.12);
}
.cta-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
body:not(.cta-locked) .cta-progress { display: none; }

/* ------------------------------------------------------------
   Sezioni
   ------------------------------------------------------------ */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; border-top: 1px solid var(--line); }
.section-head { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.section-head--centered .section-title { max-width: 920px; margin-left: auto; margin-right: auto; }
.section-title {
  font-weight: 500; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 18px; color: var(--ink); text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--accent); }
.section-lead { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin: 0 auto; line-height: 1.55; }
.section-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ------------------------------------------------------------
   Card testimonianze (students-grid del sito, 4 colonne per 8 card)
   ------------------------------------------------------------ */
.students-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .students-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .students-grid { grid-template-columns: 1fr; } }

.student-card {
  display: flex; flex-direction: column;
  padding: 22px 22px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.student-card:hover { transform: translateY(-4px); border-color: rgba(255,212,0,0.35); }
.student-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.student-avatar {
  width: 44px; height: 44px; border-radius: 999px; background: rgba(255,212,0,0.10); border: 1px solid rgba(255,212,0,0.30);
  color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 18px; display: grid; place-items: center; flex-shrink: 0;
}
.student-card h3 { font-style: italic; font-weight: 600; font-size: 19px; margin: 0; color: var(--paper-white); }
.student-role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(250,247,241,0.55); margin: 4px 0 0; }
.student-jump { font-size: 15px; color: rgba(250,247,241,0.92); line-height: 1.45; margin: 0 0 10px; }
.student-jump strong { color: var(--accent); font-weight: 700; text-shadow: 0 0 12px rgba(255,212,0,0.30); }
.student-jump span { color: rgba(250,247,241,0.55); font-weight: 400; }
.student-note { flex: 1; font-size: 13.5px; line-height: 1.55; color: rgba(250,247,241,0.70); margin: 0 0 14px; }

.student-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-top: auto;
  background: linear-gradient(160deg, #0E1B36 0%, #050C1E 100%); border: 1px solid rgba(255,212,0,0.18);
}
.student-video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.student-video-poster {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;
  background: radial-gradient(circle at 50% 60%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45) 85%), linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.55) 100%);
  transition: background .35s ease;
}
.student-video.is-playing .student-video-poster { display: none; }
.student-video-play, .yt-lite-play {
  width: 56px; height: 56px; border-radius: 999px; border: 0; background: var(--accent); color: #000;
  display: grid; place-items: center; cursor: pointer; position: relative;
  box-shadow: 0 12px 32px rgba(255,212,0,0.40), 0 4px 12px rgba(0,0,0,0.4);
  transition: transform .35s var(--ease-back-out);
}
.student-video-play::after, .yt-lite-play::after {
  content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--accent);
  opacity: 0; transform: scale(0.85); pointer-events: none;
  transition: transform .55s var(--ease-expo-soft), opacity .55s var(--ease);
}
.student-video-play svg, .yt-lite-play svg { margin-left: 3px; }
.student-video-poster:hover .student-video-play, .yt-lite:hover .yt-lite-play { transform: scale(1.08); }
.student-video-poster:hover .student-video-play::after, .yt-lite:hover .yt-lite-play::after { opacity: 0.45; transform: scale(1.4); }

/* YouTube lite facade (thumbnail + play, iframe al click) */
.yt-lite { cursor: pointer; }
.yt-lite-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; transition: transform .45s var(--ease), filter .35s ease; }
.yt-lite:hover .yt-lite-thumb { transform: scale(1.04); filter: brightness(1.05); }
.yt-lite::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 50% 60%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35) 80%), linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
}
.yt-lite-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; }
.yt-lite:hover .yt-lite-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-lite--active::before { display: none; }
.yt-lite-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer { background: var(--forest-dark); color: rgba(255,255,255,0.7); padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-logo { font-style: italic; font-weight: 600; font-size: 20px; color: var(--paper-white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--paper-white); }
.footer-copy { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
@media (max-width: 600px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------------
   Cookie banner e modale (identici al sito)
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: rgba(13, 15, 26, 0.96); border: 1px solid rgba(255, 212, 0, 0.30); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 212, 0, 0.08);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--paper-white); animation: cookie-banner-in .35s ease-out;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-banner-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cookie-banner-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 18px 22px; }
@media (max-width: 768px) { .cookie-banner-inner { grid-template-columns: 1fr; } }
.cookie-banner-title { font-style: italic; font-weight: 700; font-size: 18px; color: var(--accent); margin: 0 0 4px; }
.cookie-banner-text { font-size: 13.5px; line-height: 1.5; margin: 0; color: rgba(250, 247, 241, 0.82); }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; padding: 11px 18px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.92); }
.cookie-btn--ghost:hover { border-color: rgba(255, 212, 0, 0.55); color: var(--accent); }
.cookie-btn--primary { background: var(--accent); color: #0A0A0A; border-color: var(--accent); box-shadow: 0 6px 22px rgba(255, 212, 0, 0.35); }
.cookie-btn--primary:hover { box-shadow: 0 10px 28px rgba(255, 212, 0, 0.5); }

.cookie-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; }
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cookie-modal-panel {
  position: relative; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: #0D0F1A; border: 1px solid rgba(255, 212, 0, 0.28); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: var(--paper-white); overflow: hidden;
}
.cookie-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cookie-modal-head h3 { margin: 0; font-style: italic; font-weight: 700; font-size: 20px; color: var(--accent); }
.cookie-modal-close { background: transparent; border: 0; color: rgba(255, 255, 255, 0.7); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cookie-modal-close:hover { color: var(--accent); }
.cookie-modal-body { padding: 18px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cookie-modal-intro { font-size: 13.5px; line-height: 1.55; color: rgba(250, 247, 241, 0.78); margin: 0 0 4px; }
.cookie-toggle {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); cursor: pointer; user-select: none;
}
.cookie-toggle:has(input:disabled) { cursor: not-allowed; opacity: 0.85; }
.cookie-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.cookie-toggle-text strong { color: var(--paper-white); font-size: 14.5px; font-weight: 700; }
.cookie-toggle-text span { font-size: 12.5px; color: rgba(250, 247, 241, 0.65); line-height: 1.4; }
.cookie-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-toggle-switch { position: relative; width: 44px; height: 24px; background: rgba(255, 255, 255, 0.16); border-radius: 999px; transition: background .25s ease; flex-shrink: 0; }
.cookie-toggle-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #FFFFFF; transition: transform .25s ease; }
.cookie-toggle input:checked ~ .cookie-toggle-switch { background: var(--accent); }
.cookie-toggle input:checked ~ .cookie-toggle-switch::before { transform: translateX(20px); background: #0A0A0A; }
.cookie-toggle input:disabled ~ .cookie-toggle-switch { background: rgba(255, 212, 0, 0.45); }
.cookie-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.25); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
