/* ==========================================================================
   Gold Lake Garda — Bulldog Francese · 3° Raduno Nazionale
   Mondo visivo: blu notte + oro metallico, rosso italiano per la data,
   cielo chiaro per le sezioni di lettura, pennellate, tricolore.
   ========================================================================== */

/* ---------- Font (self-hosted) ---------- */
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url('../assets/fonts/Cinzel-700.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 900; font-display: swap; src: url('../assets/fonts/Cinzel-900.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('../assets/fonts/Barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('../assets/fonts/Barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('../assets/fonts/Barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('../assets/fonts/BarlowCondensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('../assets/fonts/BarlowCondensed-800.woff2') format('woff2'); }
@font-face { font-family: 'Caveat Brush'; font-weight: 400; font-display: swap; src: url('../assets/fonts/CaveatBrush-400.woff2') format('woff2'); }

/* ---------- Token ---------- */
:root {
  --navy: #0e1e4a;
  --navy-deep: #091538;
  --navy-soft: #1a2d63;
  --navy-line: #2a3f7d;
  --gold: #d4a72c;
  --gold-light: #f1d27a;
  --gold-dark: #9c7314;
  --gold-ink: #7a5a0e;
  --red: #ce1b2b;
  --red-dark: #a3101f;
  --green: #0b8a43;
  --sky: #e3f1fb;
  --sky-deep: #c9e3f5;
  --white: #ffffff;
  --paper: #f7f9fc;
  --ink: #0e1e4a;
  --ink-2: #3d4b73;
  --ink-3: #66739a;
  --on-navy: #f6f1e4;
  --on-navy-2: #b8c3e6;
  --wa: #1e9e55;
  --focus: var(--gold);

  --display: 'Cinzel', 'Times New Roman', serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --hand: 'Caveat Brush', 'Segoe Print', cursive;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;
  --radius: 10px;
  --shadow-1: 0 4px 14px -4px rgba(14, 30, 74, .25);
  --shadow-2: 0 14px 34px -12px rgba(14, 30, 74, .35);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
abbr[title] { text-decoration: none; color: var(--red); }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--gold) var(--navy); }

section, .success { scroll-margin-top: 84px; } /* la barra in alto è fissa: gli ancoraggi non ci finiscono sotto */

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--navy); font-weight: 600; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1.0625rem/1.1 var(--body);
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.125rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn--gold {
  color: var(--navy);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  border-color: var(--gold-dark);
  box-shadow: 0 6px 16px -6px rgba(156, 115, 20, .6), inset 0 1px 0 rgba(255, 255, 255, .55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--gold:hover { color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(156, 115, 20, .7), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn--ghost { color: var(--navy); background: rgba(255, 255, 255, .55); border-color: var(--navy); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--navy { color: var(--on-navy); background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); }
.btn--ghost-navy { color: var(--navy); background: transparent; border-color: var(--navy); }
.btn--ghost-navy:hover { background: var(--navy); color: var(--on-navy); }
.btn--wa { color: #fff; background: var(--wa); border-color: #167a41; }
.btn--wa:hover { background: #167a41; color: #fff; transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn__busy { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(14, 30, 74, .3); border-top-color: var(--navy); animation: spin .8s linear infinite; }
.btn.is-busy .btn__busy { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Elementi ricorrenti ---------- */
.tricolore {
  display: block; width: 120px; height: 6px; margin: 14px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--green) 0 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%);
  box-shadow: 0 0 0 1px rgba(14, 30, 74, .12);
}
.hand { font-family: var(--hand); font-weight: 400; line-height: 1.05; letter-spacing: .005em; }
.hand--gold { color: var(--gold-light); }
.hand--red { color: var(--red); }
.brush { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.section-title {
  font: 900 clamp(1.7rem, 4.2vw, 2.6rem)/1.08 var(--display);
  color: var(--navy); letter-spacing: .005em;
}
.section-title--light { color: var(--gold-light); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.section-lead { margin-top: 12px; max-width: var(--measure); font-size: 1.125rem; color: var(--ink-2); }
.section-lead--light { color: var(--on-navy-2); }
.icon { width: 40px; height: 40px; flex: 0 0 40px; fill: none; stroke: var(--gold-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra in alto ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px var(--gutter);
  background: var(--navy); color: var(--on-navy);
  border-bottom: 3px solid var(--gold);
  transition: box-shadow .3s;
}
.topbar.is-scrolled { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6); }
.topbar__brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.topbar__brand img { width: 50px; height: auto; border-radius: 6px; }
.topbar__name { font: 700 1rem/1.05 var(--display); color: var(--gold-light); letter-spacing: .02em; }
.topbar__name small { display: block; font: 600 .72rem/1.2 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-2); margin-top: 2px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 70% at 50% 0%, #ffffff 0%, var(--sky) 55%, var(--sky-deep) 100%);
  overflow: hidden;
}
.hero::before {
  /* nuvole leggere */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background:
    radial-gradient(40% 18% at 15% 22%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(35% 14% at 85% 30%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(28% 12% at 60% 12%, rgba(255, 255, 255, .8), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) var(--gutter) 0;
  text-align: center;
}
.hero__crown { width: clamp(56px, 8vw, 84px); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 3px 4px rgba(14, 30, 74, .25)); }
.hero__title { display: grid; justify-items: center; gap: 0; }
.hero__edition {
  display: flex; align-items: baseline; gap: .25em;
  font: 900 clamp(1.3rem, 4.5vw, 2.4rem)/1 var(--display);
  color: var(--navy); letter-spacing: .02em; text-transform: uppercase;
}
.hero__num {
  font-size: 1.9em; line-height: .9;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(122, 90, 14, .5));
}
.hero__name {
  margin-top: .05em;
  font: 900 clamp(2.5rem, 9.5vw, 5.6rem)/1 var(--display);
  letter-spacing: .01em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 48%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 var(--gold-ink)) drop-shadow(0 6px 10px rgba(14, 30, 74, .25));
}
.hero__breed {
  margin-top: .18em;
  font: 900 clamp(1.2rem, 4vw, 2.1rem)/1 var(--display);
  letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 var(--gold-ink)) drop-shadow(0 3px 6px rgba(14, 30, 74, .2));
}
/* il bulldog della locandina: medaglione sul bordo della fascia (telefono e tablet), cammeo ad arco sul desktop */
.hero__dog {
  position: absolute; z-index: 3; margin: 0;
  right: 10px; width: 84px;
  bottom: calc(min(100vw, 1180px) * 0.2803 - 42px);
  filter: drop-shadow(0 8px 14px rgba(14, 30, 74, .35));
}
.hero__dog img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 62%;
  border-radius: 50%; border: 4px solid var(--gold-light); background: var(--sky);
}
.hero__place { margin-top: 18px; display: grid; gap: 2px; }
.hero__place strong { font: 800 clamp(1.2rem, 3.4vw, 1.7rem)/1.1 var(--cond); text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.hero__place span { font: 600 .95rem/1.2 var(--cond); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); padding-left: .32em; }

.date-band {
  position: relative; display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px;
  margin: 26px auto 0; padding: 18px clamp(24px, 5vw, 48px) 20px;
  color: #fff; transform: rotate(-1.5deg);
  filter: drop-shadow(0 10px 18px rgba(206, 27, 43, .35));
}
.date-band > :not(.brush) { position: relative; z-index: 1; }
.date-band__icon { grid-row: 1 / span 2; width: clamp(36px, 6vw, 56px); height: auto; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.date-band__day { font: 800 clamp(1.1rem, 3.4vw, 1.7rem)/1 var(--cond); text-transform: uppercase; letter-spacing: .14em; text-align: left; }
.date-band__date { font: 800 clamp(2rem, 7.5vw, 4rem)/1 var(--cond); text-transform: uppercase; letter-spacing: .01em; text-align: left; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero__band { position: relative; margin: 44px 0 0; z-index: 1; }
.hero__band img { width: 100%; max-width: 1180px; margin: 0 auto; aspect-ratio: 1024 / 287; object-fit: cover; }
.hero__band::after {
  /* il prato dei cani scivola nel blu della sezione successiva */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 42%;
  background: linear-gradient(180deg, rgba(14, 30, 74, 0) 0%, rgba(14, 30, 74, .85) 100%);
}

/* ---------- OBIETTIVO ---------- */
.goal { position: relative; background: var(--navy); color: var(--on-navy); }
.goal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgba(212, 167, 44, .18), transparent 70%);
}
.goal__inner { position: relative; max-width: 980px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(44px, 7vw, 84px); text-align: center; }
.goal__title { display: grid; justify-items: center; }
.goal__number-wrap { position: relative; display: inline-grid; justify-items: center; padding: 14px clamp(28px, 7vw, 70px) 16px; transform: rotate(1.2deg); }
.goal__label { position: relative; z-index: 1; font: 800 clamp(1rem, 2.6vw, 1.4rem)/1 var(--cond); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--navy-deep); }
.goal__number { position: relative; z-index: 1; display: block; margin-top: 2px; font: 800 clamp(4.2rem, 17vw, 9rem)/.95 var(--cond); color: var(--navy-deep); letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(255, 255, 255, .35); }
.goal__what { margin-top: 12px; font: 800 clamp(1.3rem, 4vw, 2.2rem)/1.1 var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--white); }
.goal__lead { margin: 22px auto 0; max-width: 60ch; font-size: 1.125rem; color: var(--on-navy-2); }
.goal__lead strong { color: var(--gold-light); }

