/* ==========================================================================
   Hybrid Sales Academy · pagina webinar (sito a sé, separato dalla landing)
   Solo il video, la barra di avanzamento senza numeri e la finestra di prenotazione.
   Le basi (colori, pulsanti, player, campi) sono le stesse della landing, copiate qui
   perché questa pagina non dipende da nessun file della landing.
   ========================================================================== */


/* ---------- Token ---------- */
:root {
  /* nero */
  --ink: #0A0A09;
  --ink-2: #12110E;
  --ink-3: #1A1813;
  --ink-line: rgba(255, 210, 31, 0.18);
  --ink-line-2: rgba(255, 255, 255, 0.09);

  /* carta */
  --paper: #F7F4EC;
  --paper-2: #EFE9DA;
  --card: #FFFFFF;
  --paper-line: #E4DCC7;

  /* giallo */
  --sun: #FFD21F;
  --sun-hi: #FFE871;
  --sun-lo: #F2AA00;
  --sun-grad: linear-gradient(100deg, var(--sun-hi) 0%, var(--sun) 45%, var(--sun-lo) 100%);
  --sun-ink: #AE8400;      /* oro dei titoli sulla carta */
  --sun-ink-2: #7F6000;    /* oro per il testo piccolo sulla carta */
  --on-sun: #140E00;

  /* testo */
  --on-dark: #F6F2E7;
  --on-dark-2: #B8B09D;
  --on-dark-3: #857E6D;
  --on-paper: #12110E;
  --on-paper-2: #5C5647;
  --err: #FF8270;
  --ok: #2BD46A;
  --wa: #25D366;
  --on-wa: #052E14;

  /* tipografia */
  --f-display: "Archivo", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ritmo */
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;
  --nav-h: 68px;
  --wrap: 1140px;
  --sec-y: clamp(64px, 9vw, 120px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.light :focus-visible { outline-color: var(--on-paper); }
::selection { background: var(--sun); color: var(--on-sun); }

.i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--on-sun);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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


/* ---------- Bottoni ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 14px 0 28px;
  border: 0;
  border-radius: 18px;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 180ms var(--ease),
    filter 260ms var(--ease),
    box-shadow 260ms var(--ease);
}
.btn__go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  transition: transform 260ms var(--ease);
}
.btn__go .i { width: 18px; height: 18px; stroke-width: 2.5; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .btn__go { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.985); }

/* giallo acceso: riflesso in alto, bordo inferiore più scuro e alone caldo */
.btn--sun {
  color: var(--on-sun);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 52%),
    var(--sun-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(150, 92, 0, 0.35),
    0 0 0 1px rgba(255, 222, 96, 0.95),
    0 0 32px -4px rgba(255, 200, 30, 0.5),
    0 16px 44px -12px rgba(255, 160, 0, 0.7);
}
.btn--sun .btn__go { background: var(--on-sun); color: var(--sun); }
.btn--sun:hover {
  filter: brightness(1.05) saturate(1.08);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(150, 92, 0, 0.35),
    0 0 0 1px rgba(255, 232, 140, 1),
    0 0 0 6px rgba(255, 210, 31, 0.12),
    0 0 44px 0 rgba(255, 200, 30, 0.6),
    0 20px 54px -10px rgba(255, 160, 0, 0.8);
}

.btn--ink {
  color: var(--sun);
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -18px rgba(10, 10, 9, 0.75);
}
.btn--ink .btn__go { background: var(--sun-grad); color: var(--on-sun); }
.btn--ink:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 5px rgba(10, 10, 9, 0.1), 0 22px 46px -18px rgba(10, 10, 9, 0.85); }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; border-radius: 13px; font-size: 0.8125rem; }

/* un lampo di luce che attraversa il tasto */
.btn::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px 0;
  z-index: -1;
  width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: translateX(-130%) skewX(-20deg);
  pointer-events: none;
}
.btn--ink::after { background: linear-gradient(100deg, transparent 0%, rgba(255, 210, 31, 0.28) 50%, transparent 100%); }
.btn--shine::after { animation: shine 5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite; }
.btn:hover::after { animation: shine 900ms cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes shine {
  0%        { transform: translateX(-130%) skewX(-20deg); }
  30%, 100% { transform: translateX(380%) skewX(-20deg); }
}

.cta { display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 560px; margin-top: clamp(32px, 4vw, 44px); }
.cta--center { margin-inline: auto; }
.cta__fine { font-size: 0.875rem; text-align: center; }
.dark .cta__fine { color: var(--on-dark-3); }


/* ---------- Pallino che pulsa ---------- */
.badge__dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--sun); }
.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sun);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ---------- Player ---------- */
.player-wrap {
  width: 100%;
  max-width: 940px;
  margin-top: 34px;
  padding: 1px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 210, 31, 0.75), rgba(255, 210, 31, 0.08) 40%, rgba(255, 210, 31, 0.45));
  box-shadow: 0 50px 120px -60px rgba(255, 180, 0, 0.5), 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.player {
  position: relative;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - 1px);
  background: #000;
  isolation: isolate;
}
.player__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 700ms var(--ease), opacity 260ms;
}
.player::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 9, 0.8), transparent 50%);
}
.player:hover .player__poster { transform: scale(1.025); opacity: 0.9; }

.player__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-pill);
  background: rgba(10, 10, 9, 0.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.player__meta {
  position: absolute;
  inset: auto 20px 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  pointer-events: none;
}

.player__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--on-sun);
  cursor: pointer;
  border-radius: inherit;
}
.player__play:focus-visible { outline-offset: -4px; }
.player__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--sun-grad);
  box-shadow: 0 0 0 12px rgba(255, 210, 31, 0.16), 0 18px 50px -10px rgba(255, 190, 20, 0.6);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.player__icon svg { width: 30px; height: 30px; transform: translateX(2px); }
.player__play:hover .player__icon { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 210, 31, 0.18), 0 22px 60px -10px rgba(255, 190, 20, 0.75); }

