/* =========================================================================
   SPORT EXTREME LIVIGNO — "Altitudine"
   Inchiostro notte + neve + blu ghiacciaio + il rosso del marchio (logo e sacchetto di Sport Extreme).
   Display: Archivo espanso · Accenti: Instrument Serif corsivo · Dati: JetBrains Mono
   Il logo è quello vero, in vettoriale: assets/img/logo-sportextreme.svg e src/logo.mjs (scripts/logo.py).
   ========================================================================= */
:root {
  --ink: #0b1a2b;
  --ink-2: #1c2f45;
  --ink-3: #4f6176;
  --snow: #f4f7fa;
  --snow-2: #e6edf4;
  --ice: #bfe3ff;
  --glacier: #0371ba;
  /* il rosso del marchio, uguale d'inverno e d'estate (dalla favicon di sportextremelivigno.com).
     Sul bianco si legge (6,3:1); sui fondi scuri come testo si usa --x-l, come fondo dei pulsanti va bene --x con il testo bianco. */
  --x: #be1430;
  --x-rgb: 190, 20, 48;
  --x-l: #ff6b7a;
  --night: #07111d;
  --line: rgba(11, 26, 43, .14);
  --line-l: rgba(255, 255, 255, .14);
  --f-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-s: "Instrument Serif", Georgia, serif;
  --f-m: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --f-slab: "Zilla Slab", Rockwell, serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(18px, 4vw, 64px);
  --hdr-fg: var(--ink);
  --hdr-pill: rgba(255, 255, 255, .58);
  --hero-fg: var(--ink);
  --veil: 244, 247, 250;
}
html[data-season="summer"] { --snow: #f6f4ef; --snow-2: #ebe6dc; }
html[data-wx="night"] { --hero-fg: #e9f1fb; --veil: 7, 17, 29; }
/* di notte il titolo prende il colore della neve all'ombra della luna: così la neve sopra resta la cosa più luminosa */
html[data-wx="night"] .hero__title { color: #b3c2e6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font-family: var(--f-d); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--f-m); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
em { font-family: var(--f-s); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; }
::selection { background: var(--x); color: #fff; }
:focus-visible { outline: 2px solid var(--x); outline-offset: 3px; border-radius: 4px; }

/* ---------------- LOADER ---------------- */
#loader {
  position: fixed; inset: 0; z-index: 200; background: var(--snow); display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader__in { display: grid; justify-items: center; gap: 18px; }
.loader__x { width: 64px; height: 64px; overflow: visible; }
.loader__x path { fill: none; stroke: var(--ink); stroke-width: 2; }
.loader__x .lx-box { stroke-dasharray: 170; stroke-dashoffset: 170; animation: lx 1.2s var(--ease) forwards; }
.loader__x .lx-a, .loader__x .lx-b { stroke-width: 6; stroke-dasharray: 26; stroke-dashoffset: 26; animation: lx .7s var(--ease) forwards .55s; }
.loader__x .lx-b { animation-delay: .75s; }
@keyframes lx { to { stroke-dashoffset: 0; } }
.loader__alt { font-size: 2.4rem; letter-spacing: -.02em; font-family: var(--f-d); font-weight: 700; font-stretch: 125%; text-transform: none; font-variant-numeric: tabular-nums; }
.loader__place { color: var(--ink-3); }
.loader__bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--ink); }

/* ---------------- CANVAS EFFETTI + CURSORE ---------------- */
#fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor { opacity: 1; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor__ring { width: 38px; height: 38px; border: 1.5px solid #fff; transition: width .35s var(--ease-out), height .35s var(--ease-out), background .3s; }
.cursor__dot { width: 5px; height: 5px; background: #fff; }
.cursor__label { position: absolute; left: 26px; top: 14px; white-space: nowrap; color: #fff; font: 500 .62rem/1 var(--f-m); letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .25s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; background: rgba(255,255,255,.12); }
.cursor.is-carve .cursor__ring { width: 54px; height: 54px; border-style: dashed; }
.cursor.has-label .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------------- HEADER ---------------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad); color: var(--hdr-fg); transition: color .5s, transform .6s var(--ease);
}
.hdr.is-hidden { transform: translateY(-110%); }
.hdr[data-theme="dark"] { --hdr-fg: #f1f5fa; --hdr-pill: rgba(11, 26, 43, .5); }
html[data-wx="night"] .hdr[data-theme="hero"] { --hdr-fg: #f1f5fa; --hdr-pill: rgba(11, 26, 43, .45); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* il logo vero come maschera: prende il colore dell'header (scuro sul chiaro, bianco sul buio) */
.logo__img {
  display: block; width: 162px; aspect-ratio: 650 / 121; background: var(--hdr-fg); transition: background .5s;
  -webkit-mask: url("../assets/img/logo-sportextreme.svg") center / contain no-repeat; mask: url("../assets/img/logo-sportextreme.svg") center / contain no-repeat;
}
.logo-svg { display: block; height: auto; overflow: visible; fill: currentColor; }
.logo-svg .ch { transform-box: fill-box; transform-origin: 50% 100%; }
.logo__x { width: 34px; height: 34px; }
.logo__x path:first-child { fill: var(--hdr-fg); transition: fill .5s; }
.logo__xx { stroke: var(--snow); stroke-width: 6.5; fill: none; transition: stroke .5s; }
.hdr[data-theme="dark"] .logo__xx, html[data-wx="night"] .hdr[data-theme="hero"] .logo__xx { stroke: var(--ink); }
.logo__w { display: grid; line-height: 1; }
.logo__sport { font: 600 .56rem/1 var(--f-d); letter-spacing: .62em; padding-left: .1em; }
.logo__extreme { font: 700 1.28rem/1 var(--f-slab); letter-spacing: .01em; margin-top: 2px; }
.nav {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--hdr-pill);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); transition: background .5s;
}
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; transition: background .3s, color .3s; }
.nav a:hover, .nav a.is-active { background: var(--hdr-fg); color: var(--snow); }
.hdr[data-theme="dark"] .nav a:hover, .hdr[data-theme="dark"] .nav a.is-active { color: var(--ink); }
.hdr__tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 4px; border-radius: 999px; background: var(--hdr-pill); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lang button { padding: 6px 9px; border-radius: 999px; font: 600 .68rem/1 var(--f-m); letter-spacing: .06em; opacity: .6; transition: opacity .3s, background .3s; }
.lang button[aria-pressed="true"] { opacity: 1; background: rgba(127, 140, 160, .2); }
.sound { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--hdr-pill); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* il pulsante in evidenza dell'header: d'inverno "Noleggia online", d'estate "Indicazioni" (.only-w / .only-s) */
.hdr__cta {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--x); color: #fff; font-weight: 650; font-size: .86rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(var(--x-rgb), .9); transition: transform .3s var(--ease-out), box-shadow .3s, background .3s;
}
.hdr__cta i { font-style: normal; font-size: .9em; opacity: .85; }
.hdr__cta:hover { transform: translateY(-1px); background: #a8102a; box-shadow: 0 12px 26px -12px rgba(var(--x-rgb), 1); }
.hdr__cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 899px) { .hdr__cta { display: none; } }
.sound__bars { display: flex; gap: 2px; align-items: center; height: 14px; }
.sound__bars i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; transition: height .3s; }
.sound[aria-pressed="true"] .sound__bars i { animation: bars 1s ease-in-out infinite alternate; }
.sound__bars i:nth-child(2) { animation-delay: -.3s !important; } .sound__bars i:nth-child(3) { animation-delay: -.6s !important; } .sound__bars i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes bars { from { height: 3px; } to { height: 14px; } }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--hdr-pill); place-items: center; align-content: center; gap: 5px; }
.burger i { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 0 auto; transition: transform .4s var(--ease); }

