/* =========================================================
   Maffy Junior · foglio di stile condiviso
   Colori e caratteri dalla guida "Identità visiva" (brand_assets)
   ========================================================= */

/* ---------- Cherry Swash (brand_fonts, ospitato in locale): frasi decorative ----------
   Ha solo Regular e Bold: i pesi 100–549 usano il Regular,
   550–900 il Bold, così il browser non crea grassetti "finti". */
@font-face {
  font-family: 'Cherry Swash';
  src: url('../fonts/CherrySwash-Regular.ttf') format('truetype');
  font-weight: 100 549;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cherry Swash';
  src: url('../fonts/CherrySwash-Bold.ttf') format('truetype');
  font-weight: 550 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Colori del logo */
  --rosa: #EA4171;
  --rosa-scuro: #C92B5C;          /* derivato, per hover/testo piccolo */
  --nuvola: #A3DAF8;
  --azzurro: #0390CA;
  --azzurro-scuro: #02679A;       /* derivato, per testo piccolo su bianco */
  --bianco: #FFFFFF;

  /* Pastelli di sfondo */
  --menta: #9ED6C9;
  --cipria: #FBDDDD;
  --limone: #F4EC59;
  --celeste: #9EDAE9;
  --salmone: #F4B2B6;

  /* Tinte tenui derivate (fondi delle sezioni) */
  --cipria-tenue: #FFF3F3;
  --nuvola-tenue: #EDF8FE;
  --menta-tenue: #EAF6F3;
  --limone-tenue: #FCFAD9;

  /* Accenti della mascotte: solo piccole dosi */
  --verde: #75BA05;
  --arancio: #F89817;
  --giallo: #F7C902;

  /* Colore di servizio */
  --testo: #3B2F3A;
  --testo-soft: #675863;

  --font-sans: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-script: 'Cherry Swash', Georgia, serif;

  /* Spaziature: scala unica */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Raggi: gerarchia, non un valore unico */
  --r-chip: 12px;
  --r-card: 24px;
  --r-photo: 32px;
  --r-panel: 40px;

  /* Profondità: base → elevato → fluttuante */
  --shadow-elev: 0 1px 2px rgba(59, 47, 58, .05), 0 10px 24px -14px rgba(234, 65, 113, .28), 0 18px 40px -28px rgba(3, 144, 202, .25);
  --shadow-float: 0 2px 6px rgba(59, 47, 58, .08), 0 18px 40px -16px rgba(59, 47, 58, .30), 0 30px 60px -30px rgba(234, 65, 113, .35);
  --shadow-btn: 0 1px 2px rgba(201, 43, 92, .30), 0 10px 22px -10px rgba(234, 65, 113, .65);

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --header-h: 76px;
  --wrap: 1180px;
  --gutter: 20px;
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 88px; } }

/* ---------- Reset essenziale (preflight di Tailwind disattivato) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--testo);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Link per saltare al contenuto (tastiera) */
.skip { position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 18px; border-radius: 999px; background: var(--testo); color: #fff; font-weight: 800; text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease-spring); }
.skip:focus-visible { transform: none; }

/* Grana leggera su tutta la pagina */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .18 0 0 0 0 .23 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Focus visibile ovunque ---------- */
:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipografia ---------- */
.t-display {
  font-weight: 900;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.t-title {
  font-weight: 900;
  font-size: clamp(2.25rem, 7.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.t-h2 {
  font-weight: 800;
  font-size: clamp(1.875rem, 5.6vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--azzurro);
  text-wrap: balance;
}
.t-h3 {
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.t-lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--testo-soft);
  max-width: 34em;
}
@media (min-width: 1024px) { .t-lead { font-size: 1.3125rem; } }
.t-script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--rosa);
  font-size: clamp(1.875rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0;
}
.t-small { font-size: .9375rem; line-height: 1.6; color: var(--testo-soft); }
.measure { max-width: 34em; }
.flow > * + * { margin-top: var(--s-4); }
.flow-lg > * + * { margin-top: var(--s-5); }

/* Link testuali */
.link {
  color: var(--azzurro-scuro);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--nuvola);
  display: inline-block;
  transition: transform .35s var(--ease-spring);
}
.link:hover { text-decoration-color: var(--azzurro); transform: translateX(3px); }
.link:active { transform: translateX(1px) scale(.98); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--s-8); }
@media (min-width: 1024px) { .section { padding-block: 112px; } }
.section-head { margin-bottom: var(--s-6); }
@media (min-width: 1024px) { .section-head { margin-bottom: var(--s-7); } }

