/* ==========================================================================
   MG DDV — base.css
   Struttura, componenti e accessibilità. La direzione visiva (C Segnavia)
   sta in segnavia.css, che ridefinisce i token e aggiunge gli elementi firma.
   Mobile-first: i media query allargano, non restringono.
   ========================================================================== */

/* ---------- Font self-hosted ---------- */
@font-face { font-family: "Fira Sans"; src: url("../fonts/firasans-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/firasans-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/firasans-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans Condensed"; src: url("../fonts/firasanscond-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Token ---------- */
:root {
  --c-red: #c8192e;
  --c-red-press: #a31425;
  --c-black: #151515;
  --c-ink: #151515;
  --c-white: #ffffff;
  --c-grey-50: #f4f4f2;
  --c-grey-100: #ebebe8;
  --c-grey-200: #d9d9d6;
  --c-grey-600: #5c5c5c;
  --c-ground: var(--c-white);
  --c-ground-alt: var(--c-grey-50);
  --c-success: #1e6b3a;

  /* Superfici scure (footer, testate scure, barra di anteprima) */
  --c-ink-hover: #333333;          /* hover di superfici nere */
  --c-on-dark-muted: #b3b3b3;      /* testo secondario su nero: 8,7:1 */
  --c-on-dark-soft: #e6e6e6;       /* testo su grigio scuro */
  --c-dark-line: #333333;          /* filetti su nero */
  --c-dark-border: #4a4a4a;        /* bordi di controlli su nero */
  --c-preview: #2b2b2b;            /* barra di anteprima (solo sviluppo) */
  --c-preview-muted: #bdbdbd;
  --c-scrim: rgba(21, 21, 21, 0.4);  /* sfondo dietro il menu */
  --c-ink-line: rgba(21, 21, 21, 0.25);
  --c-white-line: rgba(255, 255, 255, 0.5);

  /* Evidenziazione "da verificare" (solo anteprima) */
  --c-verify-bg: #fff3cd;
  --c-verify-line: #8a6d00;

  --font-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fira Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --display-weight: 800;
  --display-stretch: 100%;
  --display-tracking: -0.01em;
  --display-leading: 0.95;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.625rem, 4.5vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 7vw, 4rem);
  --fs-display: clamp(3rem, 12vw, 6rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(56px, 10vw, 112px);
  --wrap: 1200px;

  --radius: 2px;
  --rule: 1px solid var(--c-grey-200);
  --rule-strong: 2px solid var(--c-ink);
  --tap: 48px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: light;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

::selection { background: var(--c-red); color: var(--c-white); }
input, textarea { caret-color: var(--c-red); }

a { color: var(--c-red); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}

:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--c-white);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-ink); color: var(--c-white); padding: var(--s-3) var(--s-4);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

main:focus { outline: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--alt { background: var(--c-ground-alt); }
.section--tight { padding-block: var(--s-8); }
.section:not(.section--alt):not(.band):not(.section--tight) + .section:not(.section--alt):not(.band):not(.section--tight) { padding-top: 0; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.muted { color: var(--c-grey-600); }

/* ---------- Tipografia ---------- */
.display, h1, .h1, h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); text-transform: uppercase; }
h1, .h1 { font-size: var(--fs-h1); text-transform: uppercase; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.lead { font-size: clamp(1.125rem, 2.4vw, 1.375rem); line-height: 1.45; max-width: 40ch; text-wrap: pretty; }
.prose { max-width: 68ch; }
.prose p { text-wrap: pretty; }
.prose > * + * { margin-top: var(--s-4); }
.prose ul { padding-left: 1.2em; }
.label {
  font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-grey-600);
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- Segnaposto contenuti mancanti ---------- */
.tbd {
  display: inline-block; padding: 0 0.4em; border-radius: var(--radius);
  background: var(--c-grey-100); color: var(--c-grey-600);
  font-family: var(--font-body); font-size: 0.875em; font-weight: 600; font-stretch: 100%;
  letter-spacing: 0; text-transform: none; line-height: 1.6; white-space: nowrap;
}
.is-preview .tbd { outline: 1.5px dashed var(--c-red); outline-offset: 1px; cursor: help; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: var(--s-3) var(--s-5);
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 750; font-stretch: 100%;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; text-decoration: none;
  transition: transform 120ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 20px; height: 20px; }
.btn--trial { background: var(--c-red); color: var(--c-white); }
.btn--trial:active { background: var(--c-red-press); }
.btn--enroll { background: var(--c-ink); color: var(--c-white); }
.btn--ghost { border-color: currentColor; color: var(--c-ink); background: transparent; }
.btn--on-dark.btn--ghost { color: var(--c-white); }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--trial:hover { background: var(--c-red-press); }
  .btn--enroll:hover { background: var(--c-ink-hover); }
  .btn--ghost:hover { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
  .btn--on-dark.btn--ghost:hover { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }
}

.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 700; }
.link-arrow .icon { width: 20px; height: 20px; transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(3px); } }

/* ---------- Barra di anteprima (solo APP_PREVIEW) ---------- */
.preview-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4);
  padding: var(--s-2) var(--gutter); background: var(--c-preview); color: var(--c-on-dark-soft);
  font: 600 0.8125rem/1.3 system-ui, sans-serif;
}
.preview-bar__label { text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-preview-muted); }
.preview-bar__themes { display: flex; gap: var(--s-1); flex-wrap: wrap; }
.preview-bar a { color: var(--c-white); text-decoration: none; padding: 6px 10px; border-radius: 2px; }
.preview-bar__themes a[aria-current] { background: var(--c-red); }
.preview-bar__tbd { margin-left: auto; text-decoration: underline !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--c-white); border-bottom: var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--c-ink); text-decoration: none; margin-right: auto; min-width: 0; }
.brand__logo { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.125rem; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.brand__sub { font-size: 0.75rem; color: var(--c-grey-600); white-space: nowrap; margin-top: 3px; }
.nav-main, .header-actions .btn--enroll { display: none; }
.header-actions .btn { min-height: 44px; padding: 10px 14px; font-size: 0.8125rem; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px;
  border: 2px solid var(--c-ink); border-radius: var(--radius); background: transparent;
  font-weight: 750; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.menu-toggle .icon { width: 20px; height: 20px; }
.menu-toggle span { display: none; }

@media (max-width: 479px) {
  .site-header__inner { gap: var(--s-2); }
  .brand { gap: var(--s-2); }
  .brand__logo { width: 40px; height: 40px; }
  .brand__sub { display: none; }
  .brand__name { white-space: normal; font-size: 1rem; line-height: 0.95; max-width: 8.5em; }
}
@media (min-width: 480px) { .menu-toggle span { display: inline; } }

@media (min-width: 1040px) {
  .site-header__inner { min-height: 80px; gap: var(--s-6); }
  .brand__logo { width: 52px; height: 52px; }
  .nav-main { display: block; }
  .nav-main ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
  .nav-main a {
    display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
    color: var(--c-ink); text-decoration: none; font-weight: 650; font-size: 0.9375rem;
  }
  .nav-main a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--c-red); }
  .header-actions { display: flex; gap: var(--s-2); }
  .header-actions .btn--enroll { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1040px) {
  .nav-main a:hover { color: var(--c-red); }
}

/* ---------- Menu mobile (dialog) ---------- */
.menu {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0 var(--gutter) var(--s-6);
  border: 0; background: var(--c-white); color: var(--c-ink);
  display: flex; flex-direction: column; inset: 0;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms var(--ease-drawer), overlay 160ms allow-discrete, display 160ms allow-discrete;
}
.menu:not([open]) { display: none; }
.menu[open] { opacity: 1; transform: none; transition-duration: 240ms; }
@starting-style { .menu[open] { opacity: 0; transform: translateY(-8px); } }
.menu::backdrop { background: var(--c-scrim); }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: var(--rule); }
.menu__title { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1.25rem; }
.menu__close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; margin-right: -12px; }
.menu__list { margin-top: var(--s-3); }
.menu__list a {
  display: flex; align-items: center; min-height: 56px; border-bottom: var(--rule);
  color: var(--c-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: 1.75rem; text-transform: uppercase; line-height: 1;
}
.menu__list a[aria-current] { color: var(--c-red); }
.menu__actions { margin-top: auto; padding-top: var(--s-6); display: grid; gap: var(--s-3); }
html.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-black); color: var(--c-white); padding-top: var(--s-8); margin-top: 0; }
.site-footer a { color: var(--c-white); }
.site-footer .muted { color: var(--c-on-dark-muted); }
.site-footer__grid { display: grid; gap: var(--s-6); }
.site-footer__brand img { width: 64px; height: 64px; }
.site-footer__name { margin-top: var(--s-3); font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.5rem; line-height: 1; text-transform: uppercase; max-width: 16ch; }
.site-footer__claim { margin-top: var(--s-2); color: var(--c-on-dark-muted); }
.site-footer__title { font-family: var(--font-body); font-stretch: 100%; font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-on-dark-muted); margin-bottom: var(--s-3); line-height: 1.3; }
.site-footer__list li + li { margin-top: var(--s-2); }
.site-footer__list a { overflow-wrap: anywhere; }
.site-footer__social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--c-dark-border); border-radius: var(--radius); }
.site-footer__bottom { margin-top: var(--s-7); padding-block: var(--s-4); border-top: 1px solid var(--c-dark-line); font-size: var(--fs-small); color: var(--c-on-dark-muted); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.site-footer :focus-visible { outline-color: var(--c-white); box-shadow: 0 0 0 5px var(--c-black); }

/* ---------- Testata pagina interna ---------- */
.page-head { padding-block: var(--s-7) var(--s-6); border-bottom: var(--rule-strong); }
.page-head__title { max-width: 18ch; }
.page-head__lead { margin-top: var(--s-4); }
.page-head__meta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.breadcrumb { font-size: var(--fs-small); margin-bottom: var(--s-4); }
.breadcrumb a { color: var(--c-grey-600); }

.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.section__head p { max-width: 52ch; }

/* ---------- Due percorsi: prova / iscrizione ---------- */
.paths { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); border-radius: var(--radius); color: var(--c-white); text-decoration: none; }
.path--trial { background: var(--c-red); }
.path--enroll { background: var(--c-black); }
.path__title { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(2rem, 6vw, 3rem); line-height: 0.95; text-transform: uppercase; }
.path__for { font-weight: 700; }
.path__text { max-width: 40ch; }
.path .link-arrow { margin-top: auto; padding-top: var(--s-3); color: var(--c-white); }

