/* ZioFest — foglio di stile */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/fredoka-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/fredoka-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/nunito-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/nunito-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --crema: #FFF8EF;
  --carta: #FFFFFF;
  --sabbia: #FBEFDF;
  --inchiostro: #1C2150;
  --testo: #4A4E70;
  --tenue: #7A7E9A;
  --bordo: #EADFCF;
  --blu: #2B47D6;
  --blu-scuro: #1A2C9E;
  --blu-notte: #141B4D;
  --giallo: #FFC53D;
  --giallo-chiaro: #FFF1C7;
  --corallo: #FF6A55;
  --corallo-chiaro: #FFE3DD;
  --menta: #1FB393;
  --menta-chiaro: #D6F5EC;
  --rosa: #FF7FAE;
  --rosa-chiaro: #FFE2EC;
  --lilla: #8A73F0;
  --lilla-chiaro: #ECE7FF;
  --wa: #1FAF55;
  --wa-scuro: #178C43;

  --f-titoli: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --f-testo: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --raggio: 22px;
  --raggio-piccolo: 14px;
  --ombra: 0 1px 2px rgba(28, 33, 80, .06), 0 8px 24px -8px rgba(28, 33, 80, .16);
  --ombra-alta: 0 2px 4px rgba(28, 33, 80, .06), 0 24px 48px -16px rgba(28, 33, 80, .28);
  --max: 1200px;
  --testata: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--testata) + 12px); }
body {
  margin: 0;
  font-family: var(--f-testo);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--testo);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blu); }
h1, h2, h3 { font-family: var(--f-titoli); color: var(--inchiostro); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }
[hidden] { display: none !important; }
.nascosto { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--blu); outline-offset: 3px; border-radius: 6px; }

.salta { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--inchiostro); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.salta:focus { top: 12px; }

