/* Stile del sito. I valori (font, colori, bottoni, forme) arrivano da tokens.css: cambiali lì. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.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;
}
:focus-visible { outline: 3px solid var(--blue-neon); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  padding: 12px 18px; border-radius: 999px; background: var(--blue); color: var(--white);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 860px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  line-height: 0.92;
}
.script {
  font-family: var(--font-script);
  font-weight: 400;
  -webkit-text-stroke: var(--script-stroke) currentColor;
  letter-spacing: -0.01em;
  color: var(--blue-neon);
  text-shadow: 0 0 calc(18px * var(--glow-strength)) rgba(var(--blue-rgb), 0.55);
}

/* ---------- Sezioni e titoli ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--anthracite); color: var(--white); }

.section-title {
  font-family: var(--font-body);
  font-weight: var(--heading-weight);
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 20ch;
}
.kicker {
  display: inline-block;
  margin-right: 0.55em;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  color: var(--blue);
  transform: translateY(-0.45em);
}
.section--dark .kicker { color: var(--blue-neon); }
.lead {
  margin: 0 0 28px;
  max-width: 60ch;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted-on-light);
}
.section--dark .lead { color: var(--muted-on-dark); }
.small-title { margin: 0 0 14px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.fineprint { margin: 14px 0 0; font-size: 13px; color: var(--muted-on-dark); }

/* ---------- Bottoni ---------- */
.btn {
  --h: var(--btn-height);
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--h);
  padding: 0 var(--btn-pad-x);
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  font: var(--btn-weight) var(--btn-font-size) / 1.1 var(--font-body);
  text-transform: var(--btn-case);
  letter-spacing: var(--btn-tracking);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) ease, box-shadow var(--dur-base) ease, transform var(--dur-fast) ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn { max-width: 100%; }
