/* Asolo Urban Trail — clone fedele del sito ufficiale (WordPress/Elementor),
   ricostruito pulito nel motore a blocchi. Zero JS, zero framework.
   Palette sorgente: blu #0474BB, azzurro #6EC1E4, verde CTA #95D749, grigio #f7f7f7. */

:root {
  /* === Brand (allineati a site.config.json design.*; qui sono autorevoli
        perché style.css è caricato DOPO lo <style> iniettato da build.js) === */
  --color-primary: #1565c0;   /* blu brand */
  --color-secondary: #0d47a1; /* blu profondo */
  --color-bg: #ffffff;
  --color-text: #102a43;      /* ink */
  --color-accent: #76c442;    /* verde energia/CTA */

  /* Palette estesa del concept bianco/blu */
  --white: #ffffff;
  --sky: #eef4fb;             /* azzurro chiaro (sezioni) */
  --sky-2: #e3edfa;
  --blue: #1565c0;
  --blue-700: #0d47a1;
  --blue-900: #08254f;        /* navy (footer) */
  --green: #76c442;
  --green-700: #5aa531;
  --green-soft: rgba(118, 196, 66, .16);
  --ink: #102a43;
  --muted: #51637a;
  --on-blue-soft: #a9c6ec;    /* testo tenue su blu/navy */

  --line: rgba(16, 42, 67, .12);
  --line-strong: rgba(16, 42, 67, .2);
  --line-on-blue: rgba(255, 255, 255, .18);

  /* Tipografia: Anton (display) · Barlow Condensed (tecnica/etichette) · Inter (body) */
  --font-display: "Anton", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Compat: nomi usati da regole pre-esistenti */
  --green-2: #61ce70;
  --grey: var(--sky);         /* le sezioni "grey" diventano azzurro chiaro */

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(8, 40, 70, .08);
  --shadow-lg: 0 30px 60px -34px rgba(16, 42, 67, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 132px;
  --header-h-sm: 118px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }

/* Default heading: Barlow Condensed (leggibile anche in prosa).
   Anton è riservato ai titoli "display" tramite classi dedicate. */
h1, h2, h3 { font-family: var(--font-cond); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }

/* Focus visibile (a11y) */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Eyebrow: micro-titolo tecnico ricorrente */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-cond); text-transform: uppercase;
  letter-spacing: .26em; font-weight: 600; font-size: .78rem;
  color: var(--green-700); margin: 0 0 .2em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); }

