/* =========================================================
   Regina dei Gigli — foglio di stile principale
   Colori del brand: azzurro #059bdf + giallo #fdc735
   ========================================================= */
@import url("../fonts/fonts.css");

:root {
  --blu: #059bdf;
  --blu-scuro: #0570a6;
  --navy: #12395a;
  --cielo: #e9f6fd;
  --cielo-2: #d4eefb;
  --giallo: #fdc735;
  --giallo-chiaro: #fff3cc;
  --corallo: #ff7b6b;
  --corallo-chiaro: #ffe5e1;
  --verde: #3dba84;
  --verde-chiaro: #dcf5e9;
  --lilla: #8f74d6;
  --lilla-chiaro: #ece6fb;
  --crema: #fffaf1;
  --bianco: #ffffff;
  --testo: #1f3447;
  --muted: #566a7d;
  --bordo: #e3ebf2;

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

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 36px;
  --ombra: 0 10px 30px -12px rgba(18, 57, 90, .25);
  --ombra-forte: 0 22px 50px -18px rgba(18, 57, 90, .35);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-testo);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--testo);
  background: var(--crema);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu-scuro); text-underline-offset: 3px; }
a:hover { color: var(--blu); }
:focus-visible { outline: 3px solid var(--giallo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 {
  font-family: var(--font-titoli);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--cielo { background: var(--cielo); }
.section--bianco { background: var(--bianco); }
.section--giallo { background: var(--giallo-chiaro); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-titoli); font-weight: 600; font-size: .95rem;
  color: var(--blu-scuro); background: var(--cielo-2);
  padding: .35em 1em; border-radius: 99px; margin-bottom: 1rem;
}
.eyebrow svg { width: 18px; height: 18px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); }

/* Sottolineatura disegnata a mano */
.scribble { position: relative; white-space: nowrap; color: var(--blu); }
.scribble::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .35em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 Q 50 2 100 10 T 197 7' fill='none' stroke='%23fdc735' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

/* ---------- Bottoni ---------- */
.btn {
  --bg: var(--blu); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-titoli); font-weight: 600; font-size: 1.05rem;
  padding: .85em 1.5em; border-radius: 99px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--bg) 70%, #000);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  min-height: 48px;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 8px 0 -1px color-mix(in srgb, var(--bg) 70%, #000); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 -1px color-mix(in srgb, var(--bg) 70%, #000); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--giallo { --bg: var(--giallo); --fg: var(--navy); }
