/* ==========================================================================
   Hybrid Sales Academy · landing
   Layout: colonna singola mobile-first, bande piene che alternano nero e carta;
   su desktop le teste di sezione vanno a sinistra e i contenuti in griglia.
   ========================================================================== */

/* ---------- 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;
}

/* ---------- Toni delle sezioni ---------- */
.dark {
  background:
    radial-gradient(55% 45% at 100% 0%, rgba(255, 196, 30, 0.09), transparent 70%),
    var(--ink);
  color: var(--on-dark);
}
.dark--alt { background: radial-gradient(55% 45% at 0% 0%, rgba(255, 196, 30, 0.07), transparent 70%), var(--ink-2); }
.light { background: var(--paper); color: var(--on-paper); }
.light--alt { background: var(--paper-2); }

.sec { padding-block: var(--sec-y); overflow-x: clip; } /* le card che entrano di lato non allargano la pagina */
.dark + .dark { border-top: 1px solid var(--ink-line-2); }
.light + .light { border-top: 1px solid var(--paper-line); }

/* ---------- Tipografia di sezione ---------- */
.head { display: grid; gap: 20px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 40px; height: 3px; flex: none; border-radius: 2px; background: currentColor; }
.light .eyebrow { color: var(--sun-ink-2); }

.h2 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(1.75rem, 1.05rem + 3vw, 3.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.acc { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dark .acc {
  color: var(--sun);
  background: var(--sun-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.light .acc { color: var(--sun-ink); }

.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; }
.lead--strong { font-weight: 700; }
.dark .muted, .dark .lead { color: var(--on-dark-2); }
.light .muted { color: var(--on-paper-2); }
.dark .lead strong, .dark .muted strong, .dark .lead--hi { color: var(--on-dark); }

.note { font-size: 0.875rem; text-align: center; }
.dark .note { color: var(--on-dark-3); }

/* ---------- 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); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 260ms, border-color 260ms;
}
.nav.is-scrolled {
  background: rgba(10, 10, 9, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--ink-line-2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.nav__brand { display: inline-flex; padding-block: 10px; }
.nav__brand img { width: auto; height: 24px; }
.nav__links { display: none; }
@media (min-width: 980px) {
  .nav__brand img { height: 28px; }
  .nav__links { display: flex; gap: 30px; margin-left: auto; margin-right: 6px; }
  .nav__links a {
    padding-block: 10px;
    color: var(--on-dark-2);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms;
  }
  .nav__links a:hover { color: var(--sun); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 64px));
  padding-bottom: clamp(56px, 8vw, 100px);
  text-align: center;
  background:
    radial-gradient(40% 30% at 50% 58%, rgba(255, 190, 20, 0.16), transparent 70%),
    radial-gradient(55% 45% at 100% 0%, rgba(255, 196, 30, 0.12), transparent 70%),
    var(--ink);
}
.hero .wrap { display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
/* su mobile il badge resta su una riga: carattere meno largo e dimensione che segue lo schermo
   (64px = margini + pallino; 29 = larghezza della frase in em) */
@media (max-width: 640px) {
  .badge { gap: 8px; font-stretch: 100%; letter-spacing: 0.04em; white-space: nowrap; font-size: min(0.8125rem, calc((100vw - 64px) / 29)); }
}
.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; }
}

.hero__title {
  max-width: 15em;
  margin-top: 22px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(1.875rem, 0.9rem + 4.7vw, 4.75rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* su mobile il titolo va su tre righe fisse: la dimensione segue la larghezza dello schermo
   perché "Il lavoro da remoto" stia sempre su una riga */
.br-m { display: none; }
@media (max-width: 640px) {
  .br-m { display: inline; }
  .hero__title {
    max-width: none;
    font-stretch: 100%;
    font-size: calc((100vw - 40px) / 12.8);
    line-height: 1.1;
  }
}
.hl {
  padding: 0 0.14em;
  border-radius: 0.12em;
  background: var(--sun-grad);
  color: var(--on-sun);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* sempre affiancate e su una riga: su schermi stretti si rimpicciolisce il testo, non va a capo */
.pills { display: flex; justify-content: center; gap: 12px; width: 100%; margin-top: 28px; }
.pill {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 9px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-pill);
  background: rgba(255, 210, 31, 0.05);
  font-weight: 600;
  line-height: 1.3;
}
@media (max-width: 640px) {
  .pills { gap: 6px; }
  .pill {
    flex: none;
    gap: 7px;
    padding: 6px 12px 6px 6px;
    white-space: nowrap;
    letter-spacing: -0.01em;
    /* 146px = margini della pagina + pillole senza testo; 21 = larghezza dei due testi in em */
    font-size: min(1rem, calc((100vw - 146px) / 21));
  }
  .pill .tick { width: 20px; height: 20px; }
  .pill .tick .i { width: 12px; height: 12px; }
}
.tick {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--sun-grad);
  color: var(--on-sun);
}
.tick .i { width: 15px; height: 15px; stroke-width: 3; }

.hero__lead {
  max-width: 42ch;
  margin-top: 30px;
  color: var(--on-dark-2);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
}
.hero__lead strong { color: var(--on-dark); }

/* ---------- 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; }
}

/* ---------- Candidatura bloccata dalla presentazione ---------- */
.gate { width: 100%; max-width: 560px; margin-top: 32px; }
.gate__locked {
  padding: 22px clamp(18px, 4vw, 28px);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  background: rgba(10, 10, 9, 0.6);
  text-align: left;
}
.gate__title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; }
.gate__title .i { color: var(--sun); width: 20px; height: 20px; }
.gate__text { margin-top: 6px; color: var(--on-dark-2); font-size: 0.9375rem; }
.gate__bar { height: 8px; margin-top: 18px; border-radius: var(--r-pill); background: rgba(255, 210, 31, 0.12); overflow: hidden; }
.gate__bar i {
  display: block;
  height: 100%;
  background: var(--sun-grad);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 600ms linear;
}
.gate__time { margin-top: 8px; color: var(--on-dark-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.gate__open { display: grid; justify-items: center; gap: 14px; }
.gate__note { color: var(--on-dark-2); font-size: 0.875rem; font-weight: 300; letter-spacing: 0.01em; text-align: center; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.gate.is-unlocked .gate__open { animation: rise 600ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Fascia scorrevole ---------- */
.ticker {
  overflow: hidden;
  background: var(--sun-grad);
  color: var(--on-sun);
}
.ticker__track { display: flex; width: max-content; animation: tick 40s linear infinite; /* più frasi, stessa velocità di prima */ }
.ticker.is-waiting .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; align-items: center; padding-block: 17px; }
.ticker__list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-left: 22px;
  white-space: nowrap;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticker__list li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Card su carta ---------- */
.card {
  border: 1px solid var(--paper-line);
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: 0 22px 50px -36px rgba(70, 52, 0, 0.35);
}
.num {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--sun-ink);
  font-variant-numeric: tabular-nums;
}
.t3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; line-height: 1.25; }

/* ---------- Perché leggere ---------- */
.why { display: grid; gap: 16px; }
@media (min-width: 920px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why__item { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 8px 22px; padding: clamp(24px, 3vw, 32px); }
.why__item .num { grid-row: span 2; }
.why__item p { color: var(--on-paper-2); }
.chat { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 14px; }
.bubble { max-width: 88%; padding: 14px 18px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.5; }
.bubble--them { justify-self: start; border-bottom-left-radius: 6px; background: var(--paper-2); }
.bubble--you { justify-self: end; border-bottom-right-radius: 6px; background: var(--ink); color: var(--on-dark); }

/* ---------- Cos'è ---------- */
.job { display: grid; gap: 40px; grid-template-areas: "text" "how" "end"; }
.job__text { grid-area: text; display: grid; gap: 18px; }
.job__how { grid-area: how; }
.job__end { grid-area: end; }
@media (min-width: 980px) {
  .job { grid-template-columns: 1fr 1fr; grid-template-areas: "text how" "end how"; column-gap: 64px; row-gap: 32px; align-items: start; }
  .job__end .cta { max-width: none; }
}
.job__text .head { margin-bottom: 4px; }

.how {
  padding: clamp(24px, 3vw, 32px) clamp(18px, 3vw, 30px);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 210, 31, 0.045), rgba(255, 210, 31, 0.01));
}
.how__label {
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.how__list { position: relative; display: grid; gap: 14px; margin-top: 22px; }
.how__list::before, .how__fill {
  content: "";
  position: absolute;
  left: 25px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: var(--ink-line-2);
}
.how__fill { z-index: 0; background: var(--sun); transform: scaleY(var(--p, 0)); transform-origin: top; pointer-events: none; }
.how__step { position: relative; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 16px; }
.how__ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink-line-2);
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--on-dark-2);
  transition: background-color 300ms, color 300ms, border-color 300ms, box-shadow 300ms;
}
.how__box {
  min-width: 0;
  padding: 15px 20px;
  border: 1px solid var(--ink-line-2);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  transition: border-color 300ms, background-color 300ms;
}
.how__name {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 300ms;
}
.how__box p { margin-top: 4px; color: var(--on-dark-2); line-height: 1.5; }

