/*
 * Misure allineate al frame Figma "Home / Desktop / 1440" (node 1:2).
 * Griglia: pagina 1440, padding 96, contenuto 1248.
 */
:root {
  --ink: #212121;
  --ink-2: #4d4d4d;
  --ink-3: #474747;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --header-line: #d9d9d9;
  --card-line: #b8b8b8;
  --card-line-2: #bfbfbf;
  --hero-wash: #f7f7f7;
  --wash: #f5f5f5;
  --wash-2: #f0f0f0;
  --wash-3: #f6f6f6;
  --donate: #ed0d14;
  --dark: #1f1f1f;
  --path: #176b45;
  --footer: #131313;
  --white: #fff;
  --max: 1248px;
  --pad: 96px;
  --header-pad: 64px;
  --radius: 4px;
  --font: Inter, system-ui, sans-serif;
  --field-bg: #f6f6f6;
  --field-bg-inset: #fff;
  --field-border: #c7c7c7;
  --field-radius: 8px;
  --field-height: 56px;
  --field-height-inset: 48px;
  --field-pad: 18px;
  --field-label: 14px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
.container { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }
.narrow { width: min(900px, 100% - 2 * var(--pad)); margin-inline: auto; }
.visually-hidden, .skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #000; color: #fff; padding: .5rem 1rem; }

/* Bottoni Figma: pad 14/22, testo 15/600 su riga 21 → 49px di altezza.
   Il contorno usa box-shadow per non alterare la scatola. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border: 0; border-radius: var(--radius);
  background: var(--dark); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 21px;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover, .btn:focus-visible { background: #000; }
.btn--ghost { background: #fff; color: var(--dark); box-shadow: inset 0 0 0 1px var(--dark); }
.btn--ghost:hover { background: #f2f2f2; }
.btn--invert { background: #fff; color: var(--dark); padding: 14px 24px; }
.btn--invert:hover { background: #ededed; }
.btn--donate {
  background: var(--donate); color: #fff;
  padding: 11px 20px; font-size: 14px; line-height: 17px;
}
.btn--donate:hover, .btn--donate:focus-visible { filter: brightness(.92); }
.btn--path {
  background: var(--path); color: #fff;
  min-width: 288px; padding: 14px 24px; gap: 7px;
  flex-direction: column; align-items: flex-start; border-radius: 5px;
}
.btn--path:hover { background: #125536; }
.btn--path small { font-size: 11px; font-weight: 400; opacity: .85; }

.arrow-link {
  display: inline-block; text-decoration: none;
  font-size: 15px; font-weight: 600; line-height: 20px; color: var(--ink);
}
.arrow-link:hover, .arrow-link:focus-visible { color: var(--donate); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover, .text-link:focus-visible { color: var(--donate); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #606060; margin: 0 0 var(--space-sm);
}
.lead { font-size: 18px; line-height: 24px; color: var(--ink-2); }
.note { color: var(--muted); font-size: 15px; }
.note--chip {
  display: inline-block; padding: 11px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink-2);
}

/* Stack verticale: stesso respiro tra copy, note e azioni (Figma gap 24). */
.stack {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-md);
}
.stack--lg { gap: var(--space-lg); }
.stack--xl { gap: var(--space-xl); }
.stack > .eyebrow { margin: 0; }
.stack > .steps,
.stack > .people,
.stack > .methods,
.stack > .cards,
.stack > .cf-box { margin-top: 0; width: 100%; }
.stack > .actions { margin-top: 0; }
.stack > .faq,
.stack > .paths { width: 100%; }
.actions { margin-top: var(--space-lg); }

/* Header — Figma 1:3, h 88, pad 64, space-between, bordo #d9d9d9 */
.site-header {
  position: sticky; top: 0; z-index: 40; background: #fff;
  box-shadow: inset 0 -1px 0 var(--header-line);
}
.site-header__inner {
  width: min(1440px, 100%); margin: 0 auto; min-height: 88px;
  padding: 0 var(--header-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-logo__img { width: 220px; height: 34px; object-fit: cover; }
.site-logo--footer .site-logo__img { width: 216px; height: 30px; }
.site-nav__list {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav__list a {
  text-decoration: none; font-size: 14px; font-weight: 400; line-height: 17px; color: var(--ink);
}
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--donate); }
.site-nav__list .menu-item-has-children { position: relative; }
.site-nav__list .menu-item-has-children > a::after { content: " ▾"; }
.site-nav__list .site-nav__parent { cursor: default; }
.site-nav__list .sub-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: -14px;
  min-width: 232px; margin: 0; padding: 8px 0; list-style: none;
  background: #fff; border: 1px solid var(--header-line); box-shadow: 0 10px 26px rgba(0,0,0,.07);
}
/* Ponte invisibile: senza questo il menu si chiude nel gap tra voce e tendina */
.site-nav__list .sub-menu::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px;
}
.site-nav__list .menu-item-has-children:hover > .sub-menu,
.site-nav__list .menu-item-has-children:focus-within > .sub-menu { display: block; }
.site-nav__list .sub-menu a { display: block; padding: 7px 16px; }
.site-header__cta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 22px; height: 2px; background: #111; position: relative;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }

/* Sezioni */
.section { padding: 72px 0; }
.section--hero { padding: 80px 0; background: var(--hero-wash); }
.section--intro { background: var(--wash-3); padding: 84px 0; }
.section--projects, .section--stories { background: var(--wash); }
.section--muted { background: var(--wash-2); }
.section--dark { background: var(--dark); color: #d4d4d4; }
.section--dark h2 { color: #fff; }

/* Hero — Figma 2:2: copy 560, media 520, gap 72 */
.hero {
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 520px);
  gap: 72px; align-items: center; justify-content: start;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
.hero h1 { font-size: 52px; line-height: 68px; color: #141414; }
.hero .lead { font-size: 20px; line-height: 26px; color: #404040; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.hero__media { width: 100%; }
.hero__img { width: 100%; height: auto; aspect-ratio: 520 / 420; object-fit: cover; }

/* Split (Partecipa a una missione) — Figma 5:2: media 540, copy 620, gap 72 */
.split {
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 620px);
  gap: 72px; align-items: center;
}
.split--reverse { grid-template-columns: minmax(0, 540px) minmax(0, 620px); }
.split--reverse .split__copy { order: 2; }
.split__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
.split__copy h1, .split__copy h2 { font-size: 36px; line-height: 50px; color: var(--ink); }
.split .prose { font-size: 18px; line-height: 25px; color: var(--ink-3); max-width: 600px; }
.split .prose p + p { margin-top: .8em; }
.split__media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* Sezioni con titolo + card */
.section__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); width: 100%; }
.section__intro h2 { font-size: 36px; line-height: 49px; color: var(--ink); }
.section__intro .lead { max-width: none; }
.section__intro + .cards,
.section__intro + .steps { margin-top: var(--space-xl); }
.section__head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px;
}
.section__head h2 { font-size: 36px; line-height: 49px; color: var(--ink); }