/* ---------- Elenco squadre ---------- */
.team-list { border-top: var(--rule-strong); }
.team-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); align-items: center;
  padding: var(--s-4) 0; border-bottom: var(--rule); color: var(--c-ink); text-decoration: none;
  transition: background-color 150ms ease;
}
.team-row__name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(1.5rem, 5vw, 2.25rem); line-height: 1; text-transform: uppercase; }
.team-row__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--fs-small); color: var(--c-grey-600); }
.team-row__arrow { grid-row: 1 / span 2; grid-column: 2; }
.team-row:active { transform: scale(0.995); }
@media (hover: hover) and (pointer: fine) { .team-row:hover .team-row__name { color: var(--c-red); } }
@media (min-width: 860px) {
  .team-row { grid-template-columns: minmax(0, 1.3fr) 1fr 1fr 1fr auto; padding: var(--s-5) 0; }
  .team-row__meta { display: contents; font-size: var(--fs-body); color: var(--c-ink); }
  .team-row__arrow { grid-row: auto; grid-column: auto; }
}

/* ---------- Scheda dati (dl) ---------- */
.facts { display: grid; gap: 0; border-top: var(--rule-strong); }
.fact { padding: var(--s-4) 0; border-bottom: var(--rule); display: grid; gap: var(--s-1); }
.fact dt { font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-grey-600); }
.fact dd { font-size: 1.25rem; font-weight: 650; }
@media (min-width: 720px) { .facts--3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); } }