/* Reveal allo scroll (progressive enhancement: attivo solo con JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-accent);
  color: #111; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-cond); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1.02rem; text-decoration: none;
  padding: .85em 1.6em; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s, filter .25s;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--green); color: #0a1f06; box-shadow: 0 10px 26px -12px rgba(118, 196, 66, .8); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(118, 196, 66, .9); }
/* ghost: outline scuro su chiaro */
.btn--ghost, .btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover, .btn--secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
/* varianti su fondo blu/scuro */
.on-blue .btn--ghost, .on-blue .btn--secondary { color: #fff; border-color: var(--line-on-blue); }
.on-blue .btn--ghost:hover, .on-blue .btn--secondary:hover { color: var(--green); border-color: var(--green); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header ---------- */
/* Sempre bianco (anche in cima alla pagina); allo scroll si condensa soltanto. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, padding .3s, border-color .3s, box-shadow .3s;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: var(--header-h);
}
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(16, 42, 67, .5); }
.site-header.scrolled .site-header__inner { min-height: var(--header-h-sm); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 110px; width: auto; display: block; transition: height .3s; }
.brand__name {
  font-family: var(--font-display); font-weight: 400; font-size: 1.18rem;
  text-transform: uppercase; letter-spacing: .5px; color: var(--ink); line-height: 1;
}
.brand__name em { font-style: normal; color: var(--green-700); }

.site-header__right { display: flex; align-items: center; gap: 12px; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav__link {
  color: var(--muted); text-decoration: none; font-family: var(--font-cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; font-size: 1.18rem;
  padding: 8px 6px; white-space: nowrap; transition: color .2s;
}
.nav__link:hover { color: var(--ink); }
/* l'iscrizione (link esterno http) è una pill verde in ogni stato */
.nav__link[href^="http"], .nav__link--cta {
  background: var(--green); color: #0a1f06; font-weight: 700; border-radius: 999px;
  padding: 9px 18px; box-shadow: 0 10px 26px -14px rgba(118, 196, 66, .9);
}
.nav__link[href^="http"]:hover, .nav__link--cta:hover { color: #0a1f06; filter: brightness(.97); transform: translateY(-1px); }

/* hamburger (solo mobile) */
.nav-toggle {
  display: none; width: 48px; height: 42px; padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  /* le voci interne diventano un menu a discesa; la pill ISCRIVITI resta nel bar */
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; gap: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 14px 26px -16px rgba(16, 42, 67, .5); padding: 6px 0;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav__link { font-size: 1.1rem; padding: 14px 24px; text-align: right; }
  .nav__link:hover { background: var(--sky); color: var(--ink); }
}
@media (max-width: 600px) {
  /* header mobile a 100px (coerente per padding/hero) */
  :root { --header-h: 100px; --header-h-sm: 100px; }
  /* logo grande, non rimpicciolito: ritaglio i margini trasparenti laterali */
  .brand__logo { height: 96px; width: 78px; object-fit: cover; object-position: center; }
}

/* l'header è fixed: le pagine riservano lo spazio in cima... */
#main { padding-top: var(--header-h); }
/* ...tranne l'hero, che scorre sotto l'header */
#main > .cover:first-child { margin-top: calc(-1 * var(--header-h)); }

/* ---------- Cover hero (fotografico, blu) ---------- */
.cover {
  position: relative; color: #fff;
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 24px) 0 0; overflow: hidden;
  background: var(--blue-700) center / cover no-repeat;
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 82% 6%, rgba(21, 101, 192, .4), transparent 46%),
    linear-gradient(180deg, rgba(8, 37, 79, .5) 0%, rgba(13, 71, 161, .26) 34%, rgba(8, 37, 79, .82) 82%, var(--blue-700) 100%);
}
.cover__inner { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vh, 100px); }
.cover__datechip {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px;
  padding: 9px 16px; border: 1px solid var(--line-on-blue); border-radius: 999px;
  background: rgba(8, 37, 79, .35); backdrop-filter: blur(6px);
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; color: #fff;
}
.cover__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.cover__datechip b { color: var(--green); font-weight: 700; }
.cover__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 8.4rem); line-height: .86; margin: 0;
  text-transform: uppercase; letter-spacing: .5px; text-shadow: 0 4px 50px rgba(0, 0, 0, .4);
}
/* parola centrale in outline, come il concept */
.cover__accent { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); }
.cover__subtitle { font-size: 1.15rem; margin: 22px 0 30px; max-width: 48ch; color: rgba(255, 255, 255, .92); }
.cover__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* mobile: contenuto hero più in alto (da mockup) */
@media (max-width: 600px) { .cover__inner { padding-bottom: 130px; } }

