/* =====================================================
   PALESTRINA NEL MERITO — Lista civica
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy:        #1a2b47;
  --yellow:      #f6b221;
  --green:       #2b8e2b;

  --ink:         #0f1a2e;
  --cream:       #faf5e9;
  --paper:       #f3ecd9;
  --muted:       #5a6578;
  --rule:        #e4dcc7;
  --navy-800:    #14223a;
  --navy-600:    #24395e;
  --yellow-600:  #d99a18;
  --green-700:   #236f23;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.19, 1, 0.22, 1);

  --step--1: clamp(0.84rem, 0.78rem + 0.30vw, 1.00rem);
  --step-0:  clamp(1.00rem, 0.93rem + 0.35vw, 1.18rem);
  --step-1:  clamp(1.18rem, 1.08rem + 0.50vw, 1.42rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.85vw, 1.90rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.50vw, 2.70rem);
  --step-4:  clamp(2.40rem, 1.85rem + 2.75vw, 4.10rem);
  --step-5:  clamp(3.20rem, 2.30rem + 4.50vw, 6.20rem);

  --sp-1:  clamp(0.40rem, 0.35rem + 0.25vw, 0.55rem);
  --sp-2:  clamp(0.75rem, 0.65rem + 0.50vw, 1.05rem);
  --sp-3:  clamp(1.10rem, 0.95rem + 0.75vw, 1.60rem);
  --sp-4:  clamp(1.60rem, 1.30rem + 1.50vw, 2.60rem);
  --sp-5:  clamp(2.40rem, 1.80rem + 3.00vw, 4.50rem);
  --sp-6:  clamp(3.50rem, 2.40rem + 5.50vw, 7.50rem);

  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --measure: 62ch;

  --f-display: "Archivo Black", "Arial Black", sans-serif;
  --f-ui:      "Archivo", system-ui, sans-serif;
  --f-script:  "Caveat", cursive;
  --f-body:    "Lora", Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  overflow-x: hidden;
  max-width: 100%;
}

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

body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, p, a, dd, dt, li, span { overflow-wrap: break-word; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--partecipa :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}
.btn:focus-visible { outline-offset: 4px; }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease-out-quart);
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--gutter);
  z-index: 50;
  transition: background 0.35s var(--ease-out-quart), border-color 0.35s var(--ease-out-quart);
  border-bottom: 1px solid transparent;
}
.site-header[data-header-scrolled="true"] {
  background: var(--cream);
  border-bottom-color: var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  letter-spacing: 0.02em;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.brand-words__bottom {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}
.brand-words__script {
  font-family: var(--f-script);
  font-weight: 600;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--yellow-600);
  text-transform: none;
  line-height: 1;
}

.nav {
  display: flex;
  gap: clamp(1rem, 1vw + 0.6rem, 2.25rem);
  justify-self: end;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav a {
  position: relative;
  text-decoration: none;
  padding: 0.4rem 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0.1rem;
  height: 2px;
  background: var(--yellow);
  transition: right 0.4s var(--ease-out-quart);
}
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="true"]::after { right: 0; }
.nav a[aria-current="true"] { color: var(--yellow-600); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.6rem;
  justify-self: end;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out-quart), opacity 0.2s linear, background 0.3s var(--ease-out-quart);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--navy) 60%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-quart);
  z-index: 45;
}
.nav-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95em 1.6em;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: transform 0.3s var(--ease-out-quart), background 0.3s var(--ease-out-quart), color 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart);
  cursor: pointer;
}
.btn:hover { transform: translate(-3px, -3px); }
.btn:active { transform: translate(0, 0); }

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn--primary:hover {
  box-shadow: 6px 6px 0 0 var(--navy);
}

.btn--ghost {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 2px currentColor, 6px 6px 0 0 currentColor;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn--yellow:hover {
  box-shadow: 6px 6px 0 0 var(--ink);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding: calc(5.5rem + var(--sp-2)) var(--gutter) 0;
  background: var(--cream);
  height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1rem, min(3vw, 4vh), 4rem);
  align-items: center;
  padding: min(var(--sp-3), 2vh) 0;
}

.hero-copy { max-width: 28rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: min(var(--sp-3), 2.5vh);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.5rem, min(6.5vw, 10.5vh), 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: min(var(--sp-3), 2.5vh);
}
.hero-title__row { display: block; }
.hero-title em {
  font-family: var(--f-script);
  font-weight: 700;
  font-style: normal;
  font-size: 1.1em;
  color: var(--yellow-600);
  letter-spacing: 0;
  text-transform: none;
}

.hero-lede {
  font-family: var(--f-body);
  font-size: clamp(0.95rem, min(1.3vw, 2.2vh), 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: min(var(--sp-4), 3.5vh);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.hero-logo-wrap {
  display: grid;
  place-items: center;
  position: relative;
}
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 6% 6% 6% 6%;
  background: var(--paper);
  border-radius: 50%;
  z-index: 0;
  transform: translate(1.5%, 2%);
}
.hero-logo {
  position: relative;
  width: min(clamp(200px, 32vw, 440px), 62vh);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.hero-strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  margin: 0 calc(var(--gutter) * -1);
  background: var(--green);
  color: var(--cream);
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  flex-wrap: wrap;
  text-align: center;
}

/* =====================================================
   SECTIONS — general
   ===================================================== */