.tone-cipria { background: var(--cipria-tenue); --edge: var(--cipria-tenue); }
.tone-nuvola { background: var(--nuvola-tenue); --edge: var(--nuvola-tenue); }
.tone-menta  { background: var(--menta-tenue);  --edge: var(--menta-tenue); }
.tone-limone { background: var(--limone-tenue); --edge: var(--limone-tenue); }

/* Bordo a nuvola (dal badge del logo) */
.scallop-top::before,
.scallop-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 36px 18px;
}
.scallop-top::before { top: -17px; background-image: radial-gradient(circle at 50% 100%, var(--edge) 17.5px, transparent 18px); }
.scallop-bottom::after { bottom: -17px; z-index: 1; background-image: radial-gradient(circle at 50% 0, var(--edge) 17.5px, transparent 18px); }

/* Pois decorativi */
.deco ~ .wrap { position: relative; }
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pois { position: absolute; border-radius: 50%; }

/* ---------- Pulsanti ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .45s var(--ease-spring);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-hover, rgba(59, 47, 58, .12));
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.btn:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 4px; border-radius: 999px; }

.btn--primary { background: var(--rosa); color: #fff; box-shadow: var(--shadow-btn); --btn-hover: rgba(120, 10, 50, .16); }
.btn--outline { background: #fff; color: var(--azzurro-scuro); border-color: var(--azzurro); --btn-hover: rgba(3, 144, 202, .10); }
.btn--soft { background: var(--nuvola); color: #034E73; --btn-hover: rgba(3, 144, 202, .16); }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: .9375rem; }
.btn--lg { min-height: 60px; padding: 16px 34px; font-size: 1.1875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 rgba(234, 65, 113, .10), 0 10px 30px -24px rgba(59, 47, 58, .35);
}
.header-inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: block; flex: none; border-radius: 50%; transition: transform .5s var(--ease-spring); }
.brand img { width: 60px; height: 60px; }
@media (min-width: 768px) { .brand img { width: 72px; height: 72px; } }
.brand:hover { transform: rotate(-6deg) scale(1.04); }
.brand:active { transform: scale(.96); }

.nav { display: none; margin-left: auto; }
.nav-list { display: flex; gap: var(--s-1); }
.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--testo);
  transition: transform .35s var(--ease-spring);
}
.nav-link::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--cipria);
  opacity: 0;
  transform: scale(.85);
  z-index: -1;
  transition: opacity .25s var(--ease-out), transform .4s var(--ease-spring);
}
.nav-link:hover::before { opacity: .7; transform: scale(1); }
.nav-link:active { transform: scale(.96); }
.nav-link[aria-current="page"] { color: var(--rosa-scuro); }
.nav-link[aria-current="page"]::before { opacity: 1; transform: scale(1); }
.nav-list li { position: relative; z-index: 0; }

.header-cta { margin-left: auto; }
.header-cta[aria-current="page"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rosa); }
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--cipria-tenue);
  color: var(--testo);
  cursor: pointer;
  transition: transform .4s var(--ease-spring);
}
.menu-toggle:hover { transform: scale(1.06); }
.menu-toggle:active { transform: scale(.92); }
.menu-toggle svg { width: 24px; height: 24px; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { margin-left: var(--s-2); }
  .menu-toggle { display: none; }
}
@media (max-width: 359px) { .header-cta { padding-inline: 14px; font-size: .875rem; } }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--s-4) var(--gutter) var(--s-6);
  background: #fff;
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  transition: opacity .25s var(--ease-out), transform .45s var(--ease-spring), visibility 0s linear .45s;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu a.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px;
  border-bottom: 2px dashed var(--cipria);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .35s var(--ease-spring);
}
.mobile-menu a.mm-link:hover { transform: translateX(4px); }
.mobile-menu a.mm-link:active { transform: scale(.98); }
.mobile-menu a.mm-link[aria-current="page"] { color: var(--rosa-scuro); }
.mobile-menu a.mm-link[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rosa); }
.menu-scrim {
  position: fixed; inset: 0; z-index: 48;
  background: rgba(59, 47, 58, .28);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
}
.menu-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- WhatsApp fluttuante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 2px 6px rgba(18, 140, 126, .3), 0 16px 32px -12px rgba(18, 140, 126, .6);
  transition: transform .45s var(--ease-spring);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float:active { transform: scale(.94); }
.wa-float:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 4px; border-radius: 50%; }

/* Nuvoletta sopra il pulsante WhatsApp: a ogni visita in home, chiudibile con la x */
.wa-hint {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + 60px + 14px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: 6px 6px 6px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-float);
  transform-origin: calc(100% - 30px) calc(100% + 10px);
  opacity: 0;
  transform: translateY(8px) scale(.85);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .25s var(--ease-out), transform .5s var(--ease-spring), visibility 0s linear .5s;
}
.wa-hint::after {
  content: "";
  position: absolute;
  right: 23px;
  bottom: -6px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 0 0 4px 0;
  transform: rotate(45deg);
}
.wa-hint.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.wa-hint-text {
  color: var(--testo);
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
}
.wa-hint-text:hover { text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: 4px; }
.wa-hint-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--testo-soft);
  cursor: pointer;
  transition: transform .35s var(--ease-spring);
}
.wa-hint-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.wa-hint-close:hover { background: var(--cipria-tenue); color: var(--rosa); transform: scale(1.08); }
.wa-hint-close:active { transform: scale(.9); }
.wa-hint-close:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 1px; border-radius: 50%; }

