:root {
  --cielo: #30BBEB;
  --cielo-testo: #0E7FA8;
  --cielo-chiaro: #E4F4FA;
  --prato: #25B649;
  --prato-scuro: #1B6B3A;
  --prato-scuro-hover: #155730;
  --inchiostro: #16323A;
  --inchiostro-soft: #46606A;
  --carta: #FBFAF5;
  --bianco: #FFFFFF;
  --linea: #DCE5E2;
  --giallo-bozza: #FFF1A8;

  --font-titoli: "Fraunces", Georgia, serif;
  --font-testo: "Figtree", "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif; /* Figtree è caricato solo per le cifre: lo zero di Atkinson è barrato */
  --raggio: 24px;
  --raggio-foto: 28px;
  --larghezza: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-testo);
  font-size: 18px;
  line-height: 1.6;
  color: var(--inchiostro);
  background: var(--carta);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-titoli);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p + p { margin-top: 1em; }
:focus-visible { outline: 3px solid var(--cielo-testo); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--larghezza); margin: 0 auto; padding: 0 18px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--bianco); padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Bozza: parti da confermare. Per pubblicare basta svuotare questo blocco
   e nascondere .dc-note e .dc-banner */
.dc { background: var(--giallo-bozza); box-shadow: 0 0 0 3px var(--giallo-bozza); border-radius: 3px; }
.dc-note {
  display: block; margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--giallo-bozza); color: var(--inchiostro); font-size: 16px; line-height: 1.45;
}
.dc-banner { background: var(--giallo-bozza); color: var(--inchiostro); font-size: 16px; text-align: center; padding: 8px 18px; }

/* Intestazione */
.site-header { background: var(--bianco); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-name { font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 18px; line-height: 1.1; display: block; }
.brand small { display: block; font-size: 14px; color: var(--inchiostro-soft); }
.nav-toggle {
  margin-left: auto; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--linea);
  background: var(--bianco); display: grid; place-items: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--inchiostro); position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bianco); border-bottom: 1px solid var(--linea); padding: 8px 18px 20px;
}
.site-nav ul { list-style: none; padding: 0; }
.site-nav a { display: block; padding: 14px 4px; font-size: 19px; text-decoration: none; border-bottom: 1px solid var(--linea); }
.site-nav a[aria-current="page"] { color: var(--prato-scuro); font-weight: 700; }
.btn.header-cta { display: none; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  min-height: 56px; padding: 10px 26px; border-radius: 999px; font-family: var(--font-testo);
  font-weight: 700; font-size: 18px; line-height: 1.3; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease;
}
.btn-primary { background: var(--prato-scuro); color: var(--bianco); }
.btn-primary:hover { background: var(--prato-scuro-hover); }
.btn-secondary { border-color: var(--prato-scuro); color: var(--prato-scuro); background: transparent; }
.btn-secondary:hover { background: rgba(27, 107, 58, .08); }
.btn-light { background: var(--bianco); color: var(--prato-scuro); }
.btn-outline-light { border-color: var(--bianco); color: var(--bianco); }
.nowrap { white-space: nowrap; }
.actions { display: flex; flex-direction: column; gap: 12px; }

