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

:root {
  --green-900: #14542a;
  --green-800: #1a7a32;
  --green-700: #2a9d3f;
  --green-600: #43b04a;
  --green-300: #a3dcae;
  --green-200: #cdeed3;
  --green-100: #e6f4e8;
  --green-50:  #f4faf5;
  --red:       #c0392b;
  --white:     #ffffff;
  --gray-50:   #f6f7f6;
  --gray-100:  #eceeec;
  --gray-300:  #c8ccc9;
  --gray-500:  #788079;
  --gray-700:  #3d4540;
  --gray-900:  #1a201c;
  --font:      'Nunito', system-ui, -apple-system, sans-serif;
  --font-head: 'Bricolage Grotesque', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow:    0 6px 24px rgba(0,0,0,.1);
  --transition: .25s ease;
}

html {
  scroll-behavior: smooth;
  /* le ancore interne (#sezione-...) non finiscono sotto l'header sticky */
  scroll-padding-top: 84px;
  /* evita l'auto-ingrandimento del testo su iOS in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Nessun flash blu/grigio al tocco su mobile */
a, button, .btn, .hamburger, input, select, textarea, summary, label {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Top Bar ─────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--green-900);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  transition: background var(--transition);
  font-size: .72rem;
}
.topbar-social a:hover { background: var(--green-600); }

/* ─── Header (logo centrato, riga unica) ─────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

/* ── Header trasparente (solo homepage) ── */
.header.header-home {
  position: fixed;
  width: 100%;
  background: rgba(255,255,255, var(--header-alpha, 0));
  border-bottom-color: rgba(200,206,200, var(--header-alpha, 0));
  box-shadow: none;
}
.header.header-home.scrolled { box-shadow: var(--shadow-sm); }

/* Logo leggermente illuminato quando sfondo trasparente */
.header.header-home:not(.scrolled) .header-logo-img {
  filter: brightness(1.08) drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* Link di navigazione bianchi quando sfondo trasparente */
.header.header-home:not(.scrolled) .nav-left > li > a,
.header.header-home:not(.scrolled) .nav-right > li > a {
  color: rgba(255,255,255,.9);
  transition: color .25s, border-color .25s;
}
.header.header-home:not(.scrolled) .nav-left > li > a:hover,
.header.header-home:not(.scrolled) .nav-right > li > a:hover,
.header.header-home:not(.scrolled) .nav-left > li.active > a,
.header.header-home:not(.scrolled) .nav-right > li.active > a {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,.6);
}

/* Hamburger bianco quando trasparente */
.header.header-home:not(.scrolled) .hamburger span { background: var(--white); }

/* Colori che tornano scuri quando scrolled (transizione CSS automatica) */
.header.header-home .nav-left > li > a,
.header.header-home .nav-right > li > a { transition: color .3s ease, border-color .25s ease; }
.header.header-home .hamburger span { transition: background .3s ease; }

/* Riga unica centrata: nav-sx | logo | nav-dx con larghezza max */
.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

/* Logo al centro esatto */
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 8px;
  transition: opacity var(--transition);
}
.header-logo:hover { opacity: .88; }

.header-logo-img {
  height: 65px;
  width: auto;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

/* Footer logo */
.footer-logo-img {
  height: 48px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 404 logo */
.error-logo-img {
  height: 80px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

/* Nav sinistra: occupa metà spazio, allineata a destra (vicino al logo) */
.nav-left {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  gap: 4px;
  min-width: 0;
}

/* Nav destra: occupa metà spazio, allineata a sinistra (vicino al logo) */
.nav-right {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  gap: 4px;
  min-width: 0;
}

.nav-left > li > a,
.nav-right > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  height: 72px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray-700);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.nav-left > li > a:hover,
.nav-right > li > a:hover,
.nav-left > li.active > a,
.nav-right > li.active > a {
  color: var(--green-800);
  border-bottom-color: var(--green-700);
}

.nav-right .nav-cta {
  margin-left: 8px;
}
.nav-right .nav-cta a {
  height: auto;
  border-bottom: none;
  padding: 10px 18px;
  color: var(--white);
}
.nav-right .nav-cta a:hover {
  border-bottom: none;
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--green-900);
  border-radius: 2px;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
  padding: 8px 5% 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: .88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:hover { color: var(--green-800); }

/* Mobile sub-links (servizi) */
.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  border-radius: 6px;
  margin: 0 0 4px;
  overflow: hidden;
}
.mobile-nav-sub-link {
  padding: 10px 16px !important;
  font-size: .8rem !important;
  font-weight: 500 !important;
  color: var(--gray-500) !important;
  border-bottom: 1px solid var(--gray-100) !important;
  letter-spacing: .03em !important;
}
.mobile-nav-sub-link:last-child { border-bottom: none !important; }
.mobile-nav-sub-link:hover { color: var(--green-800) !important; background: var(--green-50); }

/* ─── Nav Dropdown ─────────────────────────────────────────────────────────── */
.nav-has-dropdown { position: relative; }

.nav-dropdown-trigger {
  gap: 5px;
}
.nav-arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.nav-has-dropdown:hover .nav-arrow,
.nav-has-dropdown:focus-within .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 3px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 210px;
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-700);
  white-space: nowrap;
  border-bottom: none;
  height: auto;
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown-menu li a:hover {
  color: var(--green-800);
  background: var(--green-50);
}
.nav-dd-icon { font-size: 1rem; line-height: 1; }