/* ---------- Foto ---------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--cipria);
  isolation: isolate;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
/* trattamento colore (multiply) */
.photo::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(251, 221, 221, .22), rgba(163, 218, 248, .16));
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* sfumatura in basso, solo dove c'è una didascalia sulla foto */
.photo--caption::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(59, 47, 58, .62), rgba(59, 47, 58, .18) 38%, transparent 62%);
  pointer-events: none;
}
.photo-cap {
  position: absolute;
  left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  z-index: 2;
  color: #fff;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(59, 47, 58, .35);
}

/* ---------- Carosello di foto (si scorre col dito o con le frecce) ---------- */
.carousel {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--cipria);
  isolation: isolate;
}
.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .carousel-track > .photo {
  flex: 0 0 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--testo);
  box-shadow: var(--shadow-float);
  cursor: pointer;
  transition: transform .35s var(--ease-spring), opacity .25s var(--ease-out);
}
.carousel-btn .ico { width: 20px; height: 20px; }
.carousel-prev { left: var(--s-3); }
.carousel-next { right: var(--s-3); }
.carousel-btn:hover { color: var(--rosa); transform: scale(1.08); }
.carousel-btn:active { transform: scale(.92); }
.carousel-btn:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 2px; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-dots {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  z-index: 3;
  display: flex;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-elev);
  pointer-events: none;
}
.carousel-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--testo);
  opacity: .25;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-spring);
}
.carousel-dots span.is-active { background: var(--rosa); opacity: 1; transform: scale(1.3); }

/* ---------- Badge dell'hero (il momento memorabile) ---------- */
.badge {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.badge-cloud { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 24px 40px rgba(3, 144, 202, .22)); }
.badge-ring {
  position: absolute;
  inset: 12.5%;
  border-radius: 50%;
  background: #fff;
}
.badge-ring::before {
  content: "";
  position: absolute;
  inset: 2.6%;
  border-radius: 50%;
  border: 3px dashed var(--rosa);
  z-index: 2;
  pointer-events: none;
}
.badge-photo { position: absolute; inset: 6.5%; border-radius: 50%; }
.badge-note {
  position: absolute;
  left: -2%;
  bottom: 3%;
  z-index: 3;
  padding: 8px 20px 10px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-elev);
  transform: rotate(-7deg);
  white-space: nowrap;
  font-size: clamp(1.625rem, 5.5vw, 2.25rem);
}
.badge-dot { position: absolute; border-radius: 50%; }