.btn--bianco { --bg: #fff; --fg: var(--navy); }
.btn--whatsapp { --bg: #25d366; --fg: #0b3d24; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn--outline:hover { background: var(--navy); color: #fff; box-shadow: none; }
.btn--sm { font-size: .95rem; padding: .55em 1.1em; min-height: 42px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #d8e8f5; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: var(--giallo); }
.topbar__info, .topbar__social { display: flex; gap: 22px; align-items: center; }
.topbar svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .topbar__hide-sm { display: none !important; } .topbar .container { justify-content: center; } .topbar__social { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--bordo);
  transition: box-shadow .25s;
}
/* Lo sfondo sfocato sta su uno strato a parte: un backdrop-filter sull'header
   intrappolerebbe il menu mobile (position: fixed) dentro l'header. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(18,57,90,.35); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--font-titoli); font-weight: 500; font-size: 1.05rem;
  color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: .55em .85em; border-radius: 99px; transition: background .2s, color .2s;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--cielo); color: var(--blu-scuro); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--blu); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 260px; background: #fff; border-radius: var(--r); box-shadow: var(--ombra-forte);
  padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown, .nav__item.is-open > .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__item:hover > .nav__link svg, .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  text-decoration: none; color: var(--testo); font-weight: 700;
}
.dropdown a small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.dropdown a:hover { background: var(--cielo); color: var(--navy); }
.dot { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.dot svg { width: 20px; height: 20px; }
.nav__cta { margin-left: 10px; }
.burger { display: none; background: var(--cielo); border: 0; width: 48px; height: 48px; border-radius: 14px; cursor: pointer; color: var(--navy); }
.burger svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 1080px) {
  .burger { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(420px, 100%);
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 90px 20px 30px; overflow-y: auto; overflow-x: hidden; gap: 16px;
    transform: translateX(100%); visibility: hidden; box-shadow: var(--ombra-forte); z-index: 200;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .4s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  /* le voci entrano una dopo l'altra quando si apre il pannello */
  .nav > * , .nav__list > li { transition: opacity .3s ease, transform .3s ease; }
  .nav:not(.is-open) .nav__list > li, .nav:not(.is-open) .nav__cta { opacity: 0; transform: translateX(24px); }
  .nav.is-open .nav__list > li:nth-child(1) { transition-delay: .08s; }
  .nav.is-open .nav__list > li:nth-child(2) { transition-delay: .12s; }
  .nav.is-open .nav__list > li:nth-child(3) { transition-delay: .16s; }
  .nav.is-open .nav__list > li:nth-child(4) { transition-delay: .2s; }
  .nav.is-open .nav__list > li:nth-child(5) { transition-delay: .24s; }
  .nav.is-open .nav__cta { transition-delay: .28s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { width: 100%; justify-content: space-between; font-size: 1.2rem; padding: .8em 1em; }
  /* sottomenu a fisarmonica: l'altezza è animata da main.js */
  .dropdown {
    position: static; transform: none; box-shadow: none; min-width: 0; padding: 0 0 0 8px;
    height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: height .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, visibility 0s linear .35s;
  }
  .dropdown::before { display: none; }
  .nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition: height .35s cubic-bezier(.4, 0, .2, 1), opacity .3s ease .05s, visibility 0s; }
  .nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown { transform: none; }
  .nav__item:not(.is-open):hover > .dropdown, .nav__item:not(.is-open):focus-within > .dropdown { opacity: 0; visibility: hidden; }
  .nav__item:not(.is-open):hover > .nav__link svg { transform: none; }
  .nav__link svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
  .dropdown li { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .nav__item.is-open > .dropdown li { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }
  .nav__item.is-open > .dropdown li:nth-child(2) { transition-delay: .04s; }
  .nav__item.is-open > .dropdown li:nth-child(3) { transition-delay: .08s; }
  .nav__item.is-open > .dropdown li:nth-child(4) { transition-delay: .12s; }
  .nav__item.is-open > .dropdown li:nth-child(5) { transition-delay: .16s; }
  .nav__item.is-open > .dropdown li:last-child { padding-bottom: 6px; }
  .nav__cta { margin: 10px 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav__close { position: absolute; top: 20px; right: 20px; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(18,57,90,.45); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1081px) { .nav__close, .nav-overlay { display: none; } }
@media (max-width: 480px) { .logo img { height: 46px; } .header .container { min-height: 72px; } }

/* ---------- Hero home ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--cielo) 0%, #f4fbff 70%, var(--crema) 100%);
  padding: clamp(40px, 7vw, 90px) 0 clamp(90px, 12vw, 150px);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; z-index: 2; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 540px; margin-bottom: 1.6em; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; background: #fff; border-radius: 99px;
  padding: .45em 1em .45em .55em; font-weight: 700; font-size: .92rem; color: var(--navy);
  box-shadow: 0 4px 14px -8px rgba(18,57,90,.4);
}
.chip i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; }
.chip svg { width: 16px; height: 16px; }

.collage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto; width: 100%; }
.collage__img { position: absolute; overflow: hidden; box-shadow: var(--ombra-forte); border: 6px solid #fff; background: var(--cielo-2); }
.collage__img img { width: 100%; height: 100%; object-fit: cover; }
.collage__img--1 { inset: 0 18% 26% 0; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.collage__img--2 { width: 46%; aspect-ratio: 1; right: 0; bottom: 4%; border-radius: 50%; }
.collage__img--3 { width: 34%; aspect-ratio: 4/5; left: 6%; bottom: 0; border-radius: 28px; transform: rotate(-6deg); }
.sticker {
  position: absolute; top: 4%; right: 2%; z-index: 3; width: 132px; height: 132px; border-radius: 50%;
  background: var(--giallo); color: var(--navy); display: grid; place-items: center; text-align: center;
  font-family: var(--font-titoli); font-weight: 700; line-height: 1.1; font-size: 1.05rem;
  transform: rotate(10deg); box-shadow: var(--ombra); text-decoration: none;
  animation: bob 4s ease-in-out infinite;
}
.sticker:hover { color: var(--navy); }
.sticker small { display: block; font-size: .78rem; font-weight: 500; }
@keyframes bob { 50% { transform: rotate(4deg) translateY(-6px); } }

.deco { position: absolute; pointer-events: none; z-index: 1; }
.deco--sun { top: 30px; right: 4%; width: 90px; opacity: .9; animation: spin 40s linear infinite; }
.deco--cloud1 { top: 12%; left: -40px; width: 180px; opacity: .9; animation: drift 30s linear infinite alternate; }
.deco--cloud2 { top: 58%; left: 44%; width: 120px; opacity: .7; animation: drift 24s linear infinite alternate-reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(60px); } }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 2; }
.wave svg { width: 100%; height: clamp(40px, 6vw, 90px); }
.wave--top { top: -1px; bottom: auto; transform: rotate(180deg); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .collage { margin: 10px auto 0; max-width: 440px; }
  .sticker { width: 108px; height: 108px; font-size: .9rem; }
  .deco--cloud2 { display: none; }
}

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--blu) center / cover no-repeat;
  padding: clamp(70px, 10vw, 130px) 0 clamp(90px, 12vw, 150px);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(5,80,128,.92) 0%, rgba(5,155,223,.72) 55%, rgba(5,155,223,.35) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 780px; }
.page-hero p { max-width: 640px; font-size: 1.2rem; color: #eaf6ff; margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .95rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.breadcrumb a { color: #fff; }
.page-hero .wave svg path { fill: var(--crema); }
.page-hero--giallo::before { background: linear-gradient(110deg, rgba(18,57,90,.92) 0%, rgba(18,57,90,.6) 60%, rgba(253,199,53,.35) 100%); }

/* ---------- Card percorsi ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.path-card {
  --c: var(--blu); --c2: var(--cielo);
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: var(--testo); box-shadow: var(--ombra);
  transition: transform .25s ease, box-shadow .25s ease;
}
.path-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--ombra-forte); color: var(--testo); }
.path-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--c2); }
.path-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.path-card:hover .path-card__img img { transform: scale(1.06); }
.path-card__body { padding: 24px 24px 26px; position: relative; flex: 1; display: flex; flex-direction: column; }
.path-card__age {
  position: absolute; top: -20px; left: 22px; background: var(--c); color: #fff; font-family: var(--font-titoli);
  font-weight: 600; font-size: .9rem; padding: .35em .95em; border-radius: 99px; box-shadow: 0 6px 14px -6px var(--c);
}
.path-card h3 { margin-top: 8px; }
.path-card p { color: var(--muted); font-size: 1rem; margin-bottom: 1em; }
.path-card__more { margin-top: auto; font-family: var(--font-titoli); font-weight: 600; color: var(--c); display: inline-flex; align-items: center; gap: .4em; }
.path-card__more svg { width: 18px; height: 18px; transition: transform .2s; }
.path-card:hover .path-card__more svg { transform: translateX(4px); }
.c-blu { --c: var(--blu); --c2: var(--cielo); }
.c-giallo { --c: #e0a400; --c2: var(--giallo-chiaro); }
.c-corallo { --c: #f0604f; --c2: var(--corallo-chiaro); }
.c-verde { --c: #23a06b; --c2: var(--verde-chiaro); }
.c-lilla { --c: var(--lilla); --c2: var(--lilla-chiaro); }

/* ---------- Split (testo + immagine) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.photo-blob { position: relative; }
.photo-blob img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 40% 60% 55% 45% / 45% 45% 55% 55%; box-shadow: var(--ombra-forte); }
.photo-blob::before {
  content: ""; position: absolute; inset: 8% -4% -6% 8%; border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%;
  background: var(--giallo); z-index: -1; opacity: .9;
}
.photo-blob--blu::before { background: var(--cielo-2); }
.photo-round img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--ombra-forte); }

.quote {
  margin: 28px 0 0; padding: 22px 26px; background: #fff; border-radius: var(--r); border-left: 6px solid var(--giallo);
  font-family: var(--font-titoli); font-size: 1.2rem; color: var(--navy); box-shadow: var(--ombra);
}
.quote cite { display: block; font-family: var(--font-testo); font-style: normal; font-size: .95rem; color: var(--muted); margin-top: 8px; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Feature (perché sceglierci) ---------- */
.feature { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--ombra); position: relative; transition: transform .25s; }
.feature:hover { transform: translateY(-4px); }
.feature__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 18px; transform: rotate(-6deg); }
.feature__icon svg { width: 32px; height: 32px; transform: rotate(6deg); }
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.bg-blu { background: var(--cielo-2); color: var(--blu-scuro); }
.bg-giallo { background: var(--giallo-chiaro); color: #b07f00; }
.bg-corallo { background: var(--corallo-chiaro); color: #d6493a; }
.bg-verde { background: var(--verde-chiaro); color: #1d8a5b; }
.bg-lilla { background: var(--lilla-chiaro); color: #6a4fbf; }

/* ---------- Laboratori (tile) ---------- */
.labs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.lab {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 26px 16px; border-radius: var(--r); background: #fff; text-decoration: none; color: var(--navy);
  font-family: var(--font-titoli); font-weight: 600; font-size: 1.08rem; box-shadow: var(--ombra);
  transition: transform .2s, background .2s;
}
.lab:hover { transform: translateY(-4px) rotate(1deg); color: var(--navy); }
.lab .dot { width: 60px; height: 60px; border-radius: 50%; }
.lab .dot svg { width: 30px; height: 30px; }

/* ---------- Galleria ---------- */
.masonry { columns: 3 260px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; border-radius: var(--r); overflow: hidden; position: relative; box-shadow: var(--ombra); }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform .5s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--navy);
  font-weight: 700; font-size: .85rem; padding: .25em .8em; border-radius: 99px;
}
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.filter {
  font-family: var(--font-titoli); font-weight: 500; font-size: 1rem; border: 2px solid var(--bordo); background: #fff;
  color: var(--navy); padding: .5em 1.2em; border-radius: 99px; cursor: pointer; min-height: 44px;
}
.filter[aria-pressed="true"] { background: var(--blu); border-color: var(--blu); color: #fff; }
.masonry figure.is-hidden { display: none; }

/* Eventi pubblicati dalla segreteria */
.event-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--testo); box-shadow: var(--ombra); transition: transform .25s ease, box-shadow .25s ease; }
.event-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--ombra-forte); color: var(--testo); }
.event-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--cielo-2); }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover .event-card__img img { transform: scale(1.06); }
.event-card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.event-card__date { font-family: var(--font-titoli); font-weight: 600; font-size: .9rem; color: var(--blu-scuro); }
.event-card h3 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.event-card__count { margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.event-descr { margin: 0 auto 34px; }
.event-descr:empty { display: none; }

.lightbox { position: fixed; inset: 0; background: rgba(10, 30, 48, .92); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 84vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__btn { position: absolute; background: #fff; color: var(--navy); border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }

/* ---------- Avvisi / documenti ---------- */
.notice-list { display: grid; gap: 14px; }
.notice {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--ombra); text-decoration: none; color: var(--testo);
  transition: transform .2s;
}
.notice:hover { transform: translateX(4px); color: var(--testo); }
.notice__date {
  width: 66px; height: 66px; border-radius: 18px; background: var(--cielo); color: var(--blu-scuro);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-titoli); line-height: 1;
}
.notice__date b { font-size: 1.5rem; }
.notice__date span { font-size: .8rem; text-transform: uppercase; margin-top: 3px; }
.notice h3 { font-size: 1.15rem; margin: 0 0 4px; }
.notice p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .15em .7em; border-radius: 99px; margin-right: 6px; }
.tag--meteo { background: var(--corallo-chiaro); color: #c43e2f; }
.tag--scuola { background: var(--cielo-2); color: var(--blu-scuro); }
.tag--famiglie { background: var(--verde-chiaro); color: #1d8a5b; }
.notice__dl { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--giallo); color: var(--navy); }
.notice__dl svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .notice { grid-template-columns: auto 1fr; } .notice__dl { display: none; } .notice__date { width: 56px; height: 56px; } }