/* contatori: cifre nude sul blu, nessuna scatola; il principale porta sotto di sé la riga d'avanzamento */
.counters { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; column-gap: clamp(28px, 6vw, 64px); row-gap: 18px; margin: 30px 0 0; padding: 0; }
.counter { display: grid; justify-items: center; }
.counter dt { font: 600 .82rem/1.2 var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--on-navy-2); }
.counter dd { margin: 0 0 4px; font: 800 clamp(2rem, 6vw, 2.8rem)/1 var(--cond); color: var(--white); font-variant-numeric: tabular-nums; }
.counter--main { flex-basis: 100%; position: relative; padding-bottom: 14px; }
.counter--main dt { color: var(--gold-light); font-size: .95rem; }
.counter--main dd { font-size: clamp(3.4rem, 13vw, 6rem); display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.counter--main .counter__value { color: var(--gold-light); }
.counter--main::after {
  /* riga d'avanzamento verso 1.001 */
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(100%, 420px); height: 4px; transform: translateX(-50%);
  border-radius: 2px; background: linear-gradient(90deg, var(--gold) calc(var(--pct, 0) * 1%), var(--navy-line) calc(var(--pct, 0) * 1%));
}
.counter__of { font-size: .42em; color: var(--on-navy-2); font-weight: 600; letter-spacing: .02em; }
.counter__value.is-bumped { animation: bump .6s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.12); } }