.player__soon {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  place-content: center;
  padding: 24px;
  color: var(--on-dark);
  font-weight: 600;
  line-height: 1.5;
}
.player__soon span { color: var(--on-dark-2); font-weight: 400; }
.player.is-soon .player__play { display: none; }
.player.is-soon .player__soon { display: grid; }
.player.is-soon:hover .player__poster { transform: none; opacity: 0.78; }

.player iframe, .player__mount {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
}

/* player del sito per il video della presentazione */
.vp { background: #000; }
.vp__video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp__big { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--on-sun); cursor: pointer; }
.vp__big .player__icon { opacity: 0; transform: scale(0.85); transition: opacity 220ms, transform 260ms var(--ease); }
.vp.is-paused .vp__big .player__icon { opacity: 1; transform: none; }
.vp.is-paused .vp__big { background: rgba(10, 10, 9, 0.35); }
.vp__spin { position: absolute; width: 54px; height: 54px; border: 3px solid rgba(255, 210, 31, 0.25); border-top-color: var(--sun); border-radius: 50%; opacity: 0; animation: spin 900ms linear infinite; transition: opacity 200ms; }
.vp.is-loading:not(.is-paused) .vp__spin { opacity: 1; }
.vp__bar {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-pill);
  background: rgba(10, 10, 9, 0.72);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: opacity 260ms, transform 260ms var(--ease);
}
.vp.is-idle:not(.is-paused):not(.is-seeking) { cursor: none; }
.vp.is-idle:not(.is-paused):not(.is-seeking) .vp__bar { opacity: 0; transform: translateY(10px); pointer-events: none; }
.vp__btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer; transition: color 180ms, transform 180ms; }
.vp__btn:hover { color: var(--sun); }
.vp__btn svg { width: 20px; height: 20px; }
.vp__btn--main { background: var(--sun-grad); color: var(--on-sun); }
.vp__btn--main:hover { color: var(--on-sun); transform: scale(1.06); }
.vp__btn--main svg { width: 16px; height: 16px; }
.vp__track { position: relative; flex: 1; min-width: 0; height: 30px; cursor: pointer; touch-action: none; }
.vp__track::before, .vp__buf, .vp__fill { content: ""; position: absolute; top: 50%; left: 0; height: 4px; margin-top: -2px; border-radius: 2px; }
.vp__track::before { right: 0; background: rgba(255, 255, 255, 0.18); }
.vp__buf { width: calc(var(--b, 0) * 100%); background: rgba(255, 255, 255, 0.3); }
.vp__fill { width: calc(var(--p, 0) * 100%); background: var(--sun-grad); }
.vp__knob { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.2); transform: scale(0.8); transition: transform 160ms; }
.vp__track:hover .vp__knob, .vp.is-seeking .vp__knob, .vp__track:focus-visible .vp__knob { transform: scale(1.15); }
.vp__hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--sun-grad);
  color: var(--on-sun);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity 200ms, transform 240ms var(--ease);
}
.vp.is-blocked .vp__hint { opacity: 1; transform: translate(-50%, 0); }
.vp.is-blocked .vp__bar { opacity: 1; transform: none; }
.vp__time { flex: none; color: var(--on-dark-2); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player:fullscreen { border-radius: 0; }
@media (max-width: 479px) {
  .vp__bar { inset: auto 8px 8px; gap: 4px; padding-right: 4px; }
  .vp__btn--vol { display: none; } /* sul telefono il volume si regola con i tasti */
  .vp__time { font-size: 0.75rem; }
}

@media (max-width: 479px) {
  .player__icon { width: 64px; height: 64px; box-shadow: 0 0 0 9px rgba(255, 210, 31, 0.16), 0 14px 40px -10px rgba(255, 190, 20, 0.6); }
  .player__icon svg { width: 24px; height: 24px; }
  .player__tag { top: 10px; left: 10px; padding: 6px 12px; font-size: 0.625rem; }
  .player__meta { inset: auto 14px 10px; font-size: 0.875rem; }
  .player__soon { font-size: 0.875rem; }
}


/* ---------- Tasto sbloccato sotto il video ---------- */
.gate__open { display: grid; justify-items: center; gap: 14px; }
.gate.is-unlocked .gate__open { animation: rise 600ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gate__open .btn--shine .btn__go { animation: nudge 2.4s var(--ease) 2s infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(4px); } 90% { transform: translateX(-1px); } }

/* ==========================================================================
   Candidatura in popup
   ========================================================================== */
html.is-modal { overflow: hidden; }

.apply {
  width: min(560px, calc(100% - 24px));
  max-height: min(92dvh, 900px);
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 40% at 100% 0%, rgba(255, 196, 30, 0.1), transparent 70%),
    var(--ink-2);
  color: var(--on-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.apply::backdrop { background: rgba(5, 5, 4, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 600px) {
  .apply { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
}

.apply__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink-line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark-2);
  cursor: pointer;
  transition: color 180ms, border-color 180ms;
}
.apply__close:hover { color: var(--sun); border-color: var(--ink-line); }

.apply__form, .done {
  padding:
    max(28px, calc(env(safe-area-inset-top, 0px) + 16px))
    max(22px, env(safe-area-inset-right, 0px))
    max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px))
    max(22px, env(safe-area-inset-left, 0px));
}
@media (min-width: 601px) { .apply__form, .done { padding: 36px 36px 32px; } }