.eyebrow { display: block; font-weight: 700; font-size: 16px; color: var(--cielo-testo); letter-spacing: .02em; margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--inchiostro-soft); max-width: 34em; }
.muted { color: var(--inchiostro-soft); }
.text-link { color: var(--prato-scuro); font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Apertura */
.hero { background: var(--cielo-chiaro); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 40px; }
.hero .eyebrow { color: var(--prato-scuro); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero .actions { margin-bottom: 8px; }
.rass { list-style: none; padding: 0 0 8px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.hero-grid > .rass { order: 2; }
.rass li { display: flex; align-items: center; gap: 10px; }
.rass li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--prato) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/15px no-repeat;
}
/* Su telefono la foto viene prima del titolo, con l'arco intero */
.arch { order: -1; height: 300px; border-radius: 150px 150px 24px 24px; overflow: hidden; border: 8px solid var(--bianco); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-home { height: auto; aspect-ratio: 4 / 3; border-radius: 28px; }
.hero-page { padding: 48px 0 56px; }
.hero-page .lead { margin-bottom: 0; }
.hero-page:not(.has-media):not(.has-arch) .lead { max-width: none; }
.hero-page.has-arch { padding-top: 0; padding-bottom: 0; }
.hero-page.has-media { padding-top: 0; }
.hero-page.has-media .hero-grid { padding-bottom: 0; }
/* Foto a foglia: forma diversa dall'arco della home */
.leaf { order: -1; overflow: hidden; border: 8px solid var(--bianco); border-radius: 120px 24px 120px 24px; }
.leaf img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Cartolina: forma dei luoghi, foto con il bordo bianco e appena inclinata */
.postcard { order: -1; background: var(--bianco); padding: 10px 10px 34px; border-radius: 10px; transform: rotate(-2deg); margin: 8px 6px 0; }
.postcard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* Sezioni */
.section { padding: 64px 0; }
.section-white { background: var(--bianco); }
.section-sky { background: var(--cielo-chiaro); }
.section-head { margin-bottom: 32px; }
.section-head .lead { max-width: none; }
.section-head h2 { margin-bottom: 14px; }
.split { display: grid; gap: 32px; align-items: center; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--inchiostro-soft); max-width: 34em; }
.split .text-link { display: inline-block; margin-top: 20px; }
.photo { border-radius: var(--raggio-foto); overflow: hidden; }
.photo img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
/* Ritratto verticale: la foto attuale è piccola (399 px), non va ingrandita oltre */
.photo-portrait { max-width: 400px; width: 100%; justify-self: center; }
.photo-portrait img { aspect-ratio: 2 / 3; object-position: center top; }
/* Foto alta quanto la colonna di testo accanto */
.photo-tall img { aspect-ratio: 4 / 5; }
.photo-natural img { aspect-ratio: auto; }
.photo-missing {
  border-radius: var(--raggio-foto); background: var(--cielo-chiaro); border: 2px dashed var(--cielo);
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--cielo-testo); font-weight: 700;
}
.photo-missing img { width: 120px; height: 120px; margin: 0 auto 12px; }

blockquote {
  margin-top: 28px; border-left: 6px solid var(--cielo); padding: 4px 0 4px 20px;
  font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-size: 1.45rem; line-height: 1.35;
}
blockquote cite { display: block; margin-top: 8px; font-family: var(--font-testo); font-style: normal; font-size: 16px; color: var(--inchiostro-soft); }

/* Schede dei luoghi */
.cards { display: grid; gap: 20px; }
.card { background: var(--carta); border: 1px solid var(--linea); border-radius: var(--raggio); overflow: hidden; display: flex; flex-direction: column; }
.section-white .card { background: var(--carta); }
.section:not(.section-white) .card { background: var(--bianco); }
.card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.card-nophoto { aspect-ratio: 3 / 2; background: var(--cielo-chiaro); display: grid; place-items: center; color: var(--cielo-testo); font-weight: 700; font-size: 16px; padding: 16px; text-align: center; }
.card-body { padding: 18px 22px 24px; }
.card-body small { display: block; font-weight: 700; font-size: 15px; color: var(--cielo-testo); }
.card-body h3 { margin: 4px 0 8px; }
.card-body p { font-size: 17px; color: var(--inchiostro-soft); }
.card-linked { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--bianco); text-underline-offset: 4px; }
.section .card.card-linked, .section-white .card.card-linked { background: var(--prato-scuro); border-color: var(--prato-scuro); color: var(--bianco); }
.card-linked .card-body small { color: #BFE9F7; }
.card-linked .card-body p { color: #E3F1E8; }
.card-linked:hover .card-more { text-decoration: underline; }
.card-linked:hover .card-more { text-decoration: underline; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--cielo-testo); outline-offset: -3px; }
.more { margin-top: 28px; }

/* Rullino dei luoghi: un nastro fotografico continuo, non una seconda griglia di card */
.section-intro { margin-top: 10px; color: var(--inchiostro-soft); }
.filmstrip-controls { display: flex; justify-content: flex-end; gap: 8px; margin: -18px 0 14px; }
.filmstrip-control {
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--linea); border-radius: 50%;
  background: transparent; color: var(--inchiostro); display: grid; place-items: center; cursor: pointer;
  font: 400 21px/1 var(--font-testo); transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.filmstrip-control:hover { background: var(--bianco); border-color: var(--cielo-testo); transform: translateY(-1px); }
.filmstrip-control:focus-visible { outline: 3px solid var(--cielo-testo); outline-offset: 3px; }
.place-filmstrip-section { overflow: hidden; }
.place-filmstrip-bleed { width: min(100%, calc(var(--larghezza) + 96px)); margin: 0 auto; overflow: hidden; padding: 8px 0 18px; }
.place-filmstrip {
  overflow: hidden; touch-action: pan-y; outline: none;
}
.place-filmstrip:focus-visible { outline: 3px solid var(--cielo-testo); outline-offset: 4px; }
.place-filmstrip-track { display: flex; align-items: flex-start; gap: 18px; width: max-content; will-change: transform; }
.place-filmstrip-item {
  margin: 0; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start;
  width: min-content;   /* largo come la foto: il dettaglio va a capo invece di allargare la scheda */
}
.place-filmstrip-item img { display: block; width: auto; max-width: none; height: clamp(250px, 35vw, 390px); object-fit: contain; border-radius: 10px; background: var(--carta); }
.place-filmstrip-item figcaption { padding-top: 10px; font-weight: 600; font-size: 16px; color: var(--inchiostro); line-height: 1.3; }
.place-filmstrip-item figcaption span { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) {
  .place-filmstrip { cursor: grab; user-select: none; }
  .place-filmstrip.is-dragging { cursor: grabbing; }
  .place-filmstrip.is-dragging img { pointer-events: none; }
}

/* Elenchi numerati (paure, come lavoro, elementi) */
.steps { list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-content: start; }
.section-white .steps li { background: var(--carta); }
.steps .num {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--cielo-chiaro);
  color: var(--cielo-testo); font-weight: 700; display: grid; place-items: center; font-size: 17px;
}
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--inchiostro-soft); }
.list-title { font-family: var(--font-testo); font-size: 16px; font-weight: 700; letter-spacing: .02em; color: var(--cielo-testo); margin: 28px 0 8px; }