.btn__label { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Variante con il cerchio-freccia separato (come nei riferimenti) */
.btn--arrow { padding: 0; background: transparent; box-shadow: none; }
.btn--arrow .btn__label {
  min-height: var(--h);
  padding: 0 var(--btn-pad-x);
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  transition: inherit;
}
.btn__circle {
  display: var(--btn-arrow);
  place-items: center;
  width: var(--h);
  height: var(--h);
  flex: none;
  border-radius: min(var(--btn-radius), 50%);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  transition: inherit;
}
.btn__circle .icon { transition: transform var(--dur-base) var(--ease-out); }
.btn--arrow:hover .btn__circle .icon,
.btn--arrow:focus-visible .btn__circle .icon { transform: rotate(-45deg); }

.btn--primary {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  --btn-shadow: 0 0 0 1px rgba(var(--blue-rgb), 0.5), 0 10px 30px -10px rgba(var(--blue-rgb), calc(0.8 * var(--glow-strength)));
}
.btn--primary:hover {
  --btn-bg: var(--blue-deep);
  --btn-shadow: 0 0 0 1px rgba(var(--blue-rgb), 0.7), 0 0 calc(32px * var(--glow-strength)) rgba(var(--blue-rgb), 0.65);
}
.btn--white { --btn-bg: var(--white); --btn-fg: var(--blue-deep); --btn-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4); }
.btn--white:hover { --btn-bg: #eef3ff; }
.btn--outline-light { --btn-fg: var(--white); --btn-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-shadow: inset 0 0 0 1.5px var(--white); }
.btn--dark { --btn-bg: var(--anthracite); --btn-fg: var(--white); --btn-shadow: 0 12px 30px -14px rgba(21, 24, 28, 0.6); }
.btn--dark:hover { --btn-bg: #000; }
.btn--sm { --h: 44px; --btn-pad-x: 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--block.btn--arrow .btn__label { flex: 1; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: rgba(var(--blue-rgb), 0.6);
  min-height: 44px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px calc(12px + var(--gutter) * 0.6) 0;
  pointer-events: none;
  transition: padding var(--dur-base) var(--ease-out);
}
.site-header__inner {
  pointer-events: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  max-width: calc(var(--container) + 96px);
  margin-inline: auto;
  padding: 7px 7px 7px 10px;
  border-radius: 999px;
  transition: background-color var(--dur-base) ease, box-shadow var(--dur-base) ease, backdrop-filter var(--dur-base) ease;
}
.site-header.is-scrolled { padding-top: 10px; }
.site-header.is-scrolled .site-header__inner {
  background: rgba(29, 32, 37, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; padding-left: 8px; color: var(--white); text-decoration: none; min-height: 44px; }
.brand__name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }

.nav { display: none; }
.nav__list {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.nav__list a {
  display: block; padding: 9px 16px; border-radius: 999px;
  color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background-color var(--dur-fast) ease;
}
.nav__list a:hover { background: rgba(255, 255, 255, 0.12); }

.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav { grid-column: 2; }
.lang-switch {
  display: none; place-items: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 999px;
  color: var(--white); text-decoration: none; text-transform: uppercase;
  font-size: 13px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: background-color var(--dur-fast) ease;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.1); }
.header-apply { display: none; }
.header-telegram .btn__circle { display: none; }
.menu-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: var(--white); cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 419px) {
  .header-telegram__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-telegram .btn__label { padding: 0 14px; }
}
@media (min-width: 640px) {
  .lang-switch { display: grid; }
  .header-telegram .btn__circle { display: var(--btn-arrow); }
}
@media (min-width: 760px) {
  .header-apply { display: inline-flex; }
}
@media (min-width: 1240px) {
  .nav { display: block; }
  .menu-toggle:not(.menu-toggle--close) { display: none; }
}

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(var(--blue-rgb), 0.28), transparent 70%),
    var(--anthracite);
  color: var(--white);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__links { list-style: none; margin: 40px 0 auto; padding: 0; }
.mobile-menu__links a {
  display: block; padding: 8px 0;
  font-family: var(--font-display); text-transform: var(--display-case);
  font-size: clamp(38px, 11vw, 56px); line-height: 1.05;
  color: var(--white); text-decoration: none;
}
.mobile-menu__actions { display: grid; gap: 12px; margin-top: 36px; }
.lang-switch--wide { display: grid; width: 100%; height: 50px; text-transform: none; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 12px; background: var(--paper); }
.hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 108px var(--gutter) 64px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 60% at 78% 38%, #283042 0%, transparent 70%),
    linear-gradient(160deg, #22262c 0%, var(--anthracite) 45%, #16181c 100%);
  color: var(--white);
}
.hero__lights { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__lights span {
  position: absolute; top: var(--t); left: var(--l);
  width: 6px; height: var(--h);
  border-radius: 6px;
  background: linear-gradient(#ffffff, #d4e2ff);
  box-shadow: 0 0 12px rgba(var(--blue-rgb), 0.9), 0 0 calc(44px * var(--glow-strength)) rgba(var(--blue-rgb), 0.55);
  opacity: var(--o);
  animation: breathe 7s ease-in-out infinite;
  animation-delay: var(--dl);
}
.hero__lights span:nth-child(1) { --l: 46%; --t: 5%;  --h: 22%; --o: 0.3;  --dl: 0s; }
.hero__lights span:nth-child(2) { --l: 55%; --t: -4%; --h: 34%; --o: 0.55; --dl: -2s; }
.hero__lights span:nth-child(3) { --l: 63%; --t: 20%; --h: 16%; --o: 0.4;  --dl: -4s; }
.hero__lights span:nth-child(4) { --l: 71%; --t: -2%; --h: 42%; --o: 0.85; --dl: -1s; }
.hero__lights span:nth-child(5) { --l: 82%; --t: 12%; --h: 26%; --o: 0.6;  --dl: -3s; }
.hero__lights span:nth-child(6) { --l: 90%; --t: -3%; --h: 48%; --o: 0.75; --dl: -5s; }
.hero__lights span:nth-child(7) { --l: 97%; --t: 30%; --h: 22%; --o: 0.45; --dl: -2.5s; }
@keyframes breathe { 50% { opacity: calc(var(--o) * 0.45); } }

.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  right: -15%; bottom: -10%; width: 90%; height: 75%;
  background: radial-gradient(closest-side, rgba(var(--blue-rgb), calc(0.5 * var(--glow-strength))), transparent);
}

.hero__content { position: relative; z-index: 2; }
.hero__hello {
  display: inline-block;
  margin: 0 0 4px;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.15;
  transform: rotate(-2deg);
  transform-origin: left bottom;
}
.hero__title { margin: 0 0 22px; font-size: clamp(46px, 5.3vw, 92px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.hero__title .line > span { display: inline-block; }
.hero__text { margin: 0 0 30px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted-on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.hero__proof { display: flex; align-items: center; gap: 12px; }
.hero__proof strong { font-size: 44px; line-height: 1; color: var(--white); }
.hero__proof > span { max-width: 9ch; font-size: 13px; line-height: 1.25; color: var(--muted-on-dark); }
.hero__call { margin-top: 14px; color: var(--white); }
.hero__call .icon { color: var(--blue-neon); }

.hero__visual {
  position: relative; z-index: 1;
  height: clamp(440px, 118vw, 600px);
  margin: 28px calc(-1 * var(--gutter)) 0;
  overflow: hidden;
}
.hero__person {
  position: absolute; left: 50%; top: 0;
  height: 150%;
  translate: -50% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 66%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 66%);
}
.hero__person img { height: 100%; width: auto; max-width: none; }

.float-card {
  position: absolute; z-index: 3;
  border-radius: 20px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.7);
}
.id-card {
  right: var(--gutter); bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  max-width: 270px;
  padding: 10px 18px 10px 10px;
  background: var(--white); color: var(--ink);
}
.id-card__avatar { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; object-position: 50% 18%; }
.id-card__name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.id-card__role { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--muted-on-light); }

.chart-card {
  left: var(--gutter); top: 18px;
  width: 196px; padding: 12px;
  background: rgba(29, 32, 37, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 50px -22px rgba(0, 0, 0, 0.8);
  color: var(--white);
}
.chart-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-bottom: 8px; }
.chart-card__label { white-space: nowrap; }
.chart-card__label { font-size: 12px; font-weight: 600; }
.chart-card__tfs { display: flex; gap: 3px; }
.chart-card__tfs span {
  padding: 2px 5px; border-radius: 6px;
  font-size: 9.5px; font-weight: 600; color: var(--muted-on-dark);
  background: rgba(255, 255, 255, 0.06);
}
.chart-card__tfs .is-on { background: var(--blue); color: var(--white); }
.chart { display: block; width: 100%; height: 76px; overflow: visible; }
.chart__grid path { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__zone { fill: rgba(var(--blue-rgb), 0.2); }
.chart__area { fill: rgba(var(--blue-rgb), 0.12); }
.chart__line {
  fill: none; stroke: var(--blue-neon); stroke-width: 2.5;
  stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(var(--blue-rgb), 0.9));
}
.chart__dot { fill: var(--white); filter: drop-shadow(0 0 5px rgba(var(--blue-rgb), 1)); }
.chart-card__note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted-on-dark); }