/* setter e closer sono il cuore del flusso */
.how__step--key .how__ico,
.how.is-armed .how__step--key.is-on .how__ico {
  border-color: transparent;
  background: var(--sun-grad);
  color: var(--on-sun);
  box-shadow: 0 0 0 7px rgba(255, 210, 31, 0.12);
}
.how__step--key .how__box,
.how.is-armed .how__step--key.is-on .how__box { border-color: rgba(255, 210, 31, 0.7); background: rgba(255, 210, 31, 0.06); }
.how__step--key .how__name,
.how.is-armed .how__step--key.is-on .how__name { color: var(--sun); }

/* allo scroll i passaggi si accendono uno dopo l'altro */
.how.is-armed .how__step--key:not(.is-on) .how__ico { border-color: var(--ink-line-2); background: var(--ink-2); color: var(--on-dark-2); box-shadow: none; }
.how.is-armed .how__step--key:not(.is-on) .how__box { border-color: var(--ink-line-2); background: var(--ink-2); }
.how.is-armed .how__step--key:not(.is-on) .how__name { color: var(--on-dark); }
.how.is-armed .how__step.is-on:not(.how__step--key) .how__ico { border-color: rgba(255, 210, 31, 0.7); color: var(--sun); }

.callout {
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 32px);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  background: rgba(255, 210, 31, 0.03);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
}
.callout em { font-style: normal; color: var(--sun); }
.job__end .cta { margin-top: 24px; }