.section {
  padding: var(--sp-6) var(--gutter);
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--sp-3);
  align-items: end;
  row-gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  max-width: 80rem;
}
.section-head--light { color: var(--cream); }

.section-num {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
  align-self: start;
  padding-top: 0.3em;
}
.section--partecipa .section-num { color: var(--yellow); }

.section-title {
  font-family: var(--f-display);
  font-size: var(--step-4);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: inherit;
}
.section-deck {
  grid-column: 2;
  font-family: var(--f-body);
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 55ch;
  margin-top: 0.3rem;
}
.section-head--light .section-deck {
  color: color-mix(in oklab, var(--cream) 75%, var(--navy));
}

/* =====================================================
   PROGRAMMA
   ===================================================== */
.section--programma {
  background: var(--paper);
}

.programma-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 70rem;
}

.programma-item {
  display: grid;
  grid-template-columns: clamp(4rem, 8vw, 8rem) 1fr;
  gap: clamp(1rem, 2.5vw, 3rem);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  position: relative;
}
.programma-item:first-child { border-top-color: var(--ink); border-top-width: 2px; }
.programma-item:last-child  { border-bottom: 1px solid var(--rule); }

.programma-item__num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  color: var(--yellow-600);
  transition: color 0.4s var(--ease-out-quart);
}

.programma-item__body h3 {
  font-family: var(--f-display);
  font-size: var(--step-3);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 0.95;
}

.programma-item__body p {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 55ch;
}

.programma-item:hover .programma-item__num { color: var(--green); }

.programma-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}
[data-reveal].is-visible .programma-item { opacity: 1; transform: none; }
[data-reveal].is-visible .programma-item:nth-child(1) { transition-delay: 0.00s; }
[data-reveal].is-visible .programma-item:nth-child(2) { transition-delay: 0.08s; }
[data-reveal].is-visible .programma-item:nth-child(3) { transition-delay: 0.16s; }
[data-reveal].is-visible .programma-item:nth-child(4) { transition-delay: 0.24s; }

/* =====================================================
   PARTECIPA
   ===================================================== */
.section--partecipa {
  background: var(--navy);
  color: var(--cream);
}
.section--partecipa .section-title { color: var(--cream); }
.section--partecipa + .section { border-top-color: transparent; }

.partecipa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 70rem;
}
.partecipa-card {
  background: color-mix(in oklab, var(--navy-600) 80%, black);
  padding: var(--sp-4);
  border-top: 3px solid var(--yellow);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform 0.4s var(--ease-out-quart), background 0.4s var(--ease-out-quart);
}
.partecipa-card:hover {
  transform: translateY(-4px);
  background: color-mix(in oklab, var(--navy-600) 92%, black);
}
.partecipa-card h3 {
  font-family: var(--f-display);
  font-size: var(--step-2);
  text-transform: uppercase;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.partecipa-card p {
  font-size: var(--step-0);
  line-height: 1.55;
  color: color-mix(in oklab, var(--cream) 78%, var(--navy));
}
.partecipa-card p em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 600;
}
.partecipa-card .btn { align-self: flex-start; margin-top: auto; }

.partecipa-card--alt {
  background: var(--green);
  border-top-color: var(--cream);
}
.partecipa-card--alt:hover {
  background: var(--green-700);
}

/* =====================================================
   CONTATTI
   ===================================================== */
.section--contatti { background: var(--paper); }

.contatti-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: 70rem;
}

.contatti-info dl {
  display: grid;
  gap: var(--sp-3);
}
.contatti-info div {
  border-top: 1px solid var(--rule);
  padding-top: 0.8rem;
  display: grid;
  gap: 0.25rem;
}
.contatti-info div:first-child { border-top: 2px solid var(--ink); }
.contatti-info dt {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
}
.contatti-info dd {
  font-family: var(--f-body);
  font-size: var(--step-1);
  color: var(--navy);
}
.contatti-info a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  transition: background 0.3s var(--ease-out-quart);
}
.contatti-info a:hover { background: var(--yellow); }