.hero__stats {
  position: relative; z-index: 2;
  display: grid; gap: 12px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.hero__stats-title { margin: 0; font-size: 14px; font-weight: 600; }
.hero__stats-list { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.hero__stats-list li { display: grid; justify-items: center; align-content: start; text-align: center; min-width: 0; padding: 0 6px; }
.hero__stats-list li > span { text-wrap: balance; }
.hero__stats-list li + li { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hero__stats-list strong { font-size: clamp(32px, 4vw, 46px); line-height: 1; }
.hero__stats-list li > span { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--muted-on-dark); }

.hero__notch {
  position: absolute; bottom: 0; right: clamp(40px, 16%, 240px); z-index: 4;
  padding: 12px 30px 6px;
  border-radius: 20px 20px 0 0;
  background: var(--paper); color: var(--muted-on-light);
  font-size: 14px; text-decoration: none;
}
.hero__notch::before, .hero__notch::after {
  content: ""; position: absolute; bottom: 0; width: 20px; height: 20px;
}
.hero__notch::before { left: -20px; background: radial-gradient(circle at 0 0, transparent 19.5px, var(--paper) 20px); }
.hero__notch::after { right: -20px; background: radial-gradient(circle at 100% 0, transparent 19.5px, var(--paper) 20px); }

@media (min-width: 980px) {
  .hero__frame {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: 1fr auto;
    column-gap: 24px;
    min-height: max(720px, min(100svh - 24px, 940px));
    padding: 136px clamp(32px, 5vw, 72px) 44px;
  }
  .hero__content { grid-column: 1; grid-row: 1; align-self: center; }
  .hero__visual { grid-column: 2; grid-row: 1 / 3; height: auto; margin: 0; overflow: visible; }
  .hero__person { top: -36px; height: 150%; -webkit-mask-image: none; mask-image: none; }
  .hero__stats {
    grid-column: 1; grid-row: 2;
    display: flex; align-items: center; gap: 24px;
    max-width: 640px; margin-top: 36px; padding: 18px 26px;
  }
  .hero__stats-title { max-width: 9ch; font-size: 16px; line-height: 1.25; }
  .hero__stats-list { display: flex; }
  .hero__stats-list li { padding: 0 22px; min-width: 128px; }
  .id-card { right: -8px; bottom: 56px; }
  .chart-card { left: auto; right: -20px; top: 2%; width: 264px; padding: 14px; }
  .chart { height: 92px; }
}
@media (max-width: 979px) {
  .hero > .hero__frame > .hero__lights { top: auto; bottom: 0; height: 52%; }
  .hero__lights span:nth-child(-n + 2) { display: none; }
}
@media (max-width: 479px) {
  main .btn--arrow, .final__actions .btn { width: 100%; }
  main .btn--arrow .btn__label { flex: 1; }
  main .btn--arrow .btn__circle { display: none; }
}
@media (max-width: 979px) {
  .chart-card { top: auto; bottom: 108px; width: 172px; }
  .chart { height: 64px; }
}
@media (max-width: 699px) {
  .kicker { display: block; margin: 0 0 10px; transform: none; }
}

/* ---------- Contagiri (numeri che rotolano fino al valore) ---------- */
.odo { display: inline-flex; align-items: flex-start; line-height: 1; }
.odo__digit { display: inline-block; height: 1.04em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--od, 0ms); }
.odo__strip > span { display: block; height: 1.04em; line-height: 1.04em; text-align: center; }
.odo__char { display: inline-block; line-height: 1.04em; }

/* ---------- Animazione d'ingresso dell'hero (una sola, al caricamento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__hello { clip-path: inset(-20% 100% -20% 0); }
  .js .hero__title .line > span { transform: translateY(105%); }
  .js .hero__text, .js .hero__actions, .js .hero__call, .js .hero__stats { opacity: 0; transform: translateY(16px); }
  .js .hero__person { opacity: 0; transform: translateY(48px); }
  .js .hero__glow, .js .hero__lights { opacity: 0; }
  .js .float-card { opacity: 0; transform: translateY(18px) scale(0.95); }
  .js .chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .chart__dot { opacity: 0; }

  .is-ready .hero__hello { clip-path: inset(-20% -5% -20% 0); transition: clip-path 1.1s var(--ease-out) 0.15s; }
  .is-ready .hero__title .line > span { transform: none; transition: transform 1s var(--ease-out) 0.25s; }
  .is-ready .hero__title .line + .line > span { transition-delay: 0.37s; }
  .is-ready .hero__text,
  .is-ready .hero__actions,
  .is-ready .hero__call,
  .is-ready .hero__stats {
    opacity: 1; transform: none;
    transition: opacity 0.8s var(--ease-out) var(--d, 0.5s), transform 0.8s var(--ease-out) var(--d, 0.5s);
  }
  .is-ready .hero__actions { --d: 0.62s; }
  .is-ready .hero__call { --d: 0.72s; }
  .is-ready .hero__stats { --d: 0.85s; }
  .is-ready .hero__person { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out) 0.2s, transform 1.5s var(--ease-out) 0.2s; }
  .is-ready .hero__glow { opacity: 1; transition: opacity 2s ease 0.3s; }
  .is-ready .hero__lights { opacity: 1; transition: opacity 1.6s ease 0.45s; }
  .is-ready .float-card { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out) var(--d, 1s), transform 0.9s var(--ease-out) var(--d, 1s); }
  .is-ready .chart-card { --d: 0.95s; }
  .is-ready .id-card { --d: 1.15s; }
  .is-ready .chart__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-out) 1.2s; }
  .is-ready .chart__dot { opacity: 1; transition: opacity 0.4s ease 2.6s; animation: pulse 2.4s ease-in-out 3s infinite; }
  .is-ready .float-card { animation: float 7s ease-in-out 2.4s infinite; }
  .is-ready .id-card { animation-delay: 3.2s; animation-duration: 8s; }
}
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Comparsa allo scroll (leggera) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Chi sono ---------- */
.about__grid { display: grid; gap: 48px; align-items: center; }
.about__media { position: relative; margin: 0; }
.about__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 40% 50%; border-radius: var(--radius-lg); }
.about__badge {
  position: absolute; left: 14px; bottom: 14px;
  display: grid; gap: 2px;
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--blue); color: var(--white);
  box-shadow: 0 0 calc(30px * var(--glow-strength)) rgba(var(--blue-rgb), 0.55);
}
.about__badge strong { font-size: 44px; line-height: 1; }
.about__badge > span { font-size: 13px; }
.roles { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line-on-light); }
.role { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-on-light); }
.role__icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(var(--blue-rgb), 0.1); color: var(--blue);
}
.role__title { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.role p { margin: 0; font-size: 15px; color: var(--muted-on-light); }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .about__badge { left: -24px; bottom: 40px; }
}