/* Transparent header: dropdown ancora bianco */
.header.header-home:not(.scrolled) .nav-dropdown-menu {
  background: var(--white);
  border-color: var(--gray-100);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(42,157,63,.3);
}
.btn-primary:hover { background: var(--green-800); box-shadow: 0 6px 20px rgba(42,157,63,.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--green-900); }

.btn-outline-dark {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-outline-dark:hover { background: var(--green-800); color: var(--white); }

.btn-sm { padding: 10px 18px; font-size: .76rem; }

/* ─── Hero / Carousel ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.70) 100%);
}

/* Immagini di sfondo del carosello (sostituibili con foto reali dell'associazione) */
.hero-slide-1 {
  background-image: url("/static/img/landing/Croce-verde-Viadana-2025.fd53be538262.jpg");
  background-color: #1a1a1a;
}
.hero-slide-2 {
  background-image: url("/static/img/landing/foto-40esimo.d214731cb890.png");
  background-color: #1a1a1a;
}
.hero-slide-3 {
  background-image: url("/static/img/landing/foto-scuderia-mezzi.fc27c065ba9b.png");
  background-color: #1a1a1a;
}
.hero-slide-4 {
  background-image: url("/static/img/landing/foto-sede.bedd30c0362b.png");
  background-color: #1a1a1a;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 5%;
  color: var(--white);
}

.hero-motto {
  font-size: .9rem;
  letter-spacing: .55em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: .85;
  margin-bottom: 24px;
  padding-right: 0;
}
.hero-motto span { color: #b8f0c4; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 3vw, 5rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.hero-since {
  display: inline-block;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: .15em;
  border-top: 1px solid rgba(255,255,255,.4);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding: 8px 24px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}
.hero-dot.active { background: var(--white); width: 32px; border-radius: 5px; }

/* ─── Section common ──────────────────────────────────────────────────────── */
.section { padding: 80px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--green-900); color: var(--white); }

.section-eyebrow {
  display: block;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 12px;
}
.section-dark .section-eyebrow { color: #b8f0c4; }

.section-title {
  font-family: var(--font-head);
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--green-900);
  margin-bottom: 14px;
}
.section-dark .section-title { color: var(--white); }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--green-700);
  margin: 0 auto 28px;
  border-radius: 2px;
}
.section-dark .section-divider { background: #b8f0c4; }

.section-lead {
  text-align: center;
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.75;
}
.section-dark .section-lead { color: rgba(255,255,255,.85); }

/* ─── Intro Section ───────────────────────────────────────────────────────── */
.intro-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.85;
}
.intro-text p + p { margin-top: 20px; }
.intro-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--green-800);
  text-align: center;
  margin-top: 40px;
  padding: 24px 5%;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Volunteer Recruitment ──────────────────────────────────────────────── */
.volunteer-section {
  position: relative;
  padding: 100px 5%;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.volunteer-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  opacity: .8;
}
.volunteer-inner { position: relative; max-width: 800px; margin: 0 auto; }
.volunteer-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 24px;
  line-height: 1.25;
}
.volunteer-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(255,255,255,.9);
  margin-bottom: 36px;
}