.people li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; border-bottom: var(--rule); }
.people__name { font-weight: 700; }
.people__role { color: var(--c-grey-600); }

/* ---------- Percorso a passi ---------- */
.steps { counter-reset: step; display: grid; gap: 0; border-top: var(--rule-strong); }
.step { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-4) 0; border-bottom: var(--rule); }
.step::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 2.25rem; line-height: 1; color: var(--c-red); font-variant-numeric: tabular-nums; }
.step__title { font-weight: 750; font-size: 1.125rem; }
.step__text { color: var(--c-grey-600); }

/* ---------- Documenti ---------- */
.doc-group + .doc-group { margin-top: var(--s-7); }
.doc-group h2 { font-size: var(--fs-h3); font-family: var(--font-body); font-stretch: 100%; font-weight: 750; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--s-3); }
.doc-list { border-top: var(--rule-strong); }
.doc-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-4) 0; border-bottom: var(--rule); align-items: start; }
.doc-row__icon { grid-row: span 3; width: 28px; height: 28px; color: var(--c-red); }
.doc-row__title { font-weight: 750; font-size: 1.125rem; }
.doc-row__summary { color: var(--c-grey-600); }
.doc-row__action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: var(--fs-small); margin-top: var(--s-2); }
@media (min-width: 760px) {
  .doc-row { grid-template-columns: auto 1fr auto; align-items: center; }
  .doc-row__icon { grid-row: span 2; }
  .doc-row__action { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group h3 { margin-bottom: var(--s-3); text-transform: uppercase; font-size: var(--fs-label); letter-spacing: 0.08em; color: var(--c-grey-600); }
.faq { border-top: var(--rule-strong); }
.faq details { border-bottom: var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 56px; padding: var(--s-3) 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 22px; height: 22px; color: var(--c-red); transition: transform 200ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--s-5); max-width: 68ch; }
.faq details[open] > div { animation: faq-in 200ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Avvisi Home ---------- */
.notices { display: grid; gap: var(--s-3); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); align-items: start; padding: var(--s-4) var(--s-5); background: var(--c-white); border: 2px solid var(--c-ink); border-radius: var(--radius); }
.notice .icon { grid-row: span 2; color: var(--c-red); }
.notice__title { font-weight: 800; }

/* ---------- Banda ---------- */
.band { padding-block: var(--section); color: var(--c-white); }
.band--red { background: var(--c-red); }
.band--black { background: var(--c-black); }
.band a:not(.btn) { color: var(--c-white); }
.band :focus-visible { outline-color: var(--c-white); box-shadow: 0 0 0 5px var(--c-ink); }

/* ---------- Partner ---------- */
.partner-list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.partner-list li { padding: var(--s-3) var(--s-4); border: var(--rule); border-radius: var(--radius); font-weight: 700; }

/* ---------- Livelli Club dei 100 ---------- */
.tiers { border-top: var(--rule-strong); }
.tier { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); padding: var(--s-4) 0; border-bottom: var(--rule); align-items: baseline; }
.tier__name { font-weight: 750; font-size: 1.125rem; }
.tier__amount { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tier__gift { grid-column: 1 / -1; color: var(--c-grey-600); font-size: var(--fs-small); }
.tier--key .tier__amount { color: var(--c-red); }

/* ---------- Due colonne generiche ---------- */
.split { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .split--wide-left { grid-template-columns: 1.4fr 1fr; } }

.timeline li { display: grid; grid-template-columns: 5rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: var(--rule); }
.timeline__year { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 2rem; line-height: 1; color: var(--c-red); font-variant-numeric: tabular-nums; }
.timeline { border-top: var(--rule-strong); }

blockquote.quote { padding-left: var(--s-5); border-left: 1px solid var(--c-ink); font-size: 1.125rem; font-style: italic; max-width: 56ch; }
blockquote.quote footer { margin-top: var(--s-2); font-style: normal; font-size: var(--fs-small); color: var(--c-grey-600); }

/* ---------- Formulari (solo interfaccia in questa fase) ---------- */
.form { display: grid; gap: var(--s-6); }
.form-note { padding: var(--s-4) var(--s-5); background: var(--c-grey-50); border-radius: var(--radius); font-size: var(--fs-small); }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-5); min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: var(--s-4); font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1; text-transform: uppercase; }
.fieldset__intro { margin-top: calc(-1 * var(--s-2)); color: var(--c-grey-600); }
.field { display: grid; gap: var(--s-2); }
.field__label { font-weight: 700; }
.field__opt { font-weight: 400; color: var(--c-grey-600); }
.field__hint { font-size: var(--fs-small); color: var(--c-grey-600); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  border: 1.5px solid var(--c-grey-600); border-radius: var(--radius); background: var(--c-white);
  font-size: 1rem; line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.textarea { min-height: 128px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 44px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--c-ink); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border: 2px solid var(--c-red); }
