/* Scuola dell'Infanzia Immacolata — foglio di stile dal mockup approvato.
   Palette: verdi naturali, crema, giallo caldo, accenti dalle quattro mani del logo. */

:root {
  --verde:        #6ba33c;
  --verde-scuro:  #3e7d33;
  --verde-cupo:   #2e5f26;
  --crema:        #faf6ea;
  --fascia:       #eef2dc;
  --giallo:       #f3b32a;
  --blu:          #4c8fc9;
  --rosso:        #d9453a;
  --arancio:      #e8762e;
  --rosa:         #e5527a;
  --inchiostro:   #333a33;
  --grigio:       #6f756d;
  --ombra:        0 3px 16px rgba(62, 90, 45, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
/* Niente "font boosting" automatico su Android: i corpi restano quelli decisi qui. */
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: 96px;   /* l'altezza della barra ridotta, piu' un dito d'aria */
}
body {
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  color: var(--inchiostro);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.contenitore { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
a { color: var(--verde-scuro); }
:where(a, button):focus-visible { outline: 3px solid var(--giallo); outline-offset: 2px; }

.corsivo {
  font-family: Caveat, "Comic Sans MS", cursive;
  font-weight: 700;
  color: var(--verde);
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: .6rem;
}
.corsivo--piccolo { font-size: 1.45rem; color: var(--verde-scuro); }
.tenue { color: var(--grigio); font-size: .92rem; }

/* Bottoni pillola */
.bottone {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .68rem 1.6rem;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.bottone:hover { background: var(--verde-scuro); transform: translateY(-1px); }
.bottone--bianco { background: #fff; color: var(--verde-cupo); }
.bottone--bianco:hover { background: var(--crema); }
.bottone--arancio { background: var(--arancio); }
.bottone--arancio:hover { background: #c95f1d; }
.bottone--contorno { background: transparent; color: var(--verde-scuro); box-shadow: inset 0 0 0 2px var(--verde); }
.bottone--contorno:hover { background: var(--verde); color: #fff; }
.bottone--whatsapp { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; }
.ico-wa { width: 19px; height: 19px; fill: #fff; }

/* ---- Fascia contatti ---- */
.fascia-alta { background: var(--verde-scuro); color: #fff; font-size: .78rem; }
.fascia-alta__riga { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.fascia-alta a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.fascia-alta__contatti { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Testata ---- */
/* La testata resta a vista scorrendo. Si appiccica al bordo alto quando la
   fascia dei contatti e' scorsa via; da li' il logo si rimpicciolisce, cosi'
   la barra ruba poca pagina. La classe la mette lo script, che guarda dove sta
   davvero il bordo alto della testata: niente numeri magici da riaggiustare. */
.testata {
  background: #fff; box-shadow: 0 2px 10px rgba(60, 80, 50, .08);
  position: sticky; top: 0; z-index: 20;
  transition: box-shadow .25s ease;
}
.testata-ridotta .testata { box-shadow: 0 4px 16px rgba(60, 80, 50, .16); }
.testata__riga {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-top: 10px; padding-bottom: 10px;
  transition: padding .25s ease;
}
.testata-ridotta .testata__riga { padding-top: 4px; padding-bottom: 4px; }
.testata__logo img { width: 200px; height: auto; transition: width .25s ease; }
.testata-ridotta .testata__logo img { width: 104px; }
.testata__nav { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.testata__nav a {
  font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--inchiostro); text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent;
}
.testata__nav a:hover { color: var(--verde-scuro); }
.testata__nav a.attivo { color: var(--verde-scuro); border-bottom-color: var(--verde); }
.testata__menu-btn { display: none; font-size: 1.6rem; background: none; border: 0; color: var(--verde-scuro); cursor: pointer; }

/* ---- Hero ---- */
/* La fotografia sta due volte: a tutta larghezza sotto un velo verde, appena
   sfocata, e nitida dentro la polaroid appesa a destra. A sinistra le frasi
   della coordinatrice scritte a gesso (Mali). Le quattro polaroid piccole sono
   i comandi; il giro avanza da solo finche' qualcuno non lo tocca.
   Scelta di Stefania e del Comandante, 11/9/2026 (prove in sito/prove-hero/).
   Gli sfondi stanno qui e non nel markup: un inline style in meno per la CSP. */
.hero { position: relative; height: 610px; overflow: hidden; background: var(--verde-cupo); }
.hero__fondo {
  position: absolute; inset: -12px;
  background-size: cover; background-position: center;
  filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero__fondo.aperta { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
.hero__fondo--1 { background-image: url('../img/hero-famiglie.jpg'); }
.hero__fondo--2 { background-image: url('../img/hero-territorio.jpg'); }
.hero__fondo--3 { background-image: url('../img/hero-orto.jpg'); }
.hero__fondo--4 { background-image: url('../img/hero-relazione.jpg'); }
.hero__velo {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(22, 44, 18, .90) 0%, rgba(22, 44, 18, .74) 38%, rgba(22, 44, 18, .42) 70%, rgba(22, 44, 18, .38) 100%);
}
.hero__scena {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: 1fr 480px; column-gap: 2.5rem; align-items: stretch;
}
.hero__sinistra { display: flex; flex-direction: column; padding: 2rem 0 1.5rem; }

/* Le frasi, una alla volta, scritte a gesso */
.gesso { position: relative; flex: 1; }
.gesso__frase {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s;
}
.gesso__frase.aperta { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
.gesso__pre {
  font-family: Mali, Caveat, cursive; font-weight: 600; font-size: 1.75rem;
  color: rgba(255, 255, 255, .86); letter-spacing: .03em; margin-bottom: -.2rem;
}
.gesso__testo {
  font-family: Mali, Caveat, cursive; font-weight: 700; font-size: 3.2rem; line-height: 1.1;
  color: #fff; margin: 0; max-width: 16ch; text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}
.gesso__testo strong { color: var(--accento); font-size: 1.3em; line-height: 1; font-weight: 700; }
.gesso__frase--3 .gesso__testo { font-size: 2.3rem; max-width: 24ch; }
.gesso__riga { display: block; width: 230px; height: 16px; margin-top: .9rem; }
.gesso__riga path { fill: none; stroke: var(--accento); stroke-width: 4; stroke-linecap: round; }
/* Un colore di gesso per frase: bianco su verde scuro regge il contrasto,
   l'accento serve solo alla È e alla riga. */
.gesso__frase--1 { --accento: var(--giallo); }
.gesso__frase--2 { --accento: #8ec3ee; }
.gesso__frase--3 { --accento: #ffd66b; }
.gesso__frase--4 { --accento: #f6a5c0; }

/* Comandi: freccia, quattro polaroid piccole un po' sovrapposte, freccia */
.comandi { display: flex; align-items: center; gap: .9rem; }
.freccia {
  width: 58px; height: 34px; border: 0; background: none; cursor: pointer; padding: 0;
  color: rgba(255, 255, 255, .85); transition: color .2s ease, transform .2s ease;
}
.freccia:hover { color: var(--giallo); transform: translateX(3px); }
.freccia--prima:hover { transform: translateX(-3px); }
.freccia svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.freccia--prima svg { transform: scaleX(-1); }
.mini { display: flex; align-items: flex-end; padding-top: 8px; }
.mini__foto {
  width: 82px; border: 0; padding: 4px 4px 13px; background: #fff; cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  transform: rotate(var(--giro)); opacity: .82; position: relative;
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.mini__foto + .mini__foto { margin-left: -16px; }
.mini__foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini__foto--1 { --giro: -5deg; } .mini__foto--2 { --giro: 4deg; }
.mini__foto--3 { --giro: -3deg; } .mini__foto--4 { --giro: 5deg; }
.mini__foto[aria-pressed="true"] {
  opacity: 1; z-index: 2; transform: rotate(0deg) translateY(-8px) scale(1.12);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .4);
}

/* La polaroid grande: stessa fotografia del fondo, nitida, con la puntina */
.hero__pila { position: relative; }
.polaroid {
  position: absolute; left: 0; right: 0; top: 50%; margin: 0;
  background: #fff; padding: 12px 12px 52px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .42);
  transform: translateY(-50%) rotate(var(--giro));
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s, transform .7s cubic-bezier(.4, 0, .2, 1);
}
.polaroid.aperta { opacity: 1; visibility: visible; transition-delay: .15s, 0s, 0s; }
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 26px; height: 26px;
  border-radius: 50%; background: var(--puntina); transform: translateX(-50%);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .35), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.polaroid__dida {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-family: Mali, Caveat, cursive; font-weight: 600; font-size: 1.25rem; color: var(--inchiostro);
}
.polaroid--1 { --giro: 3deg;  --puntina: var(--rosso); }
.polaroid--2 { --giro: -3deg; --puntina: var(--giallo); }
.polaroid--3 { --giro: 2deg;  --puntina: var(--blu); }
.polaroid--4 { --giro: -4deg; --puntina: var(--verde); }

/* Chi ha chiesto meno animazioni non vede scorrere niente: lo scatto è netto
   e il giro automatico non parte (lo spegne anche lo script). */
@media (prefers-reduced-motion: reduce) {
  .hero__fondo, .gesso__frase, .polaroid, .mini__foto, .freccia,
  .testata, .testata__riga, .testata__logo img { transition-duration: .01ms; }
}

/* ---- Chi siamo + team ---- */
.chisiamo { background: var(--crema); padding: 3.6rem 0 3.2rem; }
.chisiamo__riga { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
.chisiamo__testo p { margin-bottom: 1.4rem; }
.team { list-style: none; display: flex; gap: 1.1rem .95rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.team li { flex: 0 0 auto; text-align: center; font-size: .82rem; line-height: 1.35; }
.team img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto .5rem; box-shadow: var(--ombra); }
.team strong { display: block; }
.team span { color: var(--grigio); }

/* ---- Accessi rapidi ---- */
.accessi { padding: 3.4rem 0; background: #fff; }
.accessi__griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.accesso {
  display: grid; grid-template-rows: auto 150px;
  border-radius: 18px; overflow: hidden; box-shadow: var(--ombra);
  transition: transform .18s ease, box-shadow .18s ease;
}
.accesso:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(62, 90, 45, .2); }
.accesso__testo { padding: 1.5rem 1.3rem 1.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.accesso__icona { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.accesso h2 { font-size: 1.02rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .03em; }
.accesso p { font-size: .86rem; opacity: .93; }
.accesso .bottone { margin-top: auto; font-size: .74rem; padding: .55rem 1.25rem; }
.accesso__foto { background-size: cover; background-position: center; }
.accesso--verde  { background: var(--verde);  color: #fff; }
.accesso--giallo { background: var(--giallo); color: var(--inchiostro); }
.accesso--blu    { background: var(--blu);    color: #fff; }
.accesso--bianco { background: #fff; color: var(--inchiostro); }
.accesso--bianco .accesso__icona, .accesso--bianco h2 { color: var(--verde-scuro); }

/* ---- Fascia informativa ---- */
.fascia-info { background: var(--fascia); position: relative; padding-bottom: 3.4rem; }
.onda { display: block; width: 100%; height: 58px; margin-top: -1px; transform: translateY(-100%); position: absolute; top: 0; }
.onda path { fill: var(--fascia); }
.fascia-info { margin-top: 58px; }
.fascia-info__griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; padding-top: 2.6rem; }
.fascia-info p { margin-bottom: .8rem; font-size: .92rem; }
.lista-servizi { list-style: none; }
.lista-servizi li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .85rem; font-size: .88rem; }
.tondo {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: var(--ombra); display: grid; place-items: center; color: var(--verde-scuro);
}
.tondo svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lista-doc { list-style: none; }
.lista-doc li { margin-bottom: .6rem; }
.lista-doc a { display: flex; gap: .5rem; align-items: flex-start; text-decoration: none; font-size: .88rem; color: var(--inchiostro); }
.lista-doc a:hover { color: var(--verde-scuro); text-decoration: underline; }
.ico-doc { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linejoin: round; }

/* ---- Piè di pagina ---- */
.pie { background: #fff; padding: 2.4rem 0; }
.pie__riga { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.pie__centro { text-align: center; font-size: .85rem; }
.pie__centro a { color: var(--inchiostro); text-decoration: none; }
.pie__centro a:hover { color: var(--verde-scuro); text-decoration: underline; }
.pie__social { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--inchiostro); font-size: .82rem; line-height: 1.35; }
.pie__ig { width: 42px; height: 42px; fill: none; stroke: var(--verde-scuro); stroke-width: 1.6; }

/* ---- Adattivo ---- */

/* Le nove voci del menu stanno su una riga sola fino a 1160px: sotto si passa
   al menu a tendina e la banda contatti si compatta (nome della scuola via,
   restano indirizzo, telefono e mail). */
@media (max-width: 1159px) {
  .fascia-alta__riga { justify-content: center; row-gap: .15rem; column-gap: 1.3rem; padding-top: 6px; padding-bottom: 6px; }
  .fascia-alta__riga > span:first-child { display: none; }
  .fascia-alta__contatti { justify-content: center; row-gap: .15rem; column-gap: 1.3rem; }
  .testata__menu-btn { display: block; }
  .testata__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: var(--ombra);
    /* `nowrap` apposta: la regola di base ha `flex-wrap: wrap`, e su una
       colonna con un tetto d'altezza il menu si spezzava in due o tre colonne
       invece di scorrere. Si vedeva solo guardandolo. */
    flex-direction: column; flex-wrap: nowrap; padding: 1rem 22px; gap: .4rem;
    z-index: 6;
    /* La tendina non deve uscire dallo schermo. Il tetto non e' un valore
       fisso: lo misura lo script un attimo prima di aprirla, perche' dipende
       da quanto e' alta la testata in quel momento (a pagina ferma in alto e'
       il doppio che agganciata) e da quanto e' alto lo schermo. Il 70vh resta
       come ripiego se lo script non ha ancora scritto la misura. */
    max-height: var(--sotto-testata, 70vh); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .menu-aperto .testata__nav { display: flex; }
}
@media (max-width: 1020px) {
  .hero__scena { grid-template-columns: 1fr 360px; }
  .gesso__testo { font-size: 2.5rem; }
  .gesso__frase--3 .gesso__testo { font-size: 1.9rem; }
  .accessi__griglia { grid-template-columns: repeat(2, 1fr); }
  .fascia-info__griglia { grid-template-columns: repeat(2, 1fr); }
  .chisiamo__riga { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* Solo telefono e mail: l'indirizzo resta nei contatti in fondo alla pagina. */
  .fascia-alta__riga { padding-top: 5px; padding-bottom: 5px; }
  .fascia-alta__contatti > a:first-child { display: none; }
  .testata__logo img { width: 160px; }
  .testata-ridotta .testata__logo img { width: 92px; }
  /* Sul telefono la polaroid sta sopra, le frasi e i comandi sotto; il fondo
     non e' sfocato (costa disegno e non si vede). */
  .hero { height: auto; }
  .hero__fondo { filter: none; }
  .hero__scena { grid-template-columns: 1fr; row-gap: .5rem; padding-top: 1.6rem; padding-bottom: 1.4rem; }
  .hero__pila { order: -1; height: 250px; }
  .polaroid { left: 12%; right: 12%; padding: 8px 8px 36px; }
  .polaroid__dida { font-size: 1rem; bottom: 6px; }
  .hero__sinistra { padding: .6rem 0 0; }
  .gesso { min-height: 200px; }
  .gesso__pre { font-size: 1.3rem; }
  .gesso__testo { font-size: 2rem; }
  .gesso__frase--3 .gesso__testo { font-size: 1.5rem; }
  .gesso__riga { width: 170px; }
  .comandi { justify-content: center; gap: .5rem; margin-top: .8rem; }
  .mini__foto { width: 64px; padding: 3px 3px 10px; }
  .freccia { width: 44px; height: 28px; }
  .accessi__griglia { grid-template-columns: 1fr; }
  .fascia-info__griglia { grid-template-columns: 1fr; }
  .pie__riga { justify-content: center; text-align: center; }
}

/* ================= Pagine interne =================
   Aggiunta in coda: non modifica nessuna regola della home.
   Impianto: intestazione di pagina su crema, sezioni a fondo alternato
   (bianco / crema / fascia), schede e note dei segnaposto. */

.intestazione { background: var(--crema); padding: 2.9rem 0 2.5rem; }
.intestazione__occhiello {
  text-transform: uppercase; letter-spacing: .09em;
  font-size: .73rem; font-weight: 800; color: var(--verde-scuro); margin-bottom: .2rem;
}
.intestazione h1 { font-size: 3rem; margin-bottom: .2rem; }
.intestazione p { max-width: 60ch; }

.sezione { padding: 3rem 0; background: #fff; }
.sezione--crema  { background: var(--crema); }
.sezione--fascia { background: var(--fascia); }
.sezione h2 + .griglia, .sezione h2 + .passi, .sezione h2 + .due-colonne { margin-top: 1.4rem; }
.sezione h3 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--verde-cupo); margin-bottom: .45rem;
}
.sezione h2 ~ h2 { margin-top: 2.2rem; }

/* La misura di lettura si stringe sui figli, non sul contenitore: così tutte le
   sezioni restano allineate allo stesso margine sinistro. */
.prosa > * { max-width: 68ch; }
.prosa p + p { margin-top: .9rem; }
.prosa ul { margin: .9rem 0 0 1.15rem; }
.prosa li { margin-bottom: .35rem; }

/* Schede */
.griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.griglia--2 { grid-template-columns: repeat(2, 1fr); }
.scheda { background: #fff; border-radius: 18px; box-shadow: var(--ombra); padding: 1.5rem 1.4rem; }
.scheda--crema { background: var(--crema); box-shadow: none; }
.scheda p { font-size: .93rem; }
.scheda p + p { margin-top: .6rem; }
.scheda__icona {
  width: 38px; height: 38px; margin-bottom: .7rem;
  fill: none; stroke: var(--verde); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.scheda .cta-riga { margin-top: 1rem; }
/* Elenco dentro una scheda: stesso corpo del testo della scheda. */
.elenco-punti { margin: .5rem 0 0 1.1rem; font-size: .93rem; }
.elenco-punti li { margin-bottom: .3rem; }
/* Gli orari della pagina servizi: righe larghe, sopra le schede. */
.lista-orari { list-style: none; margin-bottom: 1.6rem; }
.lista-orari li { padding-left: 1.5rem; position: relative; margin-bottom: .55rem; max-width: 68ch; }
.lista-orari li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--verde);
}
.scheda .bottone { font-size: .74rem; padding: .55rem 1.25rem; }

/* Passi numerati (iscrizioni) */
.passi { list-style: none; counter-reset: passo; display: grid; gap: 1.5rem; max-width: 780px; }
.passi li { display: flex; gap: 1.1rem; align-items: flex-start; counter-increment: passo; }
.passi li::before {
  content: counter(passo);
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--verde); color: #fff; font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
}
.passi p { font-size: .95rem; }

/* Elenco documenti quando non è un elenco di link */
.lista-doc--pagina li span { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }

/* Nota dei segnaposto: stessa voce della nota del team, con un filetto che la marca */
.nota {
  border-left: 3px solid var(--giallo);
  padding: .45rem .95rem;
  margin-top: 1.1rem;
  font-size: .83rem; font-style: italic; color: var(--grigio);
  max-width: 68ch;
}

.cta-riga { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.4rem; }

.due-colonne { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: center; }
.foto-fascia { border-radius: 18px; box-shadow: var(--ombra); width: 100%; }
.nota + .foto-fascia, .griglia + .foto-fascia, .prosa + .foto-fascia { margin-top: 1.6rem; }
.foto-fascia--stretta { max-width: 760px; margin-bottom: 1.8rem; }

/* Mappa: un'immagine nostra dentro un collegamento. Niente iframe, niente
   richieste a terzi: il clic apre Google Maps in una scheda nuova. */
.mappa { margin: 1.8rem 0 0; }
.mappa__link {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  box-shadow: var(--ombra); line-height: 0;
}
.mappa__link img { width: 100%; height: auto; transition: transform .35s ease; }
.mappa__link:hover img, .mappa__link:focus-visible img { transform: scale(1.03); }
.mappa__etichetta {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .45rem; line-height: 1.2;
  background: var(--verde); color: #fff; font-weight: 800; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .68rem 1.4rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.mappa__link:hover .mappa__etichetta { background: var(--verde-scuro); }
.mappa__etichetta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mappa figcaption { margin-top: .6rem; line-height: 1.5; }

/* Pagine legali */
.legale > * { max-width: 74ch; }
.legale h2 { font-size: 1.12rem; color: var(--verde-cupo); margin: 1.9rem 0 .5rem; }
.legale h2:first-of-type { margin-top: 0; }
.legale p { font-size: .93rem; }
.legale p + p { margin-top: .7rem; }
.avviso-legale {
  display: flex; gap: .65rem; align-items: center;
  background: var(--giallo); color: var(--inchiostro);
  border-radius: 14px; padding: .85rem 1.15rem; margin-bottom: 1.8rem;
  font-weight: 800; font-size: .9rem;
}
.avviso-legale svg {
  flex: none; width: 22px; height: 22px;
  fill: none; stroke: var(--inchiostro); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

@media (max-width: 1020px) {
  .griglia { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .intestazione { padding: 2.2rem 0 1.9rem; }
  .intestazione h1 { font-size: 2.4rem; }
  .sezione { padding: 2.4rem 0; }
  .griglia, .griglia--2, .due-colonne { grid-template-columns: 1fr; }
  .due-colonne { gap: 1.6rem; }
  .passi li { gap: .85rem; }
}

/* Offerta formativa: il testo a sinistra, tre fotografie appese a destra,
   con lo stesso gesto delle polaroid della home. */
.lavoro { display: grid; grid-template-columns: 7fr 5fr; gap: 2.6rem; align-items: center; }
.tris { display: flex; justify-content: center; align-items: center; padding: 1.4rem 0 1rem; }
.tris__foto {
  width: 40%; margin: 0; position: relative;
  background: #fff; padding: 7px 7px 30px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
  transform: rotate(var(--giro));
}
.tris__foto + .tris__foto { margin-left: -10%; }
.tris__foto img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tris__foto::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px;
  border-radius: 50%; background: var(--puntina); transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), inset 0 -2px 0 rgba(0, 0, 0, .18);
}
.tris__foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 5px; text-align: center;
  font-family: Mali, Caveat, cursive; font-weight: 600; font-size: .95rem; color: var(--inchiostro);
}
.tris__foto--1 { --giro: -6deg; --puntina: var(--rosso); z-index: 1; }
.tris__foto--2 { --giro: 3deg;  --puntina: var(--giallo); z-index: 2; transform: rotate(var(--giro)) translateY(-16px); }
.tris__foto--3 { --giro: -2deg; --puntina: var(--blu); z-index: 1; }
@media (max-width: 1020px) {
  .lavoro { grid-template-columns: 1fr; gap: 1.2rem; }
  .tris__foto { width: 30%; }
}
@media (max-width: 760px) {
  .tris__foto { width: 38%; padding: 5px 5px 24px; }
  .tris__foto figcaption { font-size: .82rem; bottom: 3px; }
}