/* ---------- I due ruoli ---------- */
.roles { display: grid; gap: 20px; }
@media (min-width: 880px) { .roles { grid-template-columns: 1fr 1fr; } }
.role { min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 36px); border-radius: var(--r-xl); }
.role--setter { background: var(--ink); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(20, 15, 0, 0.5); }
.role--closer { background: var(--card); border: 1px solid var(--paper-line); box-shadow: 0 22px 50px -36px rgba(70, 52, 0, 0.35); }
.role__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.tile {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 16px;
  background: var(--sun-grad);
  color: var(--on-sun);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.tile .i { width: 26px; height: 26px; }
.tag {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--sun-grad);
  color: var(--on-sun);
  font-family: var(--f-display);
  font-stretch: 112%;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 479px) { .tag { padding: 8px 12px; font-size: 0.6875rem; letter-spacing: 0.08em; } }
.role__name {
  margin-top: 6px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.role__line { font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
.role--setter .role__line { color: var(--sun); }
.role--closer .role__line { color: var(--sun-ink); }
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 14px; line-height: 1.5; }
.checks .tick { margin-top: -1px; }
.role__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 20px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.role--setter .role__meta { border-top: 1px solid var(--ink-line-2); color: var(--on-dark-2); }
.role--closer .role__meta { border-top: 1px solid var(--paper-line); color: var(--on-paper-2); }
@media (max-width: 459px) { .role__meta { flex-direction: column; } }
@media (min-width: 460px) { .role__meta span + span::before { content: "·"; margin-right: 12px; } }

/* ---------- Le richieste delle aziende ---------- */
/* bacheca: i messaggi delle aziende dentro una piccola finestra di chat, sparsi e un po' ruotati */
.board { display: grid; max-width: 520px; margin-inline: auto; padding-block: 8px; }
.shot { position: relative; width: 96%; }
.shot:nth-child(odd) { justify-self: start; --r: -1.5deg; }
.shot:nth-child(even) { justify-self: end; --r: 1.5deg; }
.shot + .shot { margin-top: 22px; }
.chat {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: #111b21;
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(var(--r));
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}
.shot:hover { z-index: 5; }
.shot:hover .chat { transform: rotate(0deg) scale(1.03); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 210, 31, 0.5); }
.chat__top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f6f5f4; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.chat__avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #dfe5e7; color: #54656f; }
.chat__avatar .i { width: 17px; height: 17px; }
.chat__who { display: grid; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.chat__who small { color: #667781; font-size: 0.75rem; font-weight: 400; }
.chat__app { width: 24px; height: 24px; margin-left: auto; }
.chat--wa .chat__app { color: var(--wa); }
.chat--ig .chat__app { color: #d62976; }
.chat--ig .chat__top { background: #fff; }
.chat__body { padding: 16px 16px 18px 20px; }
.chat--wa .chat__body { background: #efe7dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23b9a98f' stroke-opacity='.28' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M14 20c0-5 4-8 9-8s9 3 9 8-4 8-9 8l-5 3 1-4c-3-1-5-4-5-7z'/%3E%3Ccircle cx='78' cy='22' r='6'/%3E%3Cpath d='M96 14l6 6m0-6-6 6'/%3E%3Cpath d='M30 70l6-10 6 10z'/%3E%3Cpath d='M70 64c4-6 12-6 16 0'/%3E%3Ccircle cx='100' cy='78' r='3'/%3E%3Cpath d='M12 100h14m-7-7v14'/%3E%3Cpath d='M52 98c0-4 3-6 6-6s6 2 6 6-3 6-6 6-6-2-6-6z'/%3E%3Cpath d='M84 104l8-8 8 8'/%3E%3C/svg%3E") 0 0 / 120px 120px; }
.chat__time { display: block; margin-bottom: 10px; color: #8e8e8e; font-size: 0.6875rem; font-weight: 600; text-align: center; }
.chat__bubble { position: relative; display: block; width: 94%; }
.chat__bubble img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .shot { width: 98%; }
  .chat__top { padding-block: 9px; }
  .chat__body { padding: 12px 12px 14px 16px; }
  .chat__bubble { width: 97%; }
}
.chat--wa .chat__bubble img { filter: drop-shadow(0 1px 0.5px rgba(11, 20, 26, 0.16)); }
/* la codina della bolla di WhatsApp, in basso a sinistra */
.chat--wa .chat__bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 0;
  width: 22px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath d='M22 0v18H3.5C1.4 18 0 17.6 0 17.2 4.6 15.8 7 11.6 7 5V0z' fill='%23fff'/%3E%3C/svg%3E") no-repeat;
}
@media (min-width: 761px) {
  .board { max-width: 940px; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; padding-block: 16px; }
  .shot:nth-child(n) { width: auto; justify-self: stretch; }
  .shot + .shot { margin-top: 0; }
  .shot:nth-child(1) { grid-column: 1 / 7; grid-row: 1; margin-top: 8px; --r: -2.5deg; }
  .shot:nth-child(4) { grid-column: 7 / 12; grid-row: 1 / 3; margin-top: 48px; --r: 2deg; }
  .shot:nth-child(3) { grid-column: 2 / 7; grid-row: 2; margin-top: 40px; --r: 1.5deg; }
  .shot:nth-child(2) { grid-column: 4 / 11; grid-row: 3; margin-top: 8px; --r: -1.5deg; }
}

/* ---------- Se parti da zero ---------- */
.objs { display: grid; gap: 18px; }
@media (min-width: 880px) { .objs { grid-template-columns: 1fr 1fr; } }
.obj {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 8px 18px;
  padding: clamp(24px, 3vw, 30px);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--ink-3), var(--ink) 60%);
  color: var(--on-dark);
  box-shadow: inset 0 4px 0 var(--sun), 0 24px 50px -30px rgba(20, 15, 0, 0.55);
}
.obj__ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 210, 31, 0.4);
  border-radius: 50%;
  background: rgba(255, 210, 31, 0.06);
  color: var(--sun);
}
.obj__if {
  display: block;
  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;
}
.obj__q {
  display: block;
  margin-top: 4px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}
