/* ============================================================
   Associazione Nazareno e Francesco Pellegrino
   main.css — riproduzione fedele del prototipo HTML
   Font caricati via Google Fonts dal sito:
   Cormorant Garamond, Nunito, Caveat (NESSUN @font-face / @import qui)
   ============================================================ */

/* === RESET / BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: #eef6fd;
  color: #1a3a5c;
  overflow-x: hidden;
}

/* === KEYFRAMES === */
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50%      { transform: translateX(-50%) translateY(10px); opacity: 1; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.4); }
  28% { transform: scale(1); }
  42% { transform: scale(1.25); }
  70% { transform: scale(1); }
}
@keyframes penWrite { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0% 0 0); } }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #daeef9; }
::-webkit-scrollbar-thumb { background: #7ab5d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a90c0; }

/* === TIPOGRAFIA / HELPER === */
.serif { font-family: 'Cormorant Garamond', serif; }
.handwritten { font-family: 'Caveat', cursive; }

/* Etichetta in alto, maiuscoletto spaziato (kicker) */
.section-kicker {
  font-family: 'Nunito', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #437292;
  margin-bottom: 0.65rem;
}

/* Titolo di sezione + filetto decorativo */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 400;
  color: #12304c;
  line-height: 1.05;
}
.section-head { text-align: center; margin-bottom: 5rem; }
.section-rule {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, #5a9ac5, #a0cce8);
  margin: 1.4rem auto 0;
  border-radius: 2px;
}
.section-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #3a6a90;
  margin: 1.5rem auto 0;
  max-width: 640px;
  line-height: 1.7;
}

/* Contenitore standard delle sezioni */
.container { max-width: 1140px; margin: 0 auto; }

/* ============================================================
   === BOTTONI (CTA) ===
   ============================================================ */
/* Il gradiente si ferma a #2a72b8 come tinta piu' chiara: con il precedente #5ca8dc
   il testo bianco scendeva a 2,60:1, sotto il minimo di 4,5:1 richiesto per un testo
   di questa dimensione. Ora il punto peggiore e' 5,00:1. */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #1e5992, #2a72b8);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 26px rgba(42, 114, 184, 0.38);
  transition: all 0.3s ease;
}
.cta-primary:hover {
  filter: brightness(1.09) !important;
  transform: translateY(-2px) !important;
}

.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  /* Fondo piu' opaco: il bottone siede sul gradiente della hero, dove il solo
     colore del testo non bastava ad arrivare a 4,5:1 senza incupirlo troppo. */
  background: rgba(255, 255, 255, 0.82);
  color: #1d5081;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(42, 114, 184, 0.14);
  border: 1.5px solid rgba(100, 170, 220, 0.35);
  transition: all 0.3s ease;
}
.cta-outline:hover {
  background: rgba(42, 114, 184, 0.10) !important;
  transform: translateY(-2px) !important;
}
/* Cuore pulsante dentro le CTA */
.cta-outline .heart-beat,
.heart-beat { animation: heartbeat 2.5s ease-in-out infinite; flex-shrink: 0; }

/* ============================================================
   === NAVBAR ===
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
/* Stato "scrolled" — applicato via JS (classe .navbar--scrolled) */
.navbar--scrolled {
  background: rgba(237, 246, 253, 0.93); /* identico al prototipo */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(20, 70, 120, 0.10);
}
/* Menu mobile aperto: la barra va a fondo pieno anche in cima all'hero.
   !important perche' nav.js scrive il background come stile inline. */
.navbar--menu-open {
  background: rgba(237, 246, 253, 0.98) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__logo img { height: 46px; width: auto; }

.navbar__brand { line-height: 1.2; }
.navbar__brand-kicker {
  font-family: 'Nunito', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #437496;
}
.navbar__brand-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  font-weight: 400;
  color: #1a3a5c;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

/* Pulsante hamburger: nascosto su desktop, compare sotto 880px (vedi RESPONSIVE) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(42, 114, 184, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.navbar__toggle:hover { background: rgba(255, 255, 255, 0.85); }
.navbar__toggle-bar {
  display: block;
  width: 19px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: #1a3a5c;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Stato aperto: le barre diventano una X */
.navbar__toggle.is-open .navbar__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open .navbar__toggle-bar:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open .navbar__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.87rem;
  color: #1a3a5c;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.nav-link:hover { color: #2a6da0 !important; }

/* CTA piu compatta nella navbar */
.navbar__cta {
  padding: 0.7rem 1.7rem;
  font-size: 0.87rem;
  gap: 0.45rem;
  box-shadow: 0 4px 18px rgba(42, 114, 184, 0.38);
}

/* ============================================================
   === HERO ===
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 5% 5rem;
  background: linear-gradient(150deg, #d5eaf8 0%, #bfdef4 35%, #a8cff0 65%, #93bfe8 100%);
}
/* Bolle/luce di sfondo decorative */
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow--tr {
  top: -18%; right: -12%; width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(140, 200, 240, 0.35) 0%, transparent 70%);
}
.hero__glow--bl {
  bottom: -15%; left: -10%; width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(155, 195, 235, 0.30) 0%, transparent 70%);
}
.hero__line { position: absolute; width: 1px; pointer-events: none; }
.hero__line--l {
  top: 25%; left: 8%; height: 100px;
  background: linear-gradient(180deg, transparent, rgba(90, 160, 210, 0.3), transparent);
}
.hero__line--r {
  top: 18%; right: 10%; height: 70px;
  background: linear-gradient(180deg, transparent, rgba(90, 160, 210, 0.25), transparent);
}

