/* Alberto Camia Osteopata D.O. — sito 2026
   Brand: DM Sans (testi) + Jost (logo, etichette) dal sito originale e dalle grafiche.
   Navy #19202a, blu #4ea2f8. Fondo chiaro: è sanità, non un'app di streaming. */

:root {
  --bg: #f3f5f8;
  --bg-tint: #e9eef4;
  --surface: #fbfcfd;
  --ink: #19202a;
  --ink-2: #3a4655;
  --muted: #566475;
  --line: #d6dee8;
  --blue: #4ea2f8;
  --blue-ink: #1d66c2;
  --blue-hi: #1c66c8;
  --blue-soft: #dcebfd;
  --wa: #17794a;
  --err: #c43c37;
  --navy: #19202a;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(25, 32, 42, .05), 0 18px 40px -18px rgba(25, 32, 42, .22);
  --shadow-hi: 0 2px 4px rgba(25, 32, 42, .06), 0 30px 60px -24px rgba(29, 102, 194, .38);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.2; }
p { text-wrap: pretty; }
em { font-style: normal; color: var(--blue-hi); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--surface); padding: .7rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 1rem;
}
.kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .9375rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1.25rem; }
.kicker .ico { color: var(--blue-hi); }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 58ch; line-height: 1.55; }

/* ---------- Logo (Jost, come nelle grafiche) ---------- */
.logo { font-family: 'Jost', sans-serif; text-decoration: none; line-height: 1.12; display: inline-flex; flex-direction: column; letter-spacing: .14em; font-size: 1rem; }
.logo b { font-weight: 600; }
/* stessa larghezza della prima riga, come nel logo originale (misurato sui glifi di Jost) */
.logo span { font-weight: 300; letter-spacing: .1735em; }
.logo--inv { color: var(--bg); }