.obj > p:last-child { grid-column: 1 / -1; margin-top: 10px; color: var(--on-dark-2); }
.objs__end {
  margin-top: clamp(36px, 5vw, 52px);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* ---------- Cosa trovi qui / Dopo la candidatura ---------- */
.split { display: grid; gap: 8px; }
@media (min-width: 980px) {
  .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .split > .head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
}
.rows li { display: grid; grid-template-columns: 76px 1fr; gap: 6px 18px; padding-block: 26px; }
.rows li:first-child { padding-top: 0; }
.rows li + li { border-top: 1px solid var(--paper-line); }
.rows .num { grid-row: span 2; }
.rows h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.rows p { color: var(--on-paper-2); }
.rows__note { margin-left: 94px; padding-top: 22px; border-top: 1px solid var(--paper-line); color: var(--on-paper-2); font-size: 0.9375rem; }

.entry {
  max-width: 820px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: clamp(30px, 5vw, 52px) clamp(22px, 5vw, 52px);
  border: 1px solid rgba(255, 210, 31, 0.28);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 210, 31, 0.14), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  text-align: center;
  box-shadow: 0 40px 80px -40px rgba(20, 15, 0, 0.6);
}
.entry__label {
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.entry h3 {
  margin-top: 14px;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
}
.entry__body { display: grid; gap: 14px; max-width: 58ch; margin: 18px auto 0; color: var(--on-dark-2); }
.entry__body .strong { color: var(--on-dark); font-weight: 700; }
.entry .cta { margin-top: 28px; }

/* ---------- Testimonianze ---------- */
.carousel + .carousel { margin-top: 20px; }
/* storie: una card intera e la successiva che spunta di lato */
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark-2); }
.scroll-hint .i { width: 18px; height: 18px; color: var(--sun); }
.vcard { display: flex; flex: 0 0 min(86%, 540px); flex-direction: column; gap: 10px; min-width: 0; scroll-snap-align: start; }
@media (min-width: 1080px) { .vcard { flex-basis: 58%; } }
.vcard__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: var(--r-lg);
  background: #000;
  box-shadow: inset 0 0 0 1px var(--ink-line);
  isolation: isolate;
}
.vcard__media img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 700ms var(--ease), opacity 260ms;
}
.vcard__media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 9, 0.45), transparent 45%); }
.vcard__media .player__icon { width: 64px; height: 64px; color: var(--on-sun); }
.vcard__media .player__icon svg { width: 24px; height: 24px; transform: translateX(2px); }
.vcard__media:hover img { transform: scale(1.03); opacity: 1; }
.vcard__media: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); }
.vcard__media:focus-visible { outline-offset: 4px; }
.vcard__media.is-soon { color: var(--on-dark-2); font-weight: 600; }
.vcard__name {
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}
.vcard__text { color: var(--on-dark); font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem); font-weight: 700; line-height: 1.45; }
.vnote { margin-top: 6px; color: var(--on-dark-2); font-size: 0.8125rem; text-align: center; opacity: 0.85; }
/* foto della community tra i video e le recensioni */
.community { position: relative; margin: 40px 0 32px; overflow: hidden; border-radius: var(--r-xl); background: var(--ink-3); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--ink-line); }
.community img { display: block; width: 100%; height: auto; }
.community::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 10, 9, 0.55), transparent 35%); }
.community__cap {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  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;
}
@media (max-width: 640px) {
  /* sul telefono un taglio più alto, così le facce non sono minuscole */
  .community { margin: 32px 0 24px; border-radius: var(--r-lg); }
  .community img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
  .community__cap { left: 12px; bottom: 12px; padding: 6px 12px; font-size: 0.625rem; }
}
/* mentre scorre da solo l'aggancio alle card è spento, se no lo scorrimento andrebbe a scatti */
.rail.rail--videos { scroll-snap-type: none; }