.field__error { display: flex; gap: var(--s-2); color: var(--c-red); font-weight: 650; font-size: var(--fs-small); }
.row-2 { display: grid; gap: var(--s-5); }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-2--zip { grid-template-columns: 9rem 1fr; } }

.choices { display: grid; gap: var(--s-2); }
.choices--inline { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: var(--s-3) var(--s-4); border: 1.5px solid var(--c-grey-600); border-radius: var(--radius); background: var(--c-white); cursor: pointer; font-weight: 600; transition: border-color 150ms ease, background-color 150ms ease; }
.choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--c-red); }
.choice:has(input:checked) { border: 2px solid var(--c-ink); background: var(--c-grey-50); }
.choice:has(input:focus-visible) { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.choice input:focus-visible { outline: none; box-shadow: none; }
.choice__text small { display: block; font-weight: 400; color: var(--c-grey-600); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--c-red); }

.upload { display: grid; gap: var(--s-2); padding: var(--s-4); border: 1.5px dashed var(--c-grey-600); border-radius: var(--radius); }
.upload input[type="file"] { font-size: var(--fs-small); max-width: 100%; }
.upload input[type="file"]::file-selector-button { min-height: 44px; margin-right: var(--s-3); padding: 0 var(--s-4); border: 2px solid var(--c-ink); border-radius: var(--radius); background: var(--c-white); font-weight: 700; cursor: pointer; }
.upload__note:empty { display: none; }
.upload__note.is-warning { color: var(--c-ink); font-weight: 650; }

