/* Funnel U5 · corso di 4 lezioni. Stesso stile blu elettrico di U4 (4/12/2026, richiesta di Nando). Niente testi grigi, come negli altri funnel. */
:root {
  --blue: #2E6BFF;             /* blu elettrico principale */
  --blue-hi: #4F8CFF;
  --cyan: #3FD0FF;             /* riflesso dei bagliori */
  --blue-soft: rgba(46, 107, 255, .12);
  --blue-line: rgba(79, 140, 255, .40);
  --glow: rgba(46, 107, 255, .55);
  --bg: #02040C;
  --panel: #060B1C;
  --text: #F3F6FF;
  --text-2: #FFFFFF;
  --text-4: #93A3C9;
  --line: rgba(160, 190, 255, .18);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 560px at 50% -160px, rgba(46, 107, 255, .38), rgba(46, 107, 255, 0) 70%),
    radial-gradient(600px 400px at 100% 40%, rgba(63, 208, 255, .08), rgba(63, 208, 255, 0) 70%),
    linear-gradient(rgba(120, 160, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
.page { display: flex; flex-direction: column; align-items: center; padding: 28px 16px 56px; gap: 0; }

/* intestazione */
.hero { width: 100%; max-width: 780px; text-align: center; margin-top: 36px; display: grid; gap: 22px; justify-items: center; }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(27px, 4.3vw, 44px); line-height: 1.12; letter-spacing: -.015em; color: #fff; text-wrap: balance;
}
.hero h1 span {
  color: var(--blue-hi);
  background: linear-gradient(90deg, #6FA0FF, var(--cyan), #6FA0FF); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; text-shadow: 0 0 34px rgba(46, 107, 255, .45);
}
.hero p { margin: 0; max-width: 640px; font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.6; color: var(--text-2); }

.eyebrow { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-hi); }
.eyebrow--pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px;
  background: rgba(46, 107, 255, .14); border: 1px solid var(--blue-line); color: #CFE0FF;
  box-shadow: 0 0 24px rgba(46, 107, 255, .25) inset;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 208, 255, .7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(63, 208, 255, 0); } }

/* landing: cosa trovi dentro + form */
.join { width: 100%; max-width: 980px; margin-top: 48px; display: grid; gap: 28px; align-items: start; }
@media (min-width: 880px) { .join { grid-template-columns: 1fr 440px; gap: 40px; margin-top: 60px; } }

.inside { display: grid; gap: 16px; }
.inside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inside li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(46, 107, 255, .09), rgba(46, 107, 255, .02));
}
.inside .ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px;
  background: rgba(46, 107, 255, .18); border: 1px solid var(--blue-line); box-shadow: 0 0 18px rgba(46, 107, 255, .3);
}
.inside p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.inside b { color: #fff; }

.card {
  width: 100%; padding: 28px 26px 24px; border-radius: 20px; border: 1px solid var(--blue-line);
  background: linear-gradient(180deg, #0A1430, var(--panel));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(46, 107, 255, .18);
}
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .prefix {
  width: 100%; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(160, 190, 255, .22);
  background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #7484AB; }
.field input:focus { border-color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(46, 107, 255, .22); background: rgba(46, 107, 255, .06); outline: none; }
.field input[aria-invalid="true"] { border-color: #FF9B8A; }
.phone { display: flex; gap: 8px; }
.phone .prefix { width: 76px; flex: 0 0 76px; }
.phone input { flex: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin: 0; font-size: 13px; line-height: 1.4; color: #FF9B8A; }
.err[hidden], .suggest[hidden] { display: none; }
.suggest { margin: 0; font-size: 13px; color: var(--text-2); }
.suggest button { border: 0; background: none; padding: 0; color: var(--blue-hi); font-weight: 700; text-decoration: underline; cursor: pointer; }

.btn {
  position: relative; overflow: hidden; min-height: 58px; padding: 12px 16px; margin-top: 4px; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue)); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: .03em; line-height: 1.3; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(160, 200, 255, .35) inset, 0 10px 34px var(--glow);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn > span { position: relative; z-index: 1; }
@media (hover: hover) { .btn:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(200, 225, 255, .5) inset, 0 14px 44px rgba(46, 107, 255, .75); } }
.btn:not(:disabled):active { transform: scale(.99); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn:focus-visible, .unlock:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn--shimmer::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); text-align: center; }
.note a { color: var(--text-2); }
.disc { margin: 40px 0 0; max-width: 760px; font-size: 11.5px; line-height: 1.5; color: var(--text-4); text-align: center; }

/* bordo con la luce che corre */
.beam { position: relative; }
.beam::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--a), transparent 0 70%, rgba(46, 107, 255, .95) 82%, #BFE6FF 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 5s linear infinite;
}
@keyframes beam { to { --a: 360deg; } }