.apply__head { display: grid; gap: 10px; padding-right: 48px; margin-bottom: 26px; }
.apply__step {
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.apply__bar { height: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.apply__bar i {
  display: block;
  height: 100%;
  background: var(--sun-grad);
  transform: scaleX(var(--p, 0.5));
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.apply__title {
  margin-top: 8px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}
.apply__sub { color: var(--on-dark-2); }

.apply__part { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.apply__part[hidden] { display: none; }
.apply__req { color: var(--on-dark-3); font-size: 0.8125rem; }

/* campi */
.f { position: relative; display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f:has(.pick__btn[aria-expanded="true"]) { z-index: 5; }
.f-row { display: grid; gap: 18px; }
@media (min-width: 420px) { .f-row { grid-template-columns: 1fr 1fr; gap: 12px; } }
.f label, .f__label { font-size: 0.9375rem; font-weight: 600; }
.f__req { color: var(--sun); }
.f input, .f textarea, .f select, .pick__btn {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--ink-line-2);
  border-radius: 14px;
  background: var(--ink-3);
  color: var(--on-dark);
  font: inherit;
  font-size: 1rem; /* sotto i 16px iOS ingrandisce la pagina */
  transition: border-color 180ms, box-shadow 180ms;
}
.f textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.f input::placeholder, .f textarea::placeholder { color: var(--on-dark-3); }
.f input:focus, .f textarea:focus, .f select:focus, .pick__btn:focus-visible, .pick__btn[aria-expanded="true"] {
  border-color: var(--sun);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.14);
}
.f.is-invalid input, .f.is-invalid textarea, .f.is-invalid .pick__btn { border-color: var(--err); }
.f__err { min-height: 0; color: var(--err); font-size: 0.875rem; line-height: 1.4; }
.f__err:empty { display: none; }

.tel { display: flex; gap: 8px; }
.tel select {
  flex: none;
  width: auto;
  padding-right: 34px;
  -webkit-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8B09D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.tel input { flex: 1; min-width: 0; }

/* menu a tendina con le tacche delle ore */
.pick { position: relative; }
.pick__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.pick__value { color: var(--on-dark-3); min-width: 0; }
.pick.has-value .pick__value { color: var(--on-dark); }
.pick__chev { width: 18px; height: 18px; color: var(--on-dark-2); transition: transform 200ms; }
.pick__btn[aria-expanded="true"] .pick__chev { transform: rotate(180deg); }
.pick__list {
  position: absolute;
  inset: calc(100% + 6px) 0 auto;
  z-index: 3;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  background: var(--ink-3);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
  list-style: none;
}
.pick__list:focus { outline: none; }
.pick__hint { padding: 6px 10px 8px; color: var(--on-dark-3); font-size: 0.8125rem; }
.pick__item { padding: 12px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; }
.pick__item:hover, .pick__item.is-active { background: rgba(255, 210, 31, 0.07); }
.pick__item.is-active { border-color: rgba(255, 210, 31, 0.35); }
.pick__item[aria-selected="true"] { border-color: var(--sun); }
.pick__opt { display: flex; flex-direction: column; gap: 8px; }
.pick__value .pick__opt { flex-direction: row; align-items: center; gap: 12px; }
.pick__opt strong { color: var(--on-dark); }
.hours { display: flex; gap: 3px; }
.hours i { width: 14px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.hours--2 i:nth-child(-n + 2),
.hours--3 i:nth-child(-n + 3),
.hours--6 i:nth-child(-n + 6) { background: var(--sun-grad); }
.hours--3 i:nth-child(4), .hours--6 i:nth-child(7) { background: linear-gradient(90deg, rgba(255, 210, 31, 0.45), rgba(255, 255, 255, 0.1)); }
.pick__value .hours i { width: 9px; height: 8px; }

/* chi ti ha parlato di noi */
.choice__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice__row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .choice__row--3 { grid-template-columns: 1fr; } }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--ink-line-2);
  border-radius: 14px;
  background: var(--ink-3);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms, background-color 180ms;
}
.choice__card .i { width: 20px; height: 20px; color: var(--on-dark-2); }
.choice__opt input:checked + .choice__card { border-color: var(--sun); background: rgba(255, 210, 31, 0.07); }
.choice__opt input:checked + .choice__card .i { color: var(--sun); }
.choice__opt input:focus-visible + .choice__card { box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.2); }
.choice__row.is-invalid .choice__card { border-color: var(--err); }
.ref {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  background: rgba(255, 210, 31, 0.04);
}
.ref[hidden] { display: none; }

.apply__formerr { color: var(--err); font-size: 0.9375rem; }
.apply__formerr:empty { display: none; }
.apply__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.apply__actions .btn { flex: 1; max-width: 320px; padding: 0 18px; white-space: nowrap; font-size: 0.9375rem; }
.apply__back {
  min-height: 48px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--on-dark-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.apply__back:hover { color: var(--on-dark); }
.apply__busy { display: none; }
.is-busy .apply__send { display: none; }
.is-busy .apply__busy { display: inline; }
.btn:disabled { cursor: progress; filter: saturate(0.6); }


/* ==========================================================================
   Animazioni del popup di candidatura
   ========================================================================== */
.apply[open] { animation: apply-in 460ms cubic-bezier(0.2, 1, 0.3, 1) both; }
.apply[open]::backdrop { animation: fade-in 320ms ease both; }
@keyframes apply-in { from { opacity: 0; transform: translateY(28px) scale(0.96); } }
@media (max-width: 600px) { @keyframes apply-in { from { opacity: 0; transform: translateY(56px); } } }
@keyframes fade-in { from { opacity: 0; } }

/* i campi entrano uno dopo l'altro; avanti da destra, indietro da sinistra */
.apply__part:not([hidden]) > * { animation: field-up 480ms var(--ease) backwards; }
.apply__form[data-dir="fwd"] .apply__part:not([hidden]) > * { animation-name: field-fwd; }
.apply__form[data-dir="back"] .apply__part:not([hidden]) > * { animation-name: field-back; }
.apply__part > :nth-child(2) { animation-delay: 60ms; }
.apply__part > :nth-child(3) { animation-delay: 120ms; }
.apply__part > :nth-child(4) { animation-delay: 180ms; }
.apply__part > :nth-child(5) { animation-delay: 240ms; }
.apply__part > :nth-child(6) { animation-delay: 300ms; }
.apply__part > :nth-child(7) { animation-delay: 360ms; }
@keyframes field-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes field-fwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes field-back { from { opacity: 0; transform: translateX(-28px); } }

/* un campo sbagliato fa "no" con la testa */
.f.is-shake { animation: shake 420ms ease; }
@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

/* menu a tendina: si apre dall'alto e le tacche si accendono una dopo l'altra */
.pick__list:not([hidden]) { animation: list-in 240ms var(--ease) both; transform-origin: top center; }
@keyframes list-in { from { opacity: 0; transform: translateY(-8px) scaleY(0.94); } }
.pick__list:not([hidden]) .pick__item { animation: field-up 360ms var(--ease) backwards; }
.pick__list:not([hidden]) .pick__item:nth-of-type(3) { animation-delay: 50ms; }
.pick__list:not([hidden]) .pick__item:nth-of-type(4) { animation-delay: 100ms; }
.pick__list:not([hidden]) .hours i { animation: tick-in 380ms var(--ease) backwards; }
.hours i:nth-child(2) { animation-delay: 40ms; }
.hours i:nth-child(3) { animation-delay: 80ms; }
.hours i:nth-child(4) { animation-delay: 120ms; }
.hours i:nth-child(5) { animation-delay: 160ms; }
.hours i:nth-child(6) { animation-delay: 200ms; }
.hours i:nth-child(7) { animation-delay: 240ms; }
.hours i:nth-child(8) { animation-delay: 280ms; }
@keyframes tick-in { from { opacity: 0.2; transform: scaleY(0.2); } }

.choice__opt input:checked + .choice__card { animation: press 340ms var(--ease); }
.choice__opt input:checked + .choice__card .i { animation: spin-in 500ms cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes press { 40% { transform: scale(0.96); } }
.ref:not([hidden]) { animation: field-up 380ms var(--ease) backwards; }

.apply__busy::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


@keyframes spin-in { from { opacity: 0; transform: rotate(-30deg) scale(0.6); } }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .badge__dot::after { display: none; }
}

/* ==========================================================================
   Propri della pagina webinar
   ========================================================================== */

/* ---------- Pagina ---------- */
.wb { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.wb-top {
  display: flex;
  justify-content: center;
  padding: max(26px, calc(env(safe-area-inset-top, 0px) + 16px)) 20px 0;
}
.wb-top img { width: clamp(124px, 13vw, 156px); height: auto; }

.wb-main {
  position: relative;
  isolation: isolate;
  flex: 1;
  padding: clamp(26px, 5vw, 56px) 0 clamp(52px, 7vw, 88px);
  text-align: center;
}
/* palco: un cono di luce calda dall'alto che si posa sul video */
.wb-main::before {
  content: "";
  position: absolute;
  inset: -120px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 50% 48%, rgba(255, 196, 30, 0.16), transparent 72%),
    conic-gradient(from 180deg at 50% -6%, transparent 160deg, rgba(255, 220, 110, 0.06) 170deg, rgba(255, 220, 110, 0.12) 180deg, rgba(255, 220, 110, 0.06) 190deg, transparent 200deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.wb-wrap { display: flex; flex-direction: column; align-items: center; }

.wb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.wb-title {
  max-width: 16em;
  margin-top: 14px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(1.5rem, 0.95rem + 2.4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.06;
  text-transform: uppercase;
  text-wrap: balance;
}
.wb-title .acc { color: var(--sun); }

.wb-player { max-width: 1000px; margin-top: clamp(22px, 3vw, 34px); }
.wb-player .player { background: radial-gradient(60% 70% at 50% 40%, #1d1a12, #050504); }
/* niente minuti nel player: non si deve poter calcolare quando compare il tasto */
.wb-player .vp__time { display: none; }

/* ---------- Sotto il video: riquadro dello sblocco e tasto ----------
   --p va da 0 a 1 (minuti guardati / minuto di sblocco): lo scrive js/player.js sul blocco .wb-gate */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.wb-gate { --p: 0; width: 100%; max-width: 1000px; margin-top: 20px; transition: --p 700ms linear; }

.wb-unlock {
  position: relative;
  padding: 18px 22px 12px;
  text-align: left;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 210, 31, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(26, 24, 19, 0.92), rgba(12, 11, 9, 0.92));
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.wb-unlock__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 16px; }

/* lucchetto dentro un anello che si riempie */
.wb-unlock__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--sun) calc(var(--p) * 360deg), rgba(255, 210, 31, 0.14) 0);
  box-shadow: 0 0 24px -6px rgba(255, 200, 40, calc(0.15 + var(--p) * 0.5));
}
.wb-unlock__ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink-2);
  transition: background 400ms var(--ease);
}
.wb-unlock__ring > .i { position: relative; width: 22px; height: 22px; color: var(--sun); stroke-width: 2.2; }
.wb-unlock .wb-unlock__open { display: none; }
.wb-gate:not(.is-locked) .wb-unlock__lock { display: none; }
.wb-gate:not(.is-locked) .wb-unlock__open { display: block; }
.wb-gate:not(.is-locked) .wb-unlock__ring::before { background: var(--sun-grad); }
.wb-gate:not(.is-locked) .wb-unlock__ring > .i { color: var(--on-sun); }
.wb-gate.is-near .wb-unlock__lock { animation: wb-wiggle 2.6s var(--ease) infinite; }

.wb-unlock__title {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1875rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--on-dark);
}
.wb-unlock__title .acc { color: var(--sun); }
.wb-unlock__sub { margin: 4px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--on-dark-2); }