/* profilo altimetrico come divider (elemento firma) */
.elev-divider { display: block; width: 100%; height: 60px; margin-top: -1px; background: var(--blue-700); }
.elev-divider path.area { fill: url(#gElev); opacity: .3; }
.elev-divider path.line { fill: none; stroke: var(--green); stroke-width: 2; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: 75px 0; }
/* utility di spaziatura verticale */
.section--pt-sm { padding-top: 28px; }
.section--pb-sm { padding-bottom: 28px; }
.section--pt-0 { padding-top: 0; }
.section--pb-0 { padding-bottom: 0; }
.section--pt-30 { padding-top: 30px; }
.section--pb-30 { padding-bottom: 30px; }
.section--pt-70 { padding-top: 70px; }
.section--pb-70 { padding-bottom: 70px; }
.section--pt-100 { padding-top: 100px; }
.section--pb-100 { padding-bottom: 100px; }
.section--pb-40 { padding-bottom: 40px; }
.section--grey { background: var(--sky); }       /* azzurro chiaro */
.section--tint { background: var(--blue-700); color: #fff; }
.section__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: .98; letter-spacing: .5px;
  text-align: center; color: var(--ink);
}
.section--tint .section__title { color: #fff; }
.section__subtitle { text-align: center; max-width: 680px; margin: 0 auto 8px; color: var(--muted); }

/* ---------- Feature grid (card di default) ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 30px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px;
  text-align: center; box-shadow: var(--shadow);
}
.card__icon { color: var(--color-primary); margin-bottom: 12px; display: flex; justify-content: center; }
.card__icon svg { width: 40px; height: 40px; }
.card__title { font-size: 1.15rem; margin: 0 0 6px; }
.card__text { margin: 0; color: #46525f; }

/* variante "highlights": fascia DATI su blu (stat band del concept) */
.feature-grid--highlights { background: var(--blue-700); color: #fff; padding: 0; }
.feature-grid--highlights .container { padding-inline: 0; max-width: var(--maxw); }
.feature-grid--highlights .grid { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 0; }
.feature-grid--highlights .card {
  background: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none; padding: 38px 26px; text-align: left;
}
.feature-grid--highlights .card:first-child { border-left: 0; }
.feature-grid--highlights .card__icon { color: var(--green); justify-content: flex-start; margin-bottom: 12px; }
.feature-grid--highlights .card__icon svg { width: 30px; height: 30px; stroke-width: 1.8; }
.feature-grid--highlights .card__title {
  font-family: var(--font-display); font-weight: 400; color: #fff;
  text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: .5px;
}
.feature-grid--highlights .card__text { color: var(--on-blue-soft); font-family: var(--font-cond); font-size: .95rem; margin-top: 8px; }
@media (max-width: 720px) {
  .feature-grid--highlights .container { padding-inline: 20px; }
  .feature-grid--highlights .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--highlights .card:nth-child(odd) { border-left: 0; }
  .feature-grid--highlights .card:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  /* su mobile le 4 info sono centrate */
  .feature-grid--highlights .card { text-align: center; }
  .feature-grid--highlights .card__icon { justify-content: center; }
}
@media (max-width: 460px) {
  .feature-grid--highlights .grid { grid-template-columns: 1fr; }
  .feature-grid--highlights .card { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .feature-grid--highlights .card:first-child { border-top: 0; }
}

/* variante "stats": 3 numeri grandi per le info percorso */
.feature-grid--stats .grid { grid-template-columns: repeat(3, 1fr); }
.feature-grid--stats .card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; }
.feature-grid--stats .card__icon { color: var(--green); margin-bottom: 14px; }
.feature-grid--stats .card__icon svg { width: 34px; height: 34px; }
.feature-grid--stats .card__title { font-family: var(--font-display); font-weight: 400; color: var(--blue); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: .5px; }
.feature-grid--stats .card__text { color: var(--muted); font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; margin-top: 10px; }
@media (max-width: 720px) { .feature-grid--stats .grid { grid-template-columns: 1fr; } }

/* ---------- Text ---------- */
.text__body { font-size: 1.05rem; color: var(--ink); }
.text__body p { margin: 0 0 1em; }
.text__body > :last-child { margin-bottom: 0; }   /* niente margine in coda: lo spazio lo dà il padding sezione */
.text__body h3 { font-family: var(--font-cond); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 1.5em; color: var(--blue); }
.text__body ul { padding-left: 1.2em; }
.text__body a { color: var(--blue); }

/* band: usata come header di pagina (Regolamento/Privacy) — blu */
.text--band { background: var(--blue-700); color: #fff; text-align: center; }
.text--band .section__title { color: #fff; }
.text--band .text__body { font-size: 1.15rem; color: rgba(255, 255, 255, .92); }
.text--band a { color: #fff; text-decoration: underline; }

/* intro: sezione bianca d'apertura, centrata, titolo display */
.text--intro { text-align: center; }
.text--intro .text__body { font-size: 1.18rem; color: var(--muted); max-width: 60ch; margin-inline: auto; }

/* programma: orari come TIMELINE verticale (elemento del concept) */
.text__body ul.schedule { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.text__body ul.schedule li { display: block; position: relative; padding: 0 0 34px 34px; margin: 0; border: 0; }
.text__body ul.schedule li:last-child { padding-bottom: 0; }
/* pallino: left:0 → centro orizzontale a 8px; top:4 + raggio 8 → centro verticale a 12px */
.text__body ul.schedule li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sky); border: 3px solid var(--blue); box-shadow: 0 0 0 5px rgba(21, 101, 192, .12);
  z-index: 1;
}
/* linea: ogni voce (tranne l'ultima) collega il CENTRO del proprio pallino al
   centro del successivo → parte dal 1° e finisce sul 3°, niente oltre. Sotto ai pallini. */
.text__body ul.schedule li:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: -12px; width: 2px;
  background: var(--line-strong); z-index: 0;
}
.text__body ul.schedule li:nth-child(2)::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.text__body ul.schedule b { display: block; color: var(--blue); font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: .5px; line-height: 1; }
.text__body ul.schedule li:nth-child(2) b { color: var(--green-700); }
.text__body ul.schedule span { display: block; margin-top: 6px; color: var(--muted); }

/* ---------- Gallery (mosaico) ---------- */
.gallery__grid { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; margin-top: 0; }
.gallery__item { margin: 0; overflow: hidden; border-radius: 14px; background: var(--sky); grid-column: span 2; }
.gallery__item:first-child { grid-column: span 4; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; filter: grayscale(.32) saturate(.92); transition: transform .7s var(--ease), filter .5s; }
.gallery__item:hover img { transform: scale(1.06); filter: grayscale(0) saturate(1.05); }
@media (prefers-reduced-motion: reduce) { .gallery__item:hover img { transform: none; } }
@media (max-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item, .gallery__item:first-child { grid-column: span 1; grid-row: span 1; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Image / mappa ---------- */
.figure { margin: 30px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sky); box-shadow: var(--shadow-lg); }
.figure img { width: 100%; display: block; }
.figure figcaption { text-align: center; color: var(--muted); font-family: var(--font-cond); letter-spacing: .04em; font-size: .88rem; padding: 12px; background: #fff; }

/* ---------- Percorso: profilo altimetrico (card) ---------- */
.route-chart { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 14px; box-shadow: var(--shadow-lg); }
.route-chart__head { display: flex; justify-content: space-between; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--muted); margin-bottom: 8px; }
.route-chart__head--foot { margin: 6px 0 0; }
.route-chart svg { width: 100%; height: auto; display: block; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta--band, .cta--final { background: var(--blue-700); color: #fff; }
.cta--band .cta__title, .cta--final .cta__title { color: #fff; }
.cta--final { position: relative; overflow: hidden; padding: 75px 0; }
.cta--final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 110% at 50% 120%, rgba(118, 196, 66, .25), transparent 60%); }
.cta--final .cta__inner { position: relative; }
.cta__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 6vw, 4.6rem); line-height: .92; letter-spacing: .5px; }
.cta--final .cta__text { color: #cfe0f5; }
.cta__text { max-width: 640px; margin: 0 auto 24px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Logos ---------- */
.logos__intro { text-align: center; max-width: 680px; margin: 0 auto 8px; color: #4a5663; }
.logos__row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px 20px;
  align-items: center; justify-items: center; margin-top: 30px;
}
.logos__item img { max-height: 76px; width: auto; object-fit: contain; }
.logos--patrocinio .logos__row { grid-template-columns: repeat(2, minmax(0,160px)); justify-content: center; }
.logos--patrocinio .logos__item img { max-height: 96px; }
@media (max-width: 860px) { .logos__row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logos__row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sponsor a fasce ---------- */
.sponsors .section__title { margin-bottom: 10px; }
/* accento verde sotto i titoli di gruppo: li rende chiari e distinti */
.sponsors .section__title::after {
  content: ""; display: block; width: 56px; height: 3px; border-radius: 2px;
  background: var(--green); margin: 16px auto 0;
}
.sponsor-tier { margin-top: 40px; }
.sponsor-tier:first-of-type { margin-top: 30px; }
.sponsor-tier__label {
  text-align: center; text-transform: uppercase; letter-spacing: 2px;
  font-size: 1rem; margin: 0 0 20px; color: var(--color-secondary);
  display: flex; align-items: center; gap: 16px; justify-content: center;
}
.sponsor-tier__label::before, .sponsor-tier__label::after {
  content: ""; height: 1px; flex: 1; max-width: 120px; background: var(--line);
}
/* "Partner Tecnici": titolo di gruppo ben staccato (50px) e distinto */
.sponsor-tier--partner { margin-top: 80px; }
.sponsor-tier__heading { margin: 0 0 30px; }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; }
.sponsor-break { flex-basis: 100%; width: 100%; height: 0; margin: 0; }
/* RIQUADRO uniforme: card bianca a dimensioni fisse (per fascia); il logo si
   adatta dentro con object-fit:contain → limitati SIA larghezza SIA altezza,
   ingombro identico a prescindere dalla forma del logo. */
.sponsor-logo {
  display: block; box-sizing: border-box;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; box-shadow: 0 6px 20px -16px rgba(16, 42, 67, .5);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sponsor-logo:hover { border-color: var(--line-strong); box-shadow: 0 14px 30px -18px rgba(16, 42, 67, .55); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .sponsor-logo:hover { transform: none; } }
/* l'immagine riempie la cella (altezza fissa → la % si risolve) e si adatta
   dentro con object-fit:contain: non può MAI uscire dal riquadro. */
.sponsor-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* dimensioni della cella per fascia (uguali dentro la stessa fascia) */
.sponsor-tier--main .sponsor-logo   { width: 300px; height: 165px; }
.sponsor-tier--gold .sponsor-logo   { width: 250px; height: 145px; }
.sponsor-tier--silver .sponsor-logo { width: 230px; height: 135px; }
.sponsor-tier--bronze .sponsor-logo { width: 205px; height: 120px; }
.sponsor-tier--partner .sponsor-logo{ width: 195px; height: 115px; }
/* colori etichette per livello */
.sponsor-tier--gold .sponsor-tier__label { color: #c9a227; }
.sponsor-tier--silver .sponsor-tier__label { color: #8a8f98; }
.sponsor-tier--bronze .sponsor-tier__label { color: #b08d57; }
@media (max-width: 640px) {
  .sponsor-row { gap: 12px; }
  .sponsor-logo { padding: 12px 14px; border-radius: 12px; }
  .sponsor-tier--main .sponsor-logo   { width: 100%; max-width: 320px; height: 130px; }
  .sponsor-tier--gold .sponsor-logo,
  .sponsor-tier--silver .sponsor-logo { width: 46%; max-width: 220px; height: 112px; }
  .sponsor-tier--bronze .sponsor-logo,
  .sponsor-tier--partner .sponsor-logo{ width: 46%; max-width: 200px; height: 100px; }
}

/* ---------- Footer (navy) ---------- */
.site-footer { background: var(--blue-900); color: #fff; padding: 56px 0 28px; }
.site-footer a { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer__logo { height: 110px; width: auto; display: block; }
.site-footer__tagline { margin: 16px 0 0; color: var(--on-blue-soft); max-width: 340px; }
.site-footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 40px; margin-left: auto; }
.site-footer__follow { text-align: right; }
.site-footer__followlabel { margin: 10px 0 0; color: var(--on-blue-soft); font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.site-footer__socials { display: flex; flex-direction: row; gap: 14px; justify-content: flex-end; }
.site-footer__socials a { color: #fff; opacity: .9; display: inline-flex; }
.site-footer__socials a:hover { opacity: 1; }
.site-footer__socials svg { width: 28px; height: 28px; }
.site-footer__nav { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 22px; justify-content: flex-end; }
.site-footer__navlink { text-decoration: none; color: #fff; font-family: var(--font-cond); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; transition: color .2s; }
.site-footer__navlink:hover { color: var(--green); }
.site-footer__nav .btn { opacity: 1; }
.site-footer__nav .btn:hover { text-decoration: none; }
@media (max-width: 600px) {
  /* riga 1: logo a sinistra, testo breve a destra (affiancati) */
  .site-footer__brand { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
  .site-footer__logo { height: 112px; }
  .site-footer__tagline { margin: 0; text-align: right; max-width: 54%; }
  /* menu e social giustificati al centro */
  .site-footer__right { align-items: center; margin-left: 0; width: 100%; }
  .site-footer__nav { justify-content: center; }
  .site-footer__follow { text-align: center; }
  .site-footer__socials { justify-content: center; }
}
.site-footer__legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); font-size: .85rem; text-align: center; }
.site-footer__legal p { margin: .2em 0; }
.site-footer__legalrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; }
.site-footer__copy { margin-top: 10px; }

/* ---------- Cookie banner (solo cookie tecnici) ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 580px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px;
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; flex: 1; min-width: 220px; font-size: .95rem; line-height: 1.5; }
.cookie__text a { color: var(--blue); }
.cookie__ok { white-space: nowrap; }
@media (max-width: 480px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
  .cookie__ok { width: 100%; justify-content: center; }
}