.doc-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--ombra); text-decoration: none; color: var(--testo); transition: transform .2s; }
.doc-card:hover { transform: translateY(-4px); color: var(--testo); }
.doc-card .dot { width: 54px; height: 54px; border-radius: 16px; }
.doc-card h3 { font-size: 1.12rem; margin: 0 0 4px; }
.doc-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.doc-card .meta { font-size: .82rem; font-weight: 800; color: var(--blu-scuro); margin-top: 8px; display: inline-flex; gap: .4em; align-items: center; }
.doc-card .meta svg { width: 16px; height: 16px; }

/* ---------- Citazioni ---------- */
.quotes { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.quotes__track { display: grid; }
.quotes blockquote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; visibility: hidden; }
.quotes blockquote.is-active { opacity: 1; transform: none; visibility: visible; }
.quotes p { font-family: var(--font-titoli); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy); line-height: 1.3; font-weight: 500; }
.quotes cite { font-style: normal; font-weight: 800; color: var(--blu); }
.quotes__dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.quotes__dots button { width: 14px; height: 14px; border-radius: 99px; border: 0; background: var(--cielo-2); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.quotes__dots button[aria-current="true"] { width: 36px; background: var(--blu); }
.quote-mark { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--giallo); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--giallo); border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.15rem; color: #5b4a10; }
.cta .btn-row { justify-content: flex-end; }
.cta__deco { position: absolute; right: -40px; top: -40px; width: 220px; opacity: .25; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- Contatti ---------- */
.contact-card { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--ombra); display: flex; gap: 16px; }
.contact-card .dot { width: 54px; height: 54px; border-radius: 16px; }
.contact-card h3 { font-size: 1.15rem; margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { font-weight: 700; }
.map {
  position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ombra); min-height: 380px;
  background: var(--cielo) url("../img/foto/edificio-sm.webp") center / cover;
}
.map::before { content: ""; position: absolute; inset: 0; background: rgba(18,57,90,.55); }
.map__consent { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; min-height: 380px; padding: 30px; gap: 14px; }
.map__consent p { max-width: 380px; margin: 0; font-size: .95rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

.form { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--ombra); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--testo); background: var(--crema); border: 2px solid var(--bordo);
  border-radius: 14px; padding: .8em 1em; transition: border-color .2s, background .2s; min-height: 50px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blu); background: #fff; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.field--check input { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--blu); }