/* minuti che mancano */
.wb-unlock__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 210, 31, 0.3);
  border-radius: var(--r-pill);
  background: rgba(255, 210, 31, 0.08);
  color: var(--sun);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wb-unlock__chip .i { width: 16px; height: 16px; stroke-width: 2.2; }
.wb-unlock__chip-ok { display: none; }
.wb-gate:not(.is-locked) .wb-unlock__chip { border-color: transparent; background: var(--sun-grad); color: var(--on-sun); }
.wb-gate:not(.is-locked) .wb-unlock__chip-wait { display: none; }
.wb-gate:not(.is-locked) .wb-unlock__chip-ok { display: block; stroke-width: 2.8; }

/* barra fino al minuto di sblocco, con il lucchetto in fondo */
.wb-unlock__track {
  position: relative;
  height: 10px;
  margin: 20px 16px 0 0;
  border-radius: var(--r-pill);
  background: rgba(255, 210, 31, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, 0.1);
}
.wb-unlock__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * 100%);
  overflow: hidden;
  border-radius: inherit;
  background: var(--sun-grad);
  box-shadow: 0 0 18px rgba(255, 200, 40, 0.55);
}
/* riflesso che scorre mentre il video va */
.wb-unlock__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  background-size: 220px 100%;
  background-repeat: no-repeat;
  opacity: 0;
}
.wb-gate.is-playing .wb-unlock__fill::after { opacity: 1; animation: wb-sheen 2.2s linear infinite; }
.wb-unlock__tick {
  position: absolute;
  top: 50%;
  left: calc(var(--x) * 100%);
  width: 2px;
  height: 16px;
  margin: -8px 0 0 -1px;
  border-radius: 2px;
  background: rgba(255, 210, 31, 0.22);
}
.wb-unlock__tick.is-passed { background: rgba(20, 14, 0, 0.45); height: 6px; margin-top: -3px; }
.wb-unlock__dot {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--sun-hi);
  box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.22), 0 0 18px rgba(255, 210, 31, 0.8);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.wb-gate.is-started.is-locked .wb-unlock__dot { opacity: 1; }