.goal__hand { position: relative; display: inline-block; margin-top: 30px; font-size: clamp(2rem, 6.5vw, 3.4rem); padding-bottom: 8px; }
.goal__hand::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 5px; border-radius: 3px; background: var(--red); transform: rotate(-1deg); }
.heart { width: .9em; height: .9em; vertical-align: -.12em; margin-left: .15em; fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.goal__note { margin: 22px auto 0; max-width: 58ch; font-size: .95rem; color: var(--on-navy-2); }

/* ---------- COSA TROVERAI ---------- */
.program { background: var(--white); border-top: 6px solid var(--gold); }
.program__inner { max-width: 980px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter); }
.program__list {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--sky-deep);
}
.program__list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--sky-deep); }
.program__list h3 { font: 800 1.35rem/1.1 var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.program__list p { margin-top: 4px; color: var(--ink-2); max-width: 52ch; }
.program__soon { margin-top: 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--sky); color: var(--ink-2); max-width: var(--measure); }
.program__soon strong { color: var(--navy); }

/* ---------- IL LUOGO ---------- */
.place { background: var(--sky); }
.place__inner { max-width: 980px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter); display: grid; gap: 26px; align-items: center; }
.place__figure { margin: 0; justify-self: center; transform: rotate(-2deg); }
.place__figure img { width: min(100%, 300px); border: 8px solid var(--white); box-shadow: var(--shadow-2); border-radius: 4px; }
.place__name { margin-top: 14px; font: 800 1.6rem/1.1 var(--cond); text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.place__name span { display: block; margin-top: 4px; font: 600 .95rem/1.2 var(--cond); letter-spacing: .2em; color: var(--ink-2); }
.place__text > p:not(.place__name) { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }
.place__soon { font-size: .95rem; }
.place__text .btn { margin-top: 20px; }

/* ---------- ISCRIZIONE ---------- */
.register { background: var(--paper); }
.register__inner { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 90px); }
/* testata blu a tutta larghezza; il modulo sta direttamente sulla carta, senza riquadro */
.register__head { background: var(--navy); margin: 0 calc(50% - 50vw); padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(36px, 6vw, 56px); text-align: center; border-bottom: 6px solid var(--gold); }
.register__head .section-lead { margin-left: auto; margin-right: auto; }