.contatti-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--cream);
  border: 1px solid var(--rule);
  align-items: start;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: var(--step-0);
  padding: 0.65rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  transition: border-color 0.2s var(--ease-out-quart), background 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--yellow);
}
.field input:disabled,
.field textarea:disabled {
  background: color-mix(in oklab, var(--rule) 45%, var(--paper));
  color: color-mix(in oklab, var(--ink) 50%, transparent);
  border-color: color-mix(in oklab, var(--rule) 80%, transparent);
  cursor: not-allowed;
}
.checkbox input:disabled {
  background: color-mix(in oklab, var(--rule) 45%, var(--paper));
  cursor: not-allowed;
}
.checkbox:has(input:disabled) span {
  color: color-mix(in oklab, var(--ink) 50%, transparent);
  cursor: not-allowed;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.form-note {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  font-size: var(--step--1);
  color: var(--muted);
  font-style: italic;
}

.field--actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  margin-top: 0;
}
.field--actions .btn { margin-right: 6px; }

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.4;
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--navy);
  background: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-top: 2px;
}
.checkbox input:checked { background: var(--yellow); }
.checkbox input:checked::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg) translate(1px, -1px);
}

.form-status {
  grid-column: 1 / -1;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--green-700);
  min-height: 1em;
}
.form-status[data-state="error"] { color: #a4382a; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--navy-800);
  color: color-mix(in oklab, var(--cream) 80%, var(--navy));
  padding: var(--sp-5) var(--gutter) var(--sp-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid color-mix(in oklab, var(--cream) 18%, transparent);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.footer-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.footer-brand .footer-logo {
  font-family: var(--f-display);
  font-size: var(--step-2);
  text-transform: uppercase;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 0.92;
  display: flex;
  flex-direction: column;
}
.footer-brand .footer-logo em {
  font-family: var(--f-script);
  font-weight: 600;
  color: var(--yellow);
  text-transform: none;
  font-style: normal;
  font-size: 0.82em;
  margin-right: 0.15em;
}
.footer-brand p { max-width: 40ch; font-size: 0.9rem; line-height: 1.5; }

.footer-nav,
.footer-legal,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav h4,
.footer-legal h4,
.footer-social h4 {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.3rem;
}
.footer-nav a,
.footer-legal a,
.footer-social a {
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s var(--ease-out-quart);
}
.footer-nav a:hover,
.footer-legal a:hover,
.footer-social a:hover { color: var(--yellow); }

.footer-bottom {
  padding-top: var(--sp-3);
  font-size: 0.82rem;
  line-height: 1.5;
  color: color-mix(in oklab, var(--cream) 60%, var(--navy));
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: var(--navy);
    color: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    padding: var(--sp-5) var(--sp-4);
    box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.35);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .menu-toggle { display: inline-flex; z-index: 60; }
  .menu-toggle[aria-expanded="true"] span { background: var(--cream); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: min(var(--sp-3), 2vh);
    padding: min(var(--sp-2), 1.5vh) 0;
    align-items: start;
  }
  .hero-logo-wrap { order: -1; }
  .hero-logo { width: min(clamp(130px, 38vw, 240px), 28svh); }
  .hero-copy { max-width: 100%; }
  .hero-title { font-size: min(clamp(2rem, 9vw, 3.8rem), 8svh); }
  .hero-lede {
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    margin-bottom: min(var(--sp-3), 2.5vh);
  }

  .partecipa-grid { grid-template-columns: 1fr; }

  .contatti-grid { grid-template-columns: 1fr; }
  .contatti-form { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .field--actions {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: var(--sp-2);
  }
  .field--actions .btn { width: 100%; margin-right: 0; }
  .checkbox { max-width: none; }

  .section-head {
    grid-template-columns: 1fr;
    row-gap: var(--sp-1);
  }
  .section-deck { grid-column: 1; }
  .section-num { padding-top: 0; }
  .section-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .programma-item__body h3 { font-size: clamp(1.5rem, 7.5vw, 2.2rem); }
  .programma-item { grid-template-columns: clamp(2.5rem, 10vw, 4rem) 1fr; gap: clamp(0.75rem, 3vw, 1.5rem); }
  .contatti-info dd { word-break: break-word; overflow-wrap: anywhere; }
  .hero-strip { font-size: 0.7rem; letter-spacing: 0.18em; gap: 0.4rem; padding: 0.65rem 1rem; }
  .hero-cta .btn { padding: 0.75em 1.2em; font-size: 0.78rem; }
  .eyebrow { font-size: 0.7rem; margin-bottom: min(var(--sp-2), 1.5vh); }
}
