/* Base comune alle 5 anteprime: reset, layout e struttura dei componenti.
   Colori, font e forme arrivano dai token che ogni tema definisce in style.css. */
:root {
  --bg: #fff; --fg: #111; --muted: #5b6470; --surface: #f4f4f2; --surface-2: #e9e9e6;
  --line: rgba(0, 0, 0, .12); --accent: #3fa0ad; --accent-2: #183c60; --accent-ink: #fff; --gold: #b0956c;
  --dark: #0f1d2e; --dark-fg: #f4f6f8;
  --font-display: system-ui, sans-serif; --font-body: system-ui, sans-serif; --font-mono: ui-monospace, monospace;
  --radius: 14px; --radius-lg: 24px; --shadow: 0 12px 34px rgba(0, 0, 0, .12);
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px); --sec-y: clamp(64px, 9vw, 120px);
  --h1: clamp(2.6rem, 7vw, 6rem); --h2: clamp(2rem, 4.4vw, 3.4rem); --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.65 var(--font-body); overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-display); line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: .92em; word-break: break-all; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--fg); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- header e navigazione (meccanica; l'aspetto è del tema) */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, transform .35s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
/* loghi doppi (theme_pair): di base si vede la versione per fondo scuro, col tema chiaro l'altra */
.logo-on-light { display: none; }
html[data-theme="light"] .logo-on-dark { display: none; }
html[data-theme="light"] .logo-on-light { display: block; }
.logo-lib { width: clamp(170px, 18vw, 230px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-link { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 60; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px; background: var(--bg); color: var(--fg);
         opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; z-index: 55; }
  .nav-link { font-size: 1.5rem; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open body { overflow: hidden; }
  .nav-open .site-header, .nav-open .pillbar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important; }
}

/* ---------- bottoni */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
       border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; line-height: 1.2; }
.btn-ico { width: 18px; height: 18px; transition: transform .25s var(--ease); flex-shrink: 0; }
.btn:hover .btn-ico { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: currentColor; background: transparent; }

/* ---------- sezioni */
.sec { padding-block: var(--sec-y); position: relative; }
.sec-alt { background: var(--surface); }
.sec-dark { background: var(--dark); color: var(--dark-fg); }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sec-title { font-size: var(--h2); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.sec-dark .lead { color: inherit; opacity: .8; }
.h3 { font-size: 1.35rem; margin-top: 1.4em; }
.split > div > .h3:first-child { margin-top: 0; }
.prose { max-width: 68ch; }
.prose-lg p { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.sec-dark .note { color: inherit; opacity: .7; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.contact { grid-template-columns: 5fr 6fr; } }
.rounded { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.tall { aspect-ratio: 3 / 4; }
.stack { display: grid; gap: 16px; grid-template-columns: 1.2fr 1fr; align-items: end; }
.stack img { aspect-ratio: 4 / 5; object-fit: cover; }
.stack img:last-child { aspect-ratio: 3 / 4; margin-bottom: -40px; }
.sig { font-weight: 700; }
.logo-inline { width: min(100%, 320px); margin-top: 24px; }
.big-quote { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 9rem); line-height: .9; margin: .2em 0 0; color: var(--gold); }

/* ---------- hero pagine interne */
.phero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.phero-media { position: absolute; inset: 0; z-index: -1; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; }
.phero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,.75)); }
.phero-inner { padding-block: 140px clamp(48px, 7vw, 88px); }
.phero-title { font-size: var(--h1); max-width: 14ch; }
.phero-lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 56ch; opacity: .92; }
.phero .kicker { color: inherit; opacity: .9; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; margin-bottom: 18px; opacity: .85; }
.crumbs a { text-decoration: none; }