/* ---------- Storia ---------- */
.story__grid { display: grid; gap: 48px; align-items: start; }
.story__media { margin: 0; }
.story__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -40px rgba(var(--blue-rgb), calc(0.7 * var(--glow-strength)));
}
.timeline { position: relative; list-style: none; margin: 36px 0 0; padding: 0; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 30px; width: 2px;
  background: linear-gradient(var(--blue-neon), rgba(var(--blue-rgb), 0.08));
}
.timeline__item { position: relative; padding: 0 0 34px 44px; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--anthracite);
  box-shadow: inset 0 0 0 3px var(--blue-neon), 0 0 calc(14px * var(--glow-strength)) rgba(var(--blue-rgb), 0.8);
}
.timeline__when {
  display: inline-block; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--blue-neon);
}
.timeline__title { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.story__quote {
  margin: 8px 0 0; padding: 0 0 0 44px;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25;
}
.story__quote p { margin: 0; max-width: 24ch; }
.timeline__item p { margin: 0; max-width: 52ch; color: var(--muted-on-dark); }
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 0.8fr 1.2fr; gap: 88px; }
  .story__media { position: sticky; top: 120px; }
}

/* ---------- Visione ---------- */
.vision { margin-top: clamp(88px, 11vw, 150px); text-align: center; }
.vision__label { margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.vision__chain {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.1em 0.28em;
  margin: 0 auto 30px;
  font-size: clamp(40px, 5vw, 88px);
}
.vision__arrow { width: 0.4em; height: 0.4em; color: var(--blue-neon); }
@media (max-width: 899px) {
  .vision__chain { flex-direction: column; gap: 0.06em; font-size: clamp(48px, 15vw, 72px); }
  .vision__arrow { transform: rotate(90deg); width: 0.34em; height: 0.34em; }
}
.vision__arrow:last-child { display: none; }
.vision__step:last-of-type { color: var(--blue-neon); text-shadow: 0 0 calc(30px * var(--glow-strength)) rgba(var(--blue-rgb), 0.6); }
.vision__text { margin: 0 auto; max-width: 56ch; font-size: 18px; color: var(--muted-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .js .vision__step { color: rgba(255, 255, 255, 0.16); text-shadow: none; transition: color 0.7s ease, text-shadow 0.7s ease; transition-delay: calc(var(--i, 0) * 260ms); }
  .js [data-chain].is-in .vision__step { color: var(--white); }
  .js [data-chain].is-in .vision__step:last-of-type { color: var(--blue-neon); text-shadow: 0 0 calc(30px * var(--glow-strength)) rgba(var(--blue-rgb), 0.6); }
}

/* ---------- Metodo (blocco blu) ---------- */
.method { padding: 12px; background: var(--anthracite); }
.method__frame {
  position: relative; overflow: hidden;
  padding-block: var(--section-y);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 55% at 90% 0%, rgba(255, 255, 255, 0.18), transparent 65%),
    radial-gradient(60% 60% at 0% 100%, rgba(0, 0, 0, 0.22), transparent 70%),
    var(--blue);
  color: var(--white);
  box-shadow: 0 0 calc(90px * var(--glow-strength)) -30px rgba(var(--blue-rgb), 0.9);
}
.method .kicker { color: var(--white); opacity: 0.85; }
.method .lead { color: rgba(255, 255, 255, 0.92); }
.pillars {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar { padding: 28px; }
.pillar + .pillar { border-top: 1px solid rgba(255, 255, 255, 0.38); }
.pillar__icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 18px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.16);
}
.pillar__title {
  margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 400; text-transform: var(--display-case);
  font-size: clamp(30px, 3vw, 38px); line-height: 1;
}
.pillar p { margin: 0; color: rgba(255, 255, 255, 0.92); }
.method__subtitle { margin: 64px 0 20px; font-size: 22px; font-weight: 600; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  margin: 0 -1px -1px 0;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
}
.step__n { font-size: 15px; font-weight: 600; opacity: 0.85; }
.step__title { margin: 10px 0 6px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.method__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar + .pillar { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.38); }
}
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- James Trading Lab ---------- */
.lab { overflow: hidden; }
.lab::before {
  content: ""; position: absolute; right: -20%; top: 10%; width: 70%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--blue-rgb), calc(0.28 * var(--glow-strength))), transparent);
}
.lab__grid { position: relative; display: grid; gap: 56px; align-items: center; }
.checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--blue-neon); }
.checks--light .icon { color: var(--blue); }