/* finestra del video */
.vmodal {
  width: min(100% - 32px, 1000px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.vmodal::backdrop { background: rgba(5, 5, 4, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vmodal__box { position: relative; }
.vmodal__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg); background: #000; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--ink-line); }
.vmodal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vmodal__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  background: rgba(10, 10, 9, 0.7);
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
.vmodal__close:hover { background: var(--sun); color: var(--on-sun); }
.vmodal__close .i { width: 20px; height: 20px; }
.vmodal[open] { animation: fade-in 260ms ease both; }
.vmodal[open]::backdrop { animation: fade-in 260ms ease both; }

.rail {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.review {
  display: flex;
  flex: 0 0 min(86%, 440px);
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-xl);
  background: var(--card);
  color: var(--on-paper);
  scroll-snap-align: start;
}
@media (min-width: 1080px) { .review { flex-basis: 40%; } }
/* una recensione sola: card centrata, niente carosello */
.rail:has(> .review:only-child) { justify-content: center; }
.rail > .review:only-child { flex-basis: min(100%, 560px); }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__mark { width: 40px; height: 32px; color: var(--sun-lo); fill: currentColor; stroke: none; }
.stars__off { color: rgba(0, 0, 0, 0.15); }
.stars { color: var(--sun-lo); font-size: 1rem; letter-spacing: 0.12em; line-height: 1; }
.who small { display: block; margin-top: 2px; color: var(--on-paper-2); font-size: 0.8125rem; font-weight: 500; }
.rating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 22px; color: var(--on-dark-2); font-size: 0.9375rem; }
.rating .stars { color: var(--sun); }
.rating strong { color: var(--on-dark); }
.rating a { color: var(--sun); text-underline-offset: 3px; }
.review blockquote {
  display: -webkit-box;
  margin-top: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  color: #2B2820;
  font-size: 1rem;
  line-height: 1.6;
}
.review.is-open blockquote { display: block; -webkit-line-clamp: unset; }
.review__more { display: none; margin-top: 8px; color: var(--sun-ink-2); font-size: 0.875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.review.is-clamped:not(.is-open) .review__more { display: inline-block; }
.who { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.who__init {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.125rem;
}
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 18px; }
.dot {
  display: grid;
  place-items: center;
  width: 26px; /* 11 recensioni = 11 pallini: stanno su una riga anche a 320 px */
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.28);
  transition: width 260ms var(--ease), background-color 260ms;
}
.dot[aria-current="true"]::before { width: 28px; background: var(--sun); }
.testimonials .note { margin-top: 8px; }

/* ---------- Chi siamo ---------- */
.about { display: grid; gap: 40px; }
@media (min-width: 980px) { .about { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.about__text { display: grid; gap: 18px; }
.about__text .head { margin-bottom: 4px; }
.about__side { display: grid; gap: 16px; }
@media (min-width: 980px) { .about__side { position: sticky; top: calc(var(--nav-h) + 32px); } }
.about__logo { width: clamp(150px, 16vw, 200px); height: auto; margin-bottom: 6px; }
.about__note { display: flex; align-items: flex-start; gap: 10px; padding: 4px 4px 0; color: var(--on-dark-2); font-size: 0.875rem; line-height: 1.5; }
.about__note .i { width: 18px; height: 18px; margin-top: 1px; color: var(--sun); }
.pm { padding: clamp(22px, 3vw, 28px); border: 1px solid var(--ink-line-2); border-radius: var(--r-lg); background: var(--ink-3); }
.pm--yes { border-color: rgba(255, 210, 31, 0.55); background: rgba(255, 210, 31, 0.05); }
.pm__title {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pm__title span { font-weight: 500; color: var(--on-dark-2); }
.pm--yes .pm__title span { color: var(--sun); font-weight: 900; }
.pm p { margin-top: 8px; color: var(--on-dark-2); }
.pm p strong { color: var(--on-dark); }

/* ---------- Per chi è ---------- */
.fit { display: grid; gap: 18px; }
@media (min-width: 880px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__card { padding: clamp(26px, 3vw, 34px); border-radius: var(--r-xl); }
.fit__card h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.fit__card .checks { margin-top: 20px; }
.fit__card--yes {
  border: 1.5px solid var(--sun);
  background: linear-gradient(170deg, rgba(255, 210, 31, 0.09), rgba(255, 210, 31, 0.01) 70%);
}
.fit__card--yes h3 { color: var(--sun); }
.fit__card--no { border: 1px solid var(--ink-line-2); background: rgba(255, 255, 255, 0.015); color: var(--on-dark-3); }
.fit__card--no h3 { color: var(--on-dark-2); }
.cross {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark-3);
}
.cross .i { width: 14px; height: 14px; stroke-width: 2.6; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item { border: 1px solid var(--ink-line-2); border-radius: var(--r-lg); background: var(--ink-2); transition: border-color 260ms; }
.faq__item[open] { border-color: var(--ink-line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ico {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1.5px solid rgba(255, 210, 31, 0.5);
  border-radius: 50%;
  transition: transform 260ms var(--ease), background-color 260ms;
}
.faq__ico::before, .faq__ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--sun);
}
.faq__ico::after { transform: rotate(90deg); }
.faq__item[open] .faq__ico { transform: rotate(45deg); background: rgba(255, 210, 31, 0.08); }
.faq__a { padding: 0 24px 22px; color: var(--on-dark-2); }
.faq__item summary:hover .faq__ico { background: rgba(255, 210, 31, 0.08); }

/* ---------- Footer ---------- */
.footer {
  padding-block: 56px calc(56px + 92px); /* spazio per la CTA fissa su mobile */
  border-top: 1px solid var(--ink-line-2);
  background: var(--ink);
  color: var(--on-dark-3);
  text-align: center;
}
@media (min-width: 900px) { .footer { padding-bottom: 56px; } }
.footer__inner { display: grid; justify-items: center; gap: 22px; }
.footer__logo { width: 150px; height: auto; }
.footer__legal { max-width: 62ch; font-size: 0.9375rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 180ms;
}
.footer__links a:hover { color: var(--sun); }
.footer__links span { color: var(--on-dark-3); }
.footer__copy { font-size: 0.875rem; }

/* ---------- Pagine legali (privacy, cookie, termini) ---------- */
.legal { padding-block: calc(var(--nav-h) + 56px) 80px; }
.legal__wrap { max-width: 780px; }
.legal__title { margin-top: 18px; }
.legal__lead { margin-top: 14px; color: var(--on-dark-2); font-size: 1.125rem; }
.legal__date { margin-top: 8px; color: var(--on-dark-3); font-size: 0.875rem; }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--ink-line-2); }
.legal__tabs a { padding: 9px 16px; border: 1px solid var(--ink-line); border-radius: var(--r-pill); color: var(--on-dark-2); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: color 180ms, border-color 180ms; }
.legal__tabs a:hover { border-color: var(--sun); color: var(--sun); }
.legal__tabs a[aria-current="page"] { border-color: transparent; background: var(--sun-grad); color: var(--on-sun); }
.legal__body { color: var(--on-dark-2); line-height: 1.7; }
.legal__body h2 { margin-top: 40px; color: var(--on-dark); font-family: var(--f-display); font-stretch: 112%; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; }
.legal__body p, .legal__body ul { margin-top: 12px; }
.legal__body ul { display: grid; gap: 8px; padding-left: 1.25em; list-style: disc; }
.legal__body li::marker { color: var(--sun); }
.legal__body strong { color: var(--on-dark); }
.legal__body a, .apply__privacy a { color: var(--sun); text-underline-offset: 3px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark-2); font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: color 180ms; }
.legal__back:hover { color: var(--sun); }
.legal__back .i { width: 18px; height: 18px; }
.apply__privacy { margin-top: 14px; color: var(--on-dark-3); font-size: 0.8125rem; line-height: 1.5; text-align: center; }

/* ---------- CTA fissa (solo mobile) ---------- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: flex;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--ink-line-2);
  background: rgba(10, 10, 9, 0.85);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform 260ms var(--ease);
}
.sticky-cta .btn { flex: 1; min-height: 54px; }
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ==========================================================================
   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__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); }
.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); }

/* ---------- Candidatura inviata: diventa una pagina intera ---------- */
.apply.is-done {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(43, 212, 106, 0.12), transparent 70%),
    radial-gradient(55% 45% at 100% 0%, rgba(255, 196, 30, 0.08), transparent 70%),
    var(--ink);
}
.done { display: grid; justify-items: center; max-width: 600px; margin-inline: auto; padding-top: max(64px, calc(env(safe-area-inset-top, 0px) + 56px)); text-align: center; }
.done[hidden] { display: none; }
.done__check {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--ok);
  color: #04210F;
  box-shadow: 0 0 0 12px rgba(43, 212, 106, 0.14), 0 20px 60px -10px rgba(43, 212, 106, 0.6);
  animation: pop 600ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.done__check .i { width: 44px; height: 44px; stroke-width: 3; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done__title {
  margin-top: 26px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}
.done__title:focus { outline: none; }
.done__sub { max-width: 40ch; margin-top: 12px; color: var(--on-dark-2); font-size: 1.0625rem; }

.dsteps { display: grid; gap: 14px; width: 100%; margin-top: 32px; text-align: left; }
.dstep {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  background: var(--ink-2);
  transition: border-color 300ms, opacity 300ms;
}
.dstep__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sun-grad);
  color: var(--on-sun);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
}
.dstep__n .i { display: none; width: 20px; height: 20px; stroke-width: 3; }
.dstep.is-done .dstep__n { background: var(--ok); color: #04210F; }
.dstep.is-done .dstep__n b { display: none; }
.dstep.is-done .dstep__n .i { display: block; }
/* numero e titolo sulla stessa riga, testo e tasto a tutta larghezza sotto */
.dstep { align-items: center; row-gap: 10px; }
.dstep__body { display: contents; }
.dstep h3 { grid-column: 2; }
.dstep__body > p, .dstep__body > .btn { grid-column: 1 / -1; }
.dstep h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.dstep p { color: var(--on-dark-2); font-size: 0.9375rem; }
.dstep .btn { margin-top: 8px; min-height: 54px; gap: 10px; padding: 0 12px 0 16px; font-size: 0.9375rem; font-stretch: 100%; letter-spacing: 0.01em; white-space: nowrap; }
.dstep .btn__go { width: 30px; height: 30px; }

.btn--wa {
  gap: 10px;
  padding: 0 22px;
  color: var(--on-wa);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%), var(--wa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(37, 211, 102, 0.9), 0 14px 40px -12px rgba(37, 211, 102, 0.6);
}
.btn--wa .i { width: 24px; height: 24px; }
.btn--wa:hover { filter: brightness(1.05); }

.dstep__lock { display: none; position: relative; align-items: center; gap: 8px; color: var(--on-dark-2); font-size: 0.875rem; font-weight: 600; }
.dstep__lock .i { width: 16px; height: 16px; color: var(--sun); }
.dstep.is-locked .dstep__lock { display: flex; }
.dstep.is-locked { border-color: var(--ink-line-2); }
.dstep.is-locked h3, .dstep.is-locked .dstep__body > p:not(.dstep__lock) { opacity: 0.6; }
.dstep.is-locked .btn { opacity: 0.35; filter: grayscale(0.6); pointer-events: none; box-shadow: none; }
.dstep.is-locked .btn::after { display: none; }
.dstep.is-locked .dstep__n { background: rgba(255, 255, 255, 0.08); color: var(--on-dark-2); }
.dstep__timer {
  position: absolute;
  inset: auto 0 -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
}
.dstep.is-counting .dstep__timer { animation: countdown 5s linear forwards; }
@keyframes countdown { to { transform: scaleX(1); } }

/* ==========================================================================
   Animazioni
   Si muove solo ciò che è già leggibile anche fermo; con "Riduci movimento"
   attivo il blocco in fondo al file le porta subito allo stato finale.
   ========================================================================== */

/* ---------- Hero: entrata in sequenza all'apertura ---------- */
.hero > .wrap > * { animation: hero-in 900ms var(--ease) backwards; }
.hero .badge { animation-delay: 60ms; }
.hero .hero__title { animation-delay: 160ms; }
.hero .pills { animation-delay: 520ms; }
.hero .player-wrap { animation-delay: 640ms; }
.hero .hero__lead { animation-delay: 760ms; }
.hero .gate { animation-delay: 860ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }

/* l'evidenziatore passa sopra "quasi nessuno conosce" */
.hero__title .hl {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  animation: hl-sweep 900ms cubic-bezier(0.65, 0, 0.35, 1) 700ms backwards;
}
@keyframes hl-sweep { from { background-size: 0% 100%; color: var(--on-dark); } }

.hero .pill { animation: hero-in 700ms var(--ease) backwards; }
.hero .pill:nth-child(1) { animation-delay: 560ms; }
.hero .pill:nth-child(2) { animation-delay: 660ms; }

/* fascio di luce che segue il mouse, solo su desktop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 205, 50, 0.11), transparent 62%);
  opacity: var(--spot, 0);
  transition: opacity 500ms var(--ease);
}

/* il tasto della hero respira piano */
.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); } }