/* ─── Services Grid (4 cards) ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.service-img {
  height: 180px;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  position: relative;
  overflow: hidden;
}
.service-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.3));
  z-index: 1;
}
.service-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.service-card:hover .service-img-photo { transform: scale(1.05); }

.service-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.service-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-text {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { gap: 12px; color: var(--green-900); }

/* ─── Support / Donation ─────────────────────────────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.support-card {
  background: var(--white);
  border-radius: 6px;
  padding: 48px 40px;
  text-align: center;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.support-card.featured {
  background: var(--green-100);
  border-color: var(--green-200);
}

.support-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
  color: var(--white);
}

.support-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 16px;
  letter-spacing: .02em;
}

.support-text {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 28px;
  line-height: 1.75;
}

.support-code {
  font-family: 'Courier New', monospace;
  background: var(--white);
  border: 2px dashed var(--green-700);
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: .15em;
}

/* ─── News / Latest ──────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
}
.news-body { padding: 24px; }
.news-date {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 700;
  margin-bottom: 10px;
}
.news-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-excerpt { font-size: .9rem; color: var(--gray-500); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 64px 5% 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo {
  width: 60px; height: 60px;
  background: var(--green-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo .cross-icon { width: 28px; height: 28px; }
.footer-brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-desc { font-size: .9rem; line-height: 1.75; margin-bottom: 20px; max-width: 360px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--green-700); color: var(--white); }

.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .9rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
  font-size: .88rem;
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer-contact-item strong { color: var(--white); display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--white); }

/* ─── Emergency banner ───────────────────────────────────────────────────── */
.emergency-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 10px 5%;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.emergency-banner strong { font-size: 1rem; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-left > li > a,
  .nav-right > li > a { padding: 0 10px; font-size: .76rem; }
  .header-name { font-size: .95rem; }
  .nav-right .nav-cta a { padding: 8px 14px; font-size: .76rem; }
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-left, .nav-right { display: none; }
  .hamburger { display: flex; }
  .header-row {
    position: relative;
    justify-content: center;
  }
  .hamburger {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .topbar { font-size: .76rem; justify-content: center; }
  .topbar-info { gap: 14px; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .support-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }

  .hero-motto { font-size: .72rem; letter-spacing: .35em; }

  /* Servizi (home): card orizzontale invece dell'immagine a tutta larghezza */
  .service-card { flex-direction: row; align-items: stretch; }
  .service-img { height: auto; width: 96px; flex: 0 0 96px; }
  .service-body { padding: 18px 20px; }
  .service-title { font-size: .95rem; margin-bottom: 8px; }
  .service-text { font-size: .85rem; margin-bottom: 14px; }
}

@media (max-width: 480px) {
  .header-name { font-size: 1.15rem; }
  .hero-since { font-size: 1.05rem; }
  .service-img { width: 80px; flex-basis: 80px; }
  .service-body { padding: 16px; }
}

/* ─── Standard Pages ────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  padding: 40px 5% 34px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }
.breadcrumb span:last-child { color: rgba(255,255,255,.85); }
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.page-hero-intro {
  font-size: 1.02rem;
  color: rgba(255,255,255,.82);
  max-width: 640px;
  line-height: 1.7;
}

.page-content {
  padding: 72px 5% 80px;
  background: var(--white);
}
.page-content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.richtext-body {
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 56px;
}
.richtext-body p + p { margin-top: 18px; }
.richtext-body h2 { font-family: var(--font-head); font-size: 1.6rem; color: var(--green-900); margin: 36px 0 14px; }
.richtext-body h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--green-900); margin: 28px 0 10px; }
.richtext-body ul, .richtext-body ol { padding-left: 24px; margin: 14px 0; }
.richtext-body li { margin-bottom: 6px; }
.richtext-body strong { color: var(--green-900); }
.richtext-body a { color: var(--green-700); text-decoration: underline; }

/* Info cards (Associazione) */
.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.info-card {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.info-card-icon { font-size: 2rem; flex-shrink: 0; }
.info-card-text strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 4px; }
.info-card-text span { font-size: 1.6rem; font-weight: 800; color: var(--green-900); font-family: var(--font-head); }

/* Steps (Servizio Civile) */
.sc-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.sc-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--gray-50);
  border-radius: 12px;
  border-left: 4px solid var(--green-700);
}
.sc-step-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-200);
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
}
.sc-step-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-900); margin-bottom: 8px; }
.sc-step-content p  { font-size: .95rem; color: var(--gray-700); line-height: 1.65; }

/* Activities slideshow (Diventa Volontario) */
.activity-slideshow {
  position: relative;
  max-width: 760px;
  margin: 40px auto 0;
}
.activity-slideshow-viewport {
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-50);
  border-left: 4px solid var(--green-700);
}
.activity-slideshow-track {
  display: flex;
  transition: transform .45s ease;
}
.activity-slide {
  flex: 0 0 100%;
  padding: 40px 56px;
  text-align: center;
}
.activity-slide-icon { font-size: 2.6rem; margin-bottom: 16px; }
.activity-slide h3 { font-size: 1.25rem; font-weight: 700; color: var(--green-900); margin-bottom: 14px; }
.activity-slide p  { font-size: .98rem; color: var(--gray-700); line-height: 1.75; }
.activity-slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--green-900);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.activity-slideshow-arrow:hover { background: var(--green-700); color: var(--white); }
.activity-slideshow-prev { left: -20px; }
.activity-slideshow-next { right: -20px; }
.activity-slideshow-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.activity-slideshow-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.activity-slideshow-dot.active { background: var(--green-700); transform: scale(1.25); }
@media (max-width: 640px) {
  /* più padding laterale così il testo non finisce sotto le frecce */
  .activity-slide { padding: 34px 46px; }
  .activity-slideshow-arrow { width: 36px; height: 36px; font-size: 1.15rem; }
  .activity-slideshow-prev { left: 4px; }
  .activity-slideshow-next { right: 4px; }
}