.iphone { justify-self: center; width: min(76vw, 330px); perspective: 1800px; }
.iphone__body {
  position: relative;
  padding: 11px;
  border-radius: 58px;
  background: linear-gradient(145deg, #8a8f97 0%, #3a3e44 14%, #1d1f23 45%, #2c2f34 78%, #8d9299 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 0 3px #15171a,
    0 70px 120px -50px rgba(var(--blue-rgb), calc(0.85 * var(--glow-strength))),
    0 40px 60px -30px rgba(0, 0, 0, 0.75);
  transform: rotateY(-14deg) rotateX(5deg) rotateZ(1.5deg);
  transition: transform 1.2s var(--ease-out);
}
.iphone:hover .iphone__body { transform: rotateY(-6deg) rotateX(2deg) rotateZ(0.5deg); }
.iphone__screen {
  position: relative; overflow: hidden;
  border-radius: 47px;
  background: #000;
  box-shadow: 0 0 0 3px #050506;
}
.iphone__screen img { width: 100%; height: auto; }
.iphone__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 42%);
}
.iphone__island {
  position: absolute; top: 1.6%; left: 50%; translate: -50% 0;
  width: 31%; height: 3.6%;
  border-radius: 999px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.iphone__btn {
  position: absolute; width: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #4a4e55, #9a9fa6 50%, #4a4e55);
}
.iphone__btn--action { left: -3px; top: 17%; height: 4.5%; }
.iphone__btn--vol-up { left: -3px; top: 25%; height: 8%; }
.iphone__btn--vol-down { left: -3px; top: 35%; height: 8%; }
.iphone__btn--power { right: -3px; top: 28%; height: 12%; }
@media (prefers-reduced-motion: reduce) { .iphone__body, .iphone:hover .iphone__body { transform: none; } }
@media (min-width: 900px) { .lab__grid { grid-template-columns: 1.05fr 0.95fr; } }

/* ---------- Formazione gratuita YouTube ---------- */
.yt-band { padding-block: calc(var(--section-y) * 0.7) calc(var(--section-y) * 0.2); }
.yt-band__grid {
  display: grid; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line-on-light), 0 40px 80px -60px rgba(21, 24, 28, 0.45);
}
.yt-band .section-title { font-size: clamp(26px, 3vw, 38px); }
.yt-band .lead { margin-bottom: 24px; }
.yt-band__video .yt { box-shadow: 0 30px 60px -30px rgba(21, 24, 28, 0.55); }
@media (min-width: 900px) { .yt-band__grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }

/* ---------- The Sales Code ---------- */
.code__grid { display: grid; gap: 56px; align-items: center; }
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--anthracite); color: var(--white);
  box-shadow: 0 50px 90px -40px rgba(21, 24, 28, 0.55);
}
.cover__photo { position: absolute; inset: 0; z-index: -2; }
.cover__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(29, 32, 37, 0.05) 25%, rgba(29, 32, 37, 0.94) 76%);
}
.cover::after {
  content: ""; position: absolute; inset: 12px; z-index: 1; pointer-events: none;
  border-radius: calc(var(--radius-lg) - 8px);
  box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), 0.55), inset 0 0 24px rgba(var(--blue-rgb), calc(0.25 * var(--glow-strength)));
}
.cover__text { position: absolute; left: 30px; right: 30px; bottom: 30px; }
.cover__title {
  margin: 0;
  font-size: clamp(54px, 7vw, 92px); line-height: 0.88;
  text-shadow: 0 0 calc(30px * var(--glow-strength)) rgba(var(--blue-rgb), 0.75);
}
.hero__hello sup, .kicker sup { font-family: var(--font-body); font-size: 0.42em; vertical-align: super; line-height: 0; -webkit-text-stroke: 0; margin-left: 0.08em; }
.kicker sup { font-size: 0.75em; }
.cover__title sup { font-size: 0.32em; vertical-align: super; line-height: 0; margin-left: 0.04em; }
.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; }
.section-title sup { font-size: 0.42em; vertical-align: super; line-height: 0; margin-left: 0.04em; }
.cover__sub { margin: 12px 0 0; font-size: 14px; color: var(--muted-on-dark); }
.price {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--anthracite); color: var(--white);
}
.price__label { font-size: 13px; color: var(--muted-on-dark); }
.price__row { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 0; }
.price__now { font-size: clamp(54px, 6vw, 74px); line-height: 1; }
.price__was { font-size: 24px; font-weight: 600; color: var(--price-old); }
.price__was s { text-decoration-thickness: 2px; text-decoration-color: var(--price-old); }
.price-timer {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 6px;
  margin: 10px 4px 0;
  font-size: 12.5px; color: var(--muted-on-light);
}
.price-timer[hidden] { display: none; }
.price-timer__clock { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--price-old); }
@media (min-width: 900px) { .code__grid { grid-template-columns: 0.85fr 1.15fr; gap: 88px; } }