/* ---------- Teste di sezione ---------- */
.eyebrow::before { transform-origin: left center; }
[data-reveal].is-in .eyebrow::before { animation: grow-x 800ms var(--ease) 150ms backwards; }
@keyframes grow-x { from { transform: scaleX(0); } }

/* parole in oro: un riflesso le attraversa */
.dark [data-reveal].is-in .acc {
  background-image: linear-gradient(100deg, var(--sun-lo) 0%, var(--sun) 30%, #FFF6CC 45%, var(--sun) 60%, var(--sun-hi) 100%);
  background-size: 240% 100%;
  background-position: 0 0;
  animation: shimmer 1.8s var(--ease) 300ms backwards;
}
@keyframes shimmer { from { background-position: 100% 0; } }

/* sulla carta: un tratto di evidenziatore sotto le parole in oro */
.light .acc {
  background-image: linear-gradient(transparent 66%, rgba(255, 210, 31, 0.4) 66%, rgba(255, 210, 31, 0.4) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.light [data-reveal].is-in .acc { animation: marker 900ms var(--ease) 350ms backwards; }
@keyframes marker { from { background-size: 0% 100%; } }

/* ---------- Dettagli che entrano ---------- */
.rows li.is-in .num { animation: num-in 700ms var(--ease) 120ms backwards; }
@keyframes num-in { from { opacity: 0; transform: translateX(-14px); } }
.obj.is-in .obj__ico, .role.is-in .tile { animation: spin-in 700ms cubic-bezier(0.2, 1.3, 0.4, 1) 250ms backwards; }
@keyframes spin-in { from { opacity: 0; transform: rotate(-30deg) scale(0.6); } }
.checks li { animation: none; }
.is-in .checks li { animation: rise 500ms var(--ease) backwards; }
.is-in .checks li:nth-child(1) { animation-delay: 250ms; }
.is-in .checks li:nth-child(2) { animation-delay: 350ms; }
.is-in .checks li:nth-child(3) { animation-delay: 450ms; }
.faq__item[open] .faq__a { animation: rise 420ms var(--ease) backwards; }
.entry.is-in { animation: glow 4s ease-in-out 1.2s infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 40px 80px -40px rgba(20, 15, 0, 0.6), 0 0 0 0 rgba(255, 210, 31, 0); }
  50% { box-shadow: 0 40px 80px -40px rgba(20, 15, 0, 0.6), 0 0 44px -8px rgba(255, 210, 31, 0.35); }
}

/* ---------- Passaggio del mouse (solo dove il mouse c'è) ---------- */
@media (hover: hover) {
  .why__item:hover, .obj:hover, .role:hover, .pm:hover, .fit__card:hover { translate: 0 -6px; }
  .why__item:hover { box-shadow: 0 34px 60px -34px rgba(70, 52, 0, 0.45); }
  .obj:hover { box-shadow: inset 0 4px 0 var(--sun), 0 34px 64px -28px rgba(20, 15, 0, 0.7); }
  .obj__ico, .tile { transition: transform 400ms cubic-bezier(0.2, 1.3, 0.4, 1); }
  .obj:hover .obj__ico, .role:hover .tile { transform: rotate(-8deg) scale(1.08); }
  .pm:hover { border-color: rgba(255, 210, 31, 0.45); }
  .review { transition: translate 320ms var(--ease), box-shadow 320ms var(--ease); }
  .review:hover { translate: 0 -4px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8); }
  .how__step { transition: translate 260ms var(--ease); }
  .how__step:hover { translate: 4px 0; }
  .rows li .num { transition: color 260ms, transform 300ms var(--ease); }
  .rows li:hover .num { transform: translateX(4px); color: var(--sun-lo); }
}

/* ==========================================================================
   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); } }

/* ---------- Candidatura inviata ---------- */
.apply.is-done { animation: fade-in 420ms ease both; }
.done:not([hidden]) > * { animation: field-up 640ms var(--ease) backwards; }
.done > .done__check { animation: pop 640ms cubic-bezier(0.2, 1.4, 0.4, 1) 80ms backwards; }
.done > .done__title { animation-delay: 260ms; }
.done > .done__sub { animation-delay: 360ms; }
.done > .dsteps { animation: none; }
.done:not([hidden]) .dstep { animation: field-up 640ms var(--ease) backwards; }
.done:not([hidden]) .dstep:nth-child(1) { animation-delay: 480ms; }
.done:not([hidden]) .dstep:nth-child(2) { animation-delay: 620ms; }

/* la spunta si disegna, due onde partono e qualche scintilla vola via */
.done__check { position: relative; }
.done__check > .i { stroke-dasharray: 22; animation: draw 520ms var(--ease) 420ms backwards; }
@keyframes draw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
.done__check::before, .done__check::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--ok);
  border-radius: 50%;
  opacity: 0;
  animation: ring 1.5s var(--ease) 380ms;
}
.done__check::after { animation-delay: 640ms; }
@keyframes ring { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(2.5); } }
.done__burst { position: absolute; inset: 0; pointer-events: none; }
.done__burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0;
  animation: spark 1s var(--ease) 420ms;
}
.done__burst i:nth-child(even) { width: 5px; height: 5px; margin: -2.5px; background: var(--ok); }
.done__burst i:nth-child(1) { --a: 0deg; }
.done__burst i:nth-child(2) { --a: 45deg; }
.done__burst i:nth-child(3) { --a: 90deg; }
.done__burst i:nth-child(4) { --a: 135deg; }
.done__burst i:nth-child(5) { --a: 180deg; }
.done__burst i:nth-child(6) { --a: 225deg; }
.done__burst i:nth-child(7) { --a: 270deg; }
.done__burst i:nth-child(8) { --a: 315deg; }
@keyframes spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-82px) scale(0.4); }
}

