/* ==========================================================================
   Val d'Orcia Gravel — foglio di stile pubblico
   CSS scritto a mano. Palette presa dal paesaggio: crete, terra di Siena,
   ulivi e cipressi.
   ========================================================================== */

:root {
  --paper: #f3ecdf;
  --paper-deep: #e8dcc6;
  --surface: #fbf8f2;
  --ink: #221e18;
  --ink-soft: #5e564a;
  --line: #d5c8b0;

  --clay: #a9501f;          /* testo, link, bottoni: contrasto AA su carta e con testo bianco */
  --clay-dark: #8a3f16;
  --clay-bright: #c8642d;   /* solo decorativo */
  --ochre: #d6a95c;
  --olive: #8c8a4f;
  --cypress: #3d4630;
  --cypress-dark: #2a3122;

  --font: 'Archivo', system-ui, sans-serif;
  --gutter: clamp(16px, 6vw, 96px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* --- Tipografia ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font);
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 17px; }

p { margin: 0; font-size: 18px; }
p + p { margin-top: 1em; }

ul, ol { margin: 1em 0 0; padding-left: 1.2em; }

a { color: inherit; }

.kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
}

.lead { font-size: clamp(19px, 1.6vw, 22px); max-width: 640px; color: var(--ink-soft); }

.hyperlink {
  color: var(--clay);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.hyperlink:hover { color: var(--clay-dark); }

/* --- Bottoni ------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 16px 30px;
  border: 2px solid var(--clay);
  background: var(--clay);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-stretch: 85%;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn:active, .cookie-choice:active, .nav-cta:active { transform: scale(.97); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--clay-bright);
  outline-offset: 3px;
}
/* Sulle sezioni terracotta e verdi l'anello terracotta non si vede: lì è chiaro */
.final-cta :focus-visible, .land :focus-visible, .facts :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

/* Salta al contenuto: compare solo con la tastiera */
.skip-link {
  position: absolute;
  z-index: 10002;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* --- Layout e utilità ---------------------------------------------------- */

section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.inner { max-width: var(--max); margin: 0 auto; }

.grid-2, .grid-3 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.center-text { text-align: center; }
.center-items { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.top-margin-small { margin-top: .5rem; }
.top-margin-mid { margin-top: 1rem; }
.top-margin-large { margin-top: 1.5rem; }
.top-margin-xl { margin-top: 2.5rem; }
.top-margin { margin-top: 4rem; }

.light-color { color: var(--paper); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
}
.card h2 { font-size: clamp(26px, 2.6vw, 34px); }

/* --- Pagine interne ------------------------------------------------------ */

.page-head {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 14ch; }
.page-head .lead { margin-top: 24px; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  background: var(--paper);
}

.hero__text { min-width: 0; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(64px, 9vw, 150px);
  font-stretch: 62%;
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.02em;
}
.hero__title span { display: block; color: var(--clay); }

.hero__copy { margin-top: 28px; }
.hero__note { margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--clay); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__photo { margin: 0; }
.hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1534 / 1025; object-fit: cover; }

/* --- Edizione 2026: grazie e foto ---------------------------------------- */

.thanks { border-top: 1px solid var(--line); }
.thanks .lead { margin-top: 16px; }
.photo-strip {
  display: grid;
  grid-template-columns: 1.5fr .75fr 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}
.photo-strip img { display: block; width: 100%; height: clamp(220px, 24vw, 340px); object-fit: cover; }
.news { background: var(--surface); border-top: 1px solid var(--line); }

/* --- Striscia dati ------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--cypress-dark);
  color: var(--paper);
  padding: 0 var(--gutter);
}
.facts > div { padding: 26px 24px; border-left: 1px solid rgba(243, 236, 223, .16); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts strong {
  display: block;
  font-size: 30px;
  font-stretch: 70%;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.facts span { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }

/* --- Intro --------------------------------------------------------------- */

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro h2 { max-width: 11ch; }
.intro__body p { color: var(--ink-soft); }
.intro__body .counter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.intro__body .counter strong { font-size: 56px; font-stretch: 62%; font-weight: 900; line-height: 1; color: var(--clay); }

/* --- Percorsi ------------------------------------------------------------ */

.routes { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.routes__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.routes__head p { max-width: 420px; color: var(--ink-soft); }

.route-list { margin-top: 48px; border-top: 2px solid var(--ink); }

.route {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.route__km {
  font-size: 84px;
  font-stretch: 62%;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
}
.route__km small { font-size: 24px; font-weight: 700; margin-left: 4px; }

.route__info h3 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.route__level {
  font-size: 12px;
  font-stretch: 100%;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 10px;
  border: 1px solid var(--ink);
}
.route__info p { margin-top: 10px; max-width: 560px; color: var(--ink-soft); font-size: 17px; }
.route__info .route__stats { margin-top: 8px; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* barra proporzionale alla distanza: --len va da 0 a 1 */
.route__bar { position: relative; height: 6px; margin-top: 18px; background: var(--paper-deep); max-width: 560px; }
.route__bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--len) * 100%);
  background: repeating-linear-gradient(90deg, var(--clay) 0 14px, transparent 14px 20px);
}


/* --- Territorio ---------------------------------------------------------- */

.land { background: var(--cypress); color: var(--paper); }
.land .kicker { color: var(--ochre); }
.land__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid rgba(243, 236, 223, .25); }
.land__grid { row-gap: 40px; }
.land__item { padding: 32px 32px 0; border-left: 1px solid rgba(243, 236, 223, .25); }
.land__item:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.land__item .num { font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--ochre); }
.land__item h3 { margin-top: 14px; }
.land__item p { margin-top: 12px; opacity: .85; font-size: 17px; }