/* ---------- Bottoni ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--h); padding: 0 1.4rem;
  border-radius: 14px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { --h: 44px; padding: 0 1.05rem; font-size: .9375rem; }
.btn--lg { --h: 60px; padding: 0 2.2rem; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #0f1620; box-shadow: 0 10px 24px -12px rgba(42, 120, 228, .7); }
.btn--primary:hover { background: #3d95f0; box-shadow: 0 14px 30px -12px rgba(42, 120, 228, .8); }
.btn--ghost { background: color-mix(in oklab, var(--surface) 70%, transparent); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--ghost .ico, .btn--line .ico { color: var(--wa); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--line:hover .ico { color: var(--bg); }
.btn--wa { background: var(--wa); color: #f4fbf7; }
.btn--wa:hover { background: #12643d; }
.btn--text { background: none; color: var(--blue-ink); padding: 0 .5rem; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.btn--text:hover { color: var(--ink); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: .9375rem; color: var(--ink-2); }
.nav a { text-decoration: none; padding: .5rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav { display: none; } .top__cta { margin-left: auto; } }
@media (max-width: 420px) { .top__cta { display: none; } }

/* ---------- Aurora: luce che respira dietro all'hero ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { width: 48vw; height: 48vw; right: -10vw; top: -14vw; background: radial-gradient(circle, #8cc3fb, transparent 68%); animation: drift-a 22s var(--ease) infinite alternate; }
.aurora i:nth-child(2) { width: 36vw; height: 36vw; left: -12vw; top: 18vw; background: radial-gradient(circle, #c9e2fd, transparent 70%); animation: drift-b 26s var(--ease) infinite alternate; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 38vw; top: 30vw; background: radial-gradient(circle, #a9d1fb, transparent 70%); opacity: .35; animation: drift-a 30s var(--ease) infinite alternate-reverse; }
.aurora--soft i { opacity: .4; }
@keyframes drift-a { to { transform: translate3d(-8vw, 6vw, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(10vw, -4vw, 0) scale(.92); } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(2rem, 1rem + 3vw, 4rem); }
.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero__t { font-size: var(--step-4); letter-spacing: -.045em; line-height: .98; margin-bottom: 1.5rem; }
.hero__t .ln { display: block; }
.hero__sub { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }
.hero__media { position: relative; }
.hero__media > img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: 40% 30%; border-radius: var(--r-lg); box-shadow: var(--shadow-hi); }
.hero__badge { position: absolute; left: -1.25rem; bottom: 1.5rem; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem .7rem .75rem; border-radius: var(--r-md); background: rgba(25, 32, 42, .82); backdrop-filter: blur(10px); color: #eef3f8; font-size: .8125rem; line-height: 1.3; }
.hero__badge img { width: 44px; height: auto; }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media > img { aspect-ratio: 4 / 3.2; }
  .hero__badge { left: .75rem; bottom: .75rem; }
}
@media (max-width: 560px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .eyebrow { letter-spacing: .1em; }
}

/* Due opzioni sotto l'hero: ti alleni / non ti alleni */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.duo__opt { display: grid; gap: .4rem; padding: 1.4rem 1.6rem; border-radius: var(--r-md); background: color-mix(in oklab, var(--surface) 82%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.duo__opt:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.duo__q { font-size: var(--step-2); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.duo__opt:nth-child(1) .duo__q { color: var(--blue-hi); }
.duo__a { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.duo__both { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem 1rem; padding-top: .5rem; color: var(--ink-2); }
.duo__both a { display: inline-flex; align-items: center; gap: .35rem; color: var(--blue-ink); font-weight: 700; text-decoration: none; min-height: 44px; }
.duo__both a:hover { text-decoration: underline; }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }

/* entrata del titolo: riga per riga */
.hero__t .ln, .hero__sub, .hero__ctas, .hero__note { animation: rise .9s var(--ease) both; }
.hero__t .ln:nth-child(2) { animation-delay: .08s; }
.hero__sub { animation-delay: .16s; }
.hero__ctas { animation-delay: .24s; }
.hero__note { animation-delay: .3s; }
.hero__media { animation: settle 1.2s var(--ease) both .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; transform: scale(.97); } }

/* ---------- Marquee infinito ---------- */
.marquee { display: flex; overflow: hidden; padding-block: 1.4rem; border-block: 1px solid var(--line); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex: none; gap: 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { display: flex; align-items: center; white-space: nowrap; font-size: var(--step-2); font-weight: 600; letter-spacing: -.03em; color: var(--ink-2); }
.marquee__track li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-inline: 1.75rem; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sezioni ---------- */
.sec { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.sec--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(4rem, 3rem + 4vw, 6.5rem); }
.sec--tint { background: var(--bg-tint); }

/* Percorso */
.percorso { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.percorso__head { position: sticky; top: 110px; }
.quote { margin: 1.75rem 0 2rem; padding: 0; font-size: var(--step-1); color: var(--ink-2); font-style: italic; max-width: 36ch; }
.percorso__img img { border-radius: var(--r-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.steps { counter-reset: s; }
.steps { position: relative; padding-left: 2.25rem; }
.steps::before { content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 2px; border-radius: 2px; background: linear-gradient(var(--blue), var(--blue-soft)); }
.step { position: relative; padding: 0 0 2.75rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: calc(-2.25rem + 1px); top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 3px var(--blue); }
.step__k { display: block; font-family: 'Jost', sans-serif; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.step h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.step p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 860px) { .percorso { grid-template-columns: 1fr; } .percorso__head { position: static; } }

/* Ambiti */
.ambiti__head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.ambiti__head h2 { margin-bottom: 1.25rem; }
.ambiti { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.ambiti__img img { height: 100%; width: 100%; object-fit: cover; border-radius: var(--r-lg); min-height: 320px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--surface); border-radius: var(--r-md); padding: 1.5rem 1.5rem 1.6rem; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.tile h3 { margin-bottom: .45rem; }
.tile__go { margin-top: auto; padding-top: .9rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 700; color: var(--blue-ink); }
.tile__go .ico { transition: translate .3s var(--ease); }
.tile:hover .tile__go .ico { translate: 3px 0; }
.tile p { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
@media (max-width: 860px) { .ambiti { grid-template-columns: 1fr; } .ambiti__img img { aspect-ratio: 4 / 3; min-height: 0; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Banner "Due punti di partenza" (dalla grafica) ---------- */
.info { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); background: var(--bg-tint); }
.info__glow { position: absolute; z-index: -1; left: 50%; top: 58%; width: min(1100px, 140vw); aspect-ratio: 1.15; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(78, 162, 248, .55), rgba(78, 162, 248, .18) 55%, transparent 100%); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { scale: .92; opacity: .8; } to { scale: 1.06; opacity: 1; } }
.info__center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.info__t { font-size: var(--step-4); letter-spacing: -.045em; line-height: .98; }
.starts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; width: min(940px, 100%); margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); text-align: left; }
.start { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.start:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); }
label.start { cursor: pointer; position: relative; }
label.start:has(input:checked) { box-shadow: 0 0 0 2px var(--blue), var(--shadow-hi); }
label.start:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
label.start::after { content: ""; position: absolute; top: 1.4rem; right: 1.4rem; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .25s var(--ease); }
label.start:has(input:checked)::after { box-shadow: inset 0 0 0 7px var(--blue); }
.start__k { font-weight: 700; font-size: .9375rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.start__t { font-size: var(--step-3); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.start__d { font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; }
.start__go { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--blue-ink); }
.start__go .ico { transition: translate .35s var(--ease); }
.start:hover .start__go .ico { translate: 4px 0; }
.info__loc { margin-top: 2rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-size: var(--step-1); }
.info__loc .ico { color: var(--blue-hi); }
@media (max-width: 700px) { .starts { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-size: var(--step-1); font-weight: 600; letter-spacing: -.02em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--blue-hi); border-bottom: 2px solid var(--blue-hi); rotate: 45deg; translate: 0 -3px; transition: rotate .3s var(--ease), translate .3s var(--ease); }
.faq__list details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq__list details p { padding-bottom: 1.5rem; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.studio__img img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.studio h2 { margin-bottom: 1.75rem; }
.studio__list { display: grid; gap: .9rem; margin-bottom: 2rem; }
.studio__list li { display: flex; gap: .8rem; align-items: center; color: var(--ink-2); }
.studio__list .ico { color: var(--blue-hi); }
.studio__list a { text-decoration: none; }
.studio__list a:hover { text-decoration: underline; }
.studio__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--navy); color: #c9d4e0; padding: 3.5rem 0 calc(2rem + env(safe-area-inset-bottom)); }
.foot__in { display: grid; grid-template-columns: 1fr auto auto; gap: 2.5rem; align-items: center; }
.foot__small { margin-top: 1rem; font-size: .8125rem; }
.foot__soc { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9375rem; }
.foot__soc a { text-decoration: none; color: #eef3f8; }
.foot__soc a:hover { text-decoration: underline; }
.foot__roi { width: 72px; }
.foot__copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(201, 212, 224, .15); font-size: .8125rem; color: #a3b1c1; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }

/* ---------- WhatsApp fisso + barra mobile ---------- */
.wa-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: inline-flex; align-items: center; gap: .55rem; height: 56px; padding: 0 1.25rem 0 1rem; border-radius: 999px; background: var(--wa); color: #f4fbf7; text-decoration: none; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(23, 121, 74, .55); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(23, 121, 74, .65); }
.mbar { display: none; }
@media (max-width: 760px) {
  .wa-fab { display: none; }
  .mbar { position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
  .mbar.is-on { transform: none; }
  .foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* =================== Pagina 2: percorsi =================== */
.p2hero { position: relative; isolation: isolate; padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: center; }
.p2hero__in { display: flex; flex-direction: column; align-items: center; }
.crumbs { align-self: flex-start; display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--muted); margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.back {  display: inline-flex; align-items: center; gap: .45rem; font-size: .9375rem; color: var(--muted); text-decoration: none; min-height: 44px; }
.back .ico { rotate: 180deg; }
.back:hover { color: var(--ink); }
.p2hero__t { font-size: var(--step-4); letter-spacing: -.045em; line-height: .98; }
.p2hero__sub { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-2); max-width: 54ch; }
.p2hero__t, .p2hero__sub { transition: opacity .25s var(--ease); }
.is-swapping .p2hero__t, .is-swapping .p2hero__sub, .is-swapping .plan__fit { opacity: 0; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 2rem; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--muted); transition: background-color .25s var(--ease), color .25s var(--ease); white-space: nowrap; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem 1.75rem; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.plan--feat { box-shadow: 0 0 0 2px var(--blue), var(--shadow-hi); }
.plan__tag { position: absolute; top: -.85rem; left: 1.75rem; padding: .3rem .8rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: .8125rem; font-weight: 700; }
.plan h3 { font-size: var(--step-2); }
.plan__dur { margin-top: .3rem; font-family: 'Jost', sans-serif; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan__price { margin-top: 1.5rem; font-size: clamp(3rem, 2.4rem + 2.5vw, 4.25rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price .cur { font-size: .45em; vertical-align: .85em; margin-right: .08em; letter-spacing: 0; font-weight: 600; }
.plan__per { margin-top: .6rem; color: var(--muted); font-size: .9375rem; }
.plan__per b { color: var(--ink); }
.plan__list { margin: 1.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; }
.plan__list li { display: flex; gap: .7rem; align-items: baseline; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.plan__list li::before { content: ""; flex: none; width: 16px; height: 16px; translate: 0 3px; background: var(--blue-hi); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan__fit { margin-top: auto; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--bg); font-size: .8125rem; color: var(--ink-2); line-height: 1.45; transition: opacity .25s var(--ease); }
.plan__fit:empty { display: none; }
.plan__ctas { display: grid; gap: .35rem; margin-top: 1.25rem; }
.plan__ctas .btn--text { --h: 44px; }
.pk__head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.pk__note { margin-top: 1.5rem; text-align: center; font-size: .8125rem; color: var(--muted); }
@media (max-width: 900px) {
  .pk { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 1.75rem; }
}

.info--p2 .info__glow { left: 75%; top: 50%; }
.info__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.info--p2 .info__t { font-size: var(--step-3); margin-bottom: 1.25rem; }
.wa-card { margin-top: 2rem; padding: 1.5rem; border-radius: var(--r-md); background: color-mix(in oklab, var(--surface) 80%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow); display: grid; gap: 1rem; justify-items: start; }
.wa-card p { color: var(--ink-2); }
@media (max-width: 860px) { .info__in { grid-template-columns: 1fr; } }

/* Pacchetti nella stessa sezione del banner */
.info--pk .starts { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.info--pk .pk { position: relative; }
.info__t--sm { font-size: var(--step-3); margin-bottom: 1.25rem; }
#richiedi .info__in { align-items: start; }

/* Problemi nel form */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: .9375rem; transition: background-color .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.bad .chip span { border-color: var(--err); }
.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow-hi); } 30% { box-shadow: 0 0 0 4px var(--blue), var(--shadow-hi); } }

/* Form */
.form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-hi); }
.form__t { font-size: var(--step-2); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.5rem; }
.field { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-size: .8125rem; font-weight: 600; margin: 0 0 .45rem 2px; padding: 0; }
.field input[type=text], .field input[type=tel], .field select { width: 100%; min-height: 54px; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .8rem 1rem; outline: none; transition: border-color .2s, background-color .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus, .field select:focus { border-color: var(--blue); background-color: var(--surface); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: .5rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); transition: background-color .2s, border-color .2s, color .2s; }
.slot b { font-size: 1.0625rem; }
.slot small { font-size: .8125rem; color: var(--muted); }
.slot input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.slot input:checked + span small { color: #c9d4e0; }
.slot input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .8125rem; line-height: 1.45; color: var(--muted); font-weight: 400 !important; }
.consent input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--blue-hi); flex: none; }
.consent a { color: var(--blue-ink); }
.err { display: none; color: var(--err); font-size: .8125rem; margin: .35rem 0 0 2px; }
.bad .err { display: block; }
.bad input[type=text], .bad input[type=tel], .bad .slot span { border-color: var(--err); }
.hp { position: absolute; left: -9999px; }
.form button[disabled] { opacity: .6; cursor: wait; }
.done { text-align: center; padding: 1rem .5rem; }
.done__ok { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin: 0 auto 1.25rem; }
.done__ok svg { width: 36px; height: 36px; fill: none; stroke: #0f1620; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: var(--step-2); }
.done p { margin-top: .6rem; color: var(--muted); }
.demo { font-size: .8125rem; color: var(--err) !important; }

/* ---------- Animazioni guidate dallo scroll ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
  .hero__media > img { animation: parallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes parallax { to { transform: translateY(40px) scale(1.02); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee { overflow-x: auto; }
}

/* Hero: il titolo nuovo è più lungo, resta su 2-3 righe */
.hero__t { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.5rem); }
.hero__in { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; } }

/* Mobile: "Richiedi informazioni" porta subito ai campi del form */
@media (max-width: 860px) {
  #richiedi .info__in { gap: 0; }
  #richiedi .info__copy { display: contents; }
  #richiedi .lead { display: none; }
  #richiedi .info__t { margin-bottom: 1.5rem; }
  #richiedi .form { order: 1; }
  #richiedi .wa-card { order: 2; margin-top: 1.5rem; }
}

/* ===== Pagine dei percorsi (sport / ripartire) ===== */
.hero--path { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.hero--path .crumbs { margin-bottom: clamp(1rem, .5rem + 2vw, 2.5rem); }
.hero--path .hero__media > img { aspect-ratio: 4 / 3.6; }
.fasi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.fase { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.fase img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fase__body { padding: 1.5rem 1.6rem 1.75rem; }
.fase__k { font-family: 'Jost', sans-serif; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: .4rem; }
.fase h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.fase ul { display: grid; gap: .55rem; }
.fase li { display: flex; gap: .65rem; align-items: baseline; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.fase li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); translate: 0 -2px; }
@media (max-width: 900px) { .fasi { grid-template-columns: 1fr; max-width: 560px; } }
.chi { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.chi h2 { margin-bottom: 1.25rem; }
.chi__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chi__list li { padding: 1.4rem 1.5rem; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.chi__list h3 { margin-bottom: .4rem; }
.chi__list p { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
@media (max-width: 860px) { .chi { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .chi__list { grid-template-columns: 1fr; } }
.xlink { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.xlink__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.xlink p { font-size: var(--step-1); color: var(--ink-2); }
.xlink b { color: var(--ink); }

/* "Altro" nel form */
.altro { margin-top: .9rem; }
.altro label { display: block; font-size: .8125rem; font-weight: 600; margin: 0 0 .45rem 2px; }
.altro textarea { width: 100%; min-height: 96px; resize: vertical; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .8rem 1rem; outline: none; transition: border-color .2s, background-color .2s; }
.altro textarea:focus { border-color: var(--blue); background: var(--surface); }
.bad .altro textarea { border-color: var(--err); }