/* ---------- countdown e numeri */
.countdown { display: flex; gap: clamp(8px, 1.6vw, 18px); margin-top: 28px; }
.cd-cell { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.cd-n { font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.cd-l { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-n { display: block; font: 800 clamp(2.6rem, 6vw, 4.6rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat-n small { font-size: .45em; margin-left: 4px; }
.stat-l { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- dati, programma, quote */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.fact { background: var(--bg); padding: 18px 20px; }
.fact dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-weight: 700; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.tl-item { position: relative; padding: 0 0 28px 32px; display: grid; gap: 2px; }
.tl-item::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.sec-alt .tl-item::before { box-shadow: 0 0 0 5px var(--surface); }
.tl-day { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tl-time { font: 700 1.5rem/1.2 var(--font-display); }
.tl-text { margin: 0; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.price { padding: 22px 20px; border-radius: var(--radius); background: var(--surface); display: grid; gap: 4px; }
.sec-alt .price { background: var(--bg); }
.price-when { font-size: .85rem; color: var(--muted); }
.price-n { font: 800 2.4rem/1 var(--font-display); }
.price-note { font-size: .82rem; color: var(--muted); }
.price-hl { background: var(--accent); color: var(--accent-ink); }
.price-hl .price-when, .price-hl .price-note { color: inherit; opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); font-size: .92rem; font-weight: 600; }
.sec-alt .chips li { background: var(--bg); }
.chips .ico { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.bullets li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 2px; background: var(--accent); }
.paybox { padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.paybox dl { margin: 0; display: grid; gap: 12px; }
.paybox dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.paybox dd { margin: 0; font-weight: 700; }
.split.pay { margin-top: 40px; align-items: center; }

/* ---------- step, card, premi, faq */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); }
.sec-alt .step { background: var(--bg); }
.step-n { display: block; font: 800 2.4rem/1 var(--font-display); color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.sec-alt .card { background: var(--bg); }
.card-ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; }
.card-sub { font-size: .85rem; font-weight: 700; color: var(--accent); margin: -4px 0 8px; }
.card p:last-child { margin: 0; color: var(--muted); }
.podium { display: grid; gap: 8px; }
.podium li { display: flex; justify-content: space-between; padding: 12px 18px; border-radius: 10px; background: var(--surface); font-weight: 700; }
.sec-alt .podium li { background: var(--bg); }
.podium li:nth-child(-n+3) { background: var(--accent); color: var(--accent-ink); }
.podium .amt { font-family: var(--font-display); font-size: 1.15rem; }
.premi-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
.premi-card { display: grid; gap: 12px; }
.premi-card .h3 { margin: 0; }
.premi-card .podium li { padding: 10px 14px; }
.premi-card .podium .amt { font-size: 1rem; text-align: right; }
.premi-card .note { margin: 0; }
.premi-foot { margin-top: 28px; display: grid; gap: 10px; max-width: 80ch; }
.premi-pacco { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-weight: 600; }
.premi-pacco .ico { flex: none; width: 24px; height: 24px; color: var(--accent); }
.org-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.org-list li { padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.sponsor-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sponsor-grid li { display: grid; gap: 4px; align-content: center; justify-items: center; min-height: 104px; padding: 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); text-align: center; }
.sponsor-grid b { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.sponsor-grid span { font-size: .8rem; color: var(--muted); }
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.sec-alt .faq details { background: var(--bg); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 18px; align-items: center; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 28px; animation: marquee 38s linear infinite; padding-right: 28px; }
.marquee-track i { font-style: normal; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- gallerie e video */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery .g-item:nth-child(6n+1) { grid-row: span 2; } }
.g-compact { grid-template-columns: repeat(3, 1fr) !important; }
.g-compact .g-item { grid-row: auto !important; }
.g-item { display: block; overflow: hidden; border-radius: 12px; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.reel { border-radius: var(--radius-lg); overflow: hidden; background: #000; max-width: 380px; margin-inline: auto; aspect-ratio: 9 / 16; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 12, .94); display: grid; place-items: center; padding: 24px; border: 0; max-width: none; max-height: none; width: 100%; height: 100%; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; } .lb-next { right: 18px; top: 50%; }

/* ---------- percorso */
.route { margin: 0 0 40px; }
.route > svg { width: 100%; height: auto; border-radius: var(--radius-lg); }
.route figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.r-land { fill: var(--surface); } .r-sea { fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.r-coast { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .6; }
.r-grid line { stroke: var(--line); stroke-width: 1; }
.r-line, .r-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.r-line { stroke: var(--accent-2); stroke-width: 5; }
.r-glow { stroke: var(--accent); stroke-width: 14; opacity: .18; }
.r-temple, .r-castle { fill: var(--gold); }
.r-pin circle { fill: var(--bg); stroke: var(--accent-2); stroke-width: 4; }
.r-start circle, .r-turn circle { fill: var(--accent); }
.r-pin text, .r-place, .r-sea-l, .r-north text { font: 700 15px var(--font-body); fill: var(--fg); text-anchor: middle; }
.r-place { font: 800 20px var(--font-display); letter-spacing: .12em; }
.r-sea-l { font-style: italic; font-weight: 400; fill: var(--muted); }
.r-north path { fill: none; stroke: var(--fg); stroke-width: 2.5; }
.r-north text { text-anchor: start; }
.r-runner { fill: var(--accent); stroke: #fff; stroke-width: 3; opacity: 0; transition: opacity .5s 2.4s; }
.js [data-route] .r-line { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.6s var(--ease); }
.js [data-route].in .r-line { stroke-dashoffset: 0; }
.js [data-route].in .r-runner { opacity: 1; }
.r-dotgrid { color: var(--fg); opacity: .07; }
.r-sea { fill: url(#r-seag); }
.r-glow { stroke: var(--accent); stroke-width: 12; opacity: .55; }
.r-line { stroke-width: 4.5; }
.r-km circle { fill: var(--bg); stroke: var(--accent-2); stroke-width: 2; }
.r-km text { font: 800 9.5px var(--font-body); fill: var(--fg); text-anchor: middle; }
.r-street { font: 600 12px var(--font-body); fill: var(--muted); text-anchor: middle; font-style: italic; }
.r-pulse { fill: var(--accent); opacity: .5; transform-box: fill-box; transform-origin: center; animation: r-pulse 2s ease-out infinite; }
@keyframes r-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }
.js [data-route] .r-glow { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); transition: stroke-dashoffset 4.5s var(--ease); }
.js [data-route].in .r-glow { stroke-dashoffset: 0; }
.js [data-route] .r-line { transition-duration: 4.5s; }
.js [data-route] .r-km { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .4s, transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i) * .2s + .2s); }
.js [data-route].in .r-km { opacity: 1; transform: none; }
.js [data-route] .r-runner { transition-delay: 4.6s; }
@media (prefers-reduced-motion: reduce) { .r-pulse { animation: none; } }

.route-pts { display: grid; gap: 10px; }
.route-pts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- podismo e squadra */
.places { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.place { border-radius: var(--radius); overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.place-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.place-body { padding: 22px 24px 26px; }
.place-tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.place-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.place-where { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.place-where .ico { width: 15px; height: 15px; }
.place-body p:last-child { margin: 0; }
.training { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .training { grid-template-columns: 2fr 3fr; } }
.training-img img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow); }
.training-meta { display: grid; gap: 12px; margin: 18px 0 22px; }
.training-meta li { display: flex; gap: 12px; align-items: center; }
.training-meta .ico { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.plan table { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.plan caption { text-align: left; font-weight: 700; margin-bottom: 12px; }
.plan th, .plan td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.plan th { white-space: nowrap; font-weight: 700; color: var(--accent); width: 1%; }
.plan tr:last-child td { font-weight: 700; }
.cal { padding: 30px; border-radius: var(--radius-lg); background: var(--bg); }
.cal-motto { font-style: italic; color: var(--muted); }
.cal-list { display: grid; gap: 10px; margin-top: 18px; }
.cal-list li { display: flex; align-items: center; gap: 16px; }
.cal-d { display: grid; place-items: center; width: 64px; height: 58px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; text-transform: uppercase; line-height: 1.1; flex-shrink: 0; }
.cal-d b { font: 800 1.5rem/1 var(--font-display); }
.cal-n { font-weight: 700; }
.split.cal-split { margin-top: 48px; align-items: center; }
.history { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.history li { padding: 24px; border-radius: var(--radius); background: var(--bg); border-top: 4px solid var(--accent); }
.hy-year { display: block; font: 800 2rem/1 var(--font-display); color: var(--accent); margin-bottom: 10px; }
.history h3 { font-size: 1.15rem; } .history p { margin: 0; color: var(--muted); }
.park { display: grid; gap: 14px; }
.park li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--bg); }
.park .ico { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.park b { display: block; }
.callout { display: flex; gap: 18px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; font-weight: 700; }
.callout .ico { width: 44px; height: 44px; flex-shrink: 0; }
.callout p { margin: 0; } .callout a { font-size: 1.5rem; }

/* ---------- tre modi */
.modi { display: grid; gap: 20px; }
@media (min-width: 900px) { .modi { grid-template-columns: repeat(3, 1fr); } }
.modo { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s; }
.modo:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.modo-img { overflow: hidden; } .modo-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.modo:hover .modo-img img { transform: scale(1.05); }
.modo-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.modo-n { font: 800 .9rem var(--font-display); color: var(--accent); letter-spacing: .1em; }
.modo h3 { font-size: 1.6rem; margin: 8px 0; }
.modo p { color: var(--muted); }
.modo-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.modo-cta .ico { width: 18px; height: 18px; transition: transform .25s; }
.modo:hover .modo-cta .ico { transform: translateX(5px); }

/* ---------- contatti e form */
.contact-list { display: grid; gap: 18px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-list a { font-weight: 700; text-decoration: none; }
.map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); }
.form-2 { display: grid; gap: 16px; } @media (min-width: 640px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.form-row { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-check { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; }
.form-check input { width: 18px; height: 18px; }
.form .btn { justify-self: start; }
.form-msg { padding: 14px 16px; border-radius: 10px; background: var(--bg); border-left: 4px solid var(--accent); margin: 0; }
.form-msg.err { border-left-color: #d43e3e; }
.form [type="submit"]:disabled { opacity: .6; cursor: wait; }
/* campo trappola per lo spam: fuori dallo schermo, le persone non lo vedono */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA e footer */
.cta-band { padding-block: clamp(70px, 10vw, 130px); text-align: center; background: var(--accent-2); color: #fff; }
.cta-band h2 { font-size: var(--h2); }
.cta-band p { font-size: 1.15rem; opacity: .85; }
.cta-band .btns { justify-content: center; }
.site-footer { padding-block: 72px 32px; }
.f-grid { display: grid; gap: 40px; } @media (min-width: 900px) { .f-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.f-col h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.f-col ul { display: grid; gap: 8px; } .f-col a { text-decoration: none; opacity: .85; } .f-col a:hover { opacity: 1; }
.f-small { font-size: .82rem; opacity: .7; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; opacity: .75; }

/* ---------- animazioni di ingresso */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---- percorso dalla traccia GPS ---- */
.rt { display: grid; gap: 22px; }
.rt-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rt-stats li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rt-stats b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--accent); }
.rt-stats span { font-size: .82rem; color: var(--muted); }
.rt-maps svg { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.rt-v { display: none !important; }
@media (max-width: 699px) { .rt-h { display: none !important; } .rt-v { display: block !important; max-width: 440px; margin-inline: auto; } }
.rt-land { fill: var(--surface); }
.rt-grid { color: var(--fg); opacity: .06; }
.rt-coast { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .45; stroke-dasharray: 2 5; stroke-linecap: round; }
.rt-reveal { fill: none; stroke: #fff; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.rt-glow { fill: none; stroke: var(--accent); stroke-width: 10; opacity: .4; }
.rt-base { fill: none; stroke: var(--bg); stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.rt-segs path { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.rt-arrows path { fill: none; stroke: var(--bg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rt-km circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.6; }
.rt-km text { font: 800 9.5px var(--font-body); fill: var(--fg); text-anchor: middle; }
.rt-km-int circle { fill: var(--gold); stroke: var(--gold); }
.rt-km-int text { fill: var(--bg); }
.rt-place { font: 800 19px var(--font-display); letter-spacing: .1em; fill: var(--fg); }
.rt-street { font: italic 600 12px var(--font-body); fill: var(--muted); }
.rt-sea { font: italic 600 13px var(--font-body); fill: var(--accent); opacity: .8; letter-spacing: .04em; }
.rt-start-l { font: 700 12.5px var(--font-body); fill: var(--fg); }
.rt-temple { fill: var(--gold); }
.rt-north path { fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linecap: round; }
.rt-north text { font: 800 13px var(--font-body); fill: var(--fg); }
.rt-start circle { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
.rt-start path { fill: none; stroke: var(--bg); stroke-width: 1.8; stroke-linejoin: round; }
.rt-pulse { stroke: none !important; opacity: .5; transform-box: fill-box; transform-origin: center; animation: rt-pulse 2.2s ease-out infinite; }
@keyframes rt-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
.rt-runner { fill: #fff; stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity .5s; }
.rt-cursor { fill: var(--gold); stroke: #fff; stroke-width: 3; opacity: 0; transition: opacity .2s; }
.rt-on .rt-cursor { opacity: 1; }
.rt-on .rt-runner { opacity: 0 !important; }
.js [data-route] .rt-reveal { stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); transition: stroke-dashoffset 4.2s cubic-bezier(.45,.05,.3,1); }
.js [data-route].in .rt-reveal { stroke-dashoffset: 0; }
.js [data-route].in .rt-runner { opacity: 1; transition-delay: 4.3s; }
.js [data-route] .rt-km { opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .35s, transform .45s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--i) * .2s + .1s); }
.js [data-route].in .rt-km { opacity: 1; transform: none; }
.rt-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .88rem; color: var(--muted); }
.rt-legend li { display: flex; align-items: center; gap: 8px; }
.rt-legend i { flex: none; display: inline-grid; place-items: center; font: 800 10px var(--font-body); font-style: normal; }
.lg-grad { width: 34px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #4cc9f0, #f2c14e); }
.lg-km, .lg-int { width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--accent); color: var(--fg); }
.lg-int { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.lg-arrow { width: 26px; height: 8px; border-radius: 4px; background: var(--accent); position: relative; }
.lg-arrow::after { content: ""; position: absolute; left: 10px; top: 1px; width: 4px; height: 4px; border: solid var(--bg); border-width: 0 1.6px 1.6px 0; transform: rotate(-45deg); }
.rt-note { margin: -8px 0 0; font-size: .88rem; color: var(--muted); max-width: 80ch; }
.rt-prof { padding: 22px 22px 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.rt-prof-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.rt-prof-head .h3 { margin: 0; }
.rt-prof-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.rt-prof-box { position: relative; height: 170px; margin-left: 40px; touch-action: pan-y; cursor: crosshair; }
.rt-prof-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; border-radius: 0; background: none !important; }
.rt-pgrid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rt-pline { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rt-prof-y span { position: absolute; left: -40px; transform: translateY(-50%); font-size: .72rem; color: var(--muted); }
.rt-prof-x { position: absolute; left: 0; right: 0; bottom: -24px; height: 18px; }
.rt-prof-x span { position: absolute; transform: translateX(-50%); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.rt-prof-x span.end { transform: translateX(-100%); }
.rt-peak { position: absolute; transform: translate(-50%, -150%); font-size: .75rem; font-weight: 700; color: var(--gold); white-space: nowrap; pointer-events: none; }
.rt-cur { position: absolute; top: 0; bottom: 0; width: 0; opacity: 0; pointer-events: none; transition: opacity .15s; }
.rt-cur i { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: color-mix(in srgb, var(--fg) 45%, transparent); }
.rt-cur i::after { content: ""; position: absolute; left: -5px; top: var(--y, 50%); width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.rt-tip { position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%); padding: 5px 10px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.rt-on .rt-cur { opacity: 1; }
.rt-on .rt-peak { opacity: 0; }
.rt-btns { margin: 0; }
.rt figcaption { margin: 0; }
@media (prefers-reduced-motion: reduce) { .rt-pulse { animation: none; } }

.quota { margin-top: 2rem; padding: 1.6rem 1.8rem; border: 1px solid var(--accent); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.quota .h3 { margin-top: 0; }

/* ---------- Allenamento di gruppo ---------- */
.regole { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: r; }
.regola { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; counter-increment: r; }
.regola::before { content: counter(r); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: .7rem; }
.regola h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.regola p { margin: 0; color: var(--muted); font-size: .95rem; }
.allen { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.allen-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--accent-2); color: #fff; border-radius: var(--radius-lg); padding: 1.2rem 1.5rem; }
.allen-head strong { font-size: 1.15rem; }
.allen-head label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; display: block; }
.allen-head input { font: inherit; font-size: 1.25rem; font-weight: 800; background: transparent; color: #fff; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .4); color-scheme: dark; }
.allen-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.allen-stat { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid; border-radius: var(--radius); text-align: center; padding: .9rem .5rem; }
.allen-stat b { display: block; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.allen-stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.st-pres { border-top-color: #1ea86a; } .st-pres b { color: #1ea86a; }
.st-forse { border-top-color: #c98a00; } .st-forse b { color: #c98a00; }
.st-ass { border-top-color: #d43e3e; } .st-ass b { color: #d43e3e; }
.allen-offline { background: rgba(201, 138, 0, .1); border: 1px solid #c98a00; border-radius: var(--radius); padding: .7rem 1rem; font-size: .9rem; }
#allen-lista { display: flex; flex-direction: column; gap: 8px; }
.allen-row { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: .75rem 1rem; transition: background .2s; }
.allen-row[data-s=presente] { border-left-color: #1ea86a; background: rgba(30, 168, 106, .08); }
.allen-row[data-s=forse] { border-left-color: #c98a00; background: rgba(201, 138, 0, .08); }
.allen-row[data-s=assente] { border-left-color: #d43e3e; background: rgba(212, 62, 62, .06); }
.allen-row[data-s=assente] .allen-nome { text-decoration: line-through; opacity: .7; }
.allen-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.allen-ico { width: 1.1rem; font-weight: 800; }
.allen-nome { font-weight: 700; flex: 1; min-width: 9rem; }
.allen-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); border-radius: 99px; padding: .15rem .55rem; color: var(--muted); }
.allen-az { display: flex; gap: 6px; flex-wrap: wrap; }
.allen-btn { font: inherit; font-size: .8rem; font-weight: 700; border-radius: 99px; padding: .4rem .85rem; border: 1.5px solid; background: transparent; cursor: pointer; }
.allen-presente { color: #1ea86a; } .allen-presente:hover { background: #1ea86a; color: #fff; }
.allen-forse { color: #c98a00; } .allen-forse:hover { background: #c98a00; color: #fff; }
.allen-assente { color: #d43e3e; } .allen-assente:hover { background: #d43e3e; color: #fff; }
.allen-undo { color: var(--muted); border-color: var(--line); }
.allen-opt { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: .65rem 0 0 1.6rem; }
.allen-tipi { display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; flex-wrap: wrap; }
.allen-tipo { font: inherit; font-size: .78rem; font-weight: 600; text-transform: capitalize; border: 0; background: var(--surface); padding: .4rem .75rem; cursor: pointer; color: var(--muted); }
.allen-tipo.on { background: var(--accent); color: var(--accent-ink); }
.allen-tipo:disabled { cursor: default; }
.allen-passo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.allen-lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.allen-unit, .allen-freccia { font-size: .78rem; color: var(--muted); }
.allen-sel { font: inherit; font-size: .85rem; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .4rem; background: var(--bg); color: var(--fg); }
.allen-join { display: flex; gap: 8px; flex-wrap: wrap; background: var(--bg); border: 1.5px dashed var(--accent); border-radius: var(--radius); padding: 1rem; }
.allen-join input { flex: 1; min-width: 12rem; font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); }
@media (max-width: 520px) { .allen-opt { margin-left: 0; } .allen-stat b { font-size: 2rem; } }
.team-img img { object-position: center 25%; }

.allen-ritrovo { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1.5px solid var(--accent); border-radius: var(--radius-lg); padding: 1.1rem 1rem; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.allen-ritrovo b { font-size: 1.3rem; color: var(--accent); }
.allen-ritrovo span { font-weight: 700; }
.allen-ritrovo em { font-style: normal; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.maps-link { display: block; margin-top: 4px; font-size: .85rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.maps-link:hover { text-decoration: underline; }

.story-chips { margin: 1.6rem 0 2rem; }
.story-text p { margin: 0 0 1.25rem; line-height: 1.75; }
.story-text { margin-bottom: 2rem; }

.partner-logos { margin-top: 3rem; text-align: center; }
.partner-logos ul { --n: 4; list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }   /* 7 patrocini: 4 + 3 centrati */
.partner-logos li { flex: 0 0 calc((100% - (var(--n) - 1) * 14px) / var(--n)); background: #fff; border-radius: var(--radius); height: 130px; display: grid; place-items: center; padding: 18px 22px; transition: transform .25s, box-shadow .25s; }
.partner-logos li:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.partner-logos img { max-width: 100%; max-height: 92px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) { .partner-logos ul { --n: 3; } }
@media (max-width: 520px) { .partner-logos ul { --n: 2; } .partner-logos li { height: 110px; } }
/* sponsor della squadra (pagina La Libertas): 5 tessere su una riga */
.partner-logos.club-sponsors { margin-top: 0; }
.partner-logos.club-sponsors ul { --n: 5; margin-top: 0; }
@media (max-width: 900px) { .partner-logos.club-sponsors ul { --n: 3; } }
@media (max-width: 520px) { .partner-logos.club-sponsors ul { --n: 2; } }

.sponsor-grid .sp-logo { background: #fff; display: grid; place-items: center; padding: 14px 18px; min-height: 120px; transition: transform .25s, box-shadow .25s; }
.sponsor-grid .sp-logo:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.sponsor-grid .sp-logo img { max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }

.org-lead { text-align: center; max-width: none; margin: 0 auto; }
.logo-band { margin-top: 2.6rem; text-align: center; }
.logo-band .kicker { margin-bottom: 1rem; }
.sponsor-band { list-style: none; padding: 0; margin: 0; display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 14px; }
.sponsor-band .sp-logo { border-radius: var(--radius); height: 130px; min-height: 0; }
.sponsor-band .sp-logo img { max-height: 100px; }
@media (max-width: 520px) { .sponsor-band { grid-template-columns: repeat(2, 1fr) !important; } .sponsor-band .sp-logo { height: 110px; } }

.ristori { margin: 4rem 0 4.5rem; text-align: center; }
.ristori ol { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0; position: relative; }
.ristori li { position: relative; flex: 1 1 0; min-width: 90px; max-width: 170px; padding-top: 30px; font-weight: 800; font-size: 1.05rem; }
.ristori li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.ristori li:first-child::before { left: 50%; } .ristori li:last-child::before { right: 50%; }
.rs-dot { position: absolute; top: 0; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- Pacer ---------- */
.pacer-box { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; margin: 0 0 4rem; }
.pacer-logo img { width: 100%; height: auto; display: block; }
.pacer-box h3 { margin: .3rem 0 .6rem; font-size: 1.4rem; }
.pacer-box p { color: var(--muted); margin: 0 0 1rem; }
.pacer-times { border-collapse: collapse; width: 100%; max-width: 420px; font-variant-numeric: tabular-nums; }
.pacer-times th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 1rem .5rem 0; border-bottom: 2px solid var(--accent); }
.pacer-times td { padding: .55rem 1rem .55rem 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.pacer-times td:first-child { color: var(--accent); font-size: 1.1rem; }
@media (max-width: 640px) { .pacer-box { grid-template-columns: 1fr; padding: 1.4rem; } .pacer-logo { max-width: 140px; margin: 0 auto; } }
.pacer-foto { margin: 0; align-self: stretch; }
.pacer-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
@media (max-width: 900px) { .pacer-box { grid-template-columns: 140px 1fr; } .pacer-foto { grid-column: 1 / -1; } .pacer-foto img { aspect-ratio: 16/9; height: auto; } }
@media (max-width: 640px) { .pacer-box { grid-template-columns: 1fr; } }

/* ---------- Social (barra fissa a destra) ---------- */
.social { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 60; }
.social ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .2s, filter .2s; }
.social a:hover { transform: scale(1.08); filter: brightness(1.1); }
.social .ico { width: 22px; height: 22px; }
@media (max-width: 640px) { .social { right: 10px; top: auto; bottom: 16px; transform: none; } .social a { width: 44px; height: 44px; } }

.f-credit { display: inline-flex; align-items: center; gap: .6rem; }
.f-credit img { height: 28px; width: auto; display: block; }

/* ---------- Rassegna stampa ---------- */
.press { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.press-card a { display: flex; flex-direction: column; gap: .6rem; height: 100%; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
.press-card a:hover { transform: translateY(-3px); border-color: var(--accent); }
.press-src { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.press-src b { color: var(--accent); }
.press-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.press-card p { margin: 0; color: var(--muted); flex: 1; }
.press-card a { padding: 0 0 1.5rem; overflow: hidden; }
.press-card a > :not(.press-img) { margin-left: 1.5rem; margin-right: 1.5rem; }
.press-img { margin: 0 0 .4rem; aspect-ratio: 16/9; overflow: hidden; }
.press-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.press-card a:hover .press-img img { transform: scale(1.04); }
.pacer-box { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr); }
.pacer-foto { align-self: center; }
.pacer-foto img { aspect-ratio: 2000/1533; height: auto; }
@media (max-width: 900px) { .pacer-box { grid-template-columns: 140px 1fr; } .pacer-foto { grid-column: 1 / -1; } }
@media (max-width: 640px) { .pacer-box { grid-template-columns: 1fr; } }
.pacer-box { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "logo intro intro" "logo tab foto"; align-items: start; row-gap: 1.2rem; }
.pacer-logo { grid-area: logo; align-self: center; }
.pacer-intro { grid-area: intro; } .pacer-intro p { margin: 0; max-width: none; }
.pacer-times { grid-area: tab; max-width: none; }
.pacer-foto { grid-area: foto; align-self: start; margin-top: 1.6rem; }
@media (max-width: 900px) { .pacer-box { grid-template-columns: 140px 1fr; grid-template-areas: "logo intro" "tab tab" "foto foto"; } .pacer-foto { margin-top: 0; } }
@media (max-width: 640px) { .pacer-box { grid-template-columns: 1fr; grid-template-areas: "logo" "intro" "tab" "foto"; } }
.pacer-foto { align-self: end; margin-top: 0; }
@media (max-width: 900px) { .pacer-foto { align-self: auto; } }
@media (max-width: 520px) { .allen-tipi { flex-wrap: nowrap; width: 100%; } .allen-tipo { flex: 1 1 auto; padding: .45rem .3rem; font-size: .74rem; letter-spacing: -.01em; } }
.allen-nuova { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .4s; }
.callout-help { margin: 32px 0; }
.callout-help a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.price { grid-template-rows: 1fr auto auto; }   /* importi allineati anche se le date vanno a capo in modo diverso */

/* Quote: i riquadri Fitwalking iniziano su una nuova riga */
.prices .price-fw1{grid-column-start:1}
/* Fitwalking: etichetta, importo e date impilati dall’alto, importi sempre alla stessa altezza */
.prices .price-fw{grid-template-rows:auto auto 1fr;align-content:start}
.prices .price-fw .price-when{margin-bottom:.9rem}
/* Galleria: se in fondo resta una casella vuota, l’ultima foto si allarga su due colonne */
@media (min-width: 900px) { .gallery .g-item.g-flat { grid-row: auto; } }
@media (min-width: 900px) { .gallery .g-wide { grid-column: span 2; } .gallery .g-wide img { position: absolute; inset: 0; aspect-ratio: auto; } }


/* ---------- calcolatore del passo (Corri ad Agropoli) */
.pcalc { --pc: 31.6%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(22px, 3.5vw, 48px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 44px); }
.sec-alt .pcalc { background: var(--bg); }
.pc-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pc-fields { display: flex; align-items: baseline; gap: 4px; }
.pc-fields input { width: 2.3ch; padding: 0 0 2px; border: 0; border-bottom: 3px solid var(--line); border-radius: 0; background: transparent; text-align: center;
  font: 800 clamp(3.4rem, 7vw, 5rem)/1 var(--font-display); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.pc-fields input:focus { outline: none; border-bottom-color: var(--accent); }
#pc-min { text-align: right; } #pc-sec { text-align: left; }
.pc-fields input::-webkit-outer-spin-button, .pc-fields input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-sep { font: 800 clamp(3rem, 6vw, 4.4rem)/1 var(--font-display); }
.pc-unit { margin-left: 10px; font-weight: 700; color: var(--muted); }
.pc-range { width: 100%; height: 8px; margin: 26px 0 8px; border-radius: 99px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--pc), var(--line) var(--pc)); }
.pc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.pc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.pc-scale { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-speed { margin: 16px 0 0; color: var(--muted); }
.pc-speed b { color: var(--fg); font-variant-numeric: tabular-nums; }
.pc-out { display: grid; gap: 12px; }
.pc-res { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; padding: 16px 20px;
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.sec-alt .pc-res { background: var(--surface); }
.pc-res:nth-child(2) { border-left-color: var(--gold); }
.pc-name { font-weight: 700; font-size: 1.05rem; }
.pc-res small { grid-row: 2; color: var(--muted); font-size: .85rem; }
.pc-res b { grid-column: 2; grid-row: 1 / 3; font: 800 clamp(2rem, 4.4vw, 2.9rem)/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcalc .note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .pcalc { grid-template-columns: 1fr; } }