/* Elenco numerato senza riquadri (Il nordic walking) */
.numbered { list-style: none; padding: 0; }
.numbered li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--linea); }
.numbered li:first-child { border-top: 0; padding-top: 14px; }
.numbered li:last-child { padding-bottom: 0; }
.numbered .n { font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--cielo-testo); }
.numbered h3 { font-size: 1.3rem; margin-bottom: 6px; }
.numbered p { color: var(--inchiostro-soft); }

/* Benefici: illustrazione e elenco */
.illustration { background: var(--bianco); border-radius: var(--raggio-foto); padding: 20px; margin: 0 0 36px; }
.illustration img { width: 100%; max-width: 1000px; height: auto; margin: 0 auto; }
.benefit-list { list-style: none; padding: 0; }
.benefit-list li { padding: 20px 0 20px 40px; border-bottom: 1px solid #C9E3EC; position: relative; }
.benefit-list li::before {
  content: ""; position: absolute; left: 0; top: 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--prato) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/15px no-repeat;
}
.benefit-list li:last-child { border-bottom: 0; }
.benefit-list li:first-child { border-top: 1px solid #C9E3EC; }
.benefit-list h3 { font-size: 1.3rem; margin-bottom: 6px; }
.benefit-list p { color: var(--inchiostro-soft); }

/* Sequenza di tappe collegate da una linea */
.timeline { list-style: none; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 32px 72px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--cielo); }
.timeline li:last-child::before { display: none; }
.timeline .dot {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--prato-scuro);
  color: var(--bianco); font-weight: 700; font-size: 20px; display: grid; place-items: center;
}
.timeline h3 { font-size: 1.35rem; margin: 8px 0 8px; }
.timeline p { color: var(--inchiostro-soft); max-width: 30em; }

/* Domande */
.faq { max-width: 52em; border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--cielo-chiaro); color: var(--cielo-testo);
  display: grid; place-items: center; font-family: var(--font-testo); font-size: 22px; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--inchiostro-soft); max-width: 40em; }

/* Chiusura */
.cta-box { background: var(--prato-scuro); color: var(--bianco); border-radius: var(--raggio-foto); padding: 40px 24px; display: grid; gap: 24px; }
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { color: #E3F1E8; max-width: 34em; }

/* Calendario */
.event { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--raggio); display: grid; overflow: hidden; }
.event-date { background: var(--cielo-chiaro); padding: 20px 24px; display: flex; align-items: baseline; gap: 10px; }
.event-date strong { font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-size: 2.6rem; line-height: 1; color: var(--inchiostro); }
.event-date span { font-weight: 700; color: var(--cielo-testo); }
.event-body { padding: 22px 24px 26px; }
.event-body h3 { margin-bottom: 8px; }
.event-body ul { padding-left: 1.2em; color: var(--inchiostro-soft); margin: 12px 0 18px; }
.event-body li + li { margin-top: 4px; }
.meta { font-weight: 700; color: var(--prato-scuro); }
[hidden] { display: none !important; }