/* Volunteer steps */
.volunteer-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.volunteer-step {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.volunteer-step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.volunteer-step-icon { font-size: 2.4rem; margin-bottom: 16px; }
.volunteer-step h3 { font-size: 1rem; font-weight: 700; color: var(--green-900); margin-bottom: 10px; }
.volunteer-step p  { font-size: .88rem; color: var(--gray-500); line-height: 1.65; }

/* Contacts (Contatti) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 10px;
}
.contact-item-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 1rem; color: var(--gray-900); }
.contact-item a:hover { color: var(--green-800); }
.contact-map { height: 400px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* Responsive for inner pages */
@media (max-width: 900px) {
  .info-cards        { grid-template-columns: repeat(2, 1fr); }
  .volunteer-steps   { grid-template-columns: repeat(2, 1fr); }
  .contact-grid      { grid-template-columns: 1fr; }
  .contact-map       { height: 300px; }
}
@media (max-width: 600px) {
  .info-cards        { grid-template-columns: 1fr 1fr; }
  .volunteer-steps   { grid-template-columns: 1fr; }
}

/* ─── Associazione ───────────────────────────────────────────────────────── */
.assoc-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.assoc-mission-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.assoc-stat { background: var(--green-50); border: 1px solid var(--green-200); border-radius: 12px; padding: 28px 20px; text-align: center; }
.assoc-stat-num { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--green-900); line-height: 1; margin-bottom: 8px; }
.assoc-stat-lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); font-weight: 600; }

/* ─── Cronostoria (timeline: anno protagonista, immagine come accento) ─────── */
.history { position: relative; max-width: 880px; margin: 0 auto; }
/* linea verticale tra la colonna degli anni e le card */
.history::before { content: ''; position: absolute; top: 16px; bottom: 16px; left: 110px; width: 2px; background: linear-gradient(var(--green-600) 0%, var(--green-200) 100%); }

.history-item { position: relative; display: grid; grid-template-columns: 92px 1fr; column-gap: 40px; padding-bottom: 34px; }
.history-item:last-child { padding-bottom: 0; }
/* pallino sulla linea */
.history-item::before { content: ''; position: absolute; left: 104px; top: 12px; width: 15px; height: 15px; border-radius: 50%; background: var(--green-700); border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--green-100); z-index: 2; }

/* l'anno: grande, tipografico, valorizzato */
.history-year { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--green-800); text-align: right; padding-top: 4px; letter-spacing: -.01em; }

.history-card { display: flex; align-items: flex-start; gap: 24px; background: var(--white); border: 1px solid var(--gray-100); border-left: 4px solid var(--green-600); border-radius: 14px; box-shadow: 0 4px 18px rgba(26,32,28,.06); padding: 24px 28px; transition: transform var(--transition), box-shadow var(--transition); }
.history-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26,32,28,.12); }

.history-text { flex: 1; }
.history-text h3 { font-family: var(--font-head); font-size: 1.18rem; color: var(--green-900); margin-bottom: 10px; line-height: 1.3; }
.history-text p  { font-size: .92rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 8px; }
.history-text p:last-child { margin-bottom: 0; }

/* immagine: piccola miniatura quadrata, accento e non protagonista */
.history-thumb { flex: 0 0 116px; margin: 0; align-self: center; }
.history-thumb img { width: 116px; height: 116px; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 4px 12px rgba(26,32,28,.12); }

@media (max-width: 680px) {
  .history::before { left: 20px; }
  .history-item { grid-template-columns: 1fr; column-gap: 0; padding-left: 52px; padding-bottom: 28px; }
  .history-item::before { left: 14px; top: 6px; }
  .history-year { text-align: left; font-size: 1.5rem; padding-top: 0; margin-bottom: 12px; }
  .history-card { flex-direction: column-reverse; }
  .history-thumb { align-self: flex-start; }
}

/* ─── Consiglio direttivo ─────────────────────────────────────────────────── */
.board-intro { display: flex; gap: 44px; align-items: center; margin-bottom: 44px; }
.board-photo { flex: 1 1 0; min-width: 0; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 38px rgba(26,32,28,.16); }
.board-photo img { width: 100%; height: auto; display: block; }
.board-intro-text { flex: 1 1 0; min-width: 0; }
.board-intro-text p { font-size: 1.02rem; line-height: 1.8; color: var(--gray-700); }
.board-intro-text p + p { margin-top: 16px; }

.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.board-member { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--gray-100); border-radius: 14px; padding: 18px 20px; transition: transform var(--transition), box-shadow var(--transition); }
.board-member:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(26,32,28,.10); }
.board-avatar { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: .03em; color: var(--white); background: linear-gradient(135deg, var(--green-600), var(--green-800)); }
.board-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.board-role { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700); }
.board-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--green-900); line-height: 1.25; }

/* Presidente in evidenza: banner a tutta larghezza, sfondo verde */
.board-member--lead { grid-column: 1 / -1; justify-content: center; background: linear-gradient(135deg, var(--green-800), var(--green-900)); border-color: transparent; }
.board-member--lead .board-avatar { background: rgba(255,255,255,.18); font-size: 1.15rem; }
.board-member--lead .board-role { color: var(--green-200); }
.board-member--lead .board-name { color: var(--white); font-size: 1.25rem; }

@media (max-width: 820px) {
  .board-intro { flex-direction: column; gap: 26px; align-items: stretch; }
}

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 32px 24px; text-align: center; transition: box-shadow var(--transition), transform var(--transition); }
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.value-icon { font-size: 2.4rem; margin-bottom: 16px; }
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--green-900); margin-bottom: 10px; }
.value-card p  { font-size: .88rem; color: var(--gray-500); line-height: 1.65; }