@media (prefers-reduced-motion: no-preference) {
  .js .badge { animation: badge-in 1s var(--ease-spring) both .1s; }
  .js .badge-note { animation: note-in .9s var(--ease-spring) both .75s; }
  .js .badge-dot { animation: dot-in .8s var(--ease-spring) both; }
  .js .badge-dot:nth-of-type(1) { animation-delay: .5s; }
  .js .badge-dot:nth-of-type(2) { animation-delay: .62s; }
  .js .badge-dot:nth-of-type(3) { animation-delay: .74s; }
}
@keyframes badge-in { from { opacity: 0; transform: scale(.86) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes note-in { from { opacity: 0; transform: translateY(16px) rotate(-14deg) scale(.9); } to { opacity: 1; transform: rotate(-7deg); } }
@keyframes dot-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

/* ---------- Hero home ---------- */
.hero { position: relative; padding-block: var(--s-6) var(--s-9); }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero-copy > * + * { margin-top: var(--s-5); }
.hero-copy .btn { margin-top: var(--s-6); }
/* Su mobile il bottone è già nell'header: qui sarebbe ridondante */
@media (max-width: 767px) { .hero-cta { display: none; } }
@media (min-width: 960px) {
  .hero { padding-block: var(--s-8) var(--s-10); }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); }
}

/* Intestazione delle pagine interne */
.page-hero { position: relative; padding-block: var(--s-7) var(--s-8); }
.page-hero .t-lead { margin-top: var(--s-5); }
@media (min-width: 1024px) { .page-hero { padding-block: var(--s-9) var(--s-9); } }

/* ---------- Galleria del locale (home) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.gallery .photo { aspect-ratio: 1; border-radius: var(--r-card); }
.gallery .photo:first-child,
.gallery .photo:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 10; border-radius: var(--r-photo); }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .gallery .photo:last-child:nth-child(even) { grid-column: auto; aspect-ratio: 1; border-radius: var(--r-card); }
  .gallery .photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split--wide-left { grid-template-columns: 1.25fr 1fr; }
}

/* ---------- Anteprima feste (home) ---------- */
.feste-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 300px);
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) var(--s-5);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.feste-scroller::-webkit-scrollbar { display: none; }
@media (min-width: 960px) {
  .feste-scroller { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 0; margin: 0; gap: var(--s-5); }
}
.festa-card {
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  border-radius: var(--r-photo);
  transition: transform .5s var(--ease-spring);
}
.festa-card .photo { aspect-ratio: 4 / 5; }
.festa-card:hover { transform: translateY(-4px) rotate(-.6deg); }
.festa-card:hover .photo img { transform: scale(1.05); }
.festa-card:active { transform: scale(.98); }
.festa-card:focus-visible { outline-offset: 6px; border-radius: var(--r-photo); }
.festa-card p { margin-top: var(--s-3); padding-inline: var(--s-1); color: var(--testo-soft); font-size: 1rem; line-height: 1.55; }
.festa-card .photo-cap { font-size: 1.375rem; letter-spacing: -0.015em; }

/* ---------- Recensioni ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--giallo); }
.stars svg { width: 20px; height: 20px; }

/* Badge di fiducia */
.reviews-head { display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 960px) { .reviews-head { grid-template-columns: 1fr auto; } }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-elev);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: transform .35s var(--ease-spring);
}
.trust-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  pointer-events: none;
}
.trust-item:hover { transform: translateY(-2px); }
.trust-item:hover::after { opacity: 1; }
.trust-item:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.trust-item:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 4px; }
.trust-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--nuvola-tenue); flex: none; }
.trust-logo svg { width: 24px; height: 24px; }
.trust-score { font-weight: 900; font-size: 1.375rem; letter-spacing: -0.02em; margin-right: var(--s-2); }
.trust-item .stars { vertical-align: -2px; }
.trust-item .stars svg { width: 16px; height: 16px; }
.hearts { display: inline-flex; gap: 2px; color: var(--rosa); vertical-align: -2px; }
.hearts svg { width: 16px; height: 16px; }
.trust-sub { display: block; font-size: .875rem; line-height: 1.3; color: var(--testo-soft); }