.contenitore { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.contenitore--stretto { max-width: 860px; }

/* ---------- Bottoni ---------- */
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--f-titoli); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  color: #fff; background: var(--corallo);
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(255, 106, 85, .6);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.bottone svg { width: 20px; height: 20px; flex: none; }
.bottone:hover { transform: translateY(-2px); background: #F7563F; box-shadow: 0 10px 22px -8px rgba(255, 106, 85, .7); }
.bottone:active { transform: translateY(0); }
.bottone--grande { min-height: 56px; padding: 14px 28px; font-size: 1.125rem; }
.bottone--piccolo { min-height: 42px; padding: 8px 18px; font-size: .98rem; }
.bottone--whatsapp { background: var(--wa); box-shadow: 0 6px 16px -6px rgba(31, 175, 85, .55); }
.bottone--whatsapp:hover { background: var(--wa-scuro); box-shadow: 0 10px 22px -8px rgba(31, 175, 85, .65); }
.bottone--giallo { background: var(--giallo); color: var(--inchiostro); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.bottone--giallo:hover { background: #FFD25F; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .4); }
.bottone--bianco { background: #fff; color: var(--blu-scuro); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .3); }
.bottone--bianco:hover { background: #fff; color: var(--blu); }
.bottone--contorno { background: transparent; color: var(--inchiostro); border-color: var(--inchiostro); box-shadow: none; }
.bottone--contorno:hover { background: var(--inchiostro); color: #fff; box-shadow: none; }

/* ---------- Testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* il vetro sta su un livello a parte: un backdrop-filter sulla testata
   farebbe da contenitore al menu fisso del telefono e lo taglierebbe */
.testata::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 248, 239, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
body.menu-aperto .testata::before { background: var(--crema); }
.testata.e-scesa { border-bottom-color: var(--bordo); box-shadow: 0 6px 20px -14px rgba(28, 33, 80, .35); }
.testata__barra { display: flex; align-items: center; gap: 24px; height: var(--testata); }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.logo__palloncino { width: 26px; height: 36px; color: var(--corallo); transform: rotate(-10deg); flex: none; }
.logo__testo { font-family: var(--f-titoli); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--blu); letter-spacing: -.02em; }
.logo__testo b { font-weight: 700; color: var(--corallo); }
.logo--chiaro .logo__testo { color: #fff; }
.logo--chiaro .logo__testo b { color: var(--giallo); }
.logo--chiaro .logo__palloncino { color: var(--giallo); }

.menu { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.menu a {
  font-weight: 700; font-size: .98rem; color: var(--inchiostro); text-decoration: none;
  padding: 8px 12px; border-radius: 999px; transition: background-color .15s ease, color .15s ease;
}
.menu a:hover { background: var(--sabbia); color: var(--blu); }
.menu .menu__solo-tel { display: none; }

.testata__azioni { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
.testata__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--inchiostro); text-decoration: none; white-space: nowrap; }
.testata__tel svg { width: 18px; height: 18px; color: var(--corallo); }
.testata__tel:hover { color: var(--blu); }

.hamburger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--carta); box-shadow: var(--ombra); cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--inchiostro); transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Testi comuni ---------- */
.etichetta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--carta); box-shadow: var(--ombra);
  font-weight: 800; font-size: .92rem; color: var(--inchiostro);
}
.etichetta svg { width: 18px; height: 18px; color: var(--giallo); }
.occhiello { font-family: var(--f-titoli); font-weight: 600; font-size: 1rem; color: var(--corallo); margin-bottom: 10px; }
.intestazione { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.intestazione h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); }
.intestazione p:not(.occhiello) { margin-top: 16px; font-size: 1.125rem; }
.intestazione--chiara h2 { color: #fff; }
.intestazione--chiara .occhiello { color: var(--giallo); }

.sezione { padding: 96px 0; position: relative; }
.sezione--carta { background: var(--carta); }

/* ---------- Apertura ---------- */
.apertura { position: relative; padding: 56px 0 88px; overflow: hidden; }
.coriandoli {
  position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(circle at 6% 18%, var(--giallo) 0 6px, transparent 7px),
    radial-gradient(circle at 46% 8%, var(--menta) 0 5px, transparent 6px),
    radial-gradient(circle at 94% 12%, var(--rosa) 0 7px, transparent 8px),
    radial-gradient(circle at 3% 82%, var(--lilla) 0 5px, transparent 6px),
    radial-gradient(circle at 52% 92%, var(--corallo) 0 6px, transparent 7px),
    radial-gradient(circle at 97% 70%, var(--blu) 0 5px, transparent 6px);
}
.apertura__griglia { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.apertura__titolo { margin-top: 22px; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.1rem); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; }
.evidenzia { color: var(--blu); position: relative; white-space: normal; }
.evidenzia { background: linear-gradient(transparent 68%, var(--giallo-chiaro) 68%, var(--giallo-chiaro) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.apertura__sotto { margin-top: 22px; font-size: 1.2rem; max-width: 540px; }
.apertura__bottoni { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.apertura__fiducia { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.apertura__fiducia li { display: flex; flex-direction: column; padding: 12px 18px; background: var(--carta); border-radius: var(--raggio-piccolo); box-shadow: var(--ombra); min-width: 128px; }
.apertura__fiducia b { font-family: var(--f-titoli); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--inchiostro); }
.apertura__fiducia span { font-size: .9rem; font-weight: 700; color: var(--tenue); line-height: 1.3; }

.apertura__foto { position: relative; height: 600px; }
.polaroid {
  margin: 0; background: #fff; padding: 12px 12px 0; border-radius: 6px;
  box-shadow: var(--ombra-alta);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--sabbia); }
.polaroid figcaption { font-family: var(--f-titoli); font-weight: 500; font-size: 1.05rem; color: var(--inchiostro); text-align: center; padding: 12px 6px 14px; line-height: 1.2; }
.apertura__foto .polaroid { position: absolute; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.polaroid--1 { width: 300px; left: 0; top: 130px; transform: rotate(-5deg); z-index: 2; }
.polaroid--2 { width: 238px; right: 4px; top: 0; transform: rotate(5deg); z-index: 1; }
.polaroid--3 { width: 238px; right: 34px; top: 312px; transform: rotate(-3deg); z-index: 1; }
.apertura__foto .polaroid:hover { transform: rotate(0) scale(1.03); z-index: 4; }
.palloncino { position: absolute; width: 46px; height: 64px; animation: galleggia 6s ease-in-out infinite; }
.palloncino--giallo { color: var(--giallo); left: 30px; top: 40px; }
.palloncino--corallo { color: var(--corallo); left: 60px; bottom: 30px; z-index: 3; width: 54px; height: 76px; animation-delay: -2s; }
.palloncino--menta { color: var(--menta); left: 54%; top: 120px; width: 38px; height: 54px; animation-delay: -4s; }
@keyframes galleggia { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ---------- Marchi ---------- */
.marchi { padding: 28px 0 32px; background: var(--carta); border-block: 1px solid var(--bordo); overflow: hidden; }
.marchi__titolo { text-align: center; font-weight: 800; font-size: .95rem; color: var(--tenue); margin-bottom: 16px; padding: 0 24px; }
.marchi__nastro { display: flex; width: max-content; animation: scorri 48s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marchi:hover .marchi__nastro { animation-play-state: paused; }
.marchi__lista { list-style: none; display: flex; margin: 0; padding: 0; }
.marchi__lista li { font-family: var(--f-titoli); font-weight: 600; font-size: 1.35rem; color: #A3A6BD; white-space: nowrap; padding: 0 28px; position: relative; }
.marchi__lista li::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--bordo); }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ---------- Schede feste ---------- */
.schede { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scheda {
  --c: var(--corallo); --c-chiaro: var(--corallo-chiaro);
  display: flex; flex-direction: column; background: var(--carta); border-radius: var(--raggio);
  overflow: hidden; box-shadow: var(--ombra); transition: transform .25s ease, box-shadow .25s ease;
}
.scheda:hover { transform: translateY(-6px); box-shadow: var(--ombra-alta); }
.scheda--blu { --c: var(--blu); --c-chiaro: #E2E7FF; }
.scheda--giallo { --c: #E0A000; --c-chiaro: var(--giallo-chiaro); }
.scheda--lilla { --c: var(--lilla); --c-chiaro: var(--lilla-chiaro); }
.scheda--menta { --c: var(--menta); --c-chiaro: var(--menta-chiaro); }
.scheda--rosa { --c: #EF4F8A; --c-chiaro: var(--rosa-chiaro); }
.scheda__foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-chiaro); }
.scheda__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.scheda:hover .scheda__foto img { transform: scale(1.05); }
.scheda__corpo { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.scheda h3 { font-size: 1.5rem; }
.scheda h3::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 3px; background: var(--c); margin-bottom: 14px; }
.scheda p { margin-top: 10px; }
.scheda__punti { list-style: none; padding: 0; margin: auto 0 0; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.scheda__punti li { font-size: .88rem; font-weight: 800; color: var(--c); background: var(--c-chiaro); padding: 5px 12px; border-radius: 999px; line-height: 1.3; }

/* ---------- Extra ---------- */
.extra { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.extra__foto { position: relative; height: 480px; }
.extra__img { position: absolute; width: 66%; aspect-ratio: 1; object-fit: cover; border-radius: var(--raggio); box-shadow: var(--ombra-alta); border: 8px solid #fff; }
.extra__img--a { left: 0; top: 0; transform: rotate(-3deg); }
.extra__img--b { right: 0; bottom: 0; transform: rotate(3deg); }
.extra__testo h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); }
.extra__testo > p:not(.occhiello) { margin-top: 16px; font-size: 1.125rem; }
.extra__lista { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.extra__lista li { display: flex; gap: 16px; align-items: flex-start; }
.extra__lista b { display: block; font-family: var(--f-titoli); font-weight: 600; font-size: 1.15rem; color: var(--inchiostro); line-height: 1.3; }
.pallino { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 0 5px var(--pc, var(--sabbia)); }
.pallino--rosa { background: var(--rosa); --pc: var(--rosa-chiaro); }
.pallino--giallo { background: var(--giallo); --pc: var(--giallo-chiaro); }
.pallino--blu { background: var(--blu); --pc: #E2E7FF; }
.pallino--menta { background: var(--menta); --pc: var(--menta-chiaro); }
.pallino--corallo { background: var(--corallo); --pc: var(--corallo-chiaro); }

/* ---------- Età ---------- */
.eta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.eta__scheda { --c: var(--giallo); --c-chiaro: var(--giallo-chiaro); padding: 30px 26px 32px; border-radius: var(--raggio); background: var(--c-chiaro); position: relative; overflow: hidden; }
.eta__scheda::after { content: ""; position: absolute; right: -36px; top: -36px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .18; }
.eta__scheda--1 { --c: #F3A900; --c-chiaro: var(--giallo-chiaro); }
.eta__scheda--2 { --c: #EF4F8A; --c-chiaro: var(--rosa-chiaro); }
.eta__scheda--3 { --c: var(--menta); --c-chiaro: var(--menta-chiaro); }
.eta__scheda--4 { --c: var(--lilla); --c-chiaro: var(--lilla-chiaro); }
.eta__anni { font-family: var(--f-titoli); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--c); letter-spacing: -.02em; }
.eta__anni small { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.eta__scheda h3 { font-size: 1.3rem; margin-top: 18px; }
.eta__scheda p:last-child { margin-top: 8px; font-size: 1rem; }

/* ---------- Come funziona ---------- */
.sezione--blu { background: var(--blu); color: rgba(255, 255, 255, .86); padding: 104px 0; margin: 48px 0; }
.onda { position: absolute; left: 0; right: 0; height: 48px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C180 6 360 0 540 14s360 34 540 24 270-30 360-34v44z' fill='%232B47D6'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.onda--sopra { top: -47px; }
.onda--sotto { bottom: -47px; transform: scale(-1, -1); }
.passi { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.passo { position: relative; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--raggio); padding: 30px 26px; }
.passo__numero { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--giallo); color: var(--inchiostro); font-family: var(--f-titoli); font-weight: 700; font-size: 1.5rem; }
.passo:nth-child(2) .passo__numero { background: var(--rosa); }
.passo:nth-child(3) .passo__numero { background: #5FE0C1; }
.passo:nth-child(4) .passo__numero { background: #FF9C8C; }
.passo h3 { color: #fff; font-size: 1.3rem; margin-top: 20px; }
.passo p { margin-top: 8px; font-size: 1rem; }
.passi__chiusura { text-align: center; margin-top: 48px; }

/* ---------- Antonio ---------- */
.antonio { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.antonio__foto { position: relative; height: 580px; }
.antonio__foto .polaroid { position: absolute; }
.antonio__foto .polaroid img { aspect-ratio: 464 / 600; filter: grayscale(1) contrast(1.05); }
.polaroid--grande { width: 66%; left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.polaroid--piccola { width: 44%; right: 0; bottom: 0; transform: rotate(5deg); z-index: 2; }
.antonio__testo h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); }
.antonio__lead { margin-top: 18px; font-size: 1.2rem; color: var(--inchiostro); }
.antonio__testo > p:not(.occhiello):not(.antonio__lead) { margin-top: 14px; }
.citazione { margin: 30px 0 0; padding: 22px 26px; background: var(--giallo-chiaro); border-radius: var(--raggio); position: relative; }
.citazione p { font-family: var(--f-titoli); font-weight: 500; font-size: 1.4rem; line-height: 1.3; color: var(--inchiostro); }
.citazione footer { margin-top: 8px; font-weight: 700; font-size: .92rem; color: var(--tenue); }
.tappe { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.tappe li { display: flex; gap: 14px; align-items: baseline; font-size: 1rem; }
.tappe b { flex: none; width: 56px; font-family: var(--f-titoli); font-weight: 600; color: var(--corallo); font-size: 1.05rem; }

/* ---------- Motivi ---------- */
.motivi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.motivo { padding: 30px 26px; border-radius: var(--raggio); background: var(--crema); border: 1px solid var(--bordo); }
.motivo__icona { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; }
.motivo__icona svg { width: 26px; height: 26px; }
.motivo__icona--corallo { background: var(--corallo-chiaro); color: var(--corallo); }
.motivo__icona--blu { background: #E2E7FF; color: var(--blu); }
.motivo__icona--menta { background: var(--menta-chiaro); color: var(--menta); }
.motivo__icona--giallo { background: var(--giallo-chiaro); color: #D99500; }
.motivo h3 { font-size: 1.25rem; margin-top: 20px; }
.motivo p { margin-top: 8px; font-size: 1rem; }

/* ---------- Galleria ---------- */
.galleria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.galleria__voce { padding: 0; border: 0; border-radius: var(--raggio-piccolo); overflow: hidden; cursor: zoom-in; background: var(--sabbia); position: relative; }
.galleria__voce--larga { grid-column: span 2; }
.galleria__voce img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.galleria__voce:hover img { transform: scale(1.06); }
.galleria__voce::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(28, 33, 80, .06); pointer-events: none; }

/* ---------- Aziende ---------- */
.aziende { background: var(--inchiostro); color: rgba(255, 255, 255, .82); padding: 88px 0; position: relative; overflow: hidden; }
.aziende::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -200px; background: radial-gradient(circle, rgba(43, 71, 214, .55), transparent 70%); }
.aziende__griglia { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.aziende h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); }
.aziende .occhiello { color: var(--giallo); }
.aziende__testo > p:not(.occhiello) { margin-top: 16px; font-size: 1.125rem; margin-bottom: 30px; }
.aziende__foto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aziende__foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--raggio); }
.aziende__foto img:last-child { transform: translateY(32px); }

/* ---------- Domande ---------- */
.domande { display: grid; gap: 12px; }
.domanda { background: var(--carta); border-radius: var(--raggio-piccolo); box-shadow: var(--ombra); overflow: hidden; }
.domanda summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-family: var(--f-titoli); font-weight: 600; font-size: 1.15rem; color: var(--inchiostro); line-height: 1.3;
}
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sabbia) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231C2150' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .25s ease, background-color .2s ease;
}
.domanda[open] summary::after { transform: rotate(45deg); background-color: var(--giallo-chiaro); }
.domanda summary:hover { color: var(--blu); }
.domanda__risposta { padding: 0 24px 22px; }

/* ---------- Contatti ---------- */
.sezione--contatti { background: var(--sabbia); }
.contatti { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contatti__intro h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); }
.contatti__intro > p:not(.occhiello) { margin-top: 16px; font-size: 1.125rem; }
.recapiti { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.recapiti a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--carta); border-radius: var(--raggio-piccolo); text-decoration: none; color: var(--inchiostro); font-weight: 800; font-size: 1.08rem; box-shadow: var(--ombra); transition: transform .18s ease; }
.recapiti a:hover { transform: translateX(4px); }
.recapiti small { display: block; font-size: .82rem; font-weight: 700; color: var(--tenue); line-height: 1.2; }
.recapiti__icona { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--corallo-chiaro); color: var(--corallo); }
.recapiti__icona svg { width: 22px; height: 22px; }
.recapiti__icona--wa { background: #DDF6E6; color: var(--wa); }
.sedi { margin-top: 28px; display: grid; gap: 12px; }
.sedi p { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.sedi svg { flex: none; width: 20px; height: 20px; color: var(--corallo); margin-top: 3px; }
.sedi b { display: block; color: var(--inchiostro); }

.modulo { background: var(--carta); border-radius: 28px; padding: 36px; box-shadow: var(--ombra-alta); display: grid; gap: 20px; }
.modulo__riga { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.campo label, .campo legend { font-weight: 800; font-size: .95rem; color: var(--inchiostro); line-height: 1.3; }
.obbl { color: var(--corallo); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; font: inherit; font-size: 1rem; color: var(--inchiostro);
  background: var(--crema); border: 2px solid var(--bordo); border-radius: var(--raggio-piccolo);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.campo textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.campo input::placeholder, .campo textarea::placeholder { color: #A4A6BA; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: #D9C9B2; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--blu); background: #fff; box-shadow: 0 0 0 4px rgba(43, 71, 214, .12); }
.campo input[type="date"] { min-height: 52px; line-height: 1.2; }
.campo input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.campo input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.selezione { position: relative; }
.selezione::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.5px solid var(--inchiostro); border-bottom: 2.5px solid var(--inchiostro); transform: rotate(45deg); pointer-events: none; }
.selezione select { padding-right: 44px; cursor: pointer; }
.selezione select.vuoto { color: #A4A6BA; }
.selezione option { color: var(--inchiostro); }
.campo__errore { display: none; font-size: .88rem; font-weight: 700; color: #D93A23; }
.campo.e-errore input { border-color: #F08A7A; background: #FFF6F4; }
.campo.e-errore .campo__errore { display: block; }
.campo--gruppo { border: 0; padding: 0; margin: 0; }
.campo--gruppo legend { padding: 0; margin-bottom: 10px; }
.pastiglie { display: flex; flex-wrap: wrap; gap: 8px; }
.pastiglia { position: relative; cursor: pointer; }
.pastiglia input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pastiglia span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--bordo); background: var(--crema); font-weight: 700; font-size: .95rem; color: var(--inchiostro); transition: all .15s ease; user-select: none; }
.pastiglia:hover span { border-color: #D9C9B2; }
.pastiglia input:checked + span { background: var(--blu); border-color: var(--blu); color: #fff; }
.pastiglia input:focus-visible + span { outline: 3px solid var(--blu); outline-offset: 2px; }
.consenso { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; line-height: 1.45; }
.consenso input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consenso__casella { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 0; border-radius: 7px; border: 2px solid #CDBFA9; background: var(--crema); transition: all .15s ease; }
.consenso__casella svg { width: 16px; height: 16px; color: #fff; opacity: 0; }
.consenso input:checked + .consenso__casella { background: var(--blu); border-color: var(--blu); }
.consenso input:checked + .consenso__casella svg { opacity: 1; }
.consenso input:focus-visible + .consenso__casella { outline: 3px solid var(--blu); outline-offset: 2px; }
.consenso.e-errore .consenso__casella { border-color: #F08A7A; background: #FFF6F4; }
.campo__errore--consenso { margin-top: -10px; }
.campo__errore--consenso.e-visibile { display: block; }
.modulo__invio { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.modulo__invio .bottone { flex: 1 1 220px; }
.modulo__fatto { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #E3F7EC; border-radius: var(--raggio-piccolo); color: #145A33; }
.modulo__fatto b { display: block; font-family: var(--f-titoli); font-weight: 600; font-size: 1.15rem; color: #0F4A29; }
.modulo__fatto-icona { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wa); color: #fff; }
.modulo__fatto-icona svg { width: 20px; height: 20px; }

/* ---------- Piede ---------- */
.piede { background: var(--blu-notte); color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: 1rem; }
.piede__griglia { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.piede__marca p { margin-top: 18px; max-width: 360px; }
.piede__titolo { font-size: 1.1rem; color: #fff; margin-bottom: 16px; }
.piede__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.piede a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.piede a:hover { color: var(--giallo); }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .15s ease; }
.social a:hover { background: rgba(255, 255, 255, .18); }
.social svg { width: 20px; height: 20px; }
.piede__fondo { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-top: 24px !important; font-size: .9rem; color: rgba(255, 255, 255, .55); }
.piede__fondo::before { content: ""; position: absolute; top: 0; left: var(--pad, 24px); right: var(--pad, 24px); height: 1px; background: rgba(255, 255, 255, .1); }

/* ---------- Barra mobile ---------- */
.barra-mobile { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(14, 18, 48, .92); display: flex; align-items: center; justify-content: center; padding: 64px 80px; }
.lightbox__figura { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox__figura img { max-width: min(1100px, 100%); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.lightbox__figura figcaption { color: rgba(255, 255, 255, .85); font-weight: 600; text-align: center; max-width: 640px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .15s ease; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__chiudi { top: 18px; right: 18px; }
.lightbox__freccia--prima { left: 18px; top: 50%; margin-top: -26px; }
.lightbox__freccia--prima svg { transform: scaleX(-1); }
.lightbox__freccia--dopo { right: 18px; top: 50%; margin-top: -26px; }

/* ---------- Comparsa ---------- */
.js .appare { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .appare.e-visibile { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1120px) {
  .testata__tel span { display: none; }
  .testata__tel { width: 42px; height: 42px; justify-content: center; border-radius: 50%; background: var(--carta); box-shadow: var(--ombra); }
  .menu a { padding: 8px 9px; }
}

@media (max-width: 980px) {
  :root { --testata: 68px; }
  .hamburger { display: block; }
  .testata__tel { display: none; }
  .menu {
    position: fixed; left: 0; right: 0; top: var(--testata); bottom: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px 20px 120px;
    background: var(--crema); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .menu.e-aperto { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .menu a { font-family: var(--f-titoli); font-weight: 600; font-size: 1.5rem; padding: 14px 16px; border-radius: var(--raggio-piccolo); }
  .menu .menu__solo-tel { display: block; }
  body.menu-aperto { overflow: hidden; }

  .apertura { padding: 40px 0 64px; }
  .apertura__griglia { grid-template-columns: 1fr; gap: 40px; }
  .apertura__testo { text-align: center; }
  .apertura__sotto { margin-left: auto; margin-right: auto; }
  .apertura__bottoni, .apertura__fiducia { justify-content: center; }
  .apertura__foto { height: 540px; max-width: 560px; width: 100%; margin: 0 auto; }
  .polaroid--1 { width: 280px; top: 110px; }
  .polaroid--2, .polaroid--3 { width: 212px; }
  .polaroid--3 { top: 285px; right: 20px; }

  .schede { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .extra { grid-template-columns: 1fr; gap: 48px; }
  .extra__foto { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .eta { grid-template-columns: repeat(2, 1fr); }
  .passi { grid-template-columns: repeat(2, 1fr); }
  .antonio { grid-template-columns: 1fr; gap: 48px; }
  .antonio__foto { height: 520px; max-width: 480px; width: 100%; margin: 0 auto; }
  .motivi { grid-template-columns: repeat(2, 1fr); }
  .galleria { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .aziende__griglia { grid-template-columns: 1fr; gap: 40px; }
  .aziende__foto { max-width: 520px; }
  .contatti { grid-template-columns: 1fr; gap: 40px; }
  .piede__griglia { grid-template-columns: 1fr 1fr; }
  .piede__marca { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .piede { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .contenitore { padding: 0 20px; --pad: 20px; }
  .testata__azioni .bottone--piccolo { display: none; }
  .logo__testo { font-size: 1.6rem; }
  .sezione { padding: 72px 0; }
  .intestazione { margin-bottom: 36px; }
  .intestazione p:not(.occhiello) { font-size: 1.05rem; }

  .apertura__titolo { font-size: clamp(2.2rem, 1.2rem + 5.4vw, 2.9rem); }
  .apertura__sotto { font-size: 1.08rem; }
  .apertura__bottoni { flex-direction: column; align-items: stretch; }
  .apertura__fiducia { gap: 8px; flex-wrap: nowrap; }
  .apertura__fiducia li { min-width: 0; flex: 1; padding: 10px 8px; text-align: center; }
  .apertura__fiducia b { font-size: 1.25rem; }
  .apertura__fiducia span { font-size: .8rem; }
  .apertura__foto { height: 400px; max-width: 360px; }
  .apertura__foto .polaroid { padding: 8px 8px 0; }
  .apertura__foto .polaroid figcaption { font-size: .86rem; padding: 8px 4px 10px; }
  .polaroid--1 { width: 54%; left: 0; top: 92px; }
  .polaroid--2, .polaroid--3 { width: 43%; }
  .polaroid--2 { right: 2px; top: 0; }
  .polaroid--3 { right: 10px; top: 206px; }
  .palloncino--giallo { left: 8px; top: 8px; width: 34px; height: 48px; }
  .palloncino--corallo { width: 40px; height: 56px; left: 40%; bottom: 0; }
  .palloncino--menta { display: none; }

  .marchi__lista li { font-size: 1.15rem; padding: 0 20px; }

  .schede { grid-template-columns: 1fr; gap: 20px; }
  .scheda__corpo { padding: 12px 22px 24px; }
  .extra__foto { height: 320px; }
  .extra__img { border-width: 6px; }
  .eta { grid-template-columns: 1fr; gap: 14px; }
  .eta__scheda { padding: 24px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .eta__anni { grid-row: span 2; font-size: 2.1rem; min-width: 84px; }
  .eta__anni small { display: block; margin-top: 4px; }
  .eta__scheda h3 { margin-top: 0; }
  .sezione--blu { padding: 88px 0; }
  .passi { grid-template-columns: 1fr; gap: 14px; }
  .passo { padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .passo__numero { grid-row: span 2; width: 46px; height: 46px; font-size: 1.3rem; }
  .passo h3 { margin-top: 0; align-self: center; }
  .passi__chiusura .bottone { width: 100%; }
  .antonio__foto { height: 420px; }
  .citazione p { font-size: 1.2rem; }
  .motivi { grid-template-columns: 1fr; gap: 14px; }
  .motivo { padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .motivo__icona { grid-row: span 2; width: 48px; height: 48px; }
  .motivo h3 { margin-top: 0; align-self: center; }
  .galleria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .aziende { padding: 72px 0 96px; }
  .aziende .bottone { width: 100%; }
  .domanda summary { padding: 18px 18px; font-size: 1.05rem; }
  .domanda__risposta { padding: 0 18px 20px; }
  .modulo { padding: 24px 20px; border-radius: 24px; gap: 18px; }
  .modulo__riga { grid-template-columns: 1fr; gap: 18px; }
  .modulo__invio { flex-direction: column; }
  .modulo__invio .bottone { flex: none; width: 100%; }
  .piede { padding-top: 56px; }
  .piede__griglia { grid-template-columns: 1fr; gap: 32px; }
  .piede__fondo { flex-direction: column; gap: 6px; }

  .barra-mobile {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--bordo);
  }
  .barra-mobile a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; background: var(--sabbia); color: var(--inchiostro); text-decoration: none; font-family: var(--f-titoli); font-weight: 600; font-size: 1rem; }
  .barra-mobile a svg { width: 18px; height: 18px; }
  .barra-mobile a:nth-child(2) { background: #DDF6E6; color: var(--wa-scuro); }
  .barra-mobile .barra-mobile__primario { background: var(--corallo); color: #fff; }
  .lightbox { padding: 64px 12px 96px; }
  .lightbox__freccia--prima, .lightbox__freccia--dopo { top: auto; bottom: 24px; margin-top: 0; }
  .lightbox__freccia--prima { left: calc(50% - 64px); }
  .lightbox__freccia--dopo { right: calc(50% - 64px); }
}

@media (max-width: 380px) {
  .apertura__fiducia span { font-size: .74rem; }
  .barra-mobile a { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marchi__nastro { width: auto; flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marchi__lista[aria-hidden] { display: none; }
  .marchi__lista { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .appare { opacity: 1; transform: none; }
}