.notice { padding: 14px 18px; border-radius: var(--radius); font-size: .98rem; }
.notice--preview { margin: 28px 0 0; background: #fff7dd; color: #5c4705; border: 1px solid #e8cf7a; }

.form { padding-top: 30px; }
.form__errors { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius); background: #fdeaec; border: 1px solid #f1b3ba; color: #7a0d18; }
.form__errors ul { margin: 6px 0 0; padding-left: 20px; }
.form__errors a { color: #7a0d18; }
.form__group { border: 0; margin: 0; padding: 0 0 26px; }
.form__group + .form__group { padding-top: 26px; border-top: 1px solid var(--sky-deep); }
.form__group legend { padding: 0; margin-bottom: 16px; float: left; width: 100%; }
.form__group legend + * { clear: both; }
.form__step { display: block; font: 800 1.35rem/1.15 var(--cond); text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.form__hint { display: block; margin-top: 6px; color: var(--ink-2); font-size: .98rem; max-width: 60ch; }

.field { display: grid; gap: 6px; margin-top: 16px; }
.field label, .dog label { font-weight: 600; color: var(--navy); font-size: 1rem; }
.field input, .dog input {
  width: 100%; min-height: 50px; padding: 10px 14px;
  font: 500 1.0625rem/1.3 var(--body); color: var(--ink);
  background: var(--white); border: 2px solid #b9c5e2; border-radius: 8px;
  caret-color: var(--gold-dark);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .dog input::placeholder { color: var(--ink-3); }
.field input:focus, .dog input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(212, 167, 44, .35); }
.field__help { font-size: .9rem; color: var(--ink-3); }
.field__error { font-size: .92rem; color: var(--red-dark); font-weight: 600; }
.is-invalid input, .is-invalid .choice__box { border-color: var(--red) !important; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.field--sm { max-width: 220px; }
.field-row .field--sm { max-width: none; }

.stepper { display: grid; grid-template-columns: 50px 1fr 50px; }
.stepper input { text-align: center; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
  min-height: 50px; font: 600 1.6rem/1 var(--body); color: var(--navy);
  background: var(--sky); border: 2px solid #b9c5e2; cursor: pointer;
}
.stepper__btn:first-child { border-radius: 8px 0 0 8px; border-right: 0; }
.stepper__btn:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.stepper__btn:hover { background: var(--sky-deep); }
.stepper__btn:active { background: var(--gold-light); }

.field-row--people { align-items: end; }
.total { margin-top: 16px; padding: 12px 16px; border-radius: 8px; background: var(--sky); display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
.total__label { font: 600 .82rem/1.2 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.total__value { grid-row: 1 / span 2; font: 800 2.4rem/1 var(--cond); color: var(--navy); font-variant-numeric: tabular-nums; }
.total__sub { font-size: .92rem; color: var(--ink-2); }

.dogs { display: grid; gap: 12px; margin-top: 10px; }
.dogs--many { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dog { position: relative; display: grid; gap: 6px; padding-left: 36px; animation: dog-in .45s var(--ease-out) both; }
.dog__paw { position: absolute; left: 0; top: 30px; width: 26px; height: 26px; fill: var(--gold); }
@keyframes dog-in { from { opacity: 0; transform: translateY(8px); } }

.form__group--wa .form__step { max-width: 30ch; }
.wa__text { color: var(--ink-2); max-width: var(--measure); }
.wa__optional { margin-top: 10px; font-weight: 600; color: var(--navy); }
.choices { display: grid; gap: 10px; margin-top: 16px; }
.choice {
  position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border: 2px solid #b9c5e2; border-radius: 10px; background: var(--white); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.choice:hover { border-color: var(--navy); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box { width: 26px; height: 26px; margin-top: 1px; border: 2px solid var(--navy); border-radius: 50%; background: var(--white); position: relative; transition: background-color .2s; }
.choice--check .choice__box { border-radius: 6px; }
.choice input:checked ~ .choice__box { background: var(--navy); }
.choice input:checked ~ .choice__box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px;
  border: solid var(--gold-light); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.choice input:checked ~ .choice__text { color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--sky); }
.choice input:focus-visible ~ .choice__box { outline: 3px solid var(--gold); outline-offset: 3px; }
.choice__text { color: var(--ink-2); line-height: 1.4; }
.choice__text strong { color: var(--navy); }
.wa__phone { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--sky); animation: dog-in .4s var(--ease-out) both; }
.form__group--privacy { padding-top: 26px; border-top: 1px solid var(--sky-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: grid; justify-items: center; gap: 10px; padding-top: 26px; border-top: 1px solid var(--sky-deep); }
.form__submit .btn { width: 100%; max-width: 420px; }
.form__fine { font-size: .92rem; color: var(--ink-3); }

.success { padding: clamp(36px, 6vw, 56px) 0 0; text-align: center; }
.success:focus { outline: none; }
.success__paw { width: 64px; height: 64px; fill: var(--gold); margin: 0 auto 10px; }
.success__title { font: 900 clamp(1.6rem, 4.2vw, 2.4rem)/1.1 var(--display); color: var(--navy); }
.success__number { margin-top: 16px; display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--navy); color: var(--gold-light); font: 800 1.3rem/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.success__thanks { font-weight: 600; font-size: 1.15rem; color: var(--navy) !important; }
.success > p { margin-top: 16px; color: var(--ink-2); max-width: 56ch; margin-left: auto; margin-right: auto; }
.success > p strong { color: var(--navy); }
.success__hand { margin-top: 22px; font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--red); max-width: 22ch; }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- CONDIVIDI ---------- */
.share { background: var(--gold); background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, #c79a25); color: var(--navy); }
.share__inner { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--gutter); text-align: center; }
.share__title { font: 900 clamp(1.5rem, 4vw, 2.3rem)/1.1 var(--display); color: var(--navy); }
.share__inner > p { margin: 12px auto 0; max-width: 50ch; color: #3b2d06; }
.share__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.share .btn--ghost { background: rgba(255, 255, 255, .35); }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-deep); color: var(--on-navy-2); border-top: 6px solid var(--gold); }
.footer__inner { max-width: 980px; margin: 0 auto; padding: clamp(32px, 6vw, 56px) var(--gutter) 24px; display: grid; gap: 28px; align-items: center; text-align: center; justify-items: center; }
.footer__brand img { width: 150px; border-radius: 8px; }
.footer__org img { width: 160px; border-radius: 8px; }
.footer__orglabel { font: 600 .78rem/1.2 var(--cond); letter-spacing: .24em; text-transform: uppercase; margin-bottom: 8px; }
.footer__hand { font-size: clamp(2rem, 6vw, 3rem); }
.footer__center p:not(.hand) { margin-top: 10px; max-width: 46ch; }
.footer__links { margin-top: 14px !important; }
.footer__links a { color: var(--on-navy); }
.footer__copy { padding: 16px var(--gutter) 26px; text-align: center; font-size: .85rem; color: #7f8bb4; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 140px; }
  .field-row--people { grid-template-columns: 300px 1fr; }
  .total { margin-top: 16px; }
  .counters { grid-template-columns: 1.6fr 1fr 1fr; }
  .counter--main { grid-column: auto; grid-row: 1 / span 1; }
  .hero__dog { width: 120px; right: 20px; bottom: calc(min(100vw, 1180px) * 0.2803 - 60px); }
}
@media (min-width: 820px) {
  .place__inner { grid-template-columns: 320px 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; }
  .footer__center { text-align: center; justify-self: center; }
  .footer__center p:not(.hand) { margin-left: auto; margin-right: auto; }
  .program__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .program__list li:nth-child(-n+2) { border-top: 0; }
  .topbar__brand img { width: 56px; }
  .topbar__name { font-size: 1.15rem; }
}
@media (min-width: 1100px) {
  /* sul desktop il bulldog diventa un cammeo ad arco che emerge dalla folla, a destra del titolo */
  .hero__dog {
    right: max(32px, calc(50% - 560px));
    bottom: calc(min(100vw, 1180px) * 0.2803 - 150px);
    width: 230px;
    filter: drop-shadow(0 14px 24px rgba(14, 30, 74, .35));
  }
  .hero__dog img {
    aspect-ratio: 224 / 400; object-position: 50% 0;
    border-radius: 115px 115px 8px 8px; border-width: 5px;
  }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