/* Card recensioni: carosello su mobile, tre colonne su desktop */
.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 380px);
  align-items: start;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) var(--s-6);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .reviews { display: block; columns: 3; column-gap: var(--s-5); overflow: visible; padding: 0; margin: 0; }
  .review { break-inside: avoid; margin-bottom: var(--s-5); }
}
.review {
  position: relative; /* contiene il testo per lettori di schermo dentro il carosello */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  border-radius: var(--r-card) var(--r-card) var(--r-card) 6px;
  background: #fff;
  box-shadow: var(--shadow-elev);
}
.review-head { display: flex; align-items: center; gap: var(--s-3); }
.review-avatar {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: .02em;
}
.review-who { flex: 1; min-width: 0; }
.review-name { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.review-date { font-size: .875rem; line-height: 1.3; color: var(--testo-soft); }
.review-src { display: grid; place-items: center; width: 28px; height: 28px; flex: none; }
.review-src svg { width: 22px; height: 22px; }
.review-stars { margin-top: var(--s-4); line-height: 1; }
.review-stars .stars svg { width: 18px; height: 18px; }
.review-reco {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-4);
  padding: 2px 12px 2px 8px;
  border-radius: 999px;
  background: var(--cipria-tenue);
  color: var(--rosa-scuro);
  font-weight: 800;
  font-size: .875rem;
  line-height: 1.8;
}
.review-reco .ico { width: 16px; height: 16px; fill: currentColor; }
.review-text { margin-top: var(--s-3); font-size: 1.0625rem; line-height: 1.65; }
.review-text.is-clamped p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-more {
  align-self: flex-start;
  margin-top: var(--s-2);
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--azzurro-scuro);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--nuvola);
  cursor: pointer;
  transition: transform .35s var(--ease-spring);
}
.review-more:hover { text-decoration-color: var(--azzurro); transform: translateX(3px); }
.review-more:active { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
  .review-text.is-open p { animation: faq-open .45s var(--ease-out); }
}
.reviews-links { margin-top: var(--s-2); }
@media (min-width: 900px) { .reviews-links { margin-top: var(--s-6); } }
.btn-logo { display: grid; place-items: center; width: 22px; height: 22px; }
.btn-logo svg { width: 22px; height: 22px; }

.bubble {
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-5);
  border-radius: var(--r-card) var(--r-card) var(--r-card) 6px;
  background: var(--bubble, #fff);
  box-shadow: var(--shadow-elev);
}
@media (min-width: 768px) { .bubble { padding: var(--s-7) var(--s-6) var(--s-6); } }
.bubble blockquote { font-size: 1.125rem; line-height: 1.65; }
.bubble blockquote::before {
  content: "“";
  position: absolute;
  top: -.28em; left: .32em;
  font-family: Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--rosa);
}
.bubble footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); font-weight: 800; }
.bubble footer .t-small { font-weight: 600; flex-basis: 100%; margin-top: -4px; }

/* ---------- Chi siamo (anteprima) ---------- */
.ring-photo {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-elev);
}
.ring-photo::before {
  content: "";
  position: absolute; inset: 3%;
  border-radius: 50%;
  border: 3px dashed var(--rosa);
  z-index: 2;
  pointer-events: none;
}
.ring-photo .photo { position: absolute; inset: 6.5%; border-radius: 50%; }

/* ---------- Invito finale ---------- */
.invite { text-align: center; }
.invite .t-lead { margin-inline: auto; margin-top: var(--s-4); }
.invite .btn-row { justify-content: center; margin-top: var(--s-6); }

/* ---------- Mappa ---------- */
.map {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--nuvola-tenue);
  box-shadow: var(--shadow-elev);
  aspect-ratio: 4 / 3;
}
.map iframe { width: 100%; height: 100%; border: 0; }
/* la mappa di Google si carica solo dopo il clic: prima c'è questo riquadro */
.map:not(.is-loaded) iframe { visibility: hidden; }
.map.is-loaded .map-consent { display: none; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-4);
  text-align: center;
  background: radial-gradient(circle at 30% 20%, #fff, var(--nuvola-tenue) 70%);
}
.map-consent p { max-width: 24em; font-size: .9375rem; line-height: 1.5; color: var(--testo-soft); }
.map-consent a { color: var(--azzurro-scuro); font-weight: 700; text-underline-offset: 3px; }
.map-consent a:hover { color: var(--rosa); }
.map-consent a:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 2px; border-radius: 4px; }
.footer-map .map-consent p { font-size: .8125rem; }
@media (min-width: 960px) { .map--tall { aspect-ratio: 5 / 4; } }
.address { font-style: normal; }
.icon-line { display: flex; gap: var(--s-3); align-items: flex-start; }
.icon-line svg { width: 26px; height: 26px; flex: none; margin-top: 2px; color: var(--rosa); }