/* ---------- Eventi ---------- */
.gallery { list-style: none; margin: 0; padding: 0; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--anthracite-2); }
.gallery__item picture { position: absolute; inset: 0; }
.gallery__item img { width: 100%; height: 100%; }
.gallery__item img { object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--largo img { object-position: 62% 50%; }
@media (max-width: 699px) {
  .gallery {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 78%; aspect-ratio: 3 / 4; scroll-snap-align: center; }
}
@media (min-width: 700px) {
  .gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 22vw, 280px); }
  .gallery__item--largo { grid-column: span 2; grid-row: span 2; }
  .gallery__item--banner { grid-column: 1 / -1; }
  .gallery__item--banner img { object-position: 50% 40%; }
}
.events__video { margin-top: 48px; }
.events__next {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 16px;
  margin-top: 48px; padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--anthracite-2);
  box-shadow: inset 0 0 0 1px var(--anthracite-3);
}
.events__next .small-title { margin: 0; }
.events__empty { margin: 0; max-width: 52ch; color: var(--muted-on-dark); }
.event-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.event-list__item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 16px 0; border-bottom: 1px solid var(--anthracite-3);
}
.event-list__date { font-size: 28px; color: var(--blue-neon); min-width: 5ch; }
.event-list__info { display: grid; flex: 1; }
.event-list__info span { font-size: 14px; color: var(--muted-on-dark); }

/* ---------- Video (si caricano solo al click) ---------- */
.yt {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #000; cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--dur-base) ease; }
.yt:hover img { opacity: 1; }
.yt iframe { width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute; inset: 0; margin: auto;
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  box-shadow: 0 0 calc(30px * var(--glow-strength)) rgba(var(--blue-rgb), 0.7);
}
.yt__play .icon { width: 28px; height: 28px; margin-left: 3px; }

/* ---------- Testimonianze ---------- */
.reels { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.reel { display: grid; gap: 10px; align-content: start; }
.yt--reel, .reel__video, .reel__empty { aspect-ratio: 9 / 16; border-radius: var(--radius-lg); }
.reel__video { width: 100%; height: auto; object-fit: cover; background: #000; }
.reel__empty {
  position: relative;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: linear-gradient(160deg, var(--anthracite-2), var(--anthracite));
  color: var(--muted-on-dark); font-size: 14px;
}
.reel__empty .yt__play { position: static; background: rgba(var(--blue-rgb), 0.22); box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), 0.6); }
.reel__name { margin: 0; font-weight: 600; }
@media (max-width: 699px) {
  .reels {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 64%; scroll-snap-align: center; }
}
@media (min-width: 700px) { .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .reels { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.reel__open {
  position: relative; display: block; width: 100%;
  aspect-ratio: 9 / 16; padding: 0; border: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--anthracite); cursor: pointer;
  box-shadow: 0 24px 50px -30px rgba(21, 24, 28, 0.6);
}
.reel__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.reel__open:hover img { transform: scale(1.04); }
.reel__open .yt__play { width: 64px; height: 64px; }
.reel__badge {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(21, 24, 28, 0.6); color: var(--white);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.reel__badge .icon { width: 18px; height: 18px; }
.ig-modal {
  width: min(92vw, 420px); max-height: 92vh; padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.ig-modal::backdrop { background: rgba(10, 12, 15, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ig-modal__frame { border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.ig-modal__frame { max-height: 86vh; overflow-y: auto; min-height: 320px; }
.ig-modal__frame .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; }
.ig-modal__frame iframe.instagram-media { min-height: 560px; }
.ig-modal__close {
  position: absolute; top: -54px; right: 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--white); cursor: pointer;
}
.events__banner { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: 0 30px 70px -40px rgba(var(--blue-rgb), 0.8); }

/* ---------- Call gratuita ---------- */
.call__grid { display: grid; gap: 48px; align-items: start; }
.mini-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 20px; }
.mini-steps li { display: flex; gap: 16px; align-items: flex-start; }
.mini-steps__n {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 22px;
  background: rgba(var(--blue-rgb), 0.15); color: var(--blue-neon);
  box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), 0.55);
}
.mini-steps li > span:last-child { color: var(--muted-on-dark); }
.mini-steps strong { display: block; color: var(--white); font-weight: 600; }
.calendar {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -50px rgba(var(--blue-rgb), calc(0.8 * var(--glow-strength)));
}
.calendar__frame { display: block; width: 100%; height: 860px; border: 0; }
.calendar__fallback { display: grid; justify-items: start; align-content: center; gap: 12px; min-height: 420px; padding: clamp(28px, 5vw, 48px); }
.calendar__fallback .small-title { margin: 8px 0 0; }
.calendar__fallback p { margin: 0 0 12px; color: var(--muted-on-light); }
.calendar__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 16px;
  background: rgba(var(--blue-rgb), 0.1); color: var(--blue);
}
.calendar__icon .icon { width: 28px; height: 28px; }
@media (min-width: 960px) { .call__grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }

/* ---------- Candidatura ---------- */
.apply__grid { display: grid; gap: 40px; }
.form-card {
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line-on-light), 0 30px 70px -45px rgba(21, 24, 28, 0.4);
}
.form { display: grid; gap: 20px; }
.form[hidden] { display: none; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: 15px; font-weight: 500; }
.field legend { margin-bottom: 8px; }
.req { color: var(--blue); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-on-light);
  border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.form textarea { min-height: 120px; resize: vertical; }