/* --- Come funziona ------------------------------------------------------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; padding-top: 24px; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--clay);
}
.steps h3 { margin-top: 12px; }
.steps p { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }

/* --- FAQ (accordion) ----------------------------------------------------- */

.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq__wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }

.faq-accordion { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { color: var(--clay); }
.faq-icon { flex-shrink: 0; font-size: 28px; font-weight: 300; line-height: 1; transition: transform .25s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 0 24px; color: var(--ink-soft); max-width: 640px; }

/* --- CTA finale ---------------------------------------------------------- */

.final-cta { position: relative; overflow: hidden; background: var(--clay); color: #fff; text-align: center; padding-bottom: 0; }
.final-cta h2 { font-size: clamp(44px, 8vw, 110px); font-stretch: 62%; font-weight: 900; line-height: .88; }
.final-cta .kicker { color: var(--paper); }
.final-cta .btn-light { margin-top: 36px; }
.final-cta svg {
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  height: clamp(60px, 10vw, 140px);
  margin: clamp(48px, 6vw, 80px) calc(-1 * var(--gutter)) -1px;
}

/* --- Conferma iscrizione ------------------------------------------------- */

.confirm__body { padding-top: clamp(40px, 5vw, 64px); }

.confirm__order {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.confirm__order > div { padding: 20px 24px 20px 0; }
.confirm__order > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.confirm__order dt { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.confirm__order dd { margin: 6px 0 0; font-size: 26px; font-stretch: 72%; font-weight: 800; line-height: 1.1; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-stretch: 100%; letter-spacing: .02em; }
.confirm__order dd.mono { font-size: 20px; font-weight: 700; }

.confirm__title { margin-top: clamp(48px, 6vw, 72px); font-size: clamp(28px, 3vw, 40px); }

.ticket-list { margin-top: 24px; border-top: 2px solid var(--ink); }
.ticket {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.ticket__km { font-size: 64px; font-stretch: 62%; font-weight: 900; line-height: .9; letter-spacing: -.02em; color: var(--clay); }
.ticket__km small { font-size: 20px; font-weight: 700; margin-left: 3px; }
.ticket__info h3 { font-size: clamp(24px, 2.4vw, 30px); }
.ticket__info p { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }
.ticket__info .ticket__code { color: var(--ink); font-size: 15px; font-weight: 600; }

.confirm__note {
  margin-top: 32px;
  max-width: 680px;
  padding-left: 20px;
  border-left: 4px solid var(--ochre);
  color: var(--ink-soft);
  font-size: 16px;
}

.confirm__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 40px; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--cypress-dark); color: var(--paper); padding: 64px var(--gutter) 32px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--ochre); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; max-width: var(--max); margin: 0 auto; }
.site-footer__brand { display: flex; gap: 16px; align-items: center; }
.site-footer__brand { flex-direction: column; align-items: flex-start; }
.site-footer__brand img { width: auto; height: 88px; }
.site-footer__brand span { display: block; margin-top: 6px; font-size: 14px; opacity: .7; }
.site-footer nav { display: flex; flex-direction: column; font-size: 16px; }
.site-footer nav a, .site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 236, 223, .16);
  font-size: 14px;
  opacity: .75;
}