/* ---- meteo ---- */
.wx { position: relative; }
.wx__chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--hdr-pill); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .8rem; font-weight: 600; }
.wx__temp { font-size: .8rem; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.wx__icon { width: 22px; height: 22px; position: relative; }
.wx__icon svg { width: 100%; height: 100%; }
.wx__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; padding: 18px; border-radius: 22px;
  background: rgba(11, 26, 43, .86); color: #eef3f9; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(4, 12, 22, .5);
}
.wx__panel[hidden] { display: none; }
.wx__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #a8c4dc; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--x); box-shadow: 0 0 0 0 var(--x); animation: live 2s infinite; display: inline-block; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(var(--x-rgb), .6); } 70% { box-shadow: 0 0 0 9px rgba(var(--x-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--x-rgb), 0); } }
.wx__data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 0 0 16px; }
.wx__data dt { font: 500 .6rem/1.2 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: #8ea7bf; }
.wx__data dd { margin: 4px 0 0; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.wx__try { color: #8ea7bf; margin: 0 0 8px; }
.wx__modes { display: flex; flex-wrap: wrap; gap: 6px; }
.wx__modes button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: .78rem; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.wx__modes button:hover { border-color: rgba(255, 255, 255, .5); }
.wx__modes button[aria-pressed="true"] { background: #eef3f9; color: var(--ink); border-color: #eef3f9; }

/* ---------------- BOTTONI ---------------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 650; font-size: .92rem; text-decoration: none; letter-spacing: .005em; transition: background .35s, color .35s, box-shadow .35s; will-change: transform; }
.btn--ink { background: var(--ink); color: var(--snow); box-shadow: 0 14px 30px -14px rgba(11, 26, 43, .55); }
.btn--ink:hover { background: var(--glacier); }
.btn--line { border: 1.5px solid currentColor; }
.btn--line:hover { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.btn__arr { font-style: normal; transition: transform .4s var(--ease-out); }
.btn:hover .btn__arr { transform: translateX(4px); }

/* ---------------- PALCO ---------------- */
.stage { position: relative; height: 1000vh; background: var(--snow); }
.stage__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__gl, .stage__2d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.stage__2d { display: none; }
.no-gl .stage__2d { display: block; }
.no-gl .stage__gl { display: none; }
.stage__veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(var(--veil), .92) 0%, rgba(var(--veil), .74) 30%, rgba(var(--veil), .3) 50%, rgba(var(--veil), 0) 66%); }
.stage__veil.is-right { background: linear-gradient(270deg, rgba(var(--veil), .92) 0%, rgba(var(--veil), .74) 34%, rgba(var(--veil), .3) 54%, rgba(var(--veil), 0) 70%); }

.hero { position: absolute; inset: 0; color: var(--hero-fg); pointer-events: none; transition: color .8s; }
.hero a, .hero button { pointer-events: auto; }
.hero__coords { position: absolute; left: var(--pad); top: clamp(96px, 14vh, 140px); display: flex; align-items: center; gap: 12px; margin: 0; }
.hero__coords .sep { width: 18px; height: 1px; background: currentColor; opacity: .5; }
.hero__title {
  position: absolute; left: calc(var(--pad) - .04em); top: clamp(118px, 17vh, 168px); margin: 0;
  font-family: var(--f-d); font-weight: 800; font-stretch: 125%; font-size: clamp(64px, 12.2vw, 236px); line-height: .84; letter-spacing: -.035em;
  transition: color .8s;
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .ch { display: inline-block; will-change: transform; }
/* il logo vero al posto della scritta: largo come la vecchia "EXTREME", la neve si posa sulle grazie delle lettere */
.hero__title .logo-svg { width: clamp(300px, 60vw, 1180px); }
.hero__foot { position: absolute; left: var(--pad); bottom: clamp(28px, 6vh, 64px); max-width: 520px; }
.hero__lead { margin: 0 0 10px; font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.hero__lead em { font-size: 1.12em; }
.hero__sub { margin: 0 0 24px; max-width: 44ch; font-size: .98rem; color: inherit; opacity: .82; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
html[data-wx="night"] .hero .btn--ink { background: #eef3f9; color: var(--ink); }
.hero__hint { position: absolute; right: var(--pad); bottom: clamp(28px, 6vh, 64px); display: flex; align-items: center; gap: 12px; margin: 0; max-width: 260px; text-align: right; line-height: 1.5; }
.hint-ski { flex: none; width: 46px; height: 28px; position: relative; }
.hint-ski::before, .hint-ski::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transform-origin: left; animation: hintski 2.6s var(--ease) infinite; }
.hint-ski::before { top: 9px; } .hint-ski::after { top: 17px; animation-delay: .08s; }
@keyframes hintski { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.chapters { position: absolute; inset: 0; pointer-events: none; color: var(--hero-fg); }
.chap { position: absolute; top: 50%; translate: 0 -50%; width: min(40vw, 560px); opacity: 0; visibility: hidden; }
.chap--left { left: var(--pad); }
.chap--right { right: calc(var(--pad) + 130px); width: min(36vw, 520px); }
.chap--end { left: 50%; translate: -50% -50%; width: min(92vw, 980px); text-align: center; pointer-events: auto; }
.chap__label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.chap__label span:first-child { display: inline-grid; place-items: center; width: 30px; height: 20px; border: 1px solid currentColor; border-radius: 999px; font-size: .62rem; }
.chap--end .chap__label { justify-content: center; }
.chap__h { margin: 0 0 18px; font-weight: 800; font-stretch: 112%; font-size: clamp(2.6rem, 5.4vw, 6.2rem); line-height: .9; letter-spacing: -.03em; }
.chap__h em { font-size: 1.08em; letter-spacing: -.02em; }
.chap__h .big { font-stretch: 125%; font-variant-numeric: tabular-nums; }
.chap__p { margin: 0; max-width: 34ch; font-size: 1.05rem; line-height: 1.55; font-weight: 500; text-shadow: 0 0 22px rgba(var(--veil), .95), 0 0 6px rgba(var(--veil), .8); }
.chap__stats { display: grid; gap: 22px; }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: end; }
.stat__n { grid-row: span 2; font-weight: 800; font-stretch: 125%; font-size: clamp(3.4rem, 6.4vw, 7rem); line-height: .82; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__u { font-weight: 700; font-size: 1.15rem; line-height: 1; align-self: end; }
.stat__l { font-size: .85rem; color: color-mix(in srgb, currentColor 72%, transparent); line-height: 1.3; }
.chap__choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: grid; gap: 6px; padding: 30px 30px 26px; border-radius: 28px; text-decoration: none; text-align: left; border: 1.5px solid rgba(255,255,255,.7); background: rgba(var(--veil), .78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 30px 60px -30px rgba(7, 20, 36, .45); transition: background .4s, color .4s; }
.choice:hover { background: var(--hero-fg); color: var(--snow); }
html[data-wx="night"] .choice:hover { color: var(--ink); }
.choice__t { font-weight: 800; font-stretch: 125%; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .9; letter-spacing: -.035em; }

.alti { position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; display: grid; justify-items: end; gap: 14px; color: var(--hero-fg); opacity: 0; }
.alti__scale { width: 46px; height: 220px; background:
  repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 11px) right / 18px 100% no-repeat,
  repeating-linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px 55px) right / 32px 100% no-repeat;
  -webkit-mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); opacity: .55; }
.alti__read { display: grid; justify-items: end; }
.alti__k { opacity: .6; }
.alti__v { font-weight: 700; font-stretch: 125%; font-size: 2.3rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.alti__season { padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; }
.stage__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 18px; height: 1px; background: color-mix(in srgb, var(--hero-fg) 18%, transparent); opacity: 0; }
.stage__progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--hero-fg); }
.stage__scrollcue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; color: var(--hero-fg); }
.stage__scrollcue i { width: 1px; height: 38px; background: linear-gradient(currentColor, transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- SEZIONI ---------------- */
section { position: relative; }
.label { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--ink-3); }
.label span:first-child { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--snow); font-size: .62rem; }
.h2 { margin: 0; font-weight: 800; font-stretch: 118%; font-size: clamp(2.8rem, 7.2vw, 8.6rem); line-height: .88; letter-spacing: -.04em; }
.h2 em { font-size: 1.04em; letter-spacing: -.025em; }
.h2 .line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---- stagioni ---- */
.coll { padding: clamp(110px, 18vh, 200px) var(--pad) clamp(90px, 14vh, 160px); background: var(--snow); transition: background .8s; }
.coll__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; margin-bottom: clamp(40px, 7vh, 80px); }
.coll__head .label { grid-column: 1 / -1; margin: 0; }
.seg { position: relative; display: flex; padding: 5px; border-radius: 999px; background: var(--snow-2); }
.seg button { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: color .4s; }
.seg button[aria-selected="true"] { color: var(--snow); }
.seg__ico { font-size: 1rem; }
.seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: 999px; background: var(--ink); transition: transform .6s var(--ease), width .6s var(--ease); }
.coll__lists { position: relative; }
.coll__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.coll__list[hidden] { display: none; }
.coll__list li { border-top: 1px solid var(--line); }
.coll__list a { display: grid; grid-template-columns: 4.5rem 1fr minmax(0, 30%) 3rem; align-items: center; gap: 20px; padding: clamp(16px, 2.6vh, 28px) 0; text-decoration: none; transition: opacity .4s, padding .5s var(--ease); }
.coll__list .n { color: var(--ink-3); }
.coll__list .t { font-weight: 750; font-stretch: 112%; font-size: clamp(1.7rem, 4.2vw, 4.6rem); line-height: 1; letter-spacing: -.035em; transition: transform .6s var(--ease-out); }
.coll__list .b { font-size: .84rem; color: var(--ink-3); line-height: 1.45; }
.coll__list .arr { justify-self: end; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease-out), background .4s, color .4s; }
.coll__list:hover a { opacity: .32; }
.coll__list a:hover { opacity: 1; }
.coll__list a:hover .t { transform: translateX(1.2rem); }
.coll__list a:hover .arr { transform: rotate(45deg); background: var(--ink); color: var(--snow); border-color: var(--ink); }
.pv { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(220px, 21vw, 340px); aspect-ratio: 4 / 5; pointer-events: none; clip-path: inset(50% 50% 50% 50% round 18px); }
.pv__in { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; background: var(--ink); }
.pv__in img { width: 100%; height: 100%; object-fit: cover; }
.pv__card { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 22px; color: #fff; background: radial-gradient(120% 80% at 80% 0%, rgba(191, 227, 255, .35), transparent 60%), linear-gradient(160deg, #0f2a46, #071320); }
.pv__card b { font-weight: 800; font-stretch: 125%; font-size: 5.5rem; line-height: .8; letter-spacing: -.05em; }
.pv__card span { font-size: .8rem; opacity: .8; }

/* ---- marchi ---- */
.brands { background: var(--ink); color: var(--snow); padding: clamp(36px, 7vh, 80px) 0; overflow: hidden; }
.brands__row { white-space: nowrap; }
.brands__track { display: inline-block; font-weight: 800; font-stretch: 125%; font-size: clamp(3rem, 8.6vw, 9.6rem); line-height: 1.04; letter-spacing: -.035em; text-transform: uppercase; will-change: transform; }
.brands__track i { font-style: normal; color: var(--x); font-size: .45em; vertical-align: .45em; margin: 0 .35em; }
.brands__row--o .brands__track { color: transparent; -webkit-text-stroke: 1.5px rgba(244, 247, 250, .75); }

/* ---- ski service ---- */
.svc { background: #0a1626; color: #eef3f9; }
.svc .label { color: #8ea7bf; }
.svc .label span:first-child { background: var(--x); color: #fff; }
.svc__pin { position: relative; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(96px, 14vh, 130px) var(--pad) clamp(30px, 5vh, 56px); overflow: hidden; }
.svc__intro { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 40px; align-items: end; }
.svc__intro .label { grid-column: 1 / -1; margin: 0; }
.svc__p { margin: 0; color: #b7c8da; font-size: 1.02rem; }
.svc__ski { position: relative; align-self: center; margin: 0 -2vw; }
.ski { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.svc__sparks { position: absolute; inset: 0; pointer-events: none; }
.svc__sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e9fffc; box-shadow: 0 0 8px 2px rgba(var(--x-rgb), .8); }
.svc__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-l); }
.svc__steps li { display: grid; gap: 4px; padding: 18px 18px 0 0; opacity: .35; transition: opacity .5s; }
.svc__steps li.is-on { opacity: 1; }
.svc__steps li.is-on span { color: var(--x-l); }
.svc__steps strong { font-weight: 750; font-stretch: 112%; font-size: 1.3rem; letter-spacing: -.01em; }
.svc__steps small { color: #9fb3c8; font-size: .82rem; line-height: 1.35; }
.svc__prices { padding: clamp(40px, 8vh, 90px) var(--pad) clamp(80px, 14vh, 150px); }
.price { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.price li { position: relative; display: grid; gap: 6px; padding: 26px 22px 22px; border: 1px solid var(--line-l); border-radius: 22px; transition: border-color .4s, background .4s; }
.price li:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .03); }
.price li.is-pro { background: var(--x); color: #fff; border-color: var(--x); }
.price__n { font-weight: 800; font-stretch: 118%; font-size: 1.35rem; letter-spacing: -.02em; }
.price__d { font-size: .84rem; opacity: .72; line-height: 1.35; min-height: 2.6em; }
.price__v { font-weight: 800; font-stretch: 125%; font-size: 2.8rem; line-height: 1; letter-spacing: -.04em; margin-top: 10px; }
.svc__when { color: #8ea7bf; margin: 0; }

/* ---- noleggio ---- */
.rent { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; min-height: 100vh; padding: clamp(110px, 16vh, 180px) var(--pad); background: var(--snow); overflow: hidden; }
.rent__list { list-style: none; margin: 36px 0 22px; padding: 0; display: grid; gap: 0; max-width: 560px; }
.rent__list li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 500; }
.rent__list .mono { color: var(--glacier); font-size: .9rem; }
.rent__season { color: var(--ink-3); margin: 0 0 28px; }
.rent__stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 640px; }
.pass {
  position: relative; width: min(380px, 80vw); aspect-ratio: 54 / 86; border-radius: 26px; padding: 26px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 16px;
  color: #f2f7fc; overflow: hidden; transform-style: preserve-3d; will-change: transform;
  background: radial-gradient(130% 90% at 100% 0%, rgba(var(--x-rgb), .55), transparent 55%), radial-gradient(120% 80% at 0% 100%, rgba(3, 113, 186, .9), transparent 60%), linear-gradient(160deg, #0f2b49 0%, #071424 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 50px 80px -40px rgba(7, 20, 36, .7);
}
.pass__foil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .55;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 120, 220, .5) 35%, rgba(120, 255, 240, .55) 45%, rgba(255, 250, 140, .5) 55%, transparent 70%);
  background-size: 250% 250%; background-position: var(--fx, 50%) var(--fy, 50%); }
.pass__top { display: flex; align-items: center; justify-content: space-between; }
.pass__x { width: 40px; height: 40px; }
.pass__x path:first-child { fill: rgba(255, 255, 255, .14); }
.pass__big { margin: 0; align-self: end; font-family: var(--f-slab); font-size: clamp(3rem, 6vw, 4.4rem); line-height: .86; text-transform: uppercase; letter-spacing: -.01em; transform: translateZ(40px); }
.pass__meta { display: grid; gap: 8px; margin: 0; }
.pass__meta div { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); }
.pass__meta dt { opacity: .65; } .pass__meta dd { margin: 0; text-align: right; }
.pass__code { height: 42px; border-radius: 6px; background: repeating-linear-gradient(90deg, #f2f7fc 0 2px, transparent 2px 4px, #f2f7fc 4px 5px, transparent 5px 9px, #f2f7fc 9px 12px, transparent 12px 14px); opacity: .9; }
.pass__chip { position: absolute; right: 26px; top: 92px; width: 46px; height: 36px; border-radius: 7px; background: linear-gradient(135deg, #e8d9a6, #a8925a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.pass__shadow { position: absolute; bottom: 40px; left: 50%; width: 300px; height: 40px; translate: -50% 0; border-radius: 50%; background: radial-gradient(rgba(11, 26, 43, .35), transparent 70%); filter: blur(10px); }

/* ---- tax free ---- */
.tax { height: 240vh; background: var(--night); color: #eaf2fb; }
.tax .label { color: #7f9ab4; }
.tax .label span:first-child { background: var(--ice); color: var(--ink); }
.tax__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto auto; padding: clamp(96px, 14vh, 130px) var(--pad) clamp(30px, 5vh, 50px); overflow: hidden; }
.tax__pin .label { grid-column: 1 / -1; }
.tax__num { grid-row: 2; grid-column: 1; align-self: center; display: flex; align-items: flex-start; font-weight: 800; font-stretch: 125%; line-height: .8; letter-spacing: -.07em;
  background: linear-gradient(180deg, #ffffff 0%, #bfe3ff 55%, #5aa7e0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tax__v { font-size: clamp(9rem, 30vw, 34rem); font-variant-numeric: tabular-nums; }
.tax__pc { font-size: clamp(3rem, 9vw, 10rem); margin-top: .2em; }
.tax__iva { grid-row: 3; grid-column: 1; margin: -1vw 0 28px .4vw; font-size: 1rem; color: #7f9ab4; }
.tax__iva span { position: relative; }
.tax__iva span::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 2px; background: var(--x); transform: scaleX(var(--strike, 0)); transform-origin: left; transition: transform .5s var(--ease-out); }
.tax__h { grid-row: 2; grid-column: 2; align-self: center; margin: 0; font-weight: 800; font-stretch: 118%; font-size: clamp(2.4rem, 5.2vw, 6rem); line-height: .9; letter-spacing: -.035em; }
.tax__facts { grid-row: 4; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line-l); padding-top: 22px; }
.tax__facts div { display: grid; gap: 6px; }
.tax__facts strong { font-weight: 800; font-stretch: 125%; font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; color: var(--ice); }
.tax__facts span { color: #a9bdd1; font-size: .92rem; max-width: 36ch; }
.tax__note { grid-row: 5; grid-column: 1 / -1; color: #5e7894; margin: 18px 0 0; }

/* ---- chi siamo ---- */
.about { padding: clamp(110px, 18vh, 200px) var(--pad); background: var(--snow); }
.about__q { margin: 0 0 clamp(60px, 10vh, 110px); max-width: 22ch; font-family: var(--f-s); font-size: clamp(2.4rem, 5.6vw, 6.4rem); line-height: 1.0; letter-spacing: -.02em; }
.about__q .w { opacity: .14; transition: opacity .2s; }
.about__nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-bottom: clamp(60px, 10vh, 110px); }
.about__nums > div { display: grid; gap: 6px; padding: 26px 20px 0 0; }
.about__n { font-weight: 800; font-stretch: 125%; font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: .9; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.about__l { color: var(--ink-3); font-size: .9rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value { padding: 30px 28px 34px; border-radius: 26px; background: var(--snow-2); display: grid; gap: 10px; align-content: start; min-height: 300px; transition: background .5s, color .5s, transform .6s var(--ease-out); }
.value:hover { background: var(--ink); color: var(--snow); transform: translateY(-6px); }
.value__i { color: var(--ink-3); }
.value:hover .value__i { color: var(--x); }
.value h3 { margin: auto 0 0; font-weight: 800; font-stretch: 125%; font-size: clamp(2rem, 3.2vw, 3.2rem); letter-spacing: -.04em; line-height: 1; }
.value p { margin: 0; max-width: 36ch; opacity: .8; }

/* ---- dove siamo ---- */
.visit { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 100vh; background: var(--night); color: #eaf2fb; }
.visit .label { color: #7f9ab4; }
.visit .label span:first-child { background: var(--x); color: #fff; }
.visit__map { position: relative; min-height: 100vh; overflow: hidden; cursor: grab; }
.visit__map:active { cursor: grabbing; }
.terrain { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.terrain__labels { position: absolute; inset: 0; pointer-events: none; }
.tlabel { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; translate: -6px -50%; font: 500 .66rem/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: #cfe0ef; white-space: nowrap; transition: opacity .3s; }
.tlabel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #cfe0ef; box-shadow: 0 0 0 4px rgba(207, 224, 239, .15); }
.tlabel small { color: #7f9ab4; font-size: .62rem; }
.tlabel--shop { font-size: .74rem; color: #fff; }
.tlabel--shop::before { width: 12px; height: 12px; background: var(--x); box-shadow: 0 0 0 6px rgba(var(--x-rgb), .25), 0 0 30px 8px rgba(var(--x-rgb), .5); animation: pin 2s ease-in-out infinite; }
@keyframes pin { 50% { box-shadow: 0 0 0 12px rgba(var(--x-rgb), .05), 0 0 40px 12px rgba(var(--x-rgb), .4); } }
.terrain__credit { position: absolute; left: 20px; bottom: 16px; margin: 0; color: #50677f; font-size: .58rem; }
.terrain__hint { position: absolute; left: 20px; top: 100px; margin: 0; color: #7f9ab4; }
.visit__info { padding: clamp(110px, 16vh, 170px) var(--pad) clamp(60px, 10vh, 100px); display: grid; align-content: center; gap: 34px; }
.visit .h2 { font-size: clamp(2.6rem, 5vw, 6rem); }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin: 0; }
.info dt { color: #7f9ab4; margin-bottom: 6px; }
.info dd { margin: 0; font-weight: 600; font-size: 1.02rem; }
.info a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.info a:hover { border-color: var(--x); }
.live { padding: 22px; border: 1px solid var(--line-l); border-radius: 24px; }
.live__t { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: #7f9ab4; }
.live__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.live__grid > div { display: grid; gap: 4px; }
.live__v { font-weight: 800; font-stretch: 125%; font-size: clamp(1.8rem, 2.8vw, 2.8rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.live__k { color: #8ea7bf; font-size: .8rem; }
.live__v small { font-size: .42em; letter-spacing: 0; font-stretch: 100%; font-weight: 600; color: #8ea7bf; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.visit .btn--ink { background: #eef3f9; color: var(--ink); }
.visit .btn--ink:hover { background: var(--x); color: #fff; }
.visit .btn--line:hover { background: #eef3f9; color: var(--ink); border-color: #eef3f9; }

/* ---- footer ---- */
.foot { position: relative; padding: clamp(80px, 14vh, 140px) var(--pad) 28px; background: var(--snow); overflow: hidden; }
.foot__big { position: relative; font-weight: 800; font-stretch: 125%; font-size: clamp(48px, 14.6vw, 300px); line-height: .8; letter-spacing: -.05em; color: var(--ink); margin: 60px 0 40px -.04em; }
.foot__big .line { display: inline-block; position: relative; }
.foot__big .logo-svg { width: min(100%, 1180px); }
.foot__logo {
  display: block; width: min(100%, 1180px); aspect-ratio: 650 / 121; background: currentColor;
  -webkit-mask: url("../assets/img/logo-sportextreme.svg") left center / contain no-repeat; mask: url("../assets/img/logo-sportextreme.svg") left center / contain no-repeat;
}
.foot__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); }
.foot__row p { margin: 0; }
.foot__social { display: flex; gap: 18px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.foot__social a { text-decoration: none; }
.foot__social a:hover { color: var(--glacier); }
.foot__wx { text-align: right; }

/* ---------------- REVEAL di base ---------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

/* ---------------- TELEFONO ---------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; }
  .nav.is-open { display: grid; position: fixed; inset: 70px 12px auto; padding: 12px; border-radius: 22px; background: rgba(11, 26, 43, .92); color: #fff; }
  .nav.is-open a { padding: 14px 16px; font-size: 1.05rem; }
}
@media (max-width: 899px) {
  .lang { display: none; }
  .wx__lbl { display: none; }
  .logo__w { display: none; }
  .logo__img { width: 136px; }
  .hero__title { top: 19vh; font-size: 14.2vw; letter-spacing: -.03em; }
  .hero__title .logo-svg { width: calc(100vw - 2 * var(--pad)); }
  .stage__scrollcue { display: none; }
  .svc__ski { margin: 0 -38vw; }
  .hero__coords { top: 15vh; flex-wrap: wrap; row-gap: 4px; }
  .hero__coords .sep:last-of-type, .hero__coords span:last-child { display: none; }
  .hero__foot { right: var(--pad); bottom: 30px; }
  .hero__sub { display: none; }
  .hero__hint { display: none; }
  .stage { height: 760vh; }
  .chap, .chap--right, .chap--left { left: var(--pad); right: var(--pad); width: auto; top: auto; bottom: 14vh; translate: 0 0; }
  .chap--end { left: var(--pad); right: var(--pad); width: auto; translate: 0 0; top: auto; bottom: 12vh; }
  .chap__h { font-size: 12vw; }
  .stage__veil, .stage__veil.is-right { background: linear-gradient(0deg, rgba(var(--veil), .9) 0%, rgba(var(--veil), .6) 38%, rgba(var(--veil), 0) 70%); }
  .chap__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat { grid-template-columns: 1fr; }
  .stat__n { font-size: 15vw; grid-row: auto; }
  .stat__l { display: none; }
  .alti { top: 96px; translate: 0 0; gap: 6px; }
  .alti__scale { display: none; }
  .alti__v { font-size: 1.6rem; }
  .chap__choice { grid-template-columns: 1fr; }
  .coll__head { grid-template-columns: 1fr; }
  .coll__list a { grid-template-columns: 2.4rem 1fr 2.6rem; row-gap: 6px; }
  .coll__list .b { grid-column: 2 / 3; grid-row: 2; }
  .coll__list .arr { grid-row: 1 / span 2; grid-column: 3; width: 38px; height: 38px; }
  .pv { display: none; }
  .svc__pin { height: auto; min-height: 100svh; gap: 28px; }
  .svc__intro { grid-template-columns: 1fr; gap: 16px; }
  .svc__steps { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .price { grid-template-columns: 1fr 1fr; }
  .price li.is-pro { grid-column: 1 / -1; }
  .rent { grid-template-columns: 1fr; }
  .rent__stage { min-height: 560px; }
  .tax__pin { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; gap: 18px; }
  .tax__num, .tax__h { grid-column: 1; grid-row: auto; }
  .tax__v { font-size: 52vw; }
  .tax__iva { position: static; }
  .tax__facts { grid-template-columns: 1fr; gap: 12px; }
  .tax__facts span { font-size: .84rem; }
  .about__nums { grid-template-columns: 1fr 1fr; gap: 10px; }
  .values { grid-template-columns: 1fr; }
  .value { min-height: 220px; }
  .visit { grid-template-columns: 1fr; }
  .visit__map { min-height: 72svh; }
  .info { grid-template-columns: 1fr; }
  .foot__row { grid-template-columns: 1fr; }
  .foot__wx { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hint-ski::before, .hint-ski::after, .stage__scrollcue i, .live-dot { animation: none; }
}

/* =========================================================================
   SEZIONE B, ESTATE: "In estate si sale" al posto dello Ski Service quando si sceglie l'estate
   (stessi pulsanti di "Due stagioni"; data-pick = stagione scelta dall'utente)
   ========================================================================= */
.svc__face { display: contents; }
html[data-pick="summer"] .svc__face--w, html:not([data-pick="summer"]) .svc__face--s { display: none; }
html[data-pick="summer"] .only-w, html:not([data-pick="summer"]) .only-s { display: none; }
html[data-pick="summer"] .svc { background: radial-gradient(120% 90% at 82% 8%, #2a2a1f 0%, #121c17 55%, #0b1410 100%); }
html[data-pick="summer"] .svc .label { color: #c9b89a; }
html[data-pick="summer"] .svc__p, html[data-pick="summer"] .svc__steps small, html[data-pick="summer"] .svc__when { color: #c4bca9; }
.svc__trail { position: relative; align-self: center; margin: 0 -2vw; }
.trail { display: block; width: 100%; height: auto; overflow: visible; }
.tr-print { opacity: 0; transition: opacity .5s; }
.tr-print.is-on { opacity: .5; }
.svc__sparks--dust i { width: 4px; height: 4px; background: #ffd9a3; box-shadow: 0 0 6px 1px rgba(255, 159, 67, .55); }
.price--kit li { align-content: start; min-height: 230px; }
.price__k { color: var(--x-l); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.price--kit .price__d { min-height: 0; }
.price__go { margin-top: auto; padding-top: 14px; font-weight: 650; font-size: .9rem; color: inherit; text-decoration: none; }
.price__go:hover { text-decoration: underline; text-underline-offset: 4px; }
.price--kit li.is-pro .price__k { color: #fff; opacity: 1; }
@media (max-width: 899px) {
  .svc__trail { margin: 0 calc(-1 * var(--pad)); }
  .trail { overflow: hidden; }
  .price--kit li { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .tr-print { transition: none; } }

/* ---------------------------------------------------- sezione B, secondo giro: una sola sezione integrata
   (interruttore Inverno/Estate in alto a destra, la salita riempie lo spazio disponibile senza tagli,
   i tratti del sentiero sono una scheda che cammina con l'escursionista; niente elenchi ripetuti sotto) */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svc__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.svc__top .label { margin: 0; }
.seg--dark { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.seg--dark button { height: 42px; padding: 0 18px; font-size: .88rem; color: #dfe8f1; }
.seg--dark button[aria-selected="true"] { color: #fff; }
.seg--dark .seg__thumb { background: var(--x); }
.svc__side { display: grid; gap: 16px; justify-items: start; }
.svc__cta { display: inline-flex; gap: 8px; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 159, 67, .55); color: #fff3e2; font-weight: 650; font-size: .92rem; text-decoration: none; transition: background .3s, color .3s; }
.svc__cta:hover { background: var(--x); color: #fff; }
html[data-pick="summer"] .svc__prices { display: none; }
.svc__face--s .svc__trail { align-self: stretch; min-height: 0; height: 100%; }
.svc__face--s .trail { height: 100%; }
.trail__card { position: absolute; left: 0; top: 0; z-index: 2; width: 280px; padding: 14px 16px 15px; border-radius: 16px; background: rgba(11, 19, 15, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 159, 67, .38); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .75); pointer-events: none; will-change: transform; }
.trail__k { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; color: #ffd2a1; font-size: .74rem; }
.trail__k b { color: var(--x-l); font-weight: 500; }
.trail__card strong { display: block; color: #fff7ec; font-weight: 750; font-stretch: 112%; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.15; }
.trail__card small { display: block; margin-top: 5px; color: #d9cfbd; font-size: .88rem; line-height: 1.4; }
.trail__dots { display: flex; gap: 5px; margin-top: 11px; }
.trail__dots i { width: 20px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); transition: background .4s; }
.trail__dots i.is-on { background: var(--x); }
@media (max-width: 899px) {
  .svc__top .label > span:last-child { display: none; } /* resta la lettera B: c'è posto per l'interruttore */
  .seg--dark button { height: 38px; padding: 0 14px; font-size: .82rem; }
  /* estate sul telefono: tutto in uno schermo (titolo, salita che segue l'escursionista, scheda del tratto) */
  html[data-pick="summer"] .svc__pin { height: 100vh; height: 100dvh; min-height: 0; padding-top: 76px; padding-bottom: 14px; gap: 14px; }
  .svc__face--s .svc__p { display: none; }
  .svc__face--s .svc__side { gap: 0; }
  .svc__face--s .svc__trail { display: grid; grid-template-rows: minmax(0, 1fr) auto; margin: 0 calc(-1 * var(--pad)); }
  .trail__card { position: relative; transform: none !important; width: auto; margin: 10px var(--pad) 0; }
}
@media (max-width: 899px) and (max-height: 700px) { .svc__face--s .h2 { font-size: 2.2rem; } }

/* telefono: anche lo Ski Service sta in una schermata (titolo, soletta, cinque passi) */
@media (max-width: 899px) {
  .svc__pin { height: 100vh; height: 100dvh; min-height: 0; padding-top: 76px; padding-bottom: 14px; gap: 14px; }
  .svc__face--w .svc__p { font-size: .92rem; }
  .svc__face--w .svc__steps li { padding-top: 12px; }
  .svc__face--w .svc__steps strong { font-size: 1.08rem; }
  .svc__face--w .svc__steps small { font-size: .76rem; }
}
@media (max-width: 899px) and (max-height: 700px) { .svc__face--w .svc__p { display: none; } .svc__face--w .h2 { font-size: 2.2rem; } }

/* sezione B estate, terzo giro: le schede dei tratti più grandi, con "Nello zaino" */
.trail__card { width: min(400px, 34vw); padding: 20px 22px 20px; border-radius: 20px; }
.trail__k { font-size: .82rem; margin-bottom: 8px; }
.trail__card strong { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.trail__card small { margin-top: 8px; font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.45; color: #e6dccb; }
.trail__bag { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; }
.trail__bag > .mono { color: #ffcf96; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.trail__kit { display: flex; flex-wrap: wrap; gap: 6px; }
.trail__kit span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 159, 67, .14); border: 1px solid rgba(255, 159, 67, .35); color: #fff1dd; font-size: .84rem; font-weight: 600; }
.trail__dots { margin-top: 14px; }
.trail__dots i { width: 26px; height: 4px; }
@media (max-width: 899px) {
  .trail__card { width: auto; padding: 16px 16px 15px; border-radius: 18px; }
  .trail__card strong { font-size: 1.45rem; }
  .trail__card small { font-size: .98rem; }
  .trail__bag { margin-top: 10px; padding-top: 10px; gap: 6px; }
  .trail__kit span { height: 28px; padding: 0 10px; font-size: .8rem; }
  .trail__dots { margin-top: 10px; }
}
/* telefoni bassi: la frase resta, le cose da portare vanno su una riga sola */
@media (max-width: 899px) and (max-height: 700px) {
  .trail__card small { font-size: .9rem; }
  .trail__dots { display: none; }
  .trail__kit span { height: 26px; font-size: .76rem; }
}

.trail__kit span { flex: none; white-space: nowrap; } /* ogni cosa da portare resta intera */
/* sul fondo rosso della scheda in evidenza il testo resta bianco */
.price li.is-pro .price__k { color: #fff; opacity: 1; }
.price li.is-pro .price__d { opacity: .95; }

/* ---- "Scegli la tua stagione": i due video divisi da una lama (6/11/2026) ---- */
.chap--duo { inset: 0; left: 0; top: 0; translate: none; width: auto; text-align: left; }
.duo { position: absolute; inset: 0; --cut: 50%; opacity: 0; transition: opacity .9s var(--ease-out); }
.chap--duo.is-on .duo { opacity: 1; }
.duo__side { position: absolute; inset: 0; display: block; overflow: hidden; color: #fff; text-decoration: none; background: #0b1a2b center / cover no-repeat; }
.duo__side video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo__side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 17, 29, .55) 0%, rgba(7, 17, 29, 0) 38%); pointer-events: none; }
.duo__side--w { z-index: 2; clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.duo__side--s { z-index: 1; }
.duo__t { position: absolute; z-index: 2; bottom: clamp(48px, 12vh, 120px); display: grid; gap: 8px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); transition: transform .6s var(--ease-out); }
.duo__side--w .duo__t { left: var(--pad); } .duo__side--s .duo__t { right: var(--pad); text-align: right; }
.duo__t .choice__t { font-size: clamp(3rem, 8vw, 8rem); }
.duo__side:hover .duo__t, .duo__side:focus-visible .duo__t { transform: translateY(-8px); }
.duo__side:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.duo__blade { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--cut); width: 2px; translate: -1px 0; background: rgba(255, 255, 255, .9); pointer-events: none; }
.duo__blade i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--x); color: #fff; font-style: normal; font-size: 1.2rem; box-shadow: 0 10px 30px -8px rgba(var(--x-rgb), .9); }
.duo__label { position: absolute; z-index: 4; top: clamp(96px, 15vh, 140px); left: 50%; translate: -50% 0; margin: 0; color: #fff; justify-content: center; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
@media (max-width: 899px) {
  .chap--duo { inset: 0; bottom: 0; top: 0; left: 0; right: 0; }
  .duo__side--w { clip-path: inset(0 0 calc(100% - var(--cut)) 0); }
  .duo__blade { top: var(--cut); bottom: auto; left: 0; right: 0; width: auto; height: 2px; translate: 0 -1px; }
  .duo__blade i { width: 44px; height: 44px; rotate: 90deg; }
  .duo__side--w .duo__t { top: calc(var(--cut) - 130px); bottom: auto; }
  .duo__side--s .duo__t { left: var(--pad); right: auto; text-align: left; bottom: calc(var(--tabh, 70px) + 26px); }
  .duo__t .choice__t { font-size: 3.2rem; }
  .duo__label { top: 84px; }
}

/* suggerimento della lingua: una barra piccola in basso a sinistra (sopra la barra del telefono) */
.langhint { position: fixed; z-index: 120; left: var(--pad); bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(11, 26, 43, .92); color: #eef3f9; font-size: .88rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease-out); }
.langhint.is-in { opacity: 1; transform: none; }
.langhint a { color: #fff; font-weight: 700; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--x); }
.langhint button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 899px) { .langhint { left: 12px; right: 12px; bottom: calc(var(--tabh, 70px) + 16px); justify-content: space-between; font-size: .82rem; } }