/* Locandina aperta sopra la pagina */
.poster-dialog { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 94vh; overflow: visible; }
.poster-dialog::backdrop { background: rgba(22, 50, 58, .82); }
.poster-dialog img { display: block; max-width: 100%; max-height: calc(94vh - 72px); width: auto; height: auto; margin: 0 auto; border-radius: 12px; background: var(--bianco); }
.poster-close { display: flex; margin: 0 0 12px auto; min-height: 52px; font-size: 18px; }
body.dialog-open { overflow: hidden; }
.upcoming { display: grid; gap: 24px; }

/* Archivio "Dove siamo stati": stesse schede del calendario, in forma compatta */
.archive { border-top: 1px solid var(--linea); }
.archive .year { border-bottom: 1px solid var(--linea); }
.archive summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.6rem;
}
.archive summary span { font-family: var(--font-testo); font-weight: 400; font-size: 1rem; color: var(--inchiostro-soft); }
.archive summary::-webkit-details-marker { display: none; }
.archive summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--cielo-chiaro); color: var(--cielo-testo);
  display: grid; place-items: center; font-family: var(--font-testo); font-size: 22px; line-height: 1;
}
.archive details[open] summary::after { content: "–"; }
.year-list { display: grid; gap: 12px; padding-bottom: 24px; }
.archive .event { grid-template-columns: 1fr auto; align-items: center; }
.archive .event-date { grid-column: 1 / -1; padding: 12px 18px; }
.archive .event-date strong { font-size: 1.6rem; }
.archive .event-body { padding: 14px 18px 16px; }
.archive .event-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.archive .event-body ul, .archive .event-book, .archive .event-note, .archive .event-poster span { display: none; }
.archive .event-poster { padding: 12px 18px 12px 0; }
.archive .event-poster img { width: 72px; max-width: 72px; margin: 0; border-radius: 6px; }
.event-poster { display: block; padding: 0 24px 26px; text-decoration: none; color: var(--prato-scuro); font-weight: 700; font-size: 16px; }
.event-poster img { width: 100%; max-width: 280px; height: auto; border: 1px solid var(--linea); border-radius: 12px; margin-bottom: 8px; }

/* Tabella luoghi */
.places-list { list-style: none; padding: 0; border-top: 1px solid var(--linea); columns: 1; column-gap: 40px; }
.places-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); break-inside: avoid; }
.places-list span { color: var(--inchiostro-soft); text-align: right; }

/* Contatti e modulo */
.contact-list { list-style: none; padding: 0; border-top: 1px solid var(--linea); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--linea); display: grid; gap: 2px; }
.contact-list small { font-weight: 700; color: var(--cielo-testo); font-size: 15px; }
.contact-list a { font-weight: 700; font-size: 1.2rem; }
.form-card { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 28px 22px; }
.form-card h2 { margin-bottom: 10px; }
.form-grid { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.optional { font-weight: 400; color: var(--inchiostro-soft); }
input, textarea {
  font: inherit; color: inherit; width: 100%; min-height: 54px; padding: 12px 14px;
  border: 2px solid var(--linea); border-radius: 12px; background: var(--carta);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--cielo-testo); outline: none; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checkbox input { width: 26px; min-height: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--prato-scuro); }
.form-status { font-weight: 700; color: var(--prato-scuro); }

/* Testo lungo (privacy) */
.prose { max-width: 44em; }
.prose h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.prose p { color: var(--inchiostro-soft); }

/* Piè di pagina */
.site-footer { background: var(--inchiostro); color: #D7E4E8; padding: 56px 0 120px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand strong { font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-size: 20px; color: var(--bianco); display: block; line-height: 1.2; }
.site-footer h2 { font-family: var(--font-testo); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--bianco); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #D7E4E8; text-underline-offset: 4px; }
.site-footer a:hover { color: var(--bianco); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2E4B54; font-size: 15px; }
.site-footer .dc { color: var(--inchiostro); }

/* Barra fissa su telefono */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bianco);
  border-top: 1px solid var(--linea); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.mobile-bar .btn { min-height: 52px; font-size: 17px; padding: 8px 12px; }