/* --- Cookie banner e modale --------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--clay);
  box-shadow: 0 20px 60px rgba(34, 30, 24, .16);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s cubic-bezier(0.23, 1, 0.32, 1), transform .3s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner__content { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.cookie-banner__text { flex: 1; }
.cookie-title { font-size: 20px; font-stretch: 72%; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.cookie-banner__copy { margin-top: 10px; font-size: 16px; }
.cookie-banner__actions, .cookie-modal__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: flex-end; }

/* Le due scelte hanno lo stesso aspetto: nessuna è spinta più dell'altra */
.cookie-choice {
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-stretch: 85%;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .16s cubic-bezier(0.23, 1, 0.32, 1);
}
.cookie-choice:hover { background: var(--ink); color: var(--paper); }
.cookie-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--clay);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cookie-link:hover { color: var(--clay-dark); }
.cookie-banner button:focus-visible, .cookie-modal button:focus-visible { outline: 3px solid var(--clay-bright); outline-offset: 3px; }

.cookie-modal { position: fixed; inset: 0; z-index: 10000; display: none; }
.cookie-modal.is-active { display: block; }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(34, 30, 24, .5); }
.cookie-modal__box {
  position: relative;
  width: min(680px, calc(100% - 32px));
  margin: 6vh auto 0;
  padding: 28px;
  background: var(--surface);
  border-top: 4px solid var(--clay);
}
.cookie-modal__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-modal__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; font-size: 34px; line-height: 1; cursor: pointer; color: var(--ink); }
.cookie-modal .cookie-title { font-size: 24px; }
.cookie-option__title { font-size: 17px; font-stretch: 72%; font-weight: 800; line-height: 1; text-transform: uppercase; }
.cookie-modal__body { margin-top: 18px; }
.cookie-modal__body p { font-size: 16px; }
.cookie-modal__footer { margin-top: 28px; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }

.cookie-switch { position: relative; display: inline-flex; width: 58px; height: 32px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider { position: absolute; inset: 0; background: var(--line); cursor: pointer; transition: background-color .25s ease; }
.cookie-slider::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  background: #fff;
  transition: transform .25s ease;
}
.cookie-switch input:checked + .cookie-slider { background: var(--cypress); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(26px); }
.cookie-switch--disabled { opacity: .7; pointer-events: none; }

/* --- Regolamento --------------------------------------------------------- */