.wb-gate.is-playing .wb-unlock__dot { animation: wb-beat 1.6s var(--ease) infinite; }
.wb-unlock__goal {
  position: absolute;
  top: 50%;
  left: 100%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 210, 31, 0.4);
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--sun);
  box-shadow: 0 0 0 5px rgba(10, 10, 9, 0.9);
}
.wb-unlock__goal .i { width: 16px; height: 16px; stroke-width: 2.4; }
.wb-gate.is-near .wb-unlock__goal { animation: wb-glow 1.8s ease-in-out infinite; }
.wb-gate:not(.is-locked) .wb-unlock__goal { border-color: transparent; background: var(--sun-grad); color: var(--on-sun); }
.wb-gate:not(.is-locked) .wb-unlock__goal .i { stroke-width: 3; }

.wb-unlock__marks { position: relative; height: 18px; margin: 12px 16px 0 0; padding: 0; list-style: none; }
.wb-unlock__marks li {
  position: absolute;
  left: calc(var(--x) * 100%);
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-dark-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 300ms var(--ease);
}
.wb-unlock__marks li:first-child { transform: none; }
.wb-unlock__marks li:last-child { color: var(--sun); font-weight: 800; }
.wb-unlock__marks li.is-passed { color: var(--on-dark); }

/* tasto ancora chiuso: si vede, ma con il lucchetto */
.wb-locked { display: grid; justify-items: center; gap: 10px; max-width: 460px; margin: 22px auto 0; }
.wb-locked[hidden] { display: none; }
.wb-locked__btn {
  padding: 0 28px;
  border: 1px dashed rgba(255, 210, 31, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-dark-3);
  cursor: not-allowed;
}
.wb-locked__btn:hover { transform: none; border-color: rgba(255, 210, 31, 0.6); color: var(--on-dark-2); }
.wb-locked__btn .i { width: 18px; height: 18px; color: var(--sun); stroke-width: 2.4; }
.wb-locked__hint { margin: 0; font-size: 0.8125rem; color: var(--on-dark-3); text-align: center; }
.wb-gate.is-nudge .wb-unlock { animation: shake 420ms ease; }
.wb-gate.is-nudge .wb-locked__btn .i { animation: wb-wiggle 600ms var(--ease); }
.wb-gate.is-nudge .wb-locked__hint { color: var(--sun); }
.wb-gate.is-nudge .wb-unlock__chip { animation: press 420ms var(--ease); border-color: var(--sun); }

/* momento dello sblocco: scintille dal lucchetto e anello che si allarga */
.wb-unlock__burst { position: absolute; inset: 50% auto auto 50%; pointer-events: none; }
.wb-unlock__burst i {
  position: absolute;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0;
}
.wb-unlock__burst i:nth-child(1) { --a: 0deg; }
.wb-unlock__burst i:nth-child(2) { --a: 45deg; }
.wb-unlock__burst i:nth-child(3) { --a: 90deg; }
.wb-unlock__burst i:nth-child(4) { --a: 135deg; }
.wb-unlock__burst i:nth-child(5) { --a: 180deg; }
.wb-unlock__burst i:nth-child(6) { --a: 225deg; }
.wb-unlock__burst i:nth-child(7) { --a: 270deg; }
.wb-unlock__burst i:nth-child(8) { --a: 315deg; }
.wb-gate.is-unlocked .wb-unlock__burst i { animation: wb-spark 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.wb-gate.is-unlocked .wb-unlock__ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--sun);
  animation: wb-ring 1s ease-out both;
}
.wb-gate.is-unlocked .wb-unlock__ring > .i { animation: spin-in 600ms cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.wb-gate.is-unlocked .wb-unlock { animation: wb-flash 1.2s var(--ease); }

@keyframes wb-sheen { from { background-position: -220px 0; } to { background-position: calc(100% + 220px) 0; } }
@keyframes wb-beat { 50% { box-shadow: 0 0 0 8px rgba(255, 210, 31, 0.08), 0 0 24px rgba(255, 210, 31, 0.9); } }
@keyframes wb-glow { 50% { box-shadow: 0 0 0 5px rgba(10, 10, 9, 0.9), 0 0 22px rgba(255, 210, 31, 0.7); } }
@keyframes wb-wiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-12deg); } 92% { transform: rotate(10deg); } 96% { transform: rotate(-4deg); } }
@keyframes wb-flash { 30% { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.15), 0 24px 60px -30px rgba(0, 0, 0, 0.9); } }

/* finché il video non c'è, il riquadro non serve */
.wb:has(.player.is-soon) .wb-unlock { display: none; }
.wb-gate .gate__open { max-width: 460px; margin: 22px auto 0; }

@media (max-width: 560px) {
  .wb-unlock { padding: 16px 16px 10px; }
  .wb-unlock__head { grid-template-columns: auto 1fr; gap: 10px 14px; }
  .wb-unlock__ring { width: 48px; height: 48px; }
  .wb-unlock__chip { grid-column: 2; justify-self: start; padding: 6px 11px; }
  .wb-unlock__marks li:not(:first-child):not(:last-child) { display: none; }
}