/* ─── Servizio Civile ─────────────────────────────────────────────────────── */
.sc-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.sc-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sc-highlight {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.sc-highlight:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
.sc-h-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-100);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.sc-highlight strong { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--green-900); line-height: 1.1; }
.sc-highlight span:last-child { font-size: .76rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }

.benefits-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; }
.benefit-card { background: var(--white); border: none; border-radius: 24px; padding: 32px 26px; flex: 1 1 280px; max-width: 320px; transition: box-shadow var(--transition), transform var(--transition); box-shadow: 0 2px 14px rgba(0,0,0,.05); }
.benefit-card:nth-child(even) { transform: translateY(14px); }
.benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.benefit-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); font-size: 1.6rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1rem; font-weight: 700; color: var(--green-900); margin-bottom: 10px; }
.benefit-card p  { font-size: .88rem; color: var(--gray-500); line-height: 1.65; }

.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-100); border-radius: 10px; overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 20px 24px; text-align: left; font-size: .98rem; font-weight: 600; color: var(--green-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background var(--transition); }
.faq-question:hover { background: var(--green-50); }
.faq-arrow { font-size: 1.3rem; color: var(--green-700); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-answer { display: none; padding: 0 24px 20px; font-size: .95rem; color: var(--gray-700); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ─── Dona ────────────────────────────────────────────────────────────────── */
.donation-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.donation-why-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 32px 24px; text-align: center; }
.donation-why-icon { font-size: 2.2rem; margin-bottom: 14px; }
.donation-why-card h3 { font-size: 1rem; font-weight: 700; color: var(--green-900); margin-bottom: 10px; }
.donation-why-card p  { font-size: .88rem; color: var(--gray-500); line-height: 1.65; }

.donation-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.donation-method { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.donation-method.featured { border: 2px solid var(--green-700); background: var(--green-50); }
.donation-method-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.donation-method-icon { font-size: 2rem; }
.donation-method-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--green-900); }
.donation-badge { background: var(--green-700); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; }
.donation-method p { font-size: .92rem; color: var(--gray-700); line-height: 1.7; }
.donation-data { background: var(--white); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--gray-100); }
.donation-data-row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.donation-data-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); min-width: 90px; }
.donation-data-value { font-size: .92rem; color: var(--gray-900); font-weight: 600; }
.donation-data-value.mono { font-family: 'Courier New', monospace; letter-spacing: .08em; }
.donation-note { font-size: .82rem; color: var(--gray-500); font-style: italic; margin-top: auto; padding-top: 4px; }

.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.impact-item { background: var(--green-50); border: 1px solid var(--green-200); border-radius: 12px; padding: 28px 20px; text-align: center; }
.impact-amount { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--green-900); margin-bottom: 10px; }
.impact-item p { font-size: .88rem; color: var(--gray-700); line-height: 1.55; }

/* ─── Servizi: righe editoriali ──────────────────────────────────────────── */
/* Elenco: colonna stretta, card fluttuanti su sfondo neutro */
.servizi-list {
  max-width: 1060px;
  margin: 0 auto;
  padding: 84px 5% 92px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.servizio-row {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,84,42,.04);
  transition: box-shadow .45s cubic-bezier(.2,.6,.2,1), border-color .45s ease;
}
.servizio-row:hover {
  box-shadow: 0 24px 60px -20px rgba(20,84,42,.28);
  border-color: var(--green-200);
}

.servizio-row-inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: 360px;
}

/* Su righe pari: inverti media e testo */
.servizio-row--alt .servizio-row-inner {
  direction: rtl;
}
.servizio-row--alt .servizio-row-inner > * {
  direction: ltr;
}

/* Pannello visivo */
.servizio-row-media {
  overflow: hidden;
  position: relative;
  min-height: 280px;
}
.servizio-row-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.servizio-row:hover .servizio-row-img { transform: scale(1.045); }
.servizio-row-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20,84,42,.20) 0%, transparent 62%);
  pointer-events: none;
}

.servizio-row-placeholder {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(150deg, var(--green-900) 0%, var(--green-800) 48%, var(--green-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* trama a croci come nelle altre sezioni */
.servizio-row-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M33 31v-5h-3v5h-5v3h5v5h3v-5h5v-3h-5z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}
/* bagliore radiale soffuso */
.servizio-row-placeholder::after {
  content: '';
  position: absolute;
  width: 140%; height: 140%;
  top: -20%; left: -20%;
  background: radial-gradient(circle at 35% 30%, rgba(184,240,196,.26), transparent 55%);
  pointer-events: none;
}
.servizio-row-icon-wrap {
  position: relative;
  z-index: 1;
  width: 140px; height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 18px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform var(--transition);
}
.servizio-row:hover .servizio-row-icon-wrap { transform: scale(1.05); }
.servizio-row-icon {
  font-size: 4.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.28));
}