/* il tasto WhatsApp chiama il tocco finché non viene premuto */
.dstep:not(.is-done) .btn--wa { animation: wa-pulse 2.2s ease-out 1.6s infinite; }
@keyframes wa-pulse {
  0% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(37, 211, 102, 0.9), 0 14px 40px -12px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(37, 211, 102, 0.9), 0 14px 40px -12px rgba(37, 211, 102, 0.6), 0 0 0 16px rgba(37, 211, 102, 0); }
}
.dstep.is-done .dstep__n { animation: pop 500ms cubic-bezier(0.2, 1.4, 0.4, 1); }

/* il passo 2 si sblocca con un lampo d'oro */
.done:not([hidden]) .dstep.is-unlocked:nth-child(n) { animation: unlock 1.2s var(--ease); }
.dstep.is-unlocked .btn { animation: btn-pop 600ms cubic-bezier(0.2, 1.4, 0.4, 1); }
.dstep.is-unlocked .dstep__n { animation: pop 500ms cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes unlock {
  0% { border-color: var(--ink-line-2); box-shadow: 0 0 0 0 rgba(255, 210, 31, 0); }
  30% { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.25), 0 0 60px -10px rgba(255, 210, 31, 0.5); }
  100% { border-color: var(--ink-line); box-shadow: 0 0 0 0 rgba(255, 210, 31, 0); }
}
@keyframes btn-pop { from { transform: scale(0.94); } }