/* ---------- Finestra di prenotazione ---------- */
.book { padding: 0; }
/* barra del marchio in alto, oro */
.book__brand {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: max(8px, env(safe-area-inset-top, 0px)) 10px 8px 22px;
  background: var(--sun-grad);
  color: var(--on-sun);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
.book__brand img { width: 118px; height: auto; }
.book__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 14, 0, 0.08);
  color: var(--on-sun);
  cursor: pointer;
  transition: background-color 180ms;
}
.book__close:hover { background: rgba(20, 14, 0, 0.16); }
.book__close .i { width: 20px; height: 20px; }
.book .apply__form { padding-top: 26px; }
.book__head { padding-right: 0; }
.book__demo {
  padding: 8px 12px;
  border: 1px dashed rgba(255, 210, 31, 0.4);
  border-radius: var(--r-md);
  color: var(--sun);
  font-size: 0.8125rem;
}
.book__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f__help { margin-top: -4px; color: var(--on-dark-3); font-size: 0.875rem; }

/* calendario */
.cal { display: grid; gap: 10px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal__month { font-weight: 700; font-size: 1.0625rem; }
.cal__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink-line-2);
  border-radius: 50%;
  background: var(--ink-3);
  color: var(--on-dark);
  cursor: pointer;
  transition: border-color 180ms, color 180ms;
}
.cal__nav .i { width: 20px; height: 20px; transform: rotate(90deg); }
.cal__nav--next .i { transform: rotate(-90deg); }
.cal__nav:hover:not(:disabled) { border-color: var(--sun); color: var(--sun); }
.cal__nav:disabled { opacity: 0.35; cursor: default; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__week span { color: var(--on-dark-3); font-size: 0.75rem; font-weight: 600; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }
.cal__day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--on-dark-3);
  font: inherit;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.cal__day.is-free {
  border-color: var(--ink-line);
  background: rgba(255, 210, 31, 0.06);
  color: var(--on-dark);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms, transform 160ms;
}
.cal__day.is-free:hover { border-color: var(--sun); transform: translateY(-1px); }
.cal__day[aria-pressed="true"] { border-color: transparent; background: var(--sun-grad); color: var(--on-sun); }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal__day.is-loading { background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 70%) 0 0 / 300% 100%; animation: cal-load 1.2s linear infinite; color: transparent; }
@keyframes cal-load { to { background-position: -150% 0; } }
.cal__msg { color: var(--on-dark-2); font-size: 0.9375rem; }
.cal__retry { padding: 0; border: 0; background: none; color: var(--sun); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* orari */
.slots { display: grid; gap: 10px; padding-top: 4px; }
.slots__title { font-weight: 700; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot {
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: var(--ink-3);
  color: var(--on-dark);
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms, transform 160ms;
}
.slot:hover { border-color: var(--sun); transform: translateY(-1px); }
.slot[aria-pressed="true"] { border-color: transparent; background: var(--sun-grad); color: var(--on-sun); }
.book__tz { color: var(--on-dark-3); font-size: 0.8125rem; }

.cal__day:focus-visible, .slot:focus-visible, .cal__nav:focus-visible, .book__close:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.book__close:focus-visible { outline-color: var(--on-sun); }

/* passo 3: riepilogo dell'orario scelto */
.book__when {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
  background: rgba(255, 210, 31, 0.05);
  font-weight: 600;
}
.book__when .i { width: 20px; height: 20px; flex: none; color: var(--sun); }
.book__when span { flex: 1; }
.book__change { min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--sun); font: inherit; font-size: 0.875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.book .choice__card { justify-content: center; font-variant-numeric: tabular-nums; }
.book__fallback[hidden] { display: none; }

/* prenotazione confermata */
.book__done {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px max(22px, env(safe-area-inset-right, 0px)) max(32px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  text-align: center;
}
.book__done[hidden] { display: none; }
.book__ok { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sun-grad); color: var(--on-sun); box-shadow: 0 0 0 10px rgba(255, 210, 31, 0.12); }
.book__ok .i { width: 34px; height: 34px; stroke-width: 2.6; }
.book__done-when { color: var(--sun); font-size: 1.125rem; font-weight: 700; }
.book__done .btn { max-width: 320px; margin-top: 8px; }
.book__done:not([hidden]) .book__ok { animation: spin-in 600ms cubic-bezier(0.2, 1.3, 0.4, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .wb-gate, .cal__day, .slot { transition: none; }
  .wb-gate .wb-unlock, .wb-unlock__fill::after, .wb-unlock__dot, .wb-unlock__goal, .wb-unlock__lock, .wb-unlock__burst, .wb-unlock__ring::after, .wb-unlock__ring > .i, .wb-locked__btn .i { animation: none !important; }
  .cal__day.is-loading { animation: none; }
}
.cal.is-shake, .choice__row.is-shake { animation: shake 420ms ease; }
/* "Prenota la chiamata" su una riga anche sui telefoni stretti */
@media (max-width: 420px) {
  .wb-gate .btn { padding-inline: 20px 14px; font-size: 0.9375rem; letter-spacing: 0.04em; white-space: nowrap; }
}
/* tasti in fondo ai passi: sui telefoni il tasto principale va a tutta larghezza e "Indietro" sotto */
@media (max-width: 480px) {
  .book .apply__actions { flex-direction: column-reverse; align-items: stretch; gap: 4px; }
  .book .apply__actions .btn { max-width: none; }
  .book .apply__back { align-self: center; }
}

/* ==========================================================================
   Sfondo animato: luci sfocate che fluttuano, due coni di luce che oscillano,
   pulviscolo dorato che sale e un alone che respira. Si vede, ma resta dietro al video.
   ========================================================================== */
.wb-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wb-top, .wb-main { position: relative; z-index: 1; }
.wb-bg > span { position: absolute; }

.wb-bg__glow {
  left: 50%;
  top: 36%;
  width: min(1200px, 150vw);
  aspect-ratio: 1.6;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 196, 30, 0.2), transparent 72%);
  animation: wb-breathe 7s ease-in-out infinite;
}

/* coni di luce dall'alto, bordi sfumati */
.wb-bg__beam {
  top: -6%;
  width: min(820px, 120vw);
  height: 120%;
  background: conic-gradient(from 180deg at 50% 0%, transparent 163deg, rgba(255, 222, 120, 0.13) 174deg, rgba(255, 222, 120, 0.22) 180deg, rgba(255, 222, 120, 0.13) 186deg, transparent 197deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 88%);
          mask-image: linear-gradient(to bottom, #000 30%, transparent 88%);
  transform-origin: 50% 0;
}
.wb-bg__beam--l { left: 16%; translate: -50% 0; rotate: -16deg; animation: wb-sway-l 9s ease-in-out infinite alternate; }
.wb-bg__beam--r { right: 16%; translate: 50% 0; rotate: 16deg; animation: wb-sway-r 12s ease-in-out infinite alternate; }

/* luci sfocate che fluttuano piano (bokeh) */
.wb-bg__orb {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 70, 0.5), rgba(255, 190, 30, 0.14) 45%, transparent 70%);
  filter: blur(6px);
  mix-blend-mode: screen;
  opacity: 0.55;
}
.wb-bg__orb--1 { left: 6%;  top: 22%; width: 180px; height: 180px; animation: wb-float-1 12s ease-in-out infinite alternate; }
.wb-bg__orb--2 { right: 8%; top: 14%; width: 120px; height: 120px; animation: wb-float-2 15s ease-in-out infinite alternate; opacity: 0.45; }
.wb-bg__orb--3 { left: 22%; bottom: 10%; width: 240px; height: 240px; animation: wb-float-3 18s ease-in-out infinite alternate; opacity: 0.35; }
.wb-bg__orb--4 { right: 18%; bottom: 18%; width: 90px; height: 90px; animation: wb-float-1 10s ease-in-out infinite alternate-reverse; opacity: 0.6; }
.wb-bg__orb--5 { left: 48%; top: 6%; width: 70px; height: 70px; animation: wb-float-2 9s ease-in-out infinite alternate-reverse; opacity: 0.5; }