/* Pannello testo */
.servizio-row-content {
  position: relative;
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.servizio-row-title {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.servizio-row-divider {
  width: 48px;
  height: 3px;
  background: var(--green-600);
  border-radius: 2px;
  margin-bottom: 24px;
  transition: width .45s cubic-bezier(.2,.6,.2,1);
}
.servizio-row:hover .servizio-row-divider { width: 80px; }
.servizio-row-text {
  font-size: 1.02rem;
  color: var(--gray-700);
  line-height: 1.78;
  margin-bottom: 34px;
  max-width: 460px;
}
.servizio-row-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-800);
  transition: color var(--transition);
}
.servizio-row-link-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--green-300);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--green-700);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.servizio-row-link:hover { color: var(--green-900); }
.servizio-row-link:hover .servizio-row-link-arrow {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  transform: translateX(4px);
}

/* Reveal allo scroll */
.servizio-row {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1),
              box-shadow .45s cubic-bezier(.2,.6,.2,1), border-color .45s ease;
}
.servizio-row.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .servizio-row { opacity: 1; transform: none; }
}

/* ─── Servizio Detail (pagina singola) ───────────────────────────────────── */
.page-hero--servizio { padding-bottom: 64px; }

.servizio-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.servizio-hero-inner .page-hero-title { margin-bottom: 0; }

.servizio-hero-icon {
  font-size: 3rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  flex-shrink: 0;
}

.servizio-detail-layout {
  max-width: 820px;
  margin: 0 auto;
}

.servizio-detail-figure {
  margin: 0 0 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 320px;
}
.servizio-detail-img { width: 100%; height: auto; display: block; }

.servizio-detail-placeholder {
  position: relative;
  width: 100%;
  min-height: 320px;
  background: linear-gradient(150deg, var(--green-900) 0%, var(--green-800) 48%, var(--green-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.servizio-detail-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M33 31v-5h-3v5h-5v3h5v5h3v-5h5v-3h-5z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}
.servizio-detail-placeholder::after {
  content: '';
  position: absolute;
  width: 140%; height: 140%;
  top: -20%; left: -20%;
  background: radial-gradient(circle at 35% 30%, rgba(184,240,196,.26), transparent 55%);
  pointer-events: none;
}

.servizio-detail-body { margin-bottom: 40px; max-width: none; }

.servizio-detail-back { padding-top: 24px; border-top: 1px solid var(--gray-100); }

/* ─── Contatti ────────────────────────────────────────────────────────────── */
.contatti-main-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contatti-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contatti-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; background: var(--gray-50); border-radius: 10px; }
.contatti-item-icon { font-size: 1.5rem; flex-shrink: 0; }
.contatti-item-body strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 4px; }
.contatti-item-body p, .contatti-item-body a { font-size: .98rem; color: var(--gray-900); line-height: 1.55; }
.contatti-item-body a:hover { color: var(--green-800); }
.contatti-map-col { position: sticky; top: 90px; }
.contatti-map { height: 480px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.contatti-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contatti-social-btn { display: inline-flex; align-items: center; padding: 8px 16px; background: var(--gray-100); border-radius: 50px; font-size: .82rem; font-weight: 600; color: var(--gray-700); transition: background var(--transition), color var(--transition); }
.contatti-social-btn:hover { background: var(--green-800); color: var(--white); }

.contact-form { max-width: 860px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea { padding: 13px 16px; border: 1.5px solid var(--gray-300); border-radius: 8px; font-size: 16px; font-family: var(--font); color: var(--gray-900); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(42,157,63,.12); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-privacy { flex-direction: row; align-items: flex-start; }
.form-checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .88rem; color: var(--gray-600); line-height: 1.5; }
.form-checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--green-700); }
.form-checkbox a { color: var(--green-700); text-decoration: underline; }
.form-success { text-align: center; padding: 48px 24px; font-size: 1.1rem; color: var(--green-800); background: var(--green-50); border-radius: 12px; border: 1px solid var(--green-200); }

/* ─── Diventa Volontario ─────────────────────────────────────────────────── */
.vol-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.vol-requisiti { background: var(--green-50); border: 1px solid var(--green-200); border-radius: 12px; padding: 32px; }
.vol-req-list { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: .95rem; color: var(--gray-700); }
.vol-steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.vol-step { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 28px 20px; text-align: center; position: relative; transition: box-shadow var(--transition), transform var(--transition); }
.vol-step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.vol-step-number { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; background: var(--green-800); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 800; }
.vol-step-icon { font-size: 2rem; margin: 8px 0 14px; }
.vol-step h3 { font-size: .92rem; font-weight: 700; color: var(--green-900); margin-bottom: 8px; }
.vol-step p  { font-size: .82rem; color: var(--gray-500); line-height: 1.6; }