.hero__intro { text-align: center; margin-bottom: 1.8rem; }
.hero__logo {
  width: 185px; height: auto;
  margin-bottom: 1.4rem;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 8px 28px rgba(30, 80, 140, 0.22));
}
.hero__kicker {
  font-family: 'Nunito', sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3c6481;
  margin-bottom: 0.35rem;
}
.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.9rem;
  font-weight: 300;
  color: #12304c;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* Separatore con cuore */
.hero__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero__divider-line { height: 1px; width: 60px; }
.hero__divider-line--l { background: linear-gradient(90deg, transparent, #6aaad8); }
.hero__divider-line--r { background: linear-gradient(90deg, #6aaad8, transparent); }

/* Card glassmorphism con la poesia */
.hero__poem-wrap { width: 100%; max-width: 680px; }
.poem-card {
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 2.5rem 3.5rem;
  box-shadow: 0 10px 50px rgba(30, 80, 140, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(160, 210, 240, 0.45);
  display: flex;
  flex-direction: column;
  min-height: 22rem;
}
.poem-card__label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #425d70;
  text-align: center;
  font-weight: 700;
}
/* Chiusura della filastrocca: tratti ondulati a mano libera + cuore */
.poem-card__end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.poem-card__end-stroke { flex-shrink: 1; min-width: 0; }
/* Quando il divisore scorre dentro il loop della filastrocca */
.poem-track .poem-card__end { margin-top: 0; }
.poem-line span.poem-divider { vertical-align: middle; }
/* Contenitore delle righe animate (popolato via JS) */
.poem-card__content {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 13rem;               /* finestra ~4 righe */
  width: 100%;
}
/* Track scorrevole ancorato in basso (la translateY e' gestita via JS) */
.poem-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  transition: transform 1.25s cubic-bezier(0.33, 0, 0.2, 1);
  will-change: transform;
}
/* Riga di poesia (opacita'/blur gestiti via JS, con dissolvenza morbida) */
.poem-line {
  font-family: 'Caveat', cursive;
  font-size: 2.05rem;          /* piu' grande */
  color: #12304c;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  transition: opacity 1.2s ease, filter 1.2s ease;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}
.poem-line span {
  display: inline-block;
  white-space: nowrap;
}
/* Effetto "scrittura a penna" — la durata viene impostata inline via JS */
.poem-line--typing span { animation: penWrite linear forwards; }

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Freccia "scroll" in basso */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

/* ============================================================
   === CHI SIAMO ===
   ============================================================ */
.chi-siamo { padding: 7rem 5%; background: #f6faff; }
.chi-siamo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
/* Citazione in evidenza */
.quote-box {
  background: linear-gradient(135deg, #d5eaf8, #c5e0f5);
  border-radius: 18px;
  padding: 2.2rem 2.5rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid #5a9ac5;
  position: relative;
  overflow: hidden;
}
.quote-box__mark {
  position: absolute;
  top: -15px; left: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 9rem;
  color: rgba(90, 154, 197, 0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.quote-box__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #1a4a6a;
  line-height: 1.65;
  font-weight: 300;
  position: relative;
}
.prose p {
  font-size: 1.04rem;
  line-height: 1.9;
  color: #2a4c68;
  margin-bottom: 1.3rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #1a5a8a; }
.prose em { color: #1a5a8a; }

.chi-siamo__media {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.media-card {
  background: linear-gradient(145deg, #c5e0f5, #b0d5f0);
  border-radius: 28px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 18px 60px rgba(30, 80, 140, 0.13);
  border: 1px solid rgba(160, 210, 240, 0.3);
}
.media-card img {
  width: 100%;
  max-width: 275px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(30, 70, 130, 0.18));
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.stat-card {
  background: linear-gradient(145deg, #daeef8, #cae5f5);
  border-radius: 18px;
  padding: 1.8rem;
  text-align: center;
  border: 1px solid rgba(150, 200, 235, 0.4);
}
.stat-card__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 500;
  color: #1e5c8c;
  line-height: 1;
}
.stat-card__label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b6a87;
  margin-top: 0.4rem;
}

/* ============================================================
   === COSA FACCIAMO ===
   ============================================================ */
.cosa-facciamo {
  padding: 7rem 5%;
  background: linear-gradient(180deg, #eaf4fb 0%, #ddeef8 100%);
}
/* Card principale (ambulatorio) */
.feature-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(30, 80, 140, 0.10);
  margin-bottom: 3.5rem;
  border: 1px solid rgba(160, 210, 240, 0.35);
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.feature-card__icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c5e0f5, #a8d2ee);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #12304c;
  margin-bottom: 0.9rem;
}
.feature-card__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2a4c68;
}
.feature-card__text strong { color: #1a5a8a; }

.spec-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: #12304c;
  text-align: center;
  margin-bottom: 2rem;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.spec-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  border: 1px solid rgba(150, 200, 235, 0.35);
  text-align: center;
  box-shadow: 0 4px 18px rgba(30, 80, 140, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spec-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 40px rgba(30, 80, 140, 0.18) !important;
}
/* Filetto colorato in cima alle spec-card (varianti alternate) */
.spec-card__bar {
  width: 40px; height: 4px;
  border-radius: 2px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, #5a9ac5, #8bbede);
}
.spec-card__bar--a { background: linear-gradient(90deg, #5a9ac5, #8bbede); }
.spec-card__bar--b { background: linear-gradient(90deg, #70a8ce, #a0cce8); }
.spec-card__bar--c { background: linear-gradient(90deg, #85b5d5, #b0d5ee); }
.spec-card__label {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a3a5c;
  line-height: 1.3;
}
.cosa-facciamo__note {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #3b6a87;
}

/* ============================================================
   === SOSTIENICI ===
   ============================================================ */
.sostieni { padding: 7rem 5%; background: #f6faff; }
.sostieni__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.support-card {
  background: rgba(255, 255, 255, 0.90);
  border-radius: 24px;
  padding: 2.8rem;
  box-shadow: 0 8px 40px rgba(30, 80, 140, 0.09);
  border: 1px solid rgba(150, 200, 235, 0.30);
}
/* Card donazione: colonna flex per riempire l'altezza pareggiata dalla griglia */
.support-card--dona {
  display: flex;
  flex-direction: column;
}
.support-card--dona .cta-primary {
  align-self: center;
  margin-top: auto;
}
.support-card--dona .tax-box {
  margin-top: auto;
}
.support-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.support-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c5e0f5, #a8d2ee);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #12304c;
  line-height: 1.1;
}
.support-card__subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: #507693;
  margin-top: 0.2rem;
}
.support-card__text {
  font-size: 1rem;
  line-height: 1.8;
  color: #2a4c68;
  margin-bottom: 2rem;
}

/* Stato "inviato" / ringraziamento */
.thanks { text-align: center; padding: 2.5rem 1rem; }
.thanks--compact { padding: 2rem 1rem; }
.thanks__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #12304c;
  margin-bottom: 0.5rem;
}
.thanks__text { font-size: 0.95rem; color: #3b6a87; }

/* Blocco importo donazione */
.donation-amount { margin-bottom: 1.5rem; }
.donation-amount__label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #497594;
  margin-bottom: 0.4rem;
}
.donation-amount__hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: #3b6a87;
  margin-bottom: 0.9rem;
}
.donation-amount__field { position: relative; }
.donation-amount__currency {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2a72b8;
  pointer-events: none;
}
.donation-amount__field input {
  padding-left: 2.2rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

/* Box benefici fiscali */
.tax-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf4fb, #daeef8);
  border: 1px solid rgba(150, 200, 235, 0.3);
}
.tax-box__title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  color: #3a6a90;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.tax-box__text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: #3b6a87;
  line-height: 1.6;
}

/* ============================================================
   === FORM (condivisi: newsletter, donazione, volontario) ===
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form--gap-lg { gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

input[type=text], input[type=email], input[type=tel], input[type=number],
textarea, select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid #c5e0f5;
  background: rgba(240, 249, 255, 0.6);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #1a3a5c;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { resize: vertical; }
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus,
input[type=number]:focus, textarea:focus, select:focus {
  border-color: #3b8fd4 !important;
  box-shadow: 0 0 0 3px rgba(59, 143, 212, 0.15) !important;
  outline: none;
}
/* Variante sfondo piu opaco (newsletter su fondo chiaro) */
.form--solid input[type=text], .form--solid input[type=email],
.form--solid input[type=tel], .form--solid input[type=number],
.form--solid textarea, .form--solid select {
  background: rgba(255, 255, 255, 0.8);
}

/* Checkbox privacy */
.form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.form__privacy input[type=checkbox] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: #2a72b8;
  flex-shrink: 0;
}
.form__privacy label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.84rem;
  color: #3b6a87;
  line-height: 1.55;
}
.form__privacy a { color: #2a72b8; text-decoration: underline; }

/* Bottone submit dei form (angoli piu morbidi rispetto alle CTA pill) */
.form .cta-primary,
.btn-submit {
  justify-content: center;
  border-radius: 12px;
  width: 100%;
}

/* Esito inline dopo il submit (sostituisce il form nella card newsletter) */
.nl-esito {
  text-align: center;
  padding: 1.6rem 1.2rem;
  border-radius: 14px;
  border: 1.5px dashed #a9cfec;
  background: rgba(255, 255, 255, 0.65);
  animation: fadeInUp 0.5s ease both;
  /* la card e' bersaglio dell'ancora post-submit: senza margine finirebbe
     nascosta sotto la navbar fissa */
  scroll-margin-top: 110px;
}
.nl-esito__icon {
  width: 54px; height: 54px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: #e3f1fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nl-esito__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: #1a3a5c;
  margin-bottom: 0.55rem;
}
.nl-esito__text {
  font-size: 0.92rem;
  color: #3b6a87;
  line-height: 1.6;
}
.nl-esito__text strong { color: #1a3a5c; word-break: break-all; }
.nl-esito__hint {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #6c93ad;
}

/* ============================================================
   === CONTATTI + NEWSLETTER ===
   ============================================================ */
.contatti { padding: 7rem 5%; background: #eef6fd; }
.contatti__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  /* stretch: "Dove siamo" e la card newsletter occupano la stessa altezza */
  align-items: stretch;
}
/* La card newsletter riempie l'altezza pareggiata dalla griglia: il modulo
   si centra nello spazio che resta sotto il testo introduttivo */
.contatti__grid .support-card {
  display: flex;
  flex-direction: column;
}
.contatti__grid .support-card .fnp-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* "Dove siamo" distribuisce le righe sull'altezza condivisa con la card
   newsletter (che di norma e' la piu' alta): i margini esistenti fanno da
   spaziatura minima, lo spazio extra si ripartisce tra gli elementi */
.contatti__dove {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contatti__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #12304c;
  margin-bottom: 2rem;
}
.contatti__subtitle--newsletter { margin-bottom: 0.75rem; }
.contatti__intro {
  font-size: 1rem;
  color: #3a5a78;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}
.contact-row__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c5e0f5, #a8d2ee);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row__label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #497594;
  margin-bottom: 0.3rem;
}
.contact-row__value { font-size: 1rem; color: #1a3a5c; line-height: 1.6; }
.contact-row__value a,
a.contact-row__value { color: #2a72b8; text-decoration: none; }
.contact-row__value--email a { font-size: 0.9rem; }

/* Targa CF nei contatti (su fondo chiaro) */
.cf-box {
  background: linear-gradient(135deg, #daeef8, #cae4f4);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(150, 200, 235, 0.3);
}
.cf-box__label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3b6a87;
  margin-bottom: 0.5rem;
}
.cf-box__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: #12304c;
  letter-spacing: 0.08em;
}

/* ============================================================
   === FOOTER ===
   ============================================================ */
.footer {
  background: #0f2540;
  padding: 4rem 5% 2.5rem;
}
.footer__grid {
  max-width: 1140px;
  margin: 0 auto;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__logo {
  height: 58px;
  width: auto;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1) opacity(0.82);
}
.footer__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: #c8e0f0;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 0.8rem;
}
.footer__desc {
  font-size: 0.87rem;
  line-height: 1.7;
  color: #6a9ab8;
}
.footer__heading {
  font-family: 'Nunito', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6890a9;
  margin-bottom: 1.2rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: #7aacca;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__links a:hover { color: #2a6da0; }
.footer__legal {
  font-size: 0.87rem;
  line-height: 1.9;
  color: #6a9ab8;
}
.footer__legal a { color: #5ca8dc; text-decoration: none; }
/* Fallback anti-harvesting senza JavaScript: il testo sta nell'HTML
   rovesciato e il bidi-override lo mostra nel verso giusto */
.obf-rtl { unicode-bidi: bidi-override; direction: rtl; display: inline-block; }

/* Dichiarazione niente-cookie: statica e non interattiva (nessun bisogno
   di memorizzare una chiusura, che richiederebbe a sua volta uno storage) */
.footer__nocookie {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  max-width: 720px;
  margin: 0 auto 1.6rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(106, 170, 216, 0.25);
  border-radius: 12px;
}
.footer__nocookie svg { flex-shrink: 0; margin-top: 0.25rem; }
.footer__nocookie p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #8fa9be;
  text-align: center;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p { font-size: 0.82rem; color: #738ea5; }
.footer__bottom a {
  font-size: 0.82rem;
  color: #738ea5;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__bottom a:hover { color: #2a6da0; }

/* ============================================================
   === RESPONSIVE (fallback: il prototipo e desktop-first) ===
   ============================================================ */
@media (max-width: 880px) {
  .navbar__brand { display: none; }

  /* Navigazione mobile: le voci passano in un pannello a scomparsa sotto la barra,
     aperto dall'hamburger (nav.js usa lo stesso limite di 880px).
     Il CTA "Sostienici" resta sempre visibile in barra. */
  .navbar__right { gap: 0.8rem; }
  .navbar__toggle { display: flex; }
  .navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 5% 1.1rem;
    /* opaco: il contenuto della pagina non deve trasparire dietro le voci */
    background: #edf6fd;
    box-shadow: 0 12px 28px rgba(20, 70, 120, 0.12);
    border-top: 1px solid rgba(42, 114, 184, 0.10);
  }
  .navbar__menu.is-open {
    display: flex;
    animation: fnp-menu-in 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .navbar__menu .nav-link {
    padding: 0.95rem 0.2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(42, 114, 184, 0.12);
  }
  .navbar__menu .nav-link:last-child { border-bottom: none; }

  .chi-siamo__grid,
  .sostieni__grid,
  .contatti__grid,
  .form__row { grid-template-columns: 1fr; gap: 2.5rem; }

  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 2rem; }

  .feature-card { flex-direction: column; gap: 1.5rem; }

  .section-title { font-size: 2.6rem; }
  .hero__title { font-size: 2.2rem; }
  .cf-plate__value { font-size: 2.6rem; letter-spacing: 0.08em; }
  .poem-card { padding: 2rem; }
}

@keyframes fnp-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .spec-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .navbar__cta { padding: 0.62rem 1.1rem; font-size: 0.82rem; }
}

/* === PAGINA PRIVACY === */
.privacy-page {
  padding: 9rem 5% 5rem;
  background: #f6faff;
}
.privacy-page__inner { max-width: 820px; }
.privacy-page__title {
  font-size: 2.8rem;
  font-weight: 400;
  color: #12304c;
  margin: 0.3rem 0 1.5rem;
}
.privacy-page__lead {
  font-size: 1.05rem;
  color: #2a4c68;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.privacy-page__h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: #1a3a5c;
  margin: 2.2rem 0 0.7rem;
}
.privacy-page p {
  color: #2a4c68;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.privacy-page__updated {
  margin-top: 2.5rem;
  font-style: italic;
  color: #5a7a95;
  border-top: 1px solid #d5e6f3;
  padding-top: 1.2rem;
}

/* === FORM (EXT:form) === */
.fnp-form { margin-top: 1.2rem; }
.fnp-form fieldset { border: none; padding: 0; margin: 0; }
.fnp-form fieldset > div,
.fnp-form .form-group { margin-bottom: 0.9rem; }
.fnp-form label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #3b6a87; margin-bottom: 0.35rem;
}
.fnp-form input[type="text"],
.fnp-form input[type="email"],
.fnp-form textarea {
  width: 100%; font-family: 'Nunito', sans-serif; font-size: 0.95rem;
  color: #12304c; padding: 0.75rem 1rem;
  border: 1.5px solid #c5e0f5; border-radius: 12px;
  background: rgba(255,255,255,0.7);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.fnp-form input:focus, .fnp-form textarea:focus {
  outline: none; border-color: #2a72b8;
  box-shadow: 0 0 0 3px rgba(42,114,184,0.12);
}
.fnp-form textarea { min-height: 110px; resize: vertical; }
.fnp-form input[type="checkbox"] { width: auto; margin-right: 0.5rem; }
.fnp-form input[type="checkbox"] + label,
.fnp-form .checkbox label {
  display: inline; text-transform: none; letter-spacing: 0;
  font-weight: 500; color: #2a4c68; font-size: 0.9rem;
}
.fnp-form button, .fnp-form input[type="submit"] {
  margin-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, #1e5992, #2a72b8); color: #fff;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; box-shadow: 0 6px 26px rgba(42,114,184,0.38);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.fnp-form button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.fnp-form .form-thanks { font-size: 1.1rem; color: #2a72b8; font-weight: 700; margin: 0; }
.fnp-form .error, .fnp-form .help-block,
.fnp-form ul[class*="error"] {
  color: #c0392b; font-size: 0.82rem; margin-top: 0.3rem; list-style: none; padding: 0;
}

/* === MANIFESTO VOLONTARIATO === */
.manifesto { padding: 7rem 5%; }
.manifesto__lead {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #1a3a5c;
}
.manifesto__list {
  display: grid;
  gap: 1.2rem;
  max-width: 820px;
  margin: 0 auto;
}
.manifesto__item {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(150, 200, 235, 0.30);
  border-left: 4px solid #2a72b8;
  border-radius: 16px;
  padding: 1.6rem 1.9rem;
  box-shadow: 0 8px 40px rgba(30, 80, 140, 0.07);
}
.manifesto__item-title {
  font-size: 1.35rem;
  font-weight: 500;
  color: #12304c;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.manifesto__item p {
  color: #2a4c68;
  line-height: 1.75;
}
.manifesto__close {
  max-width: 760px;
  margin: 3rem auto 0;
  text-align: center;
  padding: 2.6rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #eaf4fb, #daeef8);
  border: 1px solid rgba(150, 200, 235, 0.3);
}
.manifesto__close p {
  color: #2a4c68;
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.manifesto__close .cta-primary { margin-top: 1.2rem; }

/* ============================================================
   TRANSIZIONI DI PAGINA — View Transitions API (cross-document)
   Zoom cinematografico + navbar ferma. Progressive enhancement:
   sui browser che non la supportano la navigazione resta istantanea.
   ============================================================ */
@view-transition {
  navigation: auto;
}

/* La navbar viene isolata: resta stabile e non zooma col contenuto */
.navbar {
  view-transition-name: fnp-navbar;
}

/* Zoom cinematografico: la nuova pagina emerge in avanti, la vecchia arretra */
::view-transition-old(root) {
  animation: fnp-page-out 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
  transform-origin: center;
}
::view-transition-new(root) {
  animation: fnp-page-in 500ms cubic-bezier(0.4, 0, 0.2, 1) both;
  transform-origin: center;
}
@keyframes fnp-page-out {
  to { opacity: 0; transform: scale(0.98); }
}
@keyframes fnp-page-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* Ritorno indietro: la pagina lasciata avanza e sfuma, la precedente riemerge
   da dietro (movimento inverso -> ritorno piu' morbido).
   La direzione "nav-back" e' marcata via JS (page-transitions.js). */
:root:active-view-transition-type(nav-back)::view-transition-old(root) {
  animation-name: fnp-page-out-back;
}
:root:active-view-transition-type(nav-back)::view-transition-new(root) {
  animation-name: fnp-page-in-back;
}
@keyframes fnp-page-out-back {
  to { opacity: 0; transform: scale(1.04); }
}
@keyframes fnp-page-in-back {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* Ancore one-page: l'obiettivo non finisce nascosto sotto la navbar fissa */
section[id] {
  scroll-margin-top: 96px;
}

/* Rispetto delle preferenze di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ============================================================
   === PAGINA D'ERRORE (404 / 403 / generico) ===
   ============================================================ */
.errorpage {
  /* Pagina autonoma senza footer: il gradiente deve coprire tutta la finestra.
     svh evita il salto dovuto alle barre del browser su mobile. */
  min-height: 100vh; min-height: 100svh; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 5%;
  background: linear-gradient(150deg, #d5eaf8 0%, #bfdef4 35%, #a8cff0 65%, #93bfe8 100%);
}
.errorpage__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.errorpage__glow--tr { top: -20%; right: -12%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(140,200,240,0.35) 0%, transparent 70%); }
.errorpage__glow--bl { bottom: -18%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(155,195,235,0.30) 0%, transparent 70%); }
.errorpage__inner { position: relative; z-index: 1; max-width: 640px; }
.errorpage__mark svg { width: 78px; height: 78px; margin-bottom: 1.4rem;
  filter: drop-shadow(0 6px 18px rgba(42,114,184,0.25)); }
.errorpage__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }

/* ============================================================
   === NOTIZIE (EXT:news) ===
   ============================================================ */
.news {
  padding: 9rem 5% 6rem;
  background: #f6faff;
}
.news .section-head { margin-bottom: 3.5rem; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 70, 120, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(20, 70, 120, 0.12);
}
.news-card__media { display: block; line-height: 0; }
.news-card__media img { width: 100%; height: auto; object-fit: cover; }
.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.8rem;
  flex: 1;
}
.news-card__date {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #437292;
  margin: 0;
}
.news-card__title {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  color: #12304c;
  margin: 0;
}
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { color: #2a6da0; }
.news-card__teaser {
  color: #2a4c68;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #2a72b8;
  text-decoration: none;
  margin-top: 0.3rem;
}
.news-card__more:hover { gap: 0.7rem; color: #1a5a96; }
.news-card__more svg { transition: transform 0.25s ease; }

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3.5rem;
}
.news-pagination__state {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: #3a6a90;
}
.news-empty {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #3a6a90;
}

/* --- articolo singolo --- */
.news-detail {
  padding: 9rem 5% 5rem;
  background: #f6faff;
}
.news-detail__head,
.news-detail__media,
.news-detail__body,
.news-detail__foot {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.news-detail__head { text-align: center; }
.news-detail__head .section-title { font-size: 2.8rem; margin: 0.3rem 0 0; }
.news-detail__media { margin-top: 3rem; }
.news-detail__media img { width: 100%; height: auto; border-radius: 18px; }
.news-detail__media figcaption {
  font-size: 0.85rem;
  color: #5a7f9e;
  text-align: center;
  margin-top: 0.7rem;
}
.news-detail__body { margin-top: 3rem; }
.news-detail__body p {
  color: #2a4c68;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.news-detail__body h2,
.news-detail__body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: #1a3a5c;
  margin: 2.2rem 0 0.8rem;
}
.news-detail__body a { color: #2a72b8; }
.news-detail__body ul { margin: 0 0 1.1rem 1.2rem; color: #2a4c68; line-height: 1.8; }
.news-detail__foot {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(42, 114, 184, 0.14);
  text-align: center;
}
.news-detail__author {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #3a6a90;
  margin-bottom: 1.4rem;
}
.news-detail__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news, .news-detail { padding-top: 7rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-detail__head .section-title { font-size: 2.1rem; }
}

/* ============ INIZIATIVE: CUORE-ANNUNCIO IN HOME ============ */
/* Un cuore sfumato che batte piano sul lato sinistro dell'hero (spazio
   libero: il contenuto e' centrato a max 680px, il cuore non copre nulla).
   Tutto il blocco e' un unico link all'iniziativa. */
.annuncio {
  position: absolute;
  top: 50vh;
  left: 34px;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  width: 190px;
  text-align: center;
  text-decoration: none;
}
.annuncio__cuore {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  animation: annuncio-battito 3.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 26px rgba(42, 114, 184, 0.35));
  transition: filter .25s ease;
}
.annuncio__cuore svg { width: 100%; height: 100%; display: block; }
/* Alone morbido dietro il cuore, che si accende col battito */
.annuncio__cuore::before {
  content: '';
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 170, 216, 0.4) 0%, rgba(106, 170, 216, 0) 68%);
  z-index: -1;
  animation: annuncio-alone 3.4s ease-in-out infinite;
}
/* Battito cardiaco lento e morbido: "lub-dub" poi riposo — fiducia, non allarme */
@keyframes annuncio-battito {
  0%, 100% { transform: scale(1); }
  7%       { transform: scale(1.075); }
  14%      { transform: scale(1); }
  22%      { transform: scale(1.045); }
  32%      { transform: scale(1); }
}
@keyframes annuncio-alone {
  0%, 100% { opacity: .55; transform: scale(1); }
  10%      { opacity: 1;   transform: scale(1.08); }
  32%      { opacity: .55; transform: scale(1); }
}
.annuncio:hover .annuncio__cuore {
  filter: drop-shadow(0 16px 34px rgba(42, 114, 184, 0.5));
}
.annuncio__cuore-testo {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(18, 48, 76, 0.35);
}
.annuncio__body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.annuncio__kicker { display: none; }
.annuncio__titolo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  color: #12304c;
}
.annuncio__cta {
  font-size: .82rem;
  font-weight: 700;
  color: #2a72b8;
}
.annuncio:hover .annuncio__cta { text-decoration: underline; }
/* Sotto i 1200px il margine sinistro si assottiglia: il cuore scende NEL
   FLUSSO tra navbar ed hero, in versione compatta accanto al testo. */
@media (max-width: 1199px) {
  .annuncio {
    position: static;
    transform: none;
    flex-direction: row;
    width: auto;
    gap: .9rem;
    margin: 80px 5% 0;
    text-align: left;
  }
  .annuncio__cuore { width: 52px; height: 52px; }
  .annuncio__cuore::before { inset: -35%; }
  .annuncio__cuore-testo { display: none; }
  .annuncio__kicker {
    display: block;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #2a72b8;
  }
  .annuncio__titolo { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .annuncio__cuore, .annuncio__cuore::before { animation: none; }
}

/* ============ INIZIATIVE: ELENCO E PAGINA EVENTO ============ */
.iniziative { padding: 8.5rem 5% 5rem; background: #f6faff; min-height: 60vh; }
.iniziative-grid { margin-top: 2.5rem; }
.nav-link--active { color: #2a72b8; }

.iniziativa { padding: 8.5rem 5% 4rem; background: linear-gradient(180deg, #eef6fd 0%, #ffffff 100%); }
.iniziativa__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1.5rem;
  margin: 1.2rem 0 1.8rem;
}
.iniziativa__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem 1.05rem;
  background: #ffffff;
  border: 1px solid #d5e7f6;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: #1a3a5c;
}
.iniziativa__cover { display: flex; justify-content: center; margin: 1.5rem 0; }
.iniziativa__cover img { max-width: 100%; border-radius: 18px; box-shadow: 0 14px 40px rgba(30,80,140,0.14); }
.iniziativa__testo { max-width: 720px; margin: 0 auto; }

/* Box allegati (modulo di partecipazione, regolamento) */
.allegati { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 2rem auto 0; }
.allegati__item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid #2a72b8;
  border-radius: 14px;
  font-weight: 700;
  color: #2a72b8;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.allegati__item:hover { background: #2a72b8; color: #ffffff; transform: translateY(-2px); }

/* ============ MERCHANDISING ============ */
.merch { padding: 8.5rem 5% 5rem; background: #f6faff; }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 420px)); justify-content: center; gap: 2rem; margin-top: 2.5rem; }
.merch-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 34px rgba(30, 80, 140, 0.09);
  text-align: center;
}
.merch-card__media { background: radial-gradient(circle at 50% 42%, #eef6fd 0%, #dcecf9 100%); border-radius: 16px; padding: 1.2rem; margin-bottom: 1.4rem; }
.merch-card__media img { max-width: 100%; max-height: 340px; }
.merch-card__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.55rem; color: #12304c; margin: 0 0 .5rem; }
.merch-card__price { font-size: 1.8rem; font-weight: 800; color: #2a72b8; margin: .4rem 0 1rem; }
.merch-card__desc { color: #40525f; line-height: 1.55; font-size: .96rem; }
.merch-card__note { font-size: .85rem; color: #5a7186; margin-top: .8rem; }

/* Form ordine / iscrizione: riusa la grammatica dei form del sito */
.ordine-form { max-width: 680px; margin: 2.5rem auto 0; background: #ffffff; border-radius: 20px; padding: 2rem; box-shadow: 0 10px 34px rgba(30,80,140,0.09); text-align: left; }
.ordine-form h3 { font-family: 'Cormorant Garamond', Georgia, serif; color: #12304c; margin: 0 0 1.2rem; font-size: 1.4rem; }
.ordine-form .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.ordine-form .form__row--full { grid-template-columns: 1fr; }
.ordine-form label { display: block; font-size: .82rem; font-weight: 700; color: #1a3a5c; margin-bottom: .3rem; }
.ordine-form input[type="text"], .ordine-form input[type="email"], .ordine-form input[type="tel"],
.ordine-form input[type="number"], .ordine-form select, .ordine-form textarea, .ordine-form input[type="file"] {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid #c9dded;
  border-radius: 10px;
  font: inherit;
  color: #12304c;
  background: #fbfdff;
}
.ordine-form input:focus, .ordine-form select:focus, .ordine-form textarea:focus { outline: 2px solid #6aaad8; outline-offset: 1px; }
.ordine-form .form__consent { display: flex; align-items: flex-start; gap: .6rem; margin: .9rem 0; font-size: .88rem; color: #40525f; }
.ordine-form .form__consent input { margin-top: .2rem; }
.ordine-form .form-errors { background: #fdeeee; border: 1px solid #e4b6b6; color: #8c2f2f; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.ordine-form .canale { display: flex; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.ordine-form .canale label { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border: 1.5px solid #c9dded; border-radius: 12px; cursor: pointer; font-size: .95rem; margin: 0; }
.ordine-form .canale input { accent-color: #2a72b8; }
.ordine-form .totale { font-size: 1.1rem; font-weight: 800; color: #12304c; margin: 1rem 0; text-align: right; }

/* Bottone submit: identico ai form del sito (.fnp-form button + .btn-submit) */
.ordine-form .btn-submit {
  margin-top: .6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  background: linear-gradient(135deg, #1e5992, #2a72b8);
  color: #fff;
  padding: .9rem 2rem;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 26px rgba(42, 114, 184, 0.38);
  transition: filter .25s ease, transform .25s ease;
}
.ordine-form .btn-submit:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* Membri squadra (iscrizione evento) */
.membri { border: 1px solid #d5e7f6; border-radius: 14px; padding: 1.2rem; margin: 1rem 0; background: #f9fcff; }
.membri__titolo { font-weight: 800; color: #2a72b8; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .8rem; }
.membri .form__row { grid-template-columns: 2fr 1fr; }
@media (max-width: 640px) {
  .ordine-form .form__row, .membri .form__row { grid-template-columns: 1fr; }
  .iniziative, .iniziativa, .merch { padding-top: 7rem; }
}

/* Honeypot anti-spam: campo invisibile agli umani, esca per i bot.
   Fuori schermo (non display:none: alcuni bot lo saltano). */
.hp-wrap {
  position: absolute !important;
  left: -6000px !important;
  top: auto !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