/* pulviscolo: puntini dorati che salgono, su due strati a velocità diverse */
.wb-bg__dust {
  inset: 0;
  background-image:
    radial-gradient(2.6px 2.6px at 12% 18%, rgba(255, 228, 140, 0.95), transparent 60%),
    radial-gradient(1.8px 1.8px at 32% 62%, rgba(255, 228, 140, 0.8), transparent 60%),
    radial-gradient(3px 3px at 58% 28%, rgba(255, 228, 140, 0.9), transparent 60%),
    radial-gradient(1.8px 1.8px at 74% 76%, rgba(255, 228, 140, 0.75), transparent 60%),
    radial-gradient(2.6px 2.6px at 88% 40%, rgba(255, 228, 140, 0.9), transparent 60%),
    radial-gradient(1.6px 1.6px at 46% 88%, rgba(255, 228, 140, 0.7), transparent 60%),
    radial-gradient(2.2px 2.2px at 6% 70%, rgba(255, 228, 140, 0.8), transparent 60%),
    radial-gradient(1.6px 1.6px at 66% 8%, rgba(255, 228, 140, 0.7), transparent 60%);
  background-size: 340px 340px;
  animation: wb-rise 26s linear infinite;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 35%, transparent 85%);
          mask-image: radial-gradient(80% 70% at 50% 45%, #000 35%, transparent 85%);
}
.wb-bg__dust--far { background-size: 220px 220px; opacity: 0.5; animation: wb-rise-far 44s linear infinite; filter: blur(0.5px); }

@keyframes wb-breathe { 50% { opacity: 0.6; scale: 1.12; } }
@keyframes wb-sway-l { to { rotate: -8deg; } }
@keyframes wb-sway-r { to { rotate: 9deg; } }
@keyframes wb-rise { to { background-position: 0 -340px; } }
@keyframes wb-rise-far { to { background-position: 0 -220px; } }
@keyframes wb-float-1 { to { translate: 9vw -7vh; scale: 1.15; } }
@keyframes wb-float-2 { to { translate: -8vw 9vh; scale: 0.85; } }
@keyframes wb-float-3 { to { translate: 7vw -10vh; scale: 1.1; } }

/* ==========================================================================
   Prenotazione più viva
   ========================================================================== */

/* tappe in alto: Dati → Data e ora → Domande, unite da una linea che si riempie */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -6px 6px;
  padding: 0;
  list-style: none;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(100% / 6);
  height: 2px;
  border-radius: 2px;
}
.steps::before { right: calc(100% / 6); background: rgba(255, 255, 255, 0.1); }
.steps::after { width: calc((100% - 100% / 3) * var(--p, 0)); background: var(--sun-grad); transition: width 500ms var(--ease); }
.steps__btn {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--on-dark-3);
  font: inherit;
  cursor: default;
}
.steps__item.is-done .steps__btn { cursor: pointer; color: var(--on-dark-2); }
.steps__item.is-done .steps__btn:hover .steps__dot { box-shadow: 0 0 0 5px rgba(255, 210, 31, 0.18); }
.steps__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-line-2);
  border-radius: 50%;
  background: var(--ink-3);
  transition: background-color 300ms, border-color 300ms, box-shadow 300ms, transform 300ms var(--ease);
}
.steps__dot .i { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity 200ms, transform 300ms var(--ease); }
.steps__check { opacity: 0; transform: scale(0.4); stroke-width: 2.6; }
.steps__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.steps__item.is-current .steps__dot { border-color: var(--sun); color: var(--sun); box-shadow: 0 0 0 6px rgba(255, 210, 31, 0.1), 0 0 24px rgba(255, 200, 40, 0.25); transform: scale(1.06); }
.steps__item.is-current .steps__label { color: var(--sun); }
.steps__item.is-done .steps__dot { border-color: transparent; background: var(--sun-grad); color: var(--on-sun); }
.steps__item.is-done .steps__ico { opacity: 0; transform: scale(0.4); }
.steps__item.is-done .steps__check { opacity: 1; transform: none; }
.steps__btn:focus-visible { outline: none; }
.steps__btn:focus-visible .steps__dot { outline: 3px solid var(--sun); outline-offset: 3px; }