.hp { position: absolute; left: -9999px; }
.form__msg { padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.form__msg--ok { background: var(--verde-chiaro); color: #156b46; }
.form__msg--err { background: var(--corallo-chiaro); color: #b23a2c; }

/* ---------- Info box / orari ---------- */
.info-box { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--ombra); }
.info-box h3 { display: flex; align-items: center; gap: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.timeline li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--bordo); }
.timeline li:last-child { border-bottom: 0; }
.timeline b { font-family: var(--font-titoli); color: var(--blu); min-width: 64px; font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: #fff; border-radius: 99px; padding: .45em 1.05em; font-weight: 700; box-shadow: 0 4px 12px -8px rgba(18,57,90,.4); font-size: .95rem; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--r); padding: 28px 22px 24px; box-shadow: var(--ombra); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 14px;
  background: var(--blu); color: #fff; font-family: var(--font-titoli); font-weight: 700; font-size: 1.35rem;
}
.step:nth-child(2)::before { background: #e0a400; }
.step:nth-child(3)::before { background: #f0604f; }
.step:nth-child(4)::before { background: #23a06b; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

.lab-detail { display: grid; grid-template-columns: 90px 1fr; gap: 26px; background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--ombra); scroll-margin-top: 110px; }
.lab-detail .dot { width: 90px; height: 90px; border-radius: 28px; }
.lab-detail .dot svg { width: 44px; height: 44px; }
@media (max-width: 640px) { .lab-detail { grid-template-columns: 1fr; } .lab-detail .dot { width: 70px; height: 70px; } }
.stack { display: grid; gap: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c9dbea; position: relative; padding: 110px 0 0; margin-top: 40px; }
.footer .wave--top svg path { fill: var(--crema); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--giallo); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__logo img { height: 64px; width: auto; margin-bottom: 18px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--giallo); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s; }
.social a:hover { background: var(--blu); }
.social svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--blu); color: #fff; box-shadow: var(--ombra); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; z-index: 90; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Animazioni di comparsa ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.prose { max-width: 760px; }
.prose p { color: var(--testo); }
.muted { color: var(--muted); }
.map__consent > svg { width: 44px; height: 44px; color: var(--giallo); }
.info-box h3 svg { width: 26px; height: 26px; color: var(--blu); }
.hero + .section { padding-top: clamp(40px, 6vw, 72px); }
@media (max-width: 640px) { .deco--sun { width: 56px; top: 14px; right: 10px; opacity: .55; } .hero .eyebrow { position: relative; z-index: 2; } }
.topbar__wa-sm { display: none !important; }
.topbar__area { background: var(--giallo); color: var(--navy) !important; font-weight: 800; padding: .2em .9em; border-radius: 99px; }
.topbar__area:hover { background: #fff; }
@media (max-width: 760px) { .topbar__social { display: flex; gap: 14px; } .topbar__social > a:not(.topbar__area) { display: none; } .topbar__info { gap: 14px; } .topbar__wa-sm { display: inline-flex !important; } .topbar .container { justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
  .nav, .nav *, .dropdown, .dropdown li, .nav-overlay { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Nido Piccoli Gigli (logo tondo) ---------- */
.nido-badge { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.nido-badge img { width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--ombra-forte); }
.nido-badge::before {
  content: ""; position: absolute; inset: 6% -5% -5% 6%; border-radius: 50%;
  background: var(--giallo); z-index: -1; opacity: .9;
}
.path-card__img--logo { display: grid; place-items: center; background: var(--cielo); }
.path-card__img--logo img { width: auto; height: 88%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
@media (max-width: 900px) { .nido-badge { width: 84%; } }
/* CTA con tre pulsanti (Prenota / Chiama / WhatsApp): pulsanti su una riga su desktop */
@media (min-width: 1100px) { .cta--3 { grid-template-columns: 1fr auto; } .cta--3 .btn-row { flex-wrap: nowrap; } }