/* ─── Responsive pagine interne ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .vol-steps-grid { grid-template-columns: repeat(3, 1fr); }
  .servizio-row-content { padding: 52px 48px; }
}

/* servizi righe: stack verticale su tablet stretti */
@media (max-width: 860px) {
  .servizi-list { gap: 28px; padding: 60px 5% 72px; }
  .servizio-row-inner { grid-template-columns: 1fr; min-height: auto; }
  .servizio-row--alt .servizio-row-inner { direction: ltr; }
  .servizio-row-media { min-height: 0; height: 280px; }
  .servizio-row-content { padding: 44px 40px; }
}
@media (max-width: 960px) {
  .assoc-mission, .sc-intro-grid, .vol-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .assoc-mission-stats { grid-template-columns: repeat(4, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-methods { grid-template-columns: 1fr; }
  .donation-why-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .contatti-main-grid { grid-template-columns: 1fr; }
  .contatti-map { height: 320px; position: static; }
  .vol-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .assoc-mission-stats { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .benefit-card:nth-child(even) { transform: none; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .vol-steps-grid { grid-template-columns: 1fr; }
  .sc-highlights { grid-template-columns: 1fr 1fr; }
  /* servizi righe: rifiniture mobile */
  .servizio-row { border-radius: 18px; }
  .servizio-row-media { height: 220px; }
  .servizio-row-content { padding: 36px 26px; }
  .servizio-row-icon-wrap { width: 112px; height: 112px; }
  .servizio-row-icon { font-size: 3.4rem; }
}

/* ─── 404 Page ──────────────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 60%);
  position: relative;
  overflow: hidden;
}

.error-page::before,
.error-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--green-100);
  opacity: .5;
  z-index: 0;
}
.error-page::before { width: 480px; height: 480px; top: -160px; right: -160px; }
.error-page::after  { width: 360px; height: 360px; bottom: -120px; left: -120px; }

.error-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 5% 60px;
  position: relative;
  z-index: 1;
}

.error-logo {
  width: 96px; height: 96px;
  background: var(--green-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(26,122,50,.3);
  border: 4px solid var(--white);
  outline: 2px solid var(--green-800);
  animation: fadeUp .8s ease both;
}
.error-logo .cross-icon { width: 44px; height: 44px; }

.error-code {
  font-family: var(--font-head);
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  animation: fadeUp .8s .1s ease both;
}

.error-divider {
  width: 80px;
  height: 4px;
  background: var(--green-700);
  border-radius: 2px;
  margin: 8px auto 32px;
  animation: fadeUp .8s .2s ease both;
}

.error-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 16px;
  letter-spacing: .02em;
  animation: fadeUp .8s .3s ease both;
}

.error-message {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.75;
  animation: fadeUp .8s .4s ease both;
}

.error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
  animation: fadeUp .8s .5s ease both;
}

.error-help {
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
  width: 100%;
  max-width: 720px;
  animation: fadeUp .8s .6s ease both;
}
.error-help-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--green-700);
  margin-bottom: 20px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.error-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.error-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-200);
}
.error-link-icon { font-size: 1.6rem; }
.error-link-text {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-900);
}

@media (max-width: 600px) {
  .error-links { grid-template-columns: 1fr; }
}

/* ─── Homepage Sections ──────────────────────────────────────────────────── */
.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.home-about-text {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
}
.home-about-text p + p { margin-top: 16px; }
.home-about-cta { margin-top: 28px; }

.home-about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.home-stat {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.home-stat:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.home-stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1;
}
.home-stat-lbl {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
}

.home-sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.home-sc-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.home-sc-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.home-sc-icon { font-size: 2.4rem; margin-bottom: 16px; }
.home-sc-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 12px;
}
.home-sc-card p { font-size: .92rem; color: var(--gray-500); line-height: 1.7; }

.section-cta { text-align: center; margin-top: 8px; }

.support-btn { margin-top: 20px; }

@media (max-width: 960px) {
  .home-about { grid-template-columns: 1fr; gap: 40px; }
  .home-sc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .home-about-stats { grid-template-columns: 1fr 1fr; }
}

/* ─── Rendicontazione / lista documenti ──────────────────────────────────── */
.doc-list { list-style: none; max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding: 0; }
.doc-item a {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 16px; padding: 20px 24px; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* accento laterale a gradiente */
.doc-item a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--green-600), var(--green-800));
  transition: width var(--transition);
}
.doc-item a:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-100);
}
.doc-item a:hover::before { width: 6px; }
.doc-icon {
  flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; background: var(--green-100); color: var(--green-800);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.doc-item a:hover .doc-icon {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white); transform: scale(1.05);
}
.doc-meta { flex: 1; min-width: 0; }
.doc-title { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--green-900); line-height: 1.35; }
.doc-sub { display: inline-flex; align-items: center; font-size: .72rem; color: var(--gray-500); margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--gray-50); border: 1px solid var(--gray-100); }
.doc-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-800); font-weight: 700; font-size: .88rem; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; background: var(--green-50); border: 1px solid var(--green-100);
  transition: background var(--transition), color var(--transition);
}
.doc-cta::after { content: "↓"; transition: transform var(--transition); }
.doc-item a:hover .doc-cta { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.doc-item a:hover .doc-cta::after { transform: translateY(2px); }
.doc-empty {
  max-width: 560px; margin: 0 auto; text-align: center; color: var(--gray-500);
  background: var(--white); border: 1px dashed var(--gray-300); border-radius: 16px; padding: 32px 24px;
}
@media (max-width: 600px) {
  .doc-item a { gap: 14px; padding: 16px 18px; }
  .doc-icon { width: 44px; height: 44px; }
  .doc-cta { padding: 8px; gap: 0; }
  .doc-cta-text { display: none; }
}

/* ─── News (indice + articolo) ───────────────────────────────────────────── */
.news-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.news-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.news-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-50); }
.news-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition); }
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-img--placeholder {
  display: grid; place-items: center; color: var(--green-600);
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
}
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.news-card-date { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--green-700); }
.news-card-title { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.3; color: var(--green-900); margin: 10px 0 0; }
.news-card-excerpt { margin: 12px 0 0; color: var(--gray-700); line-height: 1.65; font-size: .95rem; }
.news-card-cta {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-700); font-weight: 700; font-size: .9rem;
}
.news-card-cta span { transition: transform var(--transition); }
.news-card:hover .news-card-cta span { transform: translateX(4px); }