/* chiusura: il popup scende e lo sfondo sfuma */
.apply.is-closing { animation: apply-out 220ms ease-in both; }
.apply.is-closing::backdrop { animation: fade-out 220ms ease-in both; }
@keyframes apply-out { to { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- Comparsa allo scroll ----------
   Si nasconde solo ciò che all'apertura è ancora sotto lo schermo: la pagina è completa anche ferma. */
[data-reveal] {
  transition:
    opacity 700ms var(--ease) var(--d, 0ms),
    transform 800ms var(--ease) var(--d, 0ms),
    translate 320ms var(--ease),
    box-shadow 320ms var(--ease),
    border-color 320ms var(--ease);
}
[data-reveal].is-pre { opacity: 0; transform: translateY(24px); }
[data-reveal="left"].is-pre { transform: translateX(-40px); }
[data-reveal="right"].is-pre { transform: translateX(40px); }
[data-reveal="scale"].is-pre { transform: translateY(16px) scale(0.94); }
[data-reveal="drop"].is-pre { transform: translateY(-56px) scale(1.08); }
[data-reveal="drop"] { transition-timing-function: ease, cubic-bezier(0.2, 1.25, 0.4, 1), var(--ease), var(--ease), var(--ease); }

/* ---------- 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; }
  .ticker__track { width: auto; animation: none; }
  .ticker__list { flex-wrap: wrap; justify-content: center; gap: 8px 0; padding-inline: 16px; }
  .ticker__list[aria-hidden="true"] { display: none; }
}