/* ---------- Icone (tratto arrotondato, rosa) ---------- */
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-tile {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--cipria);
  color: var(--rosa);
}

/* ---------- Pagina feste ---------- */
.format { display: grid; gap: var(--s-5); align-items: center; }
.format + .format { margin-top: var(--s-8); }
.format .photo,
.format .carousel { aspect-ratio: 4 / 5; }
.format-name { display: flex; align-items: center; gap: var(--s-3); }
.format-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
@media (min-width: 860px) {
  .format { grid-template-columns: minmax(0, .8fr) 1fr; gap: var(--s-8); }
  .format:nth-child(even) { grid-template-columns: 1fr minmax(0, .8fr); }
  .format + .format { margin-top: var(--s-9); }
  .format:nth-child(even) > :first-child { order: 2; }
}
.format p { margin-top: var(--s-3); font-size: 1.1875rem; max-width: 26em; }
.season {
  display: inline-block;
  margin-top: var(--s-4);
  padding: 4px 14px;
  border-radius: var(--r-chip);
  background: var(--limone-tenue);
  box-shadow: inset 0 0 0 2px var(--limone);
  font-weight: 700;
  font-size: .9375rem;
}

.trio { display: grid; gap: var(--s-4); }
.trio > * { aspect-ratio: 4 / 3; }
.trio > .carousel { border-radius: var(--r-photo); }
@media (min-width: 768px) {
  .trio { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-4); }
  .trio > :first-child { grid-row: span 2; aspect-ratio: auto; }
}

/* L'attenzione ai dettagli: tre primi piani, in fila scorrevole su telefono */
.details {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 320px);
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) var(--s-2);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.details::-webkit-scrollbar { display: none; }
.details .photo { aspect-ratio: 4 / 5; scroll-snap-align: start; box-shadow: var(--shadow-elev); }
@media (min-width: 900px) {
  .details { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0 0 var(--s-7); margin: 0; gap: var(--s-5); }
  .details .photo:nth-child(2) { transform: translateY(var(--s-7)); }
}

/* ---------- Pagina locale ---------- */
.facts { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.fact {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-elev);
}
.fact strong { display: block; font-weight: 800; line-height: 1.3; }
/* solo il testo: senza "div >" la regola colpiva anche il riquadro dell'icona */
.fact div > span { display: block; color: var(--testo-soft); font-size: .9375rem; line-height: 1.5; }
.fact .ico-tile { flex: none; }
.parents-note {
  position: relative;
  margin-top: var(--s-8);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-panel);
  background: var(--menta-tenue);
}
@media (min-width: 768px) { .parents-note { padding: var(--s-7); } }
.parents-note .carousel { aspect-ratio: 1; border-radius: var(--r-card); }

/* ---------- Chi siamo ---------- */
.story p { font-size: 1.125rem; }
.story .story-sign { margin-top: var(--s-6); font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; }
.skills { display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 640px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .skills { grid-template-columns: repeat(4, 1fr); } }
.skill { text-align: center; }
.skill .t-h3 { margin-top: var(--s-4); }
.skill p { margin-top: var(--s-2); color: var(--testo-soft); font-size: 1rem; text-align: justify; hyphens: auto; }

.compare { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.compare-row {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-elev);
}
.compare-row .home { color: var(--testo-soft); text-decoration: line-through; text-decoration-color: var(--salmone); text-decoration-thickness: 2px; }
.compare-row .maffy { font-weight: 800; display: flex; gap: var(--s-2); align-items: flex-start; }
.compare-row .maffy svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--rosa); }
.compare-head { display: none; }
@media (min-width: 768px) {
  .compare { gap: var(--s-2); }
  .compare-head { display: grid; grid-template-columns: 1fr 1fr; padding: 0 var(--s-5) var(--s-2); font-weight: 800; color: var(--azzurro-scuro); }
  .compare-row { grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: center; }
}

