/* FlamiArt ETS — landing (step 6: copy applicato). Colori misurati sul design del kit (confronta-design.py --colori) e sui file del kit. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Mrs Saint Delafield";
  src: url("../fonts/mrs-saint-delafield.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* fondi */
  --carta: #FDFCF8;        /* sezioni chiare (il colore più usato del design) */
  --avorio: #F9F6ED;       /* banda «Il prossimo passo» */
  --avorio-hero: #FBF8F1;  /* sfondo avorio del kit (11-sfondo-avorio) */
  --bianco: #FFFFFF;       /* intestazione e piede */
  --prugna: #201626;       /* banda «L'associazione» (12-sfondo-prugna) */
  /* testo e pulsanti */
  --notte: #18101F;        /* pulsanti scuri (04-freccia-diagonale-scura) */
  --inchiostro: #110D13;   /* titoli */
  --testo: #1A1622;        /* testi */
  --tenue: #5C5568;        /* righe in maiuscoletto */
  /* oro */
  --oro: #B47D20;          /* frecce e sottolineature (05-freccia-destra-oro) */
  --oro-scuro: #9A6814;    /* oro su fondo chiaro, contrasto AA */
  --oro-linea: #C6A04F;    /* linee e divisori (10-divisore-oro) */
  --oro-chiaro: #ECCB88;   /* bordo delle schede */
  --oro-luce: #D9A54A;     /* oro su fondo prugna */

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mano: "Mrs Saint Delafield", "Snell Roundhand", cursive;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --margine: clamp(16px, 3.9vw, 56px);
  --testata: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--testata) + 8px);
}
html.menu-aperto { overflow: hidden; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--testo);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--serif); color: var(--inchiostro); font-weight: 600; }
p { margin: 0; }
p, li, .faq__domanda span { text-wrap: pretty; }
.unito { white-space: nowrap; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; }
a, button, select, label { touch-action: manipulation; }
button, input, select, textarea { font: inherit; }

.salta {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--notte); color: var(--bianco); padding: 10px 16px; border-radius: 6px;
  text-decoration: none; transition: transform .2s var(--ease-out);
}
.salta:focus { transform: translateY(72px); }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

.contenitore {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--margine);
  padding-right: var(--margine);
}

/* ── elementi comuni ─────────────────────────────────────────────── */
.occhiello {
  font-family: var(--sans);
  font-size: 15px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--oro-scuro);
}
.titolo-sezione {
  text-align: center;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.titolo-sezione--chiaro { color: var(--bianco); text-align: left; font-weight: 500; letter-spacing: -0.01em; }
.titolo-sezione em, .attivita__titolo em, .invito__titolo em { font-weight: 500; }
.divisore { display: block; width: 72px; height: 2px; margin: 0 auto 22px; background: var(--oro-linea); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .14s var(--ease-out), background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn__freccia { flex: none; width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.btn--scuro { background: var(--notte); color: var(--bianco); border: 1.5px solid var(--oro); }

/* ── intestazione ─────────────────────────────────────────────────── */
.testata {
  position: sticky; top: 0; z-index: 50;
  background: var(--bianco);
  border-bottom: 1.5px solid var(--oro-linea);
  transition: box-shadow .3s ease, transform .3s var(--ease-out);
}
.testata.nascosta { transform: translateY(-101%); transition: box-shadow .3s ease, transform .2s var(--ease-out); }
.testata.scorsa { box-shadow: 0 8px 28px -18px rgba(17, 13, 19, .45); }
.testata__barra {
  max-width: 1440px; margin: 0 auto;
  height: var(--testata);
  padding: 0 var(--margine);
  display: flex; align-items: center; gap: 28px;
}
.testata__logo { flex: none; display: block; }
.testata__logo img { height: 86px; width: auto; }
.menu { flex: 1; }
.menu > ul { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 44px); padding-left: clamp(4px, 2vw, 32px); }
.menu a, .menu__apri {
  position: relative;
  font-size: 18px; color: var(--inchiostro); text-decoration: none;
  padding: 10px 0;
}
.menu > ul > li > a::after, .menu__apri::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--oro); clip-path: inset(0 100% 0 0);
  transition: clip-path .25s var(--ease-out);
}
.menu__gruppo { position: relative; }
.menu__apri {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer;
}
.menu__freccia { width: 15px; height: auto; rotate: 90deg; transition: rotate .2s var(--ease-out); }
.menu__apri[aria-expanded="true"] .menu__freccia { rotate: -90deg; }
.menu__tendina {
  position: absolute; top: calc(100% + 14px); left: -22px; z-index: 5;
  min-width: 330px;
  padding: 10px 0;
  background: var(--bianco);
  border: 1.5px solid var(--oro-chiaro);
  border-radius: 10px;
  box-shadow: 0 24px 48px -28px rgba(17, 13, 19, .45);
  transform-origin: 30px 0;
  animation: tendina .2s var(--ease-out);
}
.menu__tendina[hidden] { display: none; }
.menu__tendina a { display: block; padding: 11px 22px; font-size: 17.5px; transition: color .2s ease, background-color .2s ease; }
.menu__tendina a:active { background: var(--avorio); }
@keyframes tendina { from { opacity: 0; transform: translateY(-6px) scale(0.97); } to { opacity: 1; transform: none; } }
.testata__cta { flex: none; font-size: 17px; padding: 12px 22px; min-height: 50px; }
.testata__apri {
  display: none;
  margin-left: auto;
  min-height: 44px; padding: 8px 18px;
  background: transparent; color: var(--inchiostro);
  border: 1.5px solid var(--oro); border-radius: 8px;
  font-weight: 600; font-size: 16px; letter-spacing: .04em;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: transform .14s var(--ease-out);
}
.testata__apri:active { transform: scale(0.97); }