.form select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555d69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(var(--blue-rgb), 0.18);
}
.form [aria-invalid="true"] { border-color: var(--error); background-color: var(--white); }
.field__help { margin: 0; font-size: 13px; color: var(--muted-on-light); }
.field__error { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.field-row { display: grid; gap: 20px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--line-on-light); border-radius: 999px;
  background: var(--paper);
  font-weight: 500;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.choice input:checked + span { border-color: var(--blue); background: var(--blue); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--blue-neon); outline-offset: 3px; }
.choice input[aria-invalid="true"] + span { border-color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 400 !important; color: var(--muted-on-light); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--blue); }
.check a { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: 14px; color: var(--muted-on-light); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); font-weight: 500; }
.form__success { display: grid; justify-items: start; gap: 10px; outline: none; }
.form__success[hidden] { display: none; }
.form__success p { margin: 0 0 12px; color: var(--muted-on-light); }
.form__success-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: var(--white);
}
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .apply__grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
  .apply__body { position: sticky; top: 120px; }
}

/* ---------- FAQ ---------- */
.faq { padding-top: calc(var(--section-y) * 0.4); }
.faq__list { margin-top: 32px; border-top: 1px solid var(--line-on-light); }
.faq__item { border-bottom: 1px solid var(--line-on-light); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; padding: 22px 0;
  list-style: none; cursor: pointer;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { width: 24px; height: 24px; color: var(--blue); transition: transform var(--dur-base) var(--ease-out); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__answer p { margin: 0 0 22px; max-width: 65ch; color: var(--muted-on-light); }

/* ---------- Chiusura ---------- */
.final { padding: 12px; background: var(--paper); }
.final__frame {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, 0.2), transparent 70%),
    radial-gradient(70% 60% at 50% 120%, rgba(0, 0, 0, 0.28), transparent 70%),
    var(--blue);
  color: var(--white);
  text-align: center;
}
.final__frame .hero__lights { z-index: -1; }
.hero__lights--soft span { --o: 0.25 !important; }
.final__hello {
  display: inline-block; margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--white); text-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
  transform: rotate(-3deg);
}
.final__title { margin: 10px auto 18px; max-width: 14ch; font-size: clamp(48px, 8vw, 112px); }
.final__text { margin: 0 auto 32px; max-width: 52ch; color: rgba(255, 255, 255, 0.92); }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--anthracite); color: var(--white); }
.site-footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 28px; border-bottom: 1px solid var(--anthracite-3);
}
.social { display: flex; align-items: center; gap: 8px; }
.social__label { margin-right: 6px; font-size: 14px; color: var(--muted-on-dark); }
.social__link {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--anthracite-3);
  transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.social__link:hover { background: var(--blue); box-shadow: 0 0 20px rgba(var(--blue-rgb), 0.6); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 24px 0; padding: 0; list-style: none; }
.site-footer__links a { display: inline-block; padding: 10px 0; font-size: 14px; color: var(--muted-on-dark); text-decoration: none; }
.site-footer__links a:hover { color: var(--white); }
.site-footer__disclaimer { margin: 0 0 20px; max-width: 90ch; font-size: 12.5px; line-height: 1.65; color: #8d949e; }
.site-footer__copy { margin: 0; font-size: 13px; color: var(--muted-on-dark); }

/* ---------- Bottone WhatsApp sempre visibile ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(37, 211, 102, 0.18);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(37, 211, 102, 0.22); }

/* ---------- Call: alternativa WhatsApp e calendario che si apre con un clic ---------- */
.call__alt { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted-on-dark); }
.call__alt .text-link { color: var(--white); }
.call__alt .text-link .icon { color: var(--whatsapp); }
.calendar__note { margin: 4px 0 0 !important; font-size: 12.5px; color: var(--muted-on-light); max-width: 46ch; }

/* ---------- Pagina privacy ---------- */
.legal-page { background: var(--paper); }
.legal-header { position: sticky; top: 0; z-index: 10; background: var(--anthracite); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.legal-back { color: var(--white); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.lang-switch--legal { display: grid; }
.legal { padding-block: 48px 96px; color: var(--ink); }
.legal h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.02em; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; }
.legal p, .legal li { color: #39404a; max-width: 70ch; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); }
.legal__meta { font-size: 14px; color: var(--muted-on-light) !important; }
.todo { background: #fff3a3; color: #4a3b00; padding: 0 4px; border-radius: 4px; }
p.todo { padding: 10px 14px; }