/* ---------- FAQ (fisarmonica) ---------- */
.faq { display: grid; gap: var(--s-3); }
.faq details {
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--shadow-elev);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-card);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq-icon { transform: scale(1.1); }
.faq summary:active .faq-icon { transform: scale(.92); }
.faq-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--cipria);
  color: var(--rosa-scuro);
  transition: transform .45s var(--ease-spring);
}
.faq-icon svg { width: 18px; height: 18px; transition: transform .45s var(--ease-spring); }
.faq details[open] .faq-icon { background: var(--rosa); color: #fff; }
.faq details[open] .faq-icon svg { transform: rotate(45deg); }
.faq-body { padding: 0 var(--s-5) var(--s-5); max-width: 40em; }
.faq-body > * + * { margin-top: var(--s-3); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-body { animation: faq-open .45s var(--ease-out); }
}
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Pagina contatti ---------- */
.contact-panel {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-panel);
  background: #fff;
  box-shadow: var(--shadow-float);
}
@media (min-width: 768px) { .contact-panel { padding: var(--s-7); } }
.contact-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; } }

.form { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.field label { display: block; margin-bottom: 6px; font-weight: 800; font-size: 1rem; }
.field { min-width: 0; }
.field input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border: 2px solid #E6D9E0;
  border-radius: 16px;
  background: #fff;
  font-size: 1.0625rem;
  transition: transform .3s var(--ease-spring);
}
.field input::placeholder { color: #9A8B95; }
/* iOS Safari: il campo data nativo ignora width:100% e trasborda; lo riportiamo allineato agli altri */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  padding-top: 13px;
  padding-bottom: 13px;
  line-height: 28px;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 28px; }
.field input[type="date"]::-webkit-datetime-edit { padding: 0; }
.field input:hover { border-color: var(--nuvola); }
.field input:focus { outline: none; border-color: var(--azzurro); box-shadow: 0 0 0 4px rgba(163, 218, 248, .55); }
.field input[aria-invalid="true"] { border-color: var(--rosa); }
.field-error { margin-top: 6px; color: var(--rosa-scuro); font-weight: 700; font-size: .9375rem; }
.form .btn { justify-self: start; }
@media (max-width: 479px) { .form .btn { justify-self: stretch; } }

/* ---------- Banda CTA (pagine interne) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-7) var(--s-5);
  border-radius: var(--r-panel);
  background: var(--cipria-tenue);
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; padding: var(--s-7) var(--s-8); } }
.cta-band > :not(.deco) { position: relative; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: var(--s-9); padding-block: var(--s-8) var(--s-6); background: var(--nuvola-tenue); --edge: var(--nuvola-tenue); }
main:has(> section:last-child[class*="tone-"]) + .site-footer { margin-top: 0; }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: var(--s-6); } }
.footer-brand img { width: 96px; height: 96px; }
.footer-title { font-weight: 900; font-size: 1.125rem; margin-bottom: var(--s-3); color: var(--azzurro-scuro); }
.footer-list > li + li { margin-top: var(--s-2); }
.footer-list a { text-decoration: none; font-weight: 700; display: inline-block; transition: transform .35s var(--ease-spring); }
.footer-list a:hover { text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: 4px; transform: translateX(2px); }
.footer-list a:active { transform: scale(.98); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-3); }
.footer-contact + .footer-contact { margin-top: var(--s-4); }
.footer-name { flex-basis: 100%; font-size: .875rem; color: var(--testo-soft); }
.footer-contact a + a { color: var(--azzurro-scuro); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--nuvola); text-underline-offset: 4px; }
.footer-email { margin-left: var(--s-4); }
.footer-map { margin-top: var(--s-4); aspect-ratio: 16 / 9; border-radius: var(--r-card); }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  justify-content: space-between;
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 2px dashed var(--nuvola);
  font-size: .9375rem;
  color: var(--testo-soft);
}
.footer-legal nav { display: flex; gap: var(--s-4); }
.footer-legal a { font-weight: 700; color: var(--testo); text-decoration: underline; text-decoration-color: var(--nuvola); text-underline-offset: 4px; }
.footer-legal a:hover { text-decoration-color: var(--rosa); }

/* ---------- Segnaposto: da sostituire prima della pubblicazione ---------- */
.ph {
  display: inline;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--limone);
  outline: 2px dashed var(--testo);
  outline-offset: -1px;
  color: var(--testo);
  font-weight: 800;
  font-size: .875em;
  line-height: 1.9;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.ph-block {
  padding: var(--s-5);
  border-radius: var(--r-card);
  background: var(--limone-tenue);
  outline: 2px dashed var(--testo);
  outline-offset: -2px;
}
.ph-block strong { display: block; margin-bottom: var(--s-2); }