/* menu a tutto schermo (telefono e tablet) */
.menu-telefono {
  position: fixed; inset: 0; z-index: 80;
  height: 100dvh;
  background: var(--carta);
  padding: 0 var(--margine) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .2s ease, transform .2s var(--ease-out);
}
.menu-telefono.aperto { opacity: 1; transform: none; transition-duration: .32s; }
.menu-telefono[hidden] { display: none; }
.menu-telefono__testa {
  height: 72px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1.5px solid var(--oro-linea);
  margin: 0 calc(-1 * var(--margine)); padding: 0 var(--margine);
  background: var(--bianco);
}
.menu-telefono__logo { height: 52px; width: auto; }
.menu-telefono__chiudi {
  min-height: 44px; padding: 8px 18px;
  background: var(--notte); color: var(--bianco);
  border: 1.5px solid var(--oro); border-radius: 8px;
  font-weight: 600; font-size: 16px; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: transform .14s var(--ease-out);
}
.menu-telefono__chiudi:active { transform: scale(0.97); }
.menu-telefono nav { margin-top: 18px; }
.menu-telefono nav > ul > li { border-bottom: 1px solid var(--oro-chiaro); }
.menu-telefono nav a, .menu-telefono__etichetta {
  display: block; padding: 16px 0;
  font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--inchiostro); text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.menu-telefono__gruppo { padding-bottom: 10px; }
.menu-telefono__gruppo ul { padding-left: 2px; }
.menu-telefono__gruppo ul a {
  font-family: var(--sans); font-size: 19px; font-weight: 600; padding: 9px 0 9px 26px;
  background: url("/assets/img/freccia-destra-oro.png") no-repeat 0 50% / 15px auto;
}
.menu-telefono.aperto nav a, .menu-telefono.aperto .menu-telefono__etichetta { opacity: 1; transform: none; }
.menu-telefono.aperto nav > ul > li:nth-child(2) * { transition-delay: .04s; }
.menu-telefono.aperto nav > ul > li:nth-child(3) a { transition-delay: .08s; }
.menu-telefono.aperto nav > ul > li:nth-child(4) a { transition-delay: .12s; }
.menu-telefono nav a:active { color: var(--oro-scuro); }
.menu-telefono__cta { margin-top: 28px; align-self: flex-start; }

/* pulsante WhatsApp fisso, da telefono: compare dopo la hero */
.whatsapp-fisso {
  display: none;
  position: fixed; z-index: 55;
  left: 0; right: 0; margin: 0 auto;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: max-content; max-width: calc(100% - 32px);
  box-shadow: 0 14px 30px -14px rgba(17, 13, 19, .6);
  opacity: 0; translate: 0 18px; pointer-events: none;
  transition: transform .14s var(--ease-out), opacity .18s ease, translate .18s var(--ease-out), background-color .2s ease;
}
.whatsapp-fisso.visibile { opacity: 1; translate: 0 0; pointer-events: auto; transition-duration: .14s, .28s, .28s, .2s; }
html.con-cookie .whatsapp-fisso.visibile { translate: 0 -54px; }

/* ── hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: clamp(640px, 51.4vw, 880px);
  background: var(--avorio-hero);
  overflow: hidden;
}
.hero__scena { position: absolute; inset: 0; overflow: hidden; }
.hero__foto {
  position: absolute; top: 0; right: 0; left: 9%;
  width: 91%; height: 100%;
  object-fit: cover; object-position: 100% 28%;
  transform-origin: 70% 35%;
}
.hero__velo {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(251, 248, 241, 1) 0%,
    rgba(251, 248, 241, 1) 30%,
    rgba(251, 248, 241, .92) 37%,
    rgba(251, 248, 241, .72) 44%,
    rgba(251, 248, 241, .44) 52%,
    rgba(251, 248, 241, .16) 58%,
    rgba(251, 248, 241, 0) 64%);
}
.hero__palco { position: absolute; top: 0; bottom: 0; left: 0; right: 0; max-width: 1440px; margin: 0 auto; }
.hero__arco { position: absolute; left: 39%; top: 4%; height: 90%; width: auto; }
.cornice {
  position: absolute;
  background: var(--bianco);
  padding: 5px;
  box-shadow: 0 18px 40px -16px rgba(17, 13, 19, .55);
  transition: rotate .26s ease, scale .26s ease, box-shadow .26s ease;
}
.cornice img { width: 100%; height: 100%; object-fit: cover; }
.cornice--palloncini { left: 40%; top: 47%; width: 20%; aspect-ratio: 1 / 1.02; rotate: -3deg; }
.cornice--moda { left: 69.4%; top: 61%; width: 26.6%; aspect-ratio: 1.43; rotate: 2.6deg; }
.cornice--moda img { object-position: 70% 40%; }

.hero__testo {
  pointer-events: none;
  position: relative; z-index: 2;
  height: 100%;
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--margine);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__testo > * { pointer-events: auto; width: fit-content; max-width: 100%; }
.hero__titolo {
  font-size: clamp(2.6rem, 4.35vw, 4.1rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 10.4em;
  text-wrap: balance;
}
.hero__titolo em { font-weight: 600; letter-spacing: -0.02em; }
.hero__intro {
  margin-top: clamp(18px, 1.8vw, 26px);
  max-width: 22em;
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.4;
  color: var(--inchiostro);
}
.hero__attivita { margin-top: 18px; display: grid; gap: 10px; }
.hero__attivita a {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--inchiostro);
  font-size: 18px; font-weight: 600; line-height: 1.25;
  padding: 2px 0;
  -webkit-touch-callout: none;
  transition: color .2s ease, transform .14s var(--ease-out);
}
.hero__attivita a:active { transform: scale(0.98); }
.hero__logo {
  flex: none; width: 56px; height: 42px; overflow: hidden;
  border: 1px solid var(--oro-chiaro); border-radius: 5px;
  background: var(--notte);
  transition: border-color .2s ease;
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.hero__voce { background: linear-gradient(var(--oro), var(--oro)) no-repeat 0 100% / 0 1.5px; padding-bottom: 2px; transition: background-size .25s var(--ease-out); }
.hero__azioni { margin-top: clamp(24px, 2.6vw, 36px); }

/* entrata della hero: subito, in CSS. La foto grande non parte mai da opacity 0: si assesta e basta */
@keyframes sali { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes posa { from { opacity: 0; translate: 0 44px; } to { opacity: 1; translate: 0 0; } }
@keyframes compari { from { opacity: 0; } to { opacity: 1; } }
@keyframes assesta { from { scale: 1.06; } to { scale: 1; } }
@keyframes disegna { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sale-su { from { opacity: 0; translate: 0 100%; } to { opacity: 1; translate: 0 0; } }
@keyframes apri-risposta { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hero__foto { animation: assesta .9s var(--ease-out) both; }
.hero__titolo, .hero__intro, .hero__attivita li, .hero__azioni { animation: sali .85s var(--ease-out) both; }
.hero__intro { animation-delay: .07s; }
.hero__attivita li:nth-child(1) { animation-delay: .14s; }
.hero__attivita li:nth-child(2) { animation-delay: .19s; }
.hero__attivita li:nth-child(3) { animation-delay: .24s; }
.hero__azioni { animation-delay: .31s; }
.hero__arco { animation: disegna .9s var(--ease-in-out) .35s both; }
.cornice--palloncini { animation: posa .9s var(--ease-out) .3s both; }
.cornice--moda { animation: posa .9s var(--ease-out) .42s both; }

/* ── chi siamo · banda prugna ─────────────────────────────────────── */
.associazione { background: var(--prugna); color: var(--bianco); padding: clamp(28px, 2.6vw, 40px) 0; }
.associazione__griglia {
  display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center;
}
.associazione__foto {
  position: relative;
  border: 2px solid var(--oro-luce);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1.74;
}
.associazione__foto > img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out), transform .28s ease; }
.js .associazione__foto > img { scale: 1.08; }
.js .associazione__foto.in > img { scale: 1; }
.associazione__testo { position: relative; padding: 8px 0; }
.associazione .titolo-sezione { font-size: clamp(2.2rem, 4.1vw, 3.75rem); }
.associazione__intro { margin-top: 18px; max-width: 31em; font-size: clamp(1.04rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--bianco); opacity: .92; }
.associazione__linea { display: block; width: 70px; height: 2px; background: var(--oro-luce); margin-top: 28px; }
.scritta-mano {
  margin-top: 14px; padding: 6px 4px 10px;
  font-family: var(--mano); font-weight: 400;
  font-size: clamp(2.3rem, 3.4vw, 3.3rem); line-height: 1.15;
  color: var(--oro-luce);
  rotate: -4deg; transform-origin: 0 50%;
  width: fit-content;
  text-wrap: balance;
}

/* ── le tre attività · la scheda di progetto in grande ───────────── */
.attivita { padding: clamp(44px, 5vw, 76px) 0; }
.attivita + .attivita { padding-top: 0; }
.attivita__scheda {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  background: var(--carta);
  border: 1.5px solid var(--oro-chiaro);
  border-radius: 10px;
  padding: 11px;
  transition: border-color .25s ease, box-shadow .28s ease;
}
.attivita--invertita .attivita__media { order: 2; }
.attivita__media { display: grid; grid-template-rows: 1.5fr 1fr; gap: 8px; min-height: 540px; }
.scheda__foto, .scheda__logo { position: relative; overflow: hidden; border-radius: 4px; }
.scheda__foto img, .scheda__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scheda__foto img { object-fit: cover; transition: transform .28s ease; }
.scheda__logo--balloon { background: #fff; }
.scheda__logo--balloon img { object-fit: contain; }
.scheda__logo--dance { background: #160a1c; }
.scheda__logo--dance img { object-fit: contain; }
.scheda__logo--elite { background: #000; }
.scheda__logo--elite img { object-fit: contain; }
.attivita__corpo { align-self: center; padding: clamp(18px, 2.6vw, 40px) clamp(10px, 2.6vw, 44px) clamp(18px, 2.6vw, 40px) 0; }
.attivita--invertita .attivita__corpo { padding-left: clamp(10px, 2.6vw, 44px); padding-right: 0; }
.attivita__titolo { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; }
.attivita__titolo .nome { display: block; }
.attivita__corpo p { margin-top: 16px; max-width: 34em; font-size: clamp(1.04rem, 1.3vw, 1.18rem); line-height: 1.55; }
.attivita__titolo + p { margin-top: 20px; }
.elenco-oro { margin-top: 20px; display: grid; gap: 10px; }
.elenco-oro li {
  position: relative; padding-left: 38px;
  font-size: clamp(1.02rem, 1.25vw, 1.14rem); font-weight: 600; color: var(--inchiostro); line-height: 1.4;
}
.elenco-oro li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 24px; height: 11px;
  background: url("/assets/img/freccia-destra-oro.png") no-repeat 0 0 / contain;
}
.elenco-oro + p { margin-top: 20px; }
.attivita__azione { margin-top: 30px; }

/* ── come si partecipa · colonne con le linee oro ─────────────────── */
.passi { padding: clamp(44px, 5vw, 76px) 0; border-top: 1.5px solid var(--oro-chiaro); border-bottom: 1.5px solid var(--oro-chiaro); background: var(--carta); }
.passi__elenco { counter-reset: passo; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(28px, 3vw, 44px); }
.passo { counter-increment: passo; padding: 4px clamp(18px, 2.4vw, 36px); }
.passo + .passo { border-left: 1.5px solid var(--oro-linea); }
.passo:first-child { padding-left: 0; }
.passo::before {
  content: counter(passo);
  display: block; margin-bottom: 10px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.6rem, 3.4vw, 3.4rem); line-height: 1; color: var(--oro);
}
.passo p { font-size: clamp(1.04rem, 1.3vw, 1.18rem); line-height: 1.5; color: var(--inchiostro); }
.passo a { text-decoration-color: var(--oro); text-underline-offset: 3px; }
.passi__azione { margin-top: clamp(30px, 3.4vw, 48px); text-align: center; }

/* ── la finale e i contatti · banda avorio ────────────────────────── */
.invito { position: relative; overflow: hidden; background: var(--avorio); padding: clamp(44px, 4.4vw, 68px) 0; }
.invito__pennellata { position: absolute; left: -7%; bottom: 3%; width: 54%; max-width: none; pointer-events: none; }
.invito__titolo { font-size: clamp(2.3rem, 4.2vw, 3.9rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.invito__intro { margin-top: 16px; max-width: 30em; font-size: clamp(1.06rem, 1.45vw, 1.3rem); color: var(--inchiostro); }
.invito__azione { margin-top: 28px; }

.finale__contenitore {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px);
  min-height: clamp(380px, 32vw, 460px);
}
.finale__contenitore .invito__titolo { align-self: start; max-width: 9.5em; }
.finale__righe { align-self: center; display: grid; gap: 0; }
.finale__righe li {
  padding: 18px 0;
  border-top: 1.5px solid var(--oro-linea);
  font-size: clamp(1.06rem, 1.45vw, 1.28rem); line-height: 1.45; color: var(--inchiostro);
}
.finale__righe li:last-child { border-bottom: 1.5px solid var(--oro-linea); }

/* ── l'accademia è anche per chi cerca sicurezza in sé · banda prugna breve ── */
.sicurezza { padding: clamp(52px, 5.6vw, 84px) 0; text-align: center; }
.sicurezza__testo { max-width: 1000px; }
.sicurezza .titolo-sezione { text-align: center; margin: 0 auto; max-width: 15em; }
.sicurezza .titolo-sezione em { color: var(--oro-luce); }
.sicurezza .associazione__intro { margin: 16px auto 0; max-width: 36em; }
.sicurezza__linea { margin: 0 auto 26px; }

/* ── domande frequenti ────────────────────────────────────────────── */
.domande { padding: clamp(48px, 5vw, 80px) 0; }
.domande__contenitore { max-width: 960px; }
.faq { margin-top: clamp(26px, 3vw, 40px); border-top: 1.5px solid var(--oro-linea); }
.faq__voce { border-bottom: 1.5px solid var(--oro-linea); }
.faq__titolo { margin: 0; font-size: inherit; }
.faq__domanda {
  width: 100%; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 2px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: clamp(1.18rem, 1.7vw, 1.45rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--inchiostro);
  transition: color .2s ease;
}
.faq__freccia { flex: none; width: 22px; height: auto; rotate: 90deg; transition: rotate .22s var(--ease-out); }
.faq__domanda[aria-expanded="true"] .faq__freccia { rotate: -90deg; }
.faq__domanda:active span { opacity: .75; }
.faq__risposta { padding: 0 48px 22px 2px; }
.faq__risposta:not([hidden]) { animation: apri-risposta .24s var(--ease-out); }
.faq__risposta p { max-width: 44em; font-size: clamp(1.04rem, 1.3vw, 1.16rem); line-height: 1.6; }

/* ── contatti e modulo ────────────────────────────────────────────── */
.contatti { padding: clamp(48px, 5vw, 80px) 0; }
.contatti__griglia { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contatti__testo { position: relative; z-index: 1; padding-top: 8px; }
.contatti__indirizzo { margin-top: 18px; font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.contatti__indirizzo a { text-decoration-color: var(--oro); text-underline-offset: 4px; }
.modulo {
  position: relative; z-index: 1;
  background: var(--bianco);
  border: 1.5px solid var(--oro-chiaro);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 30px 60px -44px rgba(32, 22, 38, .45);
}
.modulo__titolo { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.015em; line-height: 1.15; }
.modulo__intro { margin-top: 8px; font-size: 17px; }
.modulo__campi { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.campo { display: grid; gap: 6px; align-content: start; }
.campo--largo { grid-column: 1 / -1; }
.campo label { font-size: 15.5px; font-weight: 600; color: var(--inchiostro); }
.campo input, .campo select, .campo textarea {
  width: 100%;
  font-size: 17px; line-height: 1.4; color: var(--inchiostro);
  padding: 12px 14px;
  background: var(--carta);
  border: 1.5px solid var(--oro-chiaro);
  border-radius: 8px;
  transition: border-color .2s ease, background-color .2s ease;
}
.campo select { min-height: 50px; }
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--oro); background: var(--bianco); }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--oro); outline-offset: 1px; }
.campo [aria-invalid="true"] { border-color: #a3332a; }
.campo__errore { font-size: 15px; font-weight: 600; color: #a3332a; }
.campo__errore:not([hidden]) { animation: apri-risposta .2s var(--ease-out); }
.campo__nota, .modulo__nota { font-size: 15px; color: var(--tenue); }
.modulo__nota { margin-top: 16px; }
.campo--spunta { margin-top: 14px; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.campo--spunta input { width: 24px; height: 24px; margin: 0; accent-color: var(--oro); cursor: pointer; }
.campo--spunta label { font-weight: 400; font-size: 16.5px; cursor: pointer; }
.campo--spunta label a { text-decoration-color: var(--oro); text-underline-offset: 3px; }
.campo--spunta .campo__errore { grid-column: 1 / -1; }
.modulo__invia { margin-top: 22px; }
.modulo__esito { margin-top: 16px; font-weight: 600; color: #a3332a; }
.modulo__conferma {
  margin-top: 18px; padding: 16px 18px;
  border-left: 3px solid var(--oro); background: var(--avorio); border-radius: 0 8px 8px 0;
}
.modulo__conferma:not([hidden]) { animation: apri-risposta .28s var(--ease-out); }
.modulo__conferma-titolo { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--inchiostro); }

/* ── piede ────────────────────────────────────────────────────────── */
.piede { background: var(--bianco); padding: clamp(32px, 2.8vw, 44px) 0 22px; }
.piede__griglia { display: grid; grid-template-columns: 1.55fr 1.15fr 1.35fr .9fr; }
.piede__marchio p { font-size: 17px; line-height: 1.6; text-wrap: balance; }
.piede__nome { font-family: var(--serif); font-size: 29px !important; font-weight: 600; color: var(--inchiostro); letter-spacing: -0.01em; line-height: 1.2 !important; margin-bottom: 8px; }
.piede__colonna { border-left: 1.5px solid var(--oro-linea); padding: 2px 20px 2px clamp(20px, 2.6vw, 40px); font-size: 17px; line-height: 1.6; }
.piede__colonna p + p { margin-top: 6px; }
.piede__colonna ul { display: grid; gap: 4px; }
.piede__colonna a { text-decoration: none; display: inline-block; padding: 2px 0; transition: color .2s ease; }
.piede__colonna a:active { color: var(--oro-scuro); }
.piede__fondo {
  margin-top: 30px; padding-top: 16px;
  border-top: 1.5px solid var(--oro-linea);
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  font-size: 15.5px;
}
.piede__fondo a { text-decoration: none; }
.credit a { text-decoration: underline; text-decoration-color: var(--oro); text-underline-offset: 3px; }
.piede__legale span { margin: 0 .35em; color: var(--oro); }

/* ── banner cookie (una riga) ─────────────────────────────────────── */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--bianco);
  border-top: 1px solid var(--oro-chiaro);
  font-size: 14px; line-height: 1.3;
  box-shadow: 0 -8px 24px -18px rgba(17, 13, 19, .4);
  transition: opacity .2s ease, transform .2s var(--ease-out);
  animation: sale-su .45s var(--ease-out) 1.2s backwards;
}
.cookie[hidden] { display: none; }
.cookie.via { opacity: 0; transform: translateY(100%); }
.cookie a { text-decoration: underline; text-underline-offset: 2px; }
.cookie__ok {
  flex: none; min-height: 34px; padding: 4px 16px;
  background: var(--notte); color: var(--bianco);
  border: 1px solid var(--oro); border-radius: 6px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: transform .14s var(--ease-out);
}
.cookie__ok:active { transform: scale(0.97); }

/* ── entrate allo scroll: una volta sola (.reveal → .in) ───────────── */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }
/* la frase a mano si scrive da sinistra, la pennellata si stende, le linee oro si tracciano */
.js .reveal--scrivi, .js .reveal--pennellata, .js .reveal--linea {
  opacity: 1; transform: none;
  clip-path: inset(0 100% 0 0);
}
.js .reveal--scrivi { transition: clip-path .9s var(--ease-in-out) .4s; }
.js .reveal--pennellata { transition: clip-path .9s var(--ease-in-out) .1s; }
.js .reveal--linea { transition: clip-path .8s var(--ease-in-out) .2s; }
.js .reveal--scrivi.in, .js .reveal--pennellata.in, .js .reveal--linea.in { clip-path: inset(0 0 0 0); }

/* ── hover solo col mouse ─────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .menu > ul > li > a:hover::after, .menu__apri:hover::after { clip-path: inset(0 0 0 0); }
  .menu__tendina a:hover { color: var(--oro-scuro); background: var(--avorio); }
  .btn--scuro:hover { background: var(--prugna); border-color: var(--oro-luce); }
  .btn:hover .btn__freccia { transform: translate(3px, -3px); }
  .hero__attivita a:hover .hero__voce { background-size: 100% 1.5px; }
  .hero__attivita a:hover .hero__logo { border-color: var(--oro); }
  .attivita__scheda:hover { border-color: var(--oro-linea); box-shadow: 0 26px 52px -36px rgba(32, 22, 38, .5); }
  .attivita__scheda:hover .scheda__foto img { transform: scale(1.04); }
  .associazione__foto:hover > img { transform: scale(1.04); }
  .faq__domanda:hover { color: var(--oro-scuro); }
  .passo a:hover, .contatti__indirizzo a:hover, .campo--spunta label a:hover { color: var(--oro-scuro); }
  .piede__colonna a:hover, .piede__fondo a:hover { color: var(--oro-scuro); }
  .testata__apri:hover { background: var(--avorio); }
}
/* le due foto della hero rispondono al mouse: si raddrizzano e si sollevano */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cornice:hover { rotate: 0deg; scale: 1.04; box-shadow: 0 26px 50px -18px rgba(17, 13, 19, .6); }
}

/* ── meno movimento: si tolgono gli spostamenti, restano le dissolvenze ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .6s ease; }
  .js .reveal--scrivi, .js .reveal--pennellata, .js .reveal--linea { clip-path: none; opacity: 0; transition: opacity .8s ease; }
  .js .reveal--scrivi.in, .js .reveal--pennellata.in, .js .reveal--linea.in { opacity: 1; }
  .hero__foto { animation: none; }
  .hero__titolo, .hero__intro, .hero__attivita li, .hero__azioni,
  .cornice--palloncini, .cornice--moda, .cookie { animation-name: compari; }
  .hero__arco { animation: compari .9s ease .3s both; }
  .js .associazione__foto > img { scale: 1; }
  .testata.nascosta { transform: none; }
  .menu-telefono, .menu-telefono nav a, .menu-telefono__etichetta { transform: none; }
  .menu__tendina, .faq__risposta:not([hidden]), .campo__errore:not([hidden]), .modulo__conferma:not([hidden]) { animation-name: compari; }
  .whatsapp-fisso, .whatsapp-fisso.visibile, html.con-cookie .whatsapp-fisso.visibile { translate: none; }
  html.con-cookie .whatsapp-fisso.visibile { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .scheda__foto img, .btn__freccia, .cornice { transition: none; }
  .attivita__scheda:hover .scheda__foto img, .associazione__foto:hover > img { transform: none; }
}

/* ── schermi medi ─────────────────────────────────────────────────── */
@media (max-width: 1320px) {
  .testata__barra { gap: 20px; }
  .menu a, .menu__apri { font-size: 16.5px; }
  .menu > ul { gap: clamp(16px, 2vw, 28px); padding-left: 8px; }
  .testata__cta { padding: 10px 18px; font-size: 16px; }
  .testata__logo img { height: 70px; }
}
/* sotto i 1120 px il menu passa a tutto schermo; il pulsante resta */
@media (max-width: 1119px) {
  .menu { display: none; }
  .testata__cta { margin-left: auto; }
  .testata__apri { display: inline-flex; align-items: center; margin-left: 0; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .hero { height: clamp(640px, 68vw, 780px); }
  .hero__titolo { font-size: 4.3vw; }
  .hero__intro { font-size: 1.05rem; max-width: 20em; }
  .hero__attivita a { font-size: 16px; }
  .hero .btn { font-size: 17px; padding: 12px 22px; min-height: 48px; }
  .cornice--palloncini { left: 50%; top: 56%; width: 17.5%; }
  .cornice--moda { left: 72%; top: 64%; width: 25%; }
  .attivita__media { min-height: 460px; }
}

/* ── telefono e tablet stretto ────────────────────────────────────── */
@media (max-width: 899px) {
  :root { --testata: 72px; }
  body { font-size: 17px; padding-bottom: 84px; }
  .testata__logo img { height: 52px; }
  .testata__cta { display: none; }
  .testata__apri { margin-left: auto; }
  .whatsapp-fisso { display: inline-flex; }

  /* hero: i testi sull'avorio, poi la scena */
  .hero { height: auto; display: flex; flex-direction: column; overflow: hidden; }
  .hero__testo { order: 1; height: auto; padding-top: 32px; padding-bottom: 30px; }
  .hero__titolo { font-size: clamp(2rem, 8.4vw, 3.4rem); max-width: 11em; }
  .hero__intro { max-width: 24em; }
  .hero__attivita a { font-size: 16.5px; gap: 12px; }
  .hero__logo { width: 50px; height: 38px; }
  .hero__scena { order: 2; position: relative; inset: auto; height: clamp(400px, 112vw, 600px); }
  .hero__foto { left: 0; width: 100%; object-position: 100% 30%; }
  .hero__velo {
    background: linear-gradient(180deg,
      rgba(251, 248, 241, 1) 0%,
      rgba(251, 248, 241, .55) 9%,
      rgba(251, 248, 241, 0) 24%);
  }
  .hero__arco { left: 6%; top: 6%; height: 90%; }
  .cornice { padding: 4px; }
  .cornice--palloncini { left: 4%; top: 50%; width: 40%; }
  .cornice--moda { left: auto; right: 4%; top: 66%; width: 50%; }

  /* da telefono: prima il testo, poi la foto, poi la scritta, così la foto non sta subito sotto quella della hero */
  .associazione { padding: 44px 0 40px; }
  .associazione__griglia { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .associazione__testo { display: contents; }
  .associazione__testo > .titolo-sezione { order: 1; }
  .associazione__testo > .associazione__intro { order: 2; }
  .associazione__testo > .associazione__linea { order: 3; }
  .associazione__foto { order: 4; margin-top: 26px; aspect-ratio: 1.45; }
  .associazione__testo > .scritta-mano { order: 5; }
  .scritta-mano { margin-top: 16px; }

  .attivita { padding: 40px 0; }
  .attivita + .attivita { padding-top: 0; }
  .attivita__scheda { grid-template-columns: 1fr; gap: 0; padding: 9px; }
  .attivita--invertita .attivita__media { order: 0; }
  .attivita__media { min-height: 0; grid-template-rows: none; }
  .attivita__foto { aspect-ratio: 1.75; }
  .attivita__logo { aspect-ratio: 2.3; }
  .attivita__corpo, .attivita--invertita .attivita__corpo { padding: 22px 10px 14px; }
  .attivita__titolo .nome { display: inline; }
  .attivita__titolo .nome.unito { display: block; }
  .attivita__azione .btn { width: 100%; }

  .passi__elenco { grid-template-columns: 1fr; margin-top: 22px; }
  .passo, .passo:first-child { padding: 18px 0 16px; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; }
  .passo + .passo { border-left: 0; border-top: 1.5px solid var(--oro-linea); }
  .passo::before { margin: 0; font-size: 2.3rem; }

  .finale { padding-bottom: 150px; }
  .finale__contenitore { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .invito__pennellata { width: 130%; left: -18%; bottom: 10px; }

  .sicurezza { padding: 48px 0; }

  .faq__domanda { padding: 18px 2px; gap: 16px; }
  .faq__risposta { padding-right: 8px; }

  .contatti__griglia { grid-template-columns: 1fr; gap: 28px; }
  .modulo { padding: 22px 18px; }
  .modulo__campi { grid-template-columns: 1fr; gap: 16px; }

  .piede__griglia { grid-template-columns: 1fr; gap: 20px; }
  .piede__colonna { padding-left: 16px; }
  .piede__fondo { flex-direction: column; align-items: flex-start; gap: 6px; }
  .piede__marchio p { font-size: 16.5px; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero__scena { height: 560px; }
  .cornice--palloncini { width: 30%; }
  .cornice--moda { width: 38%; }
}

@media (max-width: 420px) {
  .cookie { font-size: 12px; gap: 10px; padding-left: 10px; padding-right: 10px; }
  .cookie p { white-space: nowrap; }
  .cookie__ok { padding: 4px 12px; font-size: 13px; }
  .btn { font-size: 17px; padding: 13px 20px; }
}

/* ── pagine di servizio: privacy e 404 ────────────────────────────── */
.informativa { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px); }
.informativa__testa { text-align: center; }
.informativa__testa .occhiello { display: block; margin-bottom: 10px; }
.informativa__testa p:not(.occhiello) { margin-top: 10px; font-size: clamp(1.04rem, 1.4vw, 1.25rem); }
.informativa__corpo { max-width: 860px; margin-top: clamp(28px, 3vw, 44px); }
.informativa h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.015em; line-height: 1.15; margin: 36px 0 12px; }
.informativa h3 { font-size: 1.2rem; margin: 26px 0 6px; }
.informativa__corpo p { margin-top: 10px; line-height: 1.6; }
.informativa__corpo a { text-decoration-color: var(--oro); text-underline-offset: 3px; }
.informativa__torna { margin-top: 40px !important; }
.informativa a[href^="https://wa.me"] { white-space: nowrap; }

.non-trovata {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--testata) - 220px);
  display: flex; align-items: center;
  padding: clamp(48px, 7vw, 110px) 0;
  background: var(--avorio-hero);
}
.non-trovata__testo { position: relative; z-index: 1; }
.non-trovata__titolo { margin-top: 14px; font-size: clamp(2.8rem, 6.5vw, 5.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.non-trovata__intro { margin-top: 20px; max-width: 30em; font-size: clamp(1.06rem, 1.5vw, 1.3rem); }
.non-trovata .btn { margin-top: 32px; }
.non-trovata__attivita { margin-top: 40px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--tenue); }
.non-trovata__arco { position: absolute; right: 10%; top: 6%; height: 88%; width: auto; opacity: .9; }
@media (max-width: 899px) {
  .non-trovata__arco { right: -62%; top: 2%; opacity: .45; }
}