/* Comparsa morbida, solo con JavaScript. --d la imposta main.js: gli elementi che entrano
   insieme nello schermo arrivano uno dopo l'altro, non tutti di colpo */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Movimento: calmo e lento, mai rimbalzi. Esiste solo per chi non ha chiesto di ridurlo */
@keyframes sali { from { opacity: 0; transform: translateY(22px); } }
@keyframes assesta { from { transform: scale(1.1); } }
@keyframes spunta { from { transform: scale(0); } }
@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(0.25, 1, 0.5, 1); interpolate-size: allow-keywords; }

  .js .reveal { transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.visible { transform: none; }

  /* Apertura della home: testo in sequenza, la foto si assesta piano, poi si spuntano i tre punti */
  .js .hero:not(.hero-page) .hero-grid > div:first-child > * { animation: sali .9s var(--ease) both; }
  .js .hero:not(.hero-page) .hero-grid > div:first-child > :nth-child(2) { animation-delay: .12s; }
  .js .hero:not(.hero-page) .hero-grid > div:first-child > :nth-child(3) { animation-delay: .26s; }
  .js .hero:not(.hero-page) .hero-grid > div:first-child > :nth-child(4) { animation-delay: .4s; }
  .js .arch-home { animation: sali 1.1s var(--ease) both; }
  .js .arch-home img { animation: assesta 2.4s var(--ease) both; }
  .js .hero .rass li { animation: sali .8s var(--ease) both; }
  .js .hero .rass li::before { animation: spunta .5s var(--ease) both; }
  .js .hero .rass li:nth-child(1) { animation-delay: .7s; }
  .js .hero .rass li:nth-child(1)::before { animation-delay: .85s; }
  .js .hero .rass li:nth-child(2) { animation-delay: .85s; }
  .js .hero .rass li:nth-child(2)::before { animation-delay: 1s; }
  .js .hero .rass li:nth-child(3) { animation-delay: 1s; }
  .js .hero .rass li:nth-child(3)::before { animation-delay: 1.15s; }

  /* Foto accanto al testo: la cornice entra, l'immagine dentro si assesta */
  .js .photo.reveal img { transform: scale(1.08); transition: transform 1.6s var(--ease) var(--d, 0ms); }
  .js .photo.reveal.visible img { transform: none; }

  /* Citazione: la riga azzurra si disegna dall'alto dopo che il testo è arrivato */
  .js .reveal blockquote { position: relative; border-left-color: transparent; }
  .js .reveal blockquote::before {
    content: ""; position: absolute; left: -6px; top: 0; bottom: 0; width: 6px; background: var(--cielo);
    transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease) .5s;
  }
  .js .reveal.visible blockquote::before { transform: none; }

  /* Scheda che porta a un'altra pagina: la foto si avvicina e la freccia fa un passo */
  .card-linked img { transition: transform .9s var(--ease); }
  .card-more { transition: transform .35s var(--ease); }
  .card-linked:hover img { transform: scale(1.04); }
  .card-linked:hover .card-more { transform: translateX(5px); }

  /* Domande: la risposta si apre scorrendo, il segno gira */
  .faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
  .faq summary::after { transition: transform .35s var(--ease); }
  .faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }

  /* Pulsanti: un piccolo cedimento quando si toccano */
  .btn { transition: background-color .15s ease, transform .12s ease; }
  .btn:active { transform: scale(.97); }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* A due colonne la foto entra dal suo lato */
  .js .split > .reveal:first-child { transform: translateX(-36px); }
  .js .split.reverse > .reveal:first-child { transform: translateX(36px); }
  .js .split > .reveal.visible, .js .split.reverse > .reveal.visible { transform: none; }
}