.news-article-date { display: block; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.news-article { max-width: 820px; margin: 0 auto; }
.news-article-figure { margin: 0 0 40px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.news-article-img { width: 100%; height: auto; display: block; }
.news-article .richtext-body { max-width: none; margin-bottom: 40px; }
.news-article-back { padding-top: 24px; border-top: 1px solid var(--gray-100); }
.news-article-back .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .8s ease both; }
.fade-up-2 { animation: fadeUp .8s .15s ease both; }
.fade-up-3 { animation: fadeUp .8s .3s ease both; }
.fade-up-4 { animation: fadeUp .8s .45s ease both; }

/* ─── Rifiniture mobile (home, associazione, contatti, diventa volontario) ──── */
@media (max-width: 768px) {
  /* Ritmo verticale più compatto su mobile */
  .section { padding: 56px 5%; }
  .volunteer-section { padding: 64px 5%; }
  .page-hero { padding: 32px 5% 28px; }
  .section-lead { margin-bottom: 36px; }

  /* Home: meno distacco tra testo e statistiche */
  .home-about { gap: 32px; }

  /* Contatti: meno vuoto tra info e mappa, mappa più bassa */
  .contatti-main-grid { gap: 36px; }
  .contatti-map { height: 300px; }

  /* Associazione */
  .board-intro { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .section { padding: 44px 5%; }
  .volunteer-section { padding: 56px 5%; }
  .page-hero { padding: 28px 5% 24px; }

  /* CTA: bottoni a piena larghezza e testo che può andare a capo */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  /* Home hero */
  .hero-title { font-size: 2.15rem; }
  .hero-since { font-size: .95rem; letter-spacing: .12em; padding: 7px 16px; margin-bottom: 28px; }

  /* Home: statistiche più compatte */
  .home-about-stats { gap: 14px; }
  .home-stat { padding: 24px 14px; }
  .home-stat-num { font-size: 2rem; }

  /* Associazione: statistiche missione */
  .assoc-stat { padding: 22px 14px; }
  .assoc-stat-num { font-size: 1.9rem; }

  /* Donazioni / supporto */
  .support-card { padding: 36px 24px; }

  /* Contatti */
  .contatti-item { padding: 16px; }
  .contatti-map { height: 240px; }
  .contact-form button[type="submit"] { width: 100%; justify-content: center; }
}

/* ─── Menu mobile: rifiniture (drawer, hamburger→X, voce attiva, CTA) ─────── */

/* Hamburger che si trasforma in X quando il menu è aperto.
   Usa :has() — supportato dai browser mobili moderni; se assente, il menu
   funziona comunque (solo senza animazione dell'icona). */
.hamburger span {
  transition: transform .3s ease, opacity .2s ease, background .3s ease;
  transform-origin: center;
}
.header:has(.mobile-nav.open) .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header:has(.mobile-nav.open) .hamburger span:nth-child(2) { opacity: 0; }
.header:has(.mobile-nav.open) .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Con il menu aperto anche l'header trasparente della home diventa solido,
   così l'icona e le voci restano leggibili. */
.header.header-home:has(.mobile-nav.open) {
  background: var(--white);
  border-bottom-color: var(--gray-100);
}
.header.header-home:has(.mobile-nav.open) .hamburger span { background: var(--green-900); }

/* Drawer scorrevole: sui telefoni piccoli il menu non supera mai la viewport */
.mobile-nav.open {
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Voce corrispondente alla pagina corrente evidenziata */
.mobile-nav > a.active {
  color: var(--green-800);
  border-left: 3px solid var(--green-700);
  padding-left: 12px;
  margin-left: -15px;
}

/* CTA "Diventa Volontario" come bottone pieno in fondo al drawer */
.mobile-nav-cta {
  margin-top: 14px;
  padding: 14px 18px !important;
  text-align: center;
  color: var(--white) !important;
  background: var(--green-700);
  border-radius: 8px;
  border-bottom: none !important;
  box-shadow: 0 4px 12px rgba(42,157,63,.28);
  transition: background var(--transition);
}
.mobile-nav-cta:hover { background: var(--green-800); color: var(--white) !important; }

/* Aree di tocco più generose per le icone social del footer */
@media (max-width: 768px) {
  .footer-social a { width: 42px; height: 42px; }
}