.rules { display: grid; gap: 0; max-width: 960px; }
.rule { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.rule:first-child { border-top: 0; padding-top: 0; }
.rule__num { font-size: 44px; font-stretch: 62%; font-weight: 900; line-height: 1; color: var(--clay); }
.rule h2 { font-size: clamp(26px, 3vw, 36px); }
.rule h3 { margin-top: 24px; font-size: 18px; font-stretch: 85%; }
.rule p, .rule ul { margin-top: 14px; max-width: 720px; }
.rule li + li { margin-top: 8px; }
.small-print { font-size: 14px !important; color: var(--ink-soft); }

.table-wrap { margin-top: 20px; overflow-x: auto; }
.fee-table { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 16px; }
.fee-table th { padding: 10px 12px; text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.fee-table td { padding: 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fee-table td:first-child { font-weight: 700; }
.fee-table small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); }

/* --- Programma ----------------------------------------------------------- */

.program { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.program__day h2 { font-size: clamp(30px, 3.4vw, 44px); }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline time { font-weight: 800; font-stretch: 85%; color: var(--clay); font-variant-numeric: tabular-nums; line-height: 1.3; }
.timeline h3 { font-size: 20px; }
.timeline p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }

.page-band { background: var(--paper-deep); }
/* Sul beige scuro la terracotta normale arriva a 4:1: qui si usa quella scura */
.page-band .kicker, .page-band .hyperlink { color: var(--clay-dark); }
.page-band p + p { margin-top: 1em; }

/* --- Responsive ---------------------------------------------------------- */

/* --- Pagina percorsi ----------------------------------------------------- */

.route-pages { border-top: 2px solid var(--ink); }
.route-page { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.route-page__head { display: flex; align-items: end; gap: 28px; flex-wrap: wrap; }
.route-page__head h2 { font-size: clamp(34px, 4vw, 56px); }
.route-page__head .route__level { display: inline-block; margin-top: 12px; }
.route-page__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 32px; }
.route-page__text { max-width: 620px; color: var(--ink-soft); font-size: 18px; }
.route-page__text + .route-page__text { margin-top: 1em; }
.route-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.route-page__facts { margin: 0; border-top: 1px solid var(--ink); }
.route-page__facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.route-page__facts dt { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.route-page__facts dd { margin: 0; font-weight: 700; text-align: right; }

/* --- Come arrivare e foto ------------------------------------------------ */

.places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.place { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.place h2 { font-size: clamp(28px, 2.6vw, 36px); }
.place p { color: var(--ink-soft); }
.place .btn { margin-top: auto; align-self: flex-start; }

.steps-list { margin: 0; padding-left: 1.4em; }
.steps-list li + li { margin-top: 10px; }
.steps-list li::marker { color: var(--clay); font-weight: 800; }
.top-gap { margin-top: 28px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .route-page__body { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .intro, .faq__wrap, .program { grid-template-columns: 1fr; }
  .grid-3, .steps, .land__grid { grid-template-columns: 1fr; }
  .land__grid { row-gap: 0; }
  .land__item, .land__item:nth-child(3n+1) { padding: 28px 0; border-left: 0; border-bottom: 1px solid rgba(243, 236, 223, .25); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body, p { font-size: 16px; }
  .rule { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .grid-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div, .facts > div:first-child { padding: 18px 0; border-left: 0; border-bottom: 1px solid rgba(243, 236, 223, .16); }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(243, 236, 223, .16); }
  .facts strong { font-size: 24px; }
  .routes__head { display: block; }
  .routes__head p { margin-top: 16px; }
  .route { grid-template-columns: 1fr; gap: 12px; }
  .route__km { font-size: 64px; }
  .route .btn { justify-self: start; }
  .confirm__order { grid-template-columns: 1fr 1fr; }
  .confirm__order > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .confirm__order > div:nth-child(2) { padding-left: 0; border-left: 0; }
  .ticket { grid-template-columns: 1fr; gap: 10px; }
  .ticket__km { font-size: 48px; }
  .ticket .btn { justify-self: start; }
  .hero__actions .btn { flex: 1 1 auto; }
  .mobile-fullwidth, .fullwidth { width: 100%; }

  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-banner__content { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner__copy { font-size: 15px; }
  /* Rifiuta e Accetta affiancati, Personalizza sotto: il banner resta basso */
  .cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-banner__actions .cookie-link { grid-column: 1 / -1; justify-self: center; }
  .cookie-modal__footer > * { width: 100%; }
  .cookie-modal__box { width: calc(100% - 20px); margin-top: 4vh; padding: 20px; }
  .cookie-option { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.confirm__alert { margin-bottom: 32px; padding: 14px 18px; border-left: 4px solid var(--clay); background: var(--paper-deep); font-weight: 600; }
.confirm__alert--ok { border-left-color: var(--olive); }
.confirm__alert p + p { margin-top: 6px; }

/* Biglietti nella pagina di conferma */
.ticket__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* Cambio percorso */
.route-options { margin: 0; padding: 0; border: 0; }
.route-options legend { margin-bottom: 14px; }
.route-option {
  display: grid;
  grid-template-columns: 22px 110px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}
.route-option + .route-option { margin-top: -1px; }
.route-option:has(input:checked) { position: relative; border-color: var(--ink); box-shadow: inset 4px 0 0 var(--clay); }
.route-option.is-disabled { cursor: not-allowed; opacity: .6; }
.route-option input { margin: 0; accent-color: var(--clay); width: 18px; height: 18px; }
.route-option__km { font-size: 44px; font-stretch: 62%; font-weight: 900; line-height: .9; }
.route-option__km small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.route-option__info { display: flex; flex-direction: column; gap: 3px; }
.route-option__info strong { font-size: 20px; font-stretch: 85%; text-transform: uppercase; }
.route-option__info small { color: var(--ink-soft); font-size: 14px; }
.route-option__info em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--clay); }
.certificate-box { margin-top: 28px; padding: 20px; border: 1px dashed var(--ink); background: var(--surface); }
.certificate-box p { margin: 6px 0 12px; color: var(--ink-soft); }
@media (max-width: 560px) {
  .route-option { grid-template-columns: 22px 1fr; }
  .route-option__km { display: none; }
}

/* Sponsor e partner: loghi su riquadri bianchi della stessa altezza */
.logo-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.logo-grid--supporters { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.logo-tile { background: #fff; border: 1px solid var(--line); height: 120px; display: flex; }
.logo-tile a { display: flex; flex: 1; transition: background .2s; }
.logo-tile a:hover { background: var(--paper); }
.logo-tile img { margin: auto; max-width: 80%; max-height: 76px; object-fit: contain; }
.logo-grid--supporters .logo-tile { height: 140px; }
.logo-grid--supporters .logo-tile img { max-height: 104px; }
@media (max-width: 560px) {
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-grid--supporters { grid-template-columns: repeat(3, 1fr); }
    .logo-tile { height: 96px; }
    .logo-tile img { max-height: 60px; }
    .logo-grid--supporters .logo-tile { height: 110px; }
    .logo-grid--supporters .logo-tile img { max-height: 80px; }
}

/* Merchandising */
.merch { align-items: start; }
.merch__photo img { width: 100%; max-width: 420px; height: auto; display: block; border: 1px solid var(--line); }
.merch__photo figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }

/* Blog */
.post-list { display: grid; gap: 20px; }
.post-card__link { display: grid; grid-template-columns: 280px 1fr; gap: 28px; color: inherit; text-decoration: none; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.post-card__link:hover { border-color: var(--ink); }
.post-card__media { background: var(--paper-deep); min-height: 190px; }
.post-card__media img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; display: block; }
.post-card__body { padding: 24px 28px 24px 0; }
.post-card__body h3 { margin-top: 8px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; text-transform: none; letter-spacing: 0; }
.post-card__body p { margin-top: 10px; color: var(--ink-soft); }
.post-card__more { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.post-head .kicker a { color: inherit; }
.post-body { max-width: 760px; }
.post-body p { max-width: 68ch; }
/* Il titolo del comunicato è una frase intera: niente maiuscolo, riga più larga */
.page-head .post-title { max-width: 30ch; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; text-transform: none; letter-spacing: -.005em; text-wrap: balance; }
.post-intro { max-width: 62ch; }
.post-past { margin: 0 0 24px; padding: 14px 18px; background: var(--paper-deep); font-size: 16px; }
.post-cta { margin-top: 40px !important; }
.post-years { display: grid; gap: clamp(40px, 6vw, 72px); }
.post-year__title { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: clamp(34px, 4vw, 52px); }
.post-year .post-list { margin-top: 24px; }
.post-card__link--text { grid-template-columns: 1fr; }
.post-card__link--text .post-card__body { padding-left: 28px; }

/* Foto a tutta larghezza nelle pagine interne, subito sotto l'intestazione */
.page-photo { max-width: calc(var(--max) + 2 * var(--gutter)); margin: clamp(32px, 5vw, 56px) auto 0; padding: 0 var(--gutter); }
.page-photo img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.post-body p { margin-top: 1em; }
.post-body h2 { margin-top: 1.4em; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.25; text-transform: none; letter-spacing: 0; }
.post-body__image { margin: 0 0 24px; }
.post-body__image img { width: 100%; height: auto; max-height: 620px; object-fit: contain; background: var(--paper-deep); display: block; }
.post-body__image figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: var(--ink); text-decoration: none; }
.post-nav a:hover { color: var(--clay); }
.post-nav small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.post-nav__next { text-align: right; }
@media (max-width: 720px) {
    .post-card__link { grid-template-columns: 1fr; gap: 0; }
    .post-card__media { min-height: 0; }
    .post-card__media img { max-height: 200px; }
    .post-card__body { padding: 18px 20px 22px; }
    .post-card__link--text .post-card__body { padding-left: 20px; }
    .page-photo img { aspect-ratio: 3 / 2; }
}