.form-progress { display: flex; gap: var(--s-1); margin-bottom: var(--s-2); }
.form-progress li { flex: 1; height: 4px; background: var(--c-grey-200); }
.form-progress li[aria-current] , .form-progress li.done { background: var(--c-red); }
.form-progress-label { font-weight: 700; font-size: var(--fs-small); }

.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.form-actions .btn { min-width: 12rem; }
.form-disabled-note { font-size: var(--fs-small); color: var(--c-grey-600); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Anteprima: indice direzioni ---------- */
.preview-cards { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .preview-cards { grid-template-columns: repeat(3, 1fr); } }
.preview-card { display: grid; gap: var(--s-3); padding: var(--s-5); border: 2px solid var(--c-ink); border-radius: var(--radius); }
.preview-card h2 { font-size: 2rem; }
.preview-card ul { padding-left: 1.1em; }
.tbd-table td, .tbd-table th { text-align: left; padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: var(--rule); vertical-align: top; font-size: var(--fs-small); }

/* ---------- Riduzione del movimento ----------
   Con prefers-reduced-motion: niente spostamenti, ingressi animati o scroll animato.
   Restano brevi cambi di colore/opacità e tutti gli stati (hover, focus, attivo): il feedback non si perde. */
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .team-row:active, .sign:active { transform: none; }
  .btn, .team-row { transition-property: background-color, color, border-color; }
  .link-arrow .icon { transition: none; }
  .link-arrow:hover .icon { transform: none; }
  .menu, .menu[open] { transform: none; transition: opacity 120ms ease, overlay 120ms allow-discrete, display 120ms allow-discrete; }
  .faq summary .icon { transition: none; }
  .faq details[open] > div { animation: fade-in 120ms ease; }
}

/* ---------- Componenti aggiuntivi delle pagine interne ---------- */
.section-title { margin-bottom: var(--s-5); }
.list-note { margin-top: var(--s-5); max-width: 68ch; }
.fact-note { margin-top: var(--s-3); font-size: var(--fs-small); }
.small-note { margin-top: var(--s-3); font-size: var(--fs-small); }
.link-arrow.small { font-size: var(--fs-small); margin-top: var(--s-2); }

.toc { margin-top: var(--s-5); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border: 1.5px solid currentColor; border-radius: var(--radius); text-decoration: none; font-weight: 650; font-size: var(--fs-small); }

.venue-list { display: grid; gap: 0; border-top: var(--rule-strong); }
.venue { display: grid; gap: var(--s-1); padding: var(--s-5) 0; border-bottom: var(--rule); }
.venue__name { font-size: 1.25rem; font-weight: 800; }
.venue__address { color: var(--c-grey-600); }
.venue .link-arrow { margin-top: var(--s-2); font-size: var(--fs-small); }
@media (min-width: 860px) { .venue-list { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); border-top: 0; } .venue { border-top: var(--rule-strong); border-bottom: 0; } }