/* thank-you page */
.hero--ty { margin-top: 24px; }
.check {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--blue-hi), var(--blue)); box-shadow: 0 0 0 6px rgba(46, 107, 255, .18), 0 0 40px var(--glow);
}
.video {
  width: 100%; max-width: 760px; aspect-ratio: 16 / 9; margin-top: 36px; border-radius: 18px;
  border: 1px solid var(--blue-line); background: radial-gradient(circle at 50% 40%, #0E1F4D, #040817 70%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 70px rgba(46, 107, 255, .22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.video .play {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue)); box-shadow: 0 0 40px var(--glow);
}
.video small { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #CFE0FF; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: 18px; }
.video--on { background: #000; }

.cta { width: 100%; max-width: 560px; margin-top: 28px; display: grid; gap: 12px; justify-items: center; }
.cta__status { margin: 0; min-height: 1.5em; font-size: 13.5px; font-weight: 600; color: #CFE0FF; text-align: center; font-variant-numeric: tabular-nums; }

/* pulsante per Telegram: si riempie di blu mentre il video va avanti, poi si illumina */
.unlock {
  --p: 0;
  position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 64px; padding: 14px 18px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  border: 1.5px solid var(--blue-line); background: rgba(46, 107, 255, .07); color: #BFD3FF;
  font-size: 16px; font-weight: 800; letter-spacing: .03em; line-height: 1.3; text-align: center;
  transition: color .4s, border-color .4s, box-shadow .6s, transform .15s;
}
.unlock__fill {
  position: absolute; inset: 0; z-index: -1; transform-origin: left center; transform: scaleX(var(--p));
  background:
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%) 0 0 / 220% 100%,
    linear-gradient(90deg, #1F4FE0, var(--blue) 70%, var(--blue-hi));
  animation: shine 1.6s linear infinite;
  transition: transform .25s linear;
}
.unlock__fill::after { /* bordo luminoso sul fronte del caricamento */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: #DDF3FF; box-shadow: 0 0 14px 3px var(--cyan);
  opacity: .9; transition: opacity .3s;
}
@keyframes shine { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }
.unlock__label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
.unlock__tg { display: none; }
.unlock.is-locked { cursor: not-allowed; }
.unlock.nudge { animation: nudge .4s ease-out; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

.unlock.is-ready {
  cursor: pointer; color: #fff; border-color: rgba(190, 220, 255, .75);
  background: var(--blue);
  animation: ready-pop .5s cubic-bezier(.22, 1, .36, 1), glow 2.2s ease-in-out .5s infinite;
}
.unlock.is-ready .unlock__fill { animation: none; background: linear-gradient(180deg, var(--blue-hi), var(--blue)); }
.unlock.is-ready .unlock__fill::after { opacity: 0; }
.unlock.is-ready .unlock__lock { display: none; }
.unlock.is-ready .unlock__tg { display: block; }
.unlock.is-ready::after { /* riflesso che attraversa il pulsante quando è attivo */
  content: ""; position: absolute; inset: 0; z-index: 0; transform: translateX(-120%); pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  animation: sweep 2.8s ease-in-out 0.6s infinite;
}
@keyframes ready-pop { 0% { transform: scale(1); } 45% { transform: scale(1.035); } 100% { transform: scale(1); } }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(160, 200, 255, .4) inset, 0 0 22px rgba(46, 107, 255, .55), 0 0 60px rgba(46, 107, 255, .30); }
  50% { box-shadow: 0 0 0 1px rgba(200, 230, 255, .7) inset, 0 0 36px rgba(63, 160, 255, .85), 0 0 110px rgba(46, 107, 255, .55); }
}
@media (hover: hover) { .unlock.is-ready:hover { transform: translateY(-2px); filter: brightness(1.08); } }

/* landing: immagine sotto il sottotitolo */
.hero-img {
  width: 100%; max-width: 720px; margin-top: 6px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--blue-line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(46, 107, 255, .2);
}
.hero-img:not(.hero-img--on) {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #0E1F4D, #040817 70%);
}
.hero-img small { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #CFE0FF; }
.hero-img img { display: block; width: 100%; height: auto; }

/* landing: numeri delle lezioni */
.inside .num { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; }

/* pagine delle lezioni */
.steps { display: flex; gap: 8px; margin-top: 4px; }
.steps span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  border: 1px solid var(--line); color: var(--text-4); background: rgba(255, 255, 255, .03);
}
.steps span.done { color: #CFE0FF; border-color: var(--blue-line); background: rgba(46, 107, 255, .16); }
.steps span.on { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--blue-hi), var(--blue)); box-shadow: 0 0 18px var(--glow); }
.after { width: 100%; max-width: 680px; margin-top: 28px; display: grid; gap: 10px; text-align: center; }
.after p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.tg-link { color: var(--blue-hi); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tg-link:hover { color: var(--cyan); }
.after + .cta { margin-top: 20px; }

@media (max-width: 520px) {
  .eyebrow--pill { font-size: 10.5px; letter-spacing: .1em; padding: 7px 12px; }
  .card { padding: 22px 18px 20px; }
  .unlock { font-size: 14.5px; padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .unlock.is-ready { box-shadow: 0 0 0 1px rgba(200, 230, 255, .7) inset, 0 0 36px rgba(63, 160, 255, .8); }
}