.cards { display: grid; gap: 32px; }
.cards--1 { grid-template-columns: minmax(0, 1fr); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 596px)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 394px)); }
.card { display: flex; flex-direction: column; background: #fff; }
.card__media { line-height: 0; display: block; }
.card__media img { width: 100%; height: auto; object-fit: cover; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; }
.card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__meta { font-size: 12px; font-weight: 600; line-height: 16px; text-transform: uppercase; color: var(--muted); }
.card__title a { text-decoration: none; }

/* Card attività — Figma 3:6: 596x578, bordo #bfbfbf, pad 0/24/24, gap 18, img 548x308.
   Il bordo è un outline rientrante: in Figma lo stroke è INSIDE e non riduce il contenuto. */
.section--activities .cards { margin-top: 32px; }
.section--activities .card {
  outline: 1px solid var(--card-line-2); outline-offset: -1px;
  padding: 0 24px 24px; gap: 18px;
}
.section--activities .card { min-height: 578px; }
.section--activities .card__media img { aspect-ratio: 548 / 308; }
.section--activities .card__body { gap: 18px; }
.section--activities .card__title {
  font-size: 26px; line-height: 35px; max-width: 520px; min-height: 70px;
}
.section--activities .card__text {
  font-size: 16px; line-height: 22px; color: var(--ink-2); max-width: 520px; min-height: 66px;
}

/* Card progetto — Figma 4:5: 394x554, bordo #b8b8b8, pad 0/20/20, gap 16, img 354x354 */
.section--projects .cards { margin-top: 30px; }
.section--projects .card {
  outline: 1px solid var(--card-line); outline-offset: -1px;
  padding: 0 20px 20px; gap: 16px;
}
.section--projects .card__media img { aspect-ratio: 1; }
.section--projects .card__body { gap: 16px; }
.section--projects .card__title { font-size: 24px; line-height: 32px; }
.section--projects .card__text { font-size: 15px; line-height: 20px; color: var(--ink-2); max-width: 345px; }
.section--projects .arrow-link { font-size: 14px; line-height: 19px; }

/* Card storia — Figma 6:7: 596x470, bordo #b8b8b8, pad 0/22/22, gap 15, img 552x260 */
.section--stories .card, .card--story {
  outline: 1px solid var(--card-line); outline-offset: -1px;
  padding: 0 22px 22px; gap: 15px;
}
.section--stories .card__media img, .card--story .card__media img { aspect-ratio: 552 / 260; }
.section--stories .card__body, .card--story .card__body { gap: 15px; }
.section--stories .card__title, .card--story .card__title {
  font-size: 24px; line-height: 32px; min-height: 64px;
}
.section--stories .card__text, .card--story .card__text {
  font-size: 15px; line-height: 20px; color: var(--ink-2); max-width: 540px;
}
.section--stories .arrow-link, .card--story .arrow-link { font-size: 14px; line-height: 19px; }

/* Card testuali (temi, elenchi) */
.section--topics .card, .card--plain { background: var(--wash-3); padding: 32px; gap: 18px; }
.section--topics .card__body, .card--plain .card__body { gap: 12px; }

/* Banda CTA — Figma 7:2 (centrata, pad 160) e 8:2 (riga, pad 64) */
.cta-band {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  width: min(1120px, 100% - 2 * var(--pad)); margin-inline: auto;
}
.cta-band__copy { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-band h2 { font-size: 38px; line-height: 53px; max-width: 900px; }
.cta-band__text { font-size: 17px; font-weight: 600; line-height: 24px; max-width: 1000px; }
.cta-band__note { font-size: 18px; line-height: 25px; max-width: 820px; }
.section--row { background: var(--wash-2); padding: 64px 0; }
.section--row .cta-band {
  flex-direction: row; align-items: center; justify-content: space-between;
  text-align: left; gap: 80px; width: min(var(--max), 100% - 2 * var(--pad));
}
.section--row .cta-band__copy { align-items: flex-start; gap: 18px; max-width: 820px; }
.section--row .cta-band h2 { font-size: 34px; line-height: 48px; max-width: none; }
.section--row .cta-band__note { font-size: 17px; line-height: 24px; color: var(--ink-3); max-width: 800px; }
.section--row .btn { flex: 0 0 auto; }

/* Moduli delle altre pagine */
.steps { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: 10px; }
.steps__item {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  background: var(--wash-3); border-radius: 8px; padding: 16px 18px;
}
.steps__num { font-weight: 700; color: var(--donate); }
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--ink-2); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.people__card { background: #fbfbfb; border-radius: 10px; padding: 20px 22px 22px; }
.people--portraits .people__photo {
  width: 120px; height: 120px; object-fit: cover; border-radius: 6px; background: #eee; margin-bottom: 14px;
}
.people__card h3 { font-size: 21px; margin-bottom: 4px; }
.people__role {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.methods { display: grid; gap: 20px; margin-top: 32px; }
.method { border: 1px solid var(--line); border-radius: 8px; padding: 24px 26px; background: #fff; }
.method h3 { margin-bottom: 8px; }
.method p { margin-bottom: 12px; }
.method__details {
  background: var(--wash-3); padding: 16px; border-radius: 8px; white-space: pre-wrap;
  font-family: inherit; font-size: 15px; margin-bottom: 12px;
}
.paths { display: grid; gap: 18px; width: 100%; }
.path {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: 6px; padding: 28px 30px; background: #fff;
}
.path__copy { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.path__num { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.path h3 { font-size: 28px; }
.path p { color: var(--ink-2); }
.cf-box { margin-top: 40px; padding: 28px; background: #111; color: #fff; border-radius: 12px; text-align: center; }
.cf-box a { color: #fff; }
.cf-box__code { font-size: 40px; font-weight: 700; letter-spacing: .04em; margin: 12px 0; }
.cf-box--hero { margin: 0 0 32px; }
.copy-btn { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.copy-btn--lg { text-decoration: none; letter-spacing: .06em; }
.faq { display: grid; gap: 18px; width: 100%; }
.faq__item { background: var(--wash-3); border-radius: 10px; padding: 26px; }
.faq__item summary { cursor: pointer; font-weight: 700; display: flex; gap: 16px; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { color: var(--donate); min-width: 32px; }
.faq__body {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-md); padding: var(--space-sm) 0 0 48px; color: var(--ink-2);
}
.faq__body .prose { max-width: none; }
.docs { margin-top: 24px; }
.docs__list { list-style: none; padding: 0; margin: 0; }
.docs__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible, .copy-btn:focus-visible { outline: 3px solid #111; outline-offset: 2px; }

/* Form system — Figma 64:3 / 64:45. Un solo chrome per tutti i form. */
.dfc-form { display: grid; gap: 20px; margin-top: 24px; }
.dfc-form--membership { margin-top: 0; gap: 24px; }
.dfc-form--donation { display: flex; flex-direction: column; gap: var(--space-xl); margin-top: 8px; }
.dfc-form__title { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.section--membership > .container > .dfc-form__title { font-size: 32px; line-height: 40px; }
.dfc-form__intro { color: #616161; margin: 0 0 8px; }
.dfc-form__note { margin-top: 20px; }
.dfc-form__stack { display: grid; gap: 16px; max-width: 760px; }
.dfc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.dfc-form__col { display: grid; gap: 16px; align-content: start; }
.dfc-form__consents { background: var(--field-bg); border-radius: 10px; padding: 22px; display: grid; gap: 12px; }
.dfc-form__submit { margin-top: 8px; }
.dfc-form__submit .btn { min-height: 52px; padding: 0 28px; border-radius: 8px; }
.dfc-form__submit .btn--donate { min-height: 56px; font-size: 16px; }

.dfc-field { display: grid; gap: 8px; }
.dfc-field__label { font-size: var(--field-label); font-weight: 500; color: var(--ink); }
.dfc-control {
  display: flex; align-items: center; gap: 12px;
  background: var(--field-bg); border: 1px solid var(--field-border);
  border-radius: var(--field-radius); padding: 0 var(--field-pad);
  min-height: var(--field-height);
}
.dfc-control--prefix { padding-left: 16px; }
.dfc-control--select {
  padding-right: 40px;
  background-color: var(--field-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234d4d4d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.dfc-control--area { align-items: stretch; padding: 12px var(--field-pad); min-height: 140px; }
.dfc-control__prefix { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.dfc-control input,
.dfc-control select,
.dfc-control textarea {
  appearance: none; -webkit-appearance: none;
  flex: 1; width: 100%; border: 0; background: transparent; font: inherit;
  padding: 16px 0; min-width: 0; color: var(--ink); border-radius: 0;
}
.dfc-control select { cursor: pointer; }
.dfc-control textarea { resize: vertical; min-height: 112px; }
.dfc-control input::placeholder,
.dfc-control textarea::placeholder { color: #8a8a8a; }
.dfc-field[data-field="fiscal_code"] input,
.dfc-field[data-field="company_fiscal_code"] input { text-transform: uppercase; letter-spacing: .03em; }
.dfc-control input:focus,
.dfc-control select:focus,
.dfc-control textarea:focus { outline: none; }
.dfc-control:focus-within { border-color: #111; box-shadow: 0 0 0 1px #111; }
.dfc-field--inset .dfc-control { background: var(--field-bg-inset); min-height: var(--field-height-inset); padding: 0 16px; }
.dfc-field--inset .dfc-control--select { background-color: var(--field-bg-inset); }
.dfc-field__error { color: #b42318; font-size: 13px; line-height: 1.4; margin: 0; }
.dfc-field__error[hidden] { display: none; }
.dfc-field--error .dfc-control { border-color: #b42318; }
.dfc-chips.dfc-field--error .dfc-chip span { border-color: #b42318; }

.dfc-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); position: relative; }
.dfc-check__text { flex: 1 1 auto; min-width: 0; }
.dfc-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  display: inline-block;
  flex: 0 0 22px; width: 22px; height: 22px; min-width: 22px; min-height: 22px;
  margin: 1px 0 0; padding: 0;
  border: 1px solid #4d4d4d; border-radius: 3px; background: #fff;
  position: relative; z-index: 2; pointer-events: auto; touch-action: manipulation;
}
.dfc-check input[type="checkbox"]::after {
  content: ""; position: absolute; inset: -12px;
}
.dfc-check input[type="checkbox"]:checked {
  border-color: #111;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
}
.dfc-check input[type="checkbox"]:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.dfc-check__text a { font-weight: 600; }
.dfc-check--boxed { background: #fff; border-radius: 8px; padding: 16px 18px; }
.dfc-check--error { color: #b42318; }
.dfc-check--error input { outline: 2px solid #b42318; outline-offset: 2px; }

.dfc-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 744px; }
.dfc-chip { position: relative; }
.dfc-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.dfc-chip span {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  border: 1px solid var(--field-border); border-radius: var(--field-radius); background: var(--field-bg);
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.dfc-chip input:checked + span { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.dfc-chip input:focus-visible + span { outline: 3px solid #111; outline-offset: 2px; }

.dfc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.dfc-choice__option { position: relative; }
.dfc-choice__option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.dfc-choice__option span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--field-border); border-radius: var(--field-radius); background: #fff; font-weight: 600; text-align: center;
}
.dfc-choice__option input:checked + span { background: var(--donate); border-color: var(--donate); color: #fff; }
.dfc-choice__option input:focus-visible + span { outline: 3px solid #111; outline-offset: 2px; }

.dfc-panel { margin-top: 0; background: var(--field-bg); border-radius: 12px; padding: 28px; }
.dfc-panel h3 { font-size: 24px; margin-bottom: 8px; }
.dfc-panel__intro { color: var(--ink-2); margin-bottom: 18px; }
.dfc-panel__rule { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
.dfc-panel__note { font-size: 12px; color: var(--muted); margin: 16px 0 6px; }
.dfc-panel__fields { margin-top: 8px; }
.dfc-panel__fields[hidden],
.dfc-panel__card[hidden] { display: none !important; }
.dfc-panel__card { margin-top: 20px; background: #fff; border: 1px solid #ececec; border-radius: 10px; padding: 22px; display: grid; gap: 16px; }
.dfc-panel__card .dfc-field { gap: 6px; }

.dfc-paybar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--dark); color: #fff; border-radius: 12px; padding: 24px;
}
.dfc-paybar__title { font-weight: 700; font-size: 18px; line-height: 22px; }
.dfc-paybar__note { color: #d1d1d1; font-size: 14px; margin-top: 4px; }
.dfc-paybar__amount { font-size: 32px; font-weight: 700; line-height: 39px; margin: 0; }
.dfc-paybar .btn--donate { flex: 0 0 auto; min-height: 52px; padding: 0 22px; border-radius: 8px; }

/* Dona — Figma 64:45: colonna 1200px, form stretto 760px, box grigi full-width */
.page-dona .section--intro { padding-bottom: 40px; }
.page-dona .section--boxed { padding: 12px 0; }
.page-dona .section--donation-form { padding-top: 40px; padding-bottom: 48px; }
.page-dona .section--donation-form + .section { padding-top: 48px; }
.page-dona .section > .container { width: min(1200px, 100% - 2 * var(--pad)); }
.page-dona .section--donation-form + .section h2 { font-size: 24px; line-height: 32px; margin-bottom: 16px; }
.page-dona .section--donation-form + .section .methods { margin-top: 0; }
.page-dona .method--bank {
  background: #f6f6f6; border: 0; border-radius: 12px; padding: 28px;
}
.page-dona .method--bank h3 { font-size: 24px; line-height: 32px; margin-bottom: 10px; }
.page-dona .method--bank p { color: var(--ink-2); margin-bottom: 16px; }
.page-dona .method--bank .method__details {
  background: #fff; border: 1px solid #ececec; border-radius: 8px;
  padding: 18px 20px; margin-bottom: 16px; font-size: 15px; line-height: 1.55;
}
.page-dona .method--bank .btn--ghost { background: #fff; }

/* Blocco informativo in riquadro grigio (Figma Dona / Associati) */
.section--boxed { padding-top: 16px; padding-bottom: 16px; }
.rich-box { background: #f6f6f6; border-radius: 12px; padding: 28px; }
.rich-box h2 { font-size: 24px; line-height: 32px; margin-bottom: 10px; }
.rich-box .prose { max-width: none; color: var(--ink-2); }
.rich-box .arrow-link { margin-top: 12px; }

/* Thank you — /dona-thankyou/ /associati-thankyou/ */
.section--thankyou { padding: 80px 0 96px; }
.thankyou { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; max-width: 900px; }
.thankyou__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 720px; }
.thankyou h1 { font-size: 40px; line-height: 50px; }
.thankyou__text { font-size: 18px; line-height: 26px; color: var(--ink-2); max-width: none; }
.thankyou__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.thankyou__media { margin: 0; width: 100%; }
.thankyou__img {
  width: 100%; height: auto; max-height: 620px;
  object-fit: cover; object-position: center top;
  border-radius: 12px; aspect-ratio: 3 / 2;
}

/* Associati — Figma 64:3: colonna 1200, form 2 colonne 576+48 */
.page-associati .section--intro { padding-bottom: 40px; }
.page-associati .section--boxed { padding: 12px 0; }
.page-associati .section--membership { padding-top: 40px; padding-bottom: 72px; }
.page-associati .section > .container { width: min(1200px, 100% - 2 * var(--pad)); }
.form-notice { padding: 14px 16px; border-radius: 8px; }
.form-notice--ok { background: #e8f6ec; }
.form-notice--err { background: #fde8e8; }

/* WS Form — vince sullo styler del plugin (stessi token Figma dei form PHP). */
.dfc-wsform-wrap { margin-top: 24px; }
.dfc-wsform-wrap--associati { margin-top: 0; }
.dfc-wsform.wsf-form,
.dfc-wsform-wrap .wsf-form { font: inherit; color: var(--ink); }
.dfc-wsform-wrap .wsf-section.dfc-ws-col { margin-bottom: 0; }
.dfc-wsform-wrap .wsf-labels-hide,
.dfc-wsform-wrap .wsf-section-title,
.dfc-wsform-wrap .wsf-group-title,
.dfc-wsform-wrap legend { display: none !important; }
.dfc-wsform-wrap label.wsf-label,
.dfc-wsform-wrap .wsf-label {
  display: block !important; font-size: var(--field-label); font-weight: 500;
  color: var(--ink); margin: 0 0 8px;
}
.dfc-wsform-wrap .wsf-field-wrapper { margin: 0 0 16px; background: transparent !important; }
.dfc-wsform-wrap input.wsf-field:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.dfc-wsform-wrap select.wsf-field,
.dfc-wsform-wrap textarea.wsf-field {
  appearance: none !important; -webkit-appearance: none !important;
  width: 100% !important; min-height: var(--field-height) !important;
  padding: 0 var(--field-pad) !important; border: 1px solid var(--field-border) !important;
  border-radius: var(--field-radius) !important; background: var(--field-bg) !important;
  font: inherit !important; color: var(--ink) !important; box-shadow: none !important;
}
.dfc-wsform-wrap textarea.wsf-field {
  min-height: 140px !important; height: auto !important;
  padding: 12px var(--field-pad) !important; resize: vertical;
}
.dfc-wsform-wrap select.wsf-field {
  padding-right: 40px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234d4d4d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important;
}
.dfc-wsform-wrap input.wsf-field::placeholder,
.dfc-wsform-wrap textarea.wsf-field::placeholder { color: #8a8a8a !important; }
.dfc-wsform-wrap input.wsf-field:focus,
.dfc-wsform-wrap select.wsf-field:focus,
.dfc-wsform-wrap textarea.wsf-field:focus {
  outline: none !important; border-color: #111 !important; box-shadow: 0 0 0 1px #111 !important;
}
.dfc-wsform-wrap .dfc-ws-field--fiscal_code input.wsf-field { text-transform: uppercase; letter-spacing: .03em; }
.dfc-wsform-wrap .wsf-invalid-feedback {
  color: #b42318 !important; font-size: 13px; line-height: 1.4; margin: 6px 0 0;
}
.dfc-wsform-wrap .wsf-field-wrapper[data-wsf-invalid] input.wsf-field,
.dfc-wsform-wrap .wsf-field-wrapper[data-wsf-invalid] select.wsf-field,
.dfc-wsform-wrap .wsf-field-wrapper[data-wsf-invalid] textarea.wsf-field { border-color: #b42318 !important; }
.dfc-wsform-wrap .dfc-ws-consents,
.dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--statute) {
  background: var(--field-bg) !important; border-radius: 10px; padding: 22px !important; margin: 8px 0 24px;
}
.dfc-wsform-wrap .wsf-field-wrapper[data-type="checkbox"] { margin-bottom: 12px; position: relative; }
.dfc-wsform-wrap input[type="checkbox"].wsf-field,
.dfc-wsform-wrap .wsf-field[type="checkbox"] {
  appearance: none !important; -webkit-appearance: none !important;
  display: inline-block !important;
  width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important;
  margin: 1px 12px 0 0 !important; padding: 0 !important;
  border: 1px solid #4d4d4d !important; border-radius: 3px !important;
  background-color: #fff !important; background-image: none !important;
  position: relative !important; left: auto !important; top: auto !important;
  opacity: 1 !important; visibility: visible !important;
  clip: auto !important; clip-path: none !important;
  pointer-events: auto !important; touch-action: manipulation;
  vertical-align: top; box-shadow: none !important; z-index: 2;
}
.dfc-wsform-wrap input[type="checkbox"].wsf-field::before,
.dfc-wsform-wrap .wsf-field[type="checkbox"]::before { display: none !important; content: none !important; }
.dfc-wsform-wrap input[type="checkbox"].wsf-field::after,
.dfc-wsform-wrap .wsf-field[type="checkbox"]::after {
  content: "" !important; display: block !important;
  position: absolute; inset: -12px; background: none !important; border: 0 !important;
}
.dfc-wsform-wrap input[type="checkbox"].wsf-field:checked,
.dfc-wsform-wrap .wsf-field[type="checkbox"]:checked {
  border-color: #111 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 10px !important;
}
/* Riga: checkbox + testo. La label NON deve essere flex, altrimenti
   i nodi di testo e i <a> diventano colonne (frase spezzata sul mobile). */
.dfc-wsform-wrap .wsf-checkbox-container,
.dfc-wsform-wrap [data-row-checkbox] {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  position: relative;
  pointer-events: auto;
}
.dfc-wsform-wrap .wsf-checkbox-container > input[type="checkbox"],
.dfc-wsform-wrap [data-row-checkbox] > input[type="checkbox"] {
  flex: 0 0 22px;
  margin-right: 0 !important;
}
.dfc-wsform-wrap .wsf-field-wrapper[data-type="checkbox"] label {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0 !important;
  color: var(--ink);
  position: relative;
  pointer-events: auto;
}
.dfc-wsform-wrap .wsf-field-wrapper[data-type="checkbox"] label:has(> input[type="checkbox"]) {
  padding-left: 34px;
}
.dfc-wsform-wrap .wsf-field-wrapper[data-type="checkbox"] label:has(> input[type="checkbox"]) > input[type="checkbox"] {
  position: absolute !important;
  left: 0;
  top: 0.15em;
  margin: 0 !important;
}
.dfc-wsform-wrap .wsf-field-wrapper[data-type="checkbox"] a { font-weight: 600; position: relative; z-index: 3; }
.dfc-wsform-wrap .dfc-ws-paybar,
.dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--paybar) {
  display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--dark) !important; color: #fff !important;
  border-radius: 12px; padding: 24px !important; margin-top: 8px;
}
.dfc-wsform-wrap .dfc-ws-paybar [class*="wsf-extra-small"],
.dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--paybar) [class*="wsf-extra-small"] {
  width: auto !important; max-width: none !important; flex: 1 1 auto;
  background: transparent !important; padding: 0 !important;
}
.dfc-wsform-wrap .dfc-ws-paybar .wsf-field-wrapper,
.dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--paybar) .wsf-field-wrapper { margin: 0; background: transparent !important; }
.dfc-wsform-wrap .dfc-ws-field--paybar { flex: 1; color: #fff !important; }
.dfc-wsform-wrap .dfc-ws-paybar .dfc-paybar__title,
.dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--paybar) .dfc-paybar__title { font-weight: 700; font-size: 18px; line-height: 22px; margin: 0; color: #fff !important; }
.dfc-wsform-wrap .dfc-ws-paybar .dfc-paybar__note,
.dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--paybar) .dfc-paybar__note { color: #d1d1d1 !important; font-size: 14px; margin: 4px 0 0; }
.dfc-wsform-wrap .dfc-ws-paybar .dfc-paybar__amount,
.dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--paybar) .dfc-paybar__amount { font-size: 32px; font-weight: 700; line-height: 39px; margin: 0 16px 0 0; color: #fff !important; }
.dfc-wsform-wrap .dfc-ws-submit { margin-top: 8px; }
.dfc-wsform-wrap button.wsf-button,
.dfc-wsform-wrap button.wsf-button-primary,
.dfc-wsform-wrap button.btn,
.dfc-wsform-wrap input.wsf-button[type="submit"] {
  min-height: 52px !important; padding: 0 28px !important; border-radius: 8px !important; width: auto !important;
  background: var(--dark) !important; color: #fff !important; border: 0 !important;
  font: inherit !important; font-weight: 600 !important; cursor: pointer;
  box-shadow: none !important; text-transform: none !important;
}
.dfc-wsform-wrap button.wsf-button.btn--donate,
.dfc-wsform-wrap button.btn--donate {
  background: var(--donate) !important; min-height: 52px !important; padding: 0 22px !important; flex: 0 0 auto;
}
.dfc-wsform-wrap .wsf-alert,
.dfc-wsform-wrap .wsf-alert-success { padding: 14px 16px; border-radius: 8px; background: #e8f6ec !important; border: 0; color: var(--ink); }
.dfc-wsform-wrap .wsf-alert-danger { background: #fde8e8 !important; }
@media (max-width: 767px) {
  .dfc-wsform-wrap .dfc-ws-paybar,
  .dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--paybar) { flex-direction: column; align-items: flex-start; }
  .dfc-wsform-wrap .dfc-ws-paybar button,
  .dfc-wsform-wrap .wsf-section:has(.dfc-ws-field--paybar) button { width: 100% !important; }
}
.prose { max-width: 42rem; }
.prose p + p, .prose ul, .prose ol { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: .5em; }
.page-gutenberg, .article { padding: 56px 0 64px; }
.article__header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.article__hero { margin: 32px auto; }
.article__hero img { width: 100%; max-height: 520px; object-fit: cover; }
.article__body { margin-top: 32px; }
.breadcrumb { color: var(--muted); font-size: 14px; }

/* Footer — Figma 13:2: colonne 430/190/260/190, gap 59 */
.site-footer { background: var(--footer); color: #c7c7c7; padding: 72px 0 36px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner {
  width: min(var(--max), 100% - 2 * var(--pad)); margin: 0 auto;
  display: grid; grid-template-columns: 430fr 190fr 260fr 190fr; gap: 59px;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.site-footer__tagline { font-size: 16px; line-height: 24px; color: #c7c7c7; max-width: 410px; }
.site-footer__heading {
  font-size: 12px; font-weight: 600; line-height: 18px; letter-spacing: .06em;
  text-transform: uppercase; color: #9e9e9e; margin: 0;
}
.site-footer__col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.site-footer__list li { font-size: 15px; line-height: 21px; }
.site-footer__contact { font-size: 15px; line-height: 21px; color: #fff; display: flex; flex-direction: column; }
.site-footer__social { display: flex; flex-direction: column; gap: 14px; }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__bottom {
  width: min(var(--max), 100% - 2 * var(--pad)); margin: 44px auto 0;
  padding-top: 44px; border-top: 1px solid #3d3d3d;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; line-height: 18px; color: #949494;
}
.site-footer__bottom a { color: #949494; }

@media (max-width: 1339px) {
  :root { --pad: 48px; --header-pad: 40px; }
  .hero, .split, .split--reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; }
  .cards--2, .cards--3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .cta-band, .section--row .cta-band { width: min(var(--max), 100% - 2 * var(--pad)); }
}
@media (max-width: 1023px) {
  :root { --pad: 24px; --header-pad: 24px; }
  .hero h1 { font-size: 40px; line-height: 48px; }
  .section__intro h2, .section__head h2, .split__copy h2 { font-size: 30px; line-height: 40px; }
  .cta-band h2 { font-size: 30px; line-height: 40px; }
  .section--row .cta-band { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .section--activities .card { min-height: 0; }
  .section--activities .card__title,
  .section--activities .card__text,
  .section--stories .card__title, .card--story .card__title { min-height: 0; }
}
@media (max-width: 767px) {
  .section, .section--hero, .section--intro, .section--row, .section--thankyou { padding: 48px 0; }
  .thankyou h1 { font-size: 32px; line-height: 40px; }
  .thankyou__img { max-height: 420px; }
  .hero, .split, .split--reverse, .cards--2, .cards--3, .people, .gallery, .path { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__copy { order: 0; }
  .hero h1 { font-size: 34px; line-height: 42px; }
  .hero .lead { font-size: 18px; line-height: 25px; }
  .section--activities .card__title { font-size: 22px; line-height: 30px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header__inner { position: relative; flex-wrap: wrap; gap: 12px; min-height: 72px; }
  .site-logo { order: 1; }
  .site-logo__img { width: 168px; height: 26px; }
  .site-header__cta { order: 2; }
  .site-nav {
    order: 3; display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--header-line); padding: 16px var(--header-pad) 20px;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav__list .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 4px 0 0 12px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__bottom { flex-direction: column; }
  .btn--path { min-width: 0; width: 100%; }
  .faq__body { padding-left: 0; }
  .dfc-chips { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dfc-choice { grid-template-columns: 1fr; }
  .dfc-panel { padding: 20px; }
  .dfc-form__grid { grid-template-columns: 1fr; gap: 16px; }
  .dfc-paybar { flex-direction: column; align-items: flex-start; }
  .dfc-paybar .btn--donate { width: 100%; }
}
@media (min-width: 768px) {
  .site-nav { display: block !important; }
}