.clubs { display: grid; gap: var(--s-5); }
.club { display: grid; grid-template-columns: 80px 1fr; column-gap: var(--s-4); align-items: center; }
.club__logo { grid-row: span 2; width: 80px; height: 80px; object-fit: contain; }
.club__name { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.club__place { color: var(--c-grey-600); font-size: var(--fs-small); }
@media (min-width: 860px) { .clubs { grid-template-columns: repeat(3, 1fr); } }

.people { border-top: var(--rule-strong); }
.people a { overflow-wrap: anywhere; }
@media (min-width: 860px) { .people--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }

.check-list { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 600; }
.check-list .icon { flex: none; color: var(--c-red); }

.contact-list { display: grid; gap: 0; border-top: var(--rule-strong); margin-bottom: var(--s-7); }
.contact { display: grid; gap: var(--s-1); padding: var(--s-5) 0; border-bottom: var(--rule); }
.contact__label { font-size: clamp(1.5rem, 4vw, 2rem); }
.contact__for { color: var(--c-grey-600); }
.contact__email { font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; }
@media (min-width: 860px) { .contact-list { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); border-top: 0; } .contact { border-top: var(--rule-strong); border-bottom: 0; } }

.calendar-actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-top: var(--s-4); }
.calendar-box { margin-top: var(--s-4); }
.calendar-frame { width: 100%; height: 640px; border: var(--rule); }

.aside { align-self: start; }
.aside .steps { margin-top: var(--s-4); }
.aside__contact, .aside__switch { margin-top: var(--s-5); }
@media (min-width: 900px) { .aside { position: sticky; top: 104px; } }

.form--stepped:not(.is-stepped) .step-nav { display: none; }
.form--stepped.is-stepped .fieldset[hidden] { display: none; }
.form-progress-wrap { display: grid; gap: var(--s-2); }
.form--stepped:not(.is-stepped) .form-progress { display: none; }

.table-scroll { overflow-x: auto; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.875em; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: var(--s-2); }

/* ---------- Dato da verificare (fonti in conflitto), evidenziato solo in anteprima ---------- */
.is-preview .verify { background: var(--c-verify-bg); outline: 1.5px dashed var(--c-verify-line); outline-offset: 1px; cursor: help; }
.site-footer .tbd, .is-preview .site-footer .verify { color: var(--c-ink); }

/* ---------- Stato dei formulari (mostrato solo con errori/messaggi reali dal server) ---------- */
.form-errors { padding: var(--s-4) var(--s-5); border: 2px solid var(--c-red); border-radius: var(--radius); background: var(--c-white); }
.form-errors:focus-visible { outline-offset: 3px; }
.form-errors__title { font-family: var(--font-body); font-stretch: 100%; font-size: 1.125rem; font-weight: 800; line-height: 1.3; text-transform: none; color: var(--c-red); margin-bottom: var(--s-2); }
.form-errors ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-1); }
.form-errors a { font-weight: 650; }
.form-message { padding: var(--s-3) var(--s-4); border-radius: var(--radius); border-left: 0; font-weight: 650; }
.form-message--error { background: var(--c-white); border: 2px solid var(--c-red); color: var(--c-red); }
.form-message--info { background: var(--c-grey-50); border: 2px solid var(--c-ink); }
.field__error .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
[aria-invalid="true"].input, [aria-invalid="true"].select, [aria-invalid="true"].textarea { border: 2px solid var(--c-red); }
.choice:has(input[aria-invalid="true"]) { border-color: var(--c-red); }
[data-focus-on-load]:focus { outline: none; }
[data-focus-on-load]:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 4px; }

/* ---------- Riadattamento con testo ingrandito (zoom testo 200 %, WCAG 1.4.4 / 1.4.10) ---------- */
body { overflow-wrap: break-word; }
h1, h2, h3, .h1, .h2, .h3 { hyphens: auto; }
a[href^="mailto:"], .contact__email, .org__mail, code { overflow-wrap: anywhere; }
/* gli elementi di griglia e flex possono restringersi invece di allargare la pagina */
.split > *, .row-2 > *, .paths > *, .faq-layout > *, .legal > *, .teams-teaser__grid > *, .thanks__grid > *,
.trail-path__grid > *, .club-join > *, .org > *, .facts > *, .fact dd, .people li > *, .timeline li > * { min-width: 0; }
.form, .form > *, .field { min-width: 0; }
.btn { max-width: 100%; white-space: normal; text-align: center; }
.form-actions .btn { min-width: min(12rem, 100%); }
.faq summary > :first-child, .faq summary { min-width: 0; }
.tbd { white-space: normal; }
.tier { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.tier__gift { flex-basis: 100%; }
.subgroup-title { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; text-transform: none; }