/* ---------- Pagine legali ---------- */
.legal { max-width: 44em; }
.legal h2 { font-weight: 800; font-size: 1.375rem; margin-top: var(--s-7); color: var(--azzurro-scuro); }
.legal h3 { font-weight: 800; font-size: 1.0625rem; margin-top: var(--s-5); }
.legal p, .legal ul { margin-top: var(--s-3); }
.legal ul { padding-left: 1.25em; list-style: disc; }
.legal li + li { margin-top: var(--s-2); }
.legal li::marker { color: var(--rosa); }
.legal a { color: var(--azzurro-scuro); font-weight: 700; text-underline-offset: 3px; }
.legal a:hover { color: var(--rosa); }
.legal a:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 2px; border-radius: 4px; }
.legal-updated { color: var(--testo-soft); font-size: .9375rem; }
.legal-box {
  margin-top: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-card);
  background: var(--nuvola-tenue);
}
.legal-box p:first-child { margin-top: 0; }
.legal-box .btn { margin-top: var(--s-4); }
.legal-table { margin-top: var(--s-4); overflow-x: auto; border-radius: var(--r-card); box-shadow: var(--shadow-elev); }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; font-size: .9375rem; line-height: 1.5; }
.legal-table th, .legal-table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; }
.legal-table th { background: var(--cipria-tenue); font-weight: 800; }
.legal-table tr + tr td { border-top: 1px solid var(--cipria); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Su mobile i pois piccoli dell'intestazione finirebbero dietro al testo */
@media (max-width: 767px) { .page-hero .pois + .pois { display: none; } }

/* Video di Maffy nel cerchio dell'hero: colori originali, nessun filtro */
.badge-media { overflow: hidden; border-radius: 50%; background: #F5F4F7; }
.badge-video { width: 100%; height: 100%; object-fit: cover; }
.badge-toggle {
  position: absolute;
  right: 15%;
  bottom: 15%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--testo);
  box-shadow: var(--shadow-elev);
  cursor: pointer;
  transition: transform .45s var(--ease-spring);
}
.badge-toggle .ico { width: 20px; height: 20px; }
.badge-toggle:hover { transform: scale(1.08); }
.badge-toggle:active { transform: scale(.92); }
.badge-toggle:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 3px; border-radius: 50%; }

/* Social nell'header (desktop) e nel menu mobile */
.social { display: none; gap: 2px; margin-left: var(--s-2); }
@media (min-width: 1080px) { .social { display: flex; } }
.social-link {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--testo);
  transition: transform .4s var(--ease-spring);
}
.social-link::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--cipria);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s var(--ease-out), transform .4s var(--ease-spring);
}
.social-link .ico { width: 22px; height: 22px; }
.social-link:hover { color: var(--rosa-scuro); }
.social-link:hover::before { opacity: 1; transform: scale(1); }
.social-link:active { transform: scale(.92); }
.social-link:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 2px; border-radius: 50%; }

.btn--ghost { background: var(--cipria-tenue); color: var(--testo); --btn-hover: rgba(234, 65, 113, .10); }
.btn--ghost .ico { width: 22px; height: 22px; color: var(--rosa-scuro); }
.mm-social { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.mm-social .btn { flex: 1 1 0; min-width: 0; padding-inline: var(--s-4); }