/* campi con icona a sinistra e spunta oro quando sono giusti */
.f__field { position: relative; display: block; }
.f__field input { padding-left: 46px; padding-right: 44px; }
.f__ico { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; translate: 0 -50%; color: var(--on-dark-3); pointer-events: none; transition: color 200ms; }
.f__field:focus-within .f__ico { color: var(--sun); }
.f__ok {
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--sun-grad);
  color: var(--on-sun);
  opacity: 0;
  scale: 0.4;
  transition: opacity 200ms, scale 320ms cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}
.f__ok .i { width: 14px; height: 14px; stroke-width: 3; }
.f.is-valid:not(.is-invalid) .f__ok { opacity: 1; scale: 1; }
.f.is-valid:not(.is-invalid) input { border-color: rgba(255, 210, 31, 0.45); }

/* suggerimenti rapidi sotto Obiettivo e Motivazione */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-pill);
  background: rgba(255, 210, 31, 0.04);
  color: var(--on-dark-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms, color 160ms;
}
.chip::before { content: "+"; margin-right: 6px; color: var(--sun); font-weight: 800; }
.chip:hover { border-color: var(--sun); color: var(--on-dark); }
.chip[aria-pressed="true"] { border-color: transparent; background: var(--sun-grad); color: var(--on-sun); }
.chip[aria-pressed="true"]::before { content: "✓"; color: var(--on-sun); }
.chip:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* budget: card con un grafico a tacche che cresce */
.book .choice__card { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 84px; padding: 14px; text-align: left; }
.lvl { display: flex; align-items: flex-end; gap: 4px; height: 22px; }
.lvl i { width: 7px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); transition: background-color 250ms, transform 300ms var(--ease); }
.lvl i:nth-child(1) { height: 30%; }
.lvl i:nth-child(2) { height: 55%; }
.lvl i:nth-child(3) { height: 78%; }
.lvl i:nth-child(4) { height: 100%; }
.lvl--1 i:nth-child(-n + 1), .lvl--2 i:nth-child(-n + 2), .lvl--3 i:nth-child(-n + 3), .lvl--4 i:nth-child(-n + 4) { background: rgba(255, 210, 31, 0.45); }
.choice__opt input:checked + .choice__card .lvl i { background: rgba(255, 255, 255, 0.14); }
.choice__opt input:checked + .choice__card .lvl--1 i:nth-child(-n + 1),
.choice__opt input:checked + .choice__card .lvl--2 i:nth-child(-n + 2),
.choice__opt input:checked + .choice__card .lvl--3 i:nth-child(-n + 3),
.choice__opt input:checked + .choice__card .lvl--4 i:nth-child(-n + 4) { background: var(--sun-grad); }
.choice__opt input:checked + .choice__card .lvl i { animation: tick-in 380ms var(--ease) backwards; }
.choice__opt input:checked + .choice__card .lvl i:nth-child(2) { animation-delay: 60ms; }
.choice__opt input:checked + .choice__card .lvl i:nth-child(3) { animation-delay: 120ms; }
.choice__opt input:checked + .choice__card .lvl i:nth-child(4) { animation-delay: 180ms; }
.choice__card:hover .lvl i { transform: scaleY(1.08); }

/* "Hai scelto …" sotto gli orari */
.book__pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 210, 31, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, 0.3);
  color: var(--on-dark);
  font-weight: 600;
}
.book__pick[hidden] { display: none; }
.book__pick .i { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--sun-grad); color: var(--on-sun); stroke-width: 3; }

/* il tasto per andare avanti si accende quando il passo è completo */
.book [data-book-next], .book [data-book-submit] { transition: transform 200ms, box-shadow 300ms, filter 300ms, opacity 300ms; }
.book [data-book-next]:not(.is-ready), .book [data-book-submit]:not(.is-ready) { filter: saturate(0.55) brightness(0.85); }
.book .is-ready { box-shadow: 0 0 0 6px rgba(255, 210, 31, 0.12), 0 18px 40px -14px rgba(255, 190, 20, 0.7); }
.book .is-ready::after { animation: shine 900ms cubic-bezier(0.4, 0, 0.2, 1) both; }
.book .is-ready .btn__go { animation: nudge 2.4s var(--ease) 600ms infinite; }

/* conferma: scintille oro attorno alla spunta */
.book__ok { position: relative; }
.book__burst { position: absolute; inset: 0; pointer-events: none; }
.book__burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0;
}
.book__done:not([hidden]) .book__burst i { animation: wb-spark 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 180ms both; }
.book__burst i:nth-child(1)  { --a: 0deg; }
.book__burst i:nth-child(2)  { --a: 36deg; }
.book__burst i:nth-child(3)  { --a: 72deg; width: 4px; height: 4px; }
.book__burst i:nth-child(4)  { --a: 108deg; }
.book__burst i:nth-child(5)  { --a: 144deg; width: 4px; height: 4px; }
.book__burst i:nth-child(6)  { --a: 180deg; }
.book__burst i:nth-child(7)  { --a: 216deg; width: 4px; height: 4px; }
.book__burst i:nth-child(8)  { --a: 252deg; }
.book__burst i:nth-child(9)  { --a: 288deg; width: 4px; height: 4px; }
.book__burst i:nth-child(10) { --a: 324deg; }
@keyframes wb-spark {
  0%   { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(0.4); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-70px) scale(1); }
}
.book__done:not([hidden]) .book__ok::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--sun);
  animation: wb-ring 1s ease-out 150ms both;
}
@keyframes wb-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* movimento ridotto: sfondo fermo, niente scintille né tasti che ondeggiano */
@media (prefers-reduced-motion: reduce) {
  .wb-bg > span { animation: none !important; }
  .book__burst, .book__done .book__ok::after { display: none; }
}
/* sui telefoni i suggerimenti stanno su una riga che scorre di lato */
@media (max-width: 480px) {
  .chips {
    flex-wrap: nowrap;
    margin-inline: -22px;
    padding: 2px 22px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 28px), transparent 100%);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
}
.book { overflow-x: hidden; }