@media (min-width: 700px) {
  body { font-size: 19px; }
  .btn.header-cta { display: inline-flex; min-height: 48px; font-size: 16px; padding: 8px 22px; }
  .container { padding: 0 32px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .rass { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps.three { grid-template-columns: repeat(3, 1fr); }
  .steps.three li { grid-template-columns: 1fr; }
  .steps.three .num { grid-row: auto; margin-bottom: 8px; }
  .steps.two { grid-template-columns: repeat(2, 1fr); }
  .places-list { columns: 2; }
  .form-card { padding: 36px 34px; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .cta-box { padding: 48px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .event { grid-template-columns: 220px 1fr; }
  .event.has-poster { grid-template-columns: 200px 1fr 240px; }
  .archive .event, .archive .event.has-poster { grid-template-columns: 190px 1fr 110px; }
  .archive .event-date { grid-column: auto; padding: 16px 20px; }
  .event-poster { padding: 22px 24px 22px 0; align-self: center; }
  .event-poster img { max-width: none; }
  .event-date { flex-direction: column; justify-content: center; align-items: flex-start; }
}

@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .hero-page.has-media { padding-bottom: 80px; }
  .hero-page.has-media .hero-grid { padding-top: 72px; }
  .leaf { order: 0; align-self: center; border-width: 10px; border-radius: 200px 28px 200px 28px; }
  .postcard { order: 0; align-self: center; justify-self: center; width: min(100%, 520px); padding: 14px 14px 52px; margin: 0; }
  .illustration { padding: 32px; }
  .benefit-list.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .benefit-list.two-col li:nth-child(2) { border-top: 1px solid #C9E3EC; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .timeline li { padding: 72px 0 0; }
  .timeline li::before { left: 56px; right: -40px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .timeline h3 { margin-top: 0; }
  .timeline.vertical { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
  .timeline.vertical li { padding: 0 0 28px 72px; }
  .timeline.vertical li:last-child { padding-bottom: 0; }
  .timeline.vertical li::before { left: 23px; right: auto; top: 48px; bottom: 0; width: 2px; height: auto; }
  .timeline.vertical h3 { margin-top: 8px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 0; }
  .hero-grid > div:first-child { padding-bottom: 0; }
  .arch { order: 0; align-self: end; height: 560px; border-radius: 280px 280px 0 0; border-width: 10px; border-bottom: 0; }
  /* Home: l'arco intero, centrato accanto al testo; i tre punti in riga sotto */
  .hero:not(.hero-page) .hero-grid { grid-template-columns: 1fr 1.2fr; }
  .arch-home { align-self: start; margin-top: 36px; height: auto; aspect-ratio: 4 / 3; border: 10px solid var(--bianco); border-radius: 36px; }
  .hero-grid > .rass { order: 3; grid-column: 1 / -1; flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 48px; padding: 8px 0 56px; }
  .hero-page { padding: 72px 0 80px; }
  .hero-page.has-arch .arch { height: 460px; border-radius: 230px 230px 0 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
  .split.stretch { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .split.stretch .photo-tall img { height: 100%; aspect-ratio: auto; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .cta-box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 56px; }
  .cta-box .actions { flex-direction: column; align-items: stretch; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 48px; }
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; border: 0; margin-left: auto; }
  .site-nav ul { display: flex; gap: 22px; }
  .site-nav a { border: 0; padding: 8px 0; font-size: 17px; }
  .brand img { width: 64px; height: 64px; }
  .header-inner { min-height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Valle Millecampi */
.mc-stats-band { background: var(--bianco); border-bottom: 1px solid var(--linea); }
.mc-stats { list-style: none; padding: 28px 0; display: grid; gap: 22px; }
.mc-stats li { display: grid; gap: 2px; }
.mc-stats strong { font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.05; color: var(--prato-scuro); }
.mc-stats span { color: var(--inchiostro-soft); font-size: 17px; max-width: 22em; }
.mc-story { display: grid; gap: 40px; align-items: center; }
.mc-story h2 { margin-bottom: 16px; }
.mc-big { font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-size: 1.4rem; line-height: 1.35; color: var(--prato-scuro); }
.mc-story p { max-width: 32em; }
.mc-story p:not(.mc-big) { color: var(--inchiostro-soft); }
.mc-collage { position: relative; padding-bottom: 90px; }
.mc-collage-main { overflow: hidden; border: 8px solid var(--bianco); border-radius: 110px 24px 110px 24px; box-shadow: 0 10px 30px rgba(22, 50, 58, .12); }
.mc-collage-main img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mc-collage-small { position: absolute; right: 3%; bottom: 0; width: 40%; background: var(--bianco); padding: 6px 6px 22px; border-radius: 8px; transform: rotate(3deg); box-shadow: 0 8px 22px rgba(22, 50, 58, .18); }
.mc-collage-small img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.mc-collage-left { position: absolute; left: 2%; bottom: 14px; width: 38%; background: var(--bianco); padding: 6px 6px 44px; border-radius: 8px; transform: rotate(-3deg); box-shadow: 0 8px 22px rgba(22, 50, 58, .18); }
.mc-collage-left img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.mc-label { text-wrap: balance; position: absolute; left: 8px; right: 8px; bottom: 7px; text-align: center; font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 13px; line-height: 1.15; color: var(--prato-scuro); }
@media (min-width: 700px) { .mc-label { font-size: 16px; bottom: 9px; } .mc-collage-left { padding-bottom: 50px; } }
.mc-intro { max-width: 40em; margin: 0 auto 36px; text-align: center; }
.mc-intro h2 { margin-bottom: 14px; }
.mc-intro p { color: var(--inchiostro-soft); }
.mc-words { display: grid; gap: 18px; }
.mc-word { background: var(--carta); border-radius: var(--raggio); padding: 26px 24px 28px; border-top: 6px solid var(--cielo); }
.mc-word-2 { border-top-color: var(--prato); }
.mc-word-3 { border-top-color: var(--prato-scuro); }
.mc-word h3 { margin-bottom: 8px; }
.mc-word p { color: var(--inchiostro-soft); font-size: 17px; }
.mc-band { background-size: cover; background-position: center; color: var(--bianco); }
.mc-band-shade { background: linear-gradient(180deg, rgba(14, 38, 46, .72), rgba(14, 38, 46, .86)); padding: 64px 0; }
.mc-band .eyebrow { color: #BFE9F7; }
.mc-band-head { max-width: 30em; margin-bottom: 32px; }
.mc-trio { display: grid; gap: 26px; }
.mc-trio h3 { margin-bottom: 6px; }
.mc-trio p { color: #E6F1F4; font-size: 17px; }
.mc-spots { display: grid; gap: 20px; }
.mc-spot { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--raggio); overflow: hidden; display: flex; flex-direction: column; }
.mc-spot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mc-spot h3 { margin-bottom: 8px; }
.mc-spot p { color: var(--inchiostro-soft); font-size: 17px; }
.mc-spot-plain { background: var(--cielo-chiaro); border-color: transparent; }
.mc-spot-mark { aspect-ratio: 16 / 7; display: grid; place-items: center; font-family: var(--font-titoli); font-size: 4rem; font-weight: 600; color: var(--cielo-testo); opacity: .55; }
.source-note { margin-top: 28px; font-size: 15px; }
.mc-marcia { background: var(--cielo-chiaro); padding: 64px 0; overflow: hidden; }
.mc-marcia-grid { display: grid; gap: 32px; align-items: center; }
.mc-marcia h2 { margin-bottom: 14px; }
.mc-marcia p { color: var(--inchiostro-soft); max-width: 36em; }
.mc-date { justify-self: start; width: 168px; height: 168px; border-radius: 50%; background: var(--prato-scuro); color: var(--bianco); display: grid; place-content: center; text-align: center; transform: rotate(-6deg); box-shadow: 0 10px 26px rgba(27, 107, 58, .3); border: 6px solid var(--bianco); }
.mc-date strong { font-family: var(--font-titoli); font-variation-settings: "SOFT" 100; font-size: 4rem; line-height: .95; font-weight: 600; }
.mc-date span { font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.mc-chips { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.mc-chips li { background: var(--bianco); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 16px; color: var(--inchiostro); }
@media (min-width: 700px) {
  .mc-stats { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .mc-words { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .mc-word-2 { margin-top: 28px; }
  .mc-word-3 { margin-top: 56px; }
  .mc-trio { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .mc-spots { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .mc-spot:nth-child(2) { margin-top: 36px; }
  .mc-spot-mark { aspect-ratio: 3 / 2; }
}
@media (min-width: 900px) {
  .mc-story { grid-template-columns: 1.15fr 1fr; gap: 72px; }
  .mc-band-shade { padding: 96px 0; }
  .mc-marcia { padding: 88px 0; }
  .mc-marcia-grid { grid-template-columns: auto 1fr; gap: 72px; }
  .mc-date { width: 220px; height: 220px; }
  .mc-date strong { font-size: 5.4rem; }
}
/* fine Valle Millecampi */
