/* =============================================================================
 * petstories.app: stile della HOME (dal 2026-09-30, sess. 225). Le tre pagine legali restano su
 * style-v4.css, che non si tocca.
 *
 * ⭐ I COLORI NON SI SCELGONO QUI: sono copiati da `mypet/mobile/src/theme/index.ts` (palette
 *    `warm`, la predefinita dell'app), gli stessi di style-v4.css. I colori degli eventi e delle
 *    specie sono quelli del seed del backend (`backend/prisma/seed.ts`), cosi' le vignette
 *    somigliano all'app vera. Se cambiano la', qui si ricopiano.
 *
 * ⭐ TITOLI IN PLAYFAIR DISPLAY 700, come nell'app (mobile/src/app/_layout.tsx). Ospitato su
 *    /assets/, mai da Google Fonts (sarebbe un host esterno: controllo 8 del guard e §5.1
 *    dell'informativa). Il corpo del testo resta il font di sistema, come nell'app.
 *
 * 🔴 Tre regole da non violare:
 *    1. Il coral non e' un colore da testo su fondo chiaro (2,6:1). Per il testo coral c'e'
 *       --coral-text (#9E3F33 sul chiaro).
 *    2. Sopra il coral si scrive con --on-coral (#3A342E), che NON segue il tema: il coral e'
 *       uguale nei due temi, e con lui il suo primo piano.
 *    3. I badge degli store non si toccano: niente filtri, cornici, animazioni, adattamenti al
 *       tema. Solo l'altezza, che pareggia otticamente i due file.
 *
 * ⛔ Il nome porta -v1: /assets/* e' immutable per un anno. Una modifica = home-v2.css e la riga
 *    in index.html. Il selftest del guard inietta sulla riga del foglio di stile, qualunque sia.
 * ========================================================================== */

/* Playfair Display 700, sottoinsieme latino di Google NON modificato (@fontsource 5.3.0).
 * unicode-range copiato da quel pacchetto: il browser scarica il file solo se servono quei
 * caratteri (italiano, francese, tedesco e spagnolo ci stanno tutti). */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/playfair-display-latin-700-v1.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;
}

/* Ripiego «a misura»: Georgia Bold ritoccata perche' occupi lo spazio di Playfair mentre questo
 * arriva, cosi' lo scambio non sposta il testo sotto. Misurato con opentype.js sui titoli veri
 * della pagina nelle cinque lingue (2026-09-30): size-adjust 89,39%, ascent 121,05%, descent
 * 28,08%. Su Android Georgia non c'e' e resta il serif di sistema: nessun danno, meno precisione. */
@font-face {
  font-family: 'Playfair Fallback';
  font-weight: 700;
  src: local('Georgia Bold'), local('Georgia-Bold'), local('Georgia');
  size-adjust: 89.39%;
  ascent-override: 121.05%;
  descent-override: 28.08%;
  line-gap-override: 0%;
}

:root {
  /* neutralPalettes.warm.light */
  --bg: #f4eee6;
  --surface: #ffffff;
  --surface-alt: #eae3db;
  --ink: #3a342e;
  --muted: #6e6357;
  --soft: #9c907f;
  --line: #e0d6c8;

  /* colors: bloccati fra i temi */
  --coral: #f5a89a;
  --coral-strong: #e8847a;
  --teal: #7ecec8;
  --amber: #f5c16c;
  --on-coral: #3a342e;
  --coral-text: #9e3f33;
  --focus: #9e3f33;

  /* fondi delle sezioni colorate: una velatura di coral e di teal sulla crema */
  --wash-peach: #f9e2da;
  --wash-teal: #dcefed;

  /* tipi di evento (seed del backend) */
  --ev-vacc: #4caf50;
  --ev-anti: #ff9800;
  --ev-vet: #2196f3;
  --ev-groom: #00bcd4;
  --ev-med: #9c27b0;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', 'Playfair Fallback', Georgia, 'Times New Roman', serif;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;

  /* scala `shadows` del tema, piu' una morbida per il telefono */
  --shadow-xs: 0 1px 2px rgba(45, 45, 45, 0.06);
  --shadow-sm: 0 2px 6px rgba(45, 45, 45, 0.1);
  --shadow-md: 0 4px 12px rgba(45, 45, 45, 0.14);
  --shadow-lg: 0 24px 48px rgba(45, 45, 45, 0.18);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 64px;
  --wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* neutralPalettes.warm.dark: un bruno caldo, non un grigio */
    --bg: #1c1a17;
    --surface: #242220;
    --surface-alt: #2b2824;
    --ink: #f2eae0;
    --muted: #b8ac9f;
    --soft: #7d7366;
    --line: #3a342e;
    --coral-text: #f5a89a;
    --focus: #f5a89a;
    --wash-peach: #2b2320;
    --wash-teal: #1d2927;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  }
}

/* ---------------------------------------------------------------- base */
* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.35rem + 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.ic {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.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;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.fine {
  font-size: 0.92rem;
  color: var(--muted);
}

.note {
  font-size: 0.97rem;
  color: var(--muted);
  padding-left: 14px;
  border-left: 3px solid var(--coral);
}

/* ---------------------------------------------------------------- pulsanti */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn--coral {
  background: var(--coral);
  color: var(--on-coral);
}

.btn--coral:hover {
  background: var(--coral-strong);
}

.btn--ink {
  background: var(--ink);
  color: var(--bg);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--surface-alt);
}

/* ---------------------------------------------------------------- badge degli store */
/* ⛔ Solo l'altezza. 46/56 (40/49 sotto i 480px) sono le misure di /scarica e del biglietto: il
 * PNG di Google incorpora il suo margine, l'SVG di Apple no. Il Google INGLESE ha un margine piu'
 * grande (parte visibile 564x168 in 646x250 contro 646x192): lo script gli mette data-wide e qui
 * sale a 64 (56), cosi' la parte visibile e' alta come nelle altre lingue. 12px fra i due: il
 * margine di rispetto di Apple e' un quarto dell'altezza del badge. */
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store {
  display: block;
  line-height: 0;
  border-radius: 10px;
}

.badge {
  display: block;
  width: auto;
}

.badge--apple {
  height: 46px;
}

.badge--google {
  height: 56px;
}

.badge--google[data-wide] {
  height: 64px;
}

@media (max-width: 479px) {
  .badge--apple {
    height: 40px;
  }

  .badge--google {
    height: 49px;
  }

  .badge--google[data-wide] {
    height: 56px;
  }
}

/* ---------------------------------------------------------------- intestazione */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 230, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar {
    background: rgba(244, 238, 230, 0.8);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

@media (prefers-color-scheme: dark) {
  .topbar {
    background: rgba(28, 26, 23, 0.94);
  }

  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .topbar {
      background: rgba(28, 26, 23, 0.8);
    }
  }
}

.is-scrolled .topbar {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 16px;
}

.brand {
  display: block;
  line-height: 0;
  margin-right: auto;
  border-radius: 8px;
}

.brand__img {
  height: 34px;
  width: auto;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav--desk {
  display: none;
}

.nav--desk .nav__list {
  display: flex;
  gap: 22px;
}

.nav--desk a {
  display: block;
  padding: 8px 0;
  font-size: 0.97rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--coral), var(--coral)) no-repeat 0 100% / 0 3px;
  transition: background-size 0.25s var(--ease-out);
}

.nav--desk a:hover,
.nav--desk a[aria-current] {
  background-size: 100% 3px;
}

.topbar__cta {
  display: none;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

/* Menu lingua. Invisibile finche' lo script non l'ha agganciato, ma occupa gia' il suo posto:
 * nessun salto quando compare. */
.lang {
  position: relative;
  visibility: hidden;
}

.lang-ready .lang {
  visibility: visible;
}

.lang__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 700;
}

.lang__chev {
  width: 1em;
  height: 1em;
  transition: transform 0.2s ease;
}

.lang[open] .lang__chev {
  transform: rotate(180deg);
}

.lang__list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.lang__list button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  text-align: left;
  cursor: pointer;
}

.lang__list button:hover {
  background: var(--surface-alt);
}

.lang__list button[aria-pressed='true'] {
  background: var(--coral);
  color: var(--on-coral);
  font-weight: 700;
}

/* Menu a scomparsa, sotto i 1024px. */
.menu__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--ink);
}

.menu__btn .ic {
  width: 26px;
  height: 26px;
}

.menu__close,
.menu[open] .menu__open {
  display: none;
}

.menu[open] .menu__close {
  display: block;
}

.nav--panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h)); /* Safari mobile: 100vh conta anche la barra dell'indirizzo */
  overflow-y: auto;
  padding: 8px 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(45, 45, 45, 0.12);
}

.nav--panel .nav__list a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.nav--panel .nav__list a[aria-current] {
  color: var(--coral-text);
}

.nav--panel .btn {
  width: 100%;
  margin-top: 20px;
}

.menu-open {
  overflow: hidden;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  overflow: hidden;
  visibility: hidden;
}

.ui-ready .progress {
  visibility: visible;
}

.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (min-width: 480px) {
  .topbar__cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .topbar__inner {
    gap: 28px;
    padding-inline: 20px;
  }

  .nav--desk {
    display: block;
  }

  .menu {
    display: none;
  }
}

/* ---------------------------------------------------------------- sezioni e onde */
.section {
  --section-bg: var(--bg);
  position: relative;
  background: var(--section-bg);
  padding-block: clamp(64px, 7vw + 32px, 120px);
}

.section--surface {
  --section-bg: var(--surface);
}

.section--peach {
  --section-bg: var(--wash-peach);
}

.section--teal {
  --section-bg: var(--wash-teal);
}

.wave {
  position: absolute;
  left: 0;
  top: -63px;
  width: 100%;
  height: 64px;
  fill: var(--section-bg);
  pointer-events: none;
}

.section__head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 760px;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: 36px 96px;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__text {
  display: grid;
  gap: 18px;
  justify-items: start;
}

/* La didascalia della card social, sottolineata dalla pennellata teal del marchio. */
.tagline {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
}

/* la pennellata sta su uno span IN LINEA e si ripete su ogni riga (box-decoration-break): su un
 * blocco, quando la frase va a capo (tedesco a 320px), copriva tutta la larghezza sotto la
 * seconda riga e lasciava scoperta la prima */
.tagline__txt {
  padding: 0 4px;
  background: linear-gradient(transparent 58%, rgba(126, 206, 200, 0.55) 58%, rgba(126, 206, 200, 0.55) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.stores__label {
  font-weight: 700;
  margin-top: 6px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* max-width 500px: sotto le due colonne il palcoscenico e' centrato e stretto, altrimenti a 768px
 * notifica e ricordo finivano ai bordi di un riquadro largo 728px, staccati dal telefono */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 500px;
  justify-self: center;
  min-height: 560px;
}

.brush {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--teal);
  opacity: 0.75;
}

.brush__s1 {
  stroke-width: 92px;
}

.brush__s2 {
  stroke-width: 80px;
  opacity: 0.85;
}

.brush__s3 {
  stroke-width: 64px;
  opacity: 0.7;
}

.brush__s4 {
  stroke-width: 30px;
  opacity: 0.6;
}

@media (prefers-color-scheme: dark) {
  .brush {
    opacity: 0.35;
  }
}

.hero__heart {
  position: absolute;
  top: 1%;
  left: 68%;
  width: 52px;
  height: 52px;
  color: var(--coral);
  z-index: 2;
}

/* ---------------------------------------------------------------- telefono */
.phone {
  position: relative;
  z-index: 1;
  width: 250px;
  aspect-ratio: 250 / 520;
  padding: 10px;
  border-radius: 42px;
  background: #2b2622;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #4a423b;
}

@media (prefers-color-scheme: dark) {
  .phone {
    background: #0e0d0b;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a342e;
  }
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 33px;
  background: var(--bg);
  font-size: 11px;
  line-height: 1.35;
}

/* la barra di stato del telefono: la notifica le scende sopra, come su un telefono vero, e cosi'
 * non copre il saluto e i Pet */
.scr-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 0 22px;
  font-size: 10.5px;
  font-weight: 700;
}

.scr-status__batt {
  position: relative;
  width: 20px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.8;
}

.scr-status__batt::after {
  content: '';
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.scr {
  padding: 12px 13px 0;
}

.scr__greet {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.scr__label {
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.scr__pets {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spet {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-weight: 600;
}

.spet__av {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.spet__av .ic {
  width: 26px;
  height: 26px;
}

.spet--dog .spet__av {
  background: rgba(245, 168, 154, 0.3);
  color: var(--coral-strong);
}

.spet--cat .spet__av {
  background: rgba(126, 206, 200, 0.3);
  color: #3f9e97;
}

.spet--add .spet__av {
  border: 2px dashed var(--line);
  color: var(--muted);
}

/* evento: il componente EventCard dell'app, in piccolo */
.ev {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.ev__icon {
  --c: var(--ev-vacc);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--c);
  position: relative;
}

.ev__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.15;
}

.ev__icon .ic {
  width: 18px;
  height: 18px;
}

.ev--vacc .ev__icon {
  --c: var(--ev-vacc);
}

.ev--anti .ev__icon {
  --c: var(--ev-anti);
}

.ev--vet .ev__icon {
  --c: var(--ev-vet);
}

.ev--groom .ev__icon {
  --c: var(--ev-groom);
}

.ev__body {
  display: grid;
  min-width: 0;
  flex: 1;
}

.ev__title {
  font-weight: 700;
  font-size: 12px;
}

.ev__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10.5px;
}

/* il separatore fra nome e orario e' un puntino DISEGNATO: nel testo non ci va il «·» */
.ev__pet::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

.ev__bell {
  width: 16px;
  height: 16px;
  color: var(--soft);
}

.scr__banner {
  position: relative;
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 12px 44px 12px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--coral), #f8c3b8);
  color: var(--on-coral);
}

.scr__banner-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}

.scr__banner-sub {
  font-size: 10.5px;
}

.scr__banner-paw {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  opacity: 0.7;
}

.scr-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 4px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* --muted e --coral-text, non --soft e --coral-strong come nell'app: e' testo da 8,5px, e anche
 * dentro un'illustrazione deve leggersi (axe l'ha misurato sotto soglia, 2026-09-30) */
.scr-tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 8.5px;
  color: var(--muted);
}

.scr-tab .ic {
  width: 18px;
  height: 18px;
}

.scr-tab.is-on {
  color: var(--coral-text);
  font-weight: 700;
}

/* notifiche e ricordi che galleggiano intorno al telefono */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 232px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  line-height: 1.3;
}

.float--toast {
  top: -4px;
  left: 0;
}

.float--memory {
  bottom: 12%;
  right: 0;
}

.float__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
}

.float__icon .ic {
  width: 18px;
  height: 18px;
}

.float__icon--app {
  border-radius: 9px;
  background: var(--coral);
  color: var(--on-coral);
}

.float__icon--mood {
  border-radius: 50%;
  background: rgba(245, 193, 108, 0.3);
  color: #b77c16;
}

@media (prefers-color-scheme: dark) {
  .float__icon--mood {
    color: var(--amber);
  }
}

.float__txt {
  display: grid;
}

.float__title {
  font-weight: 700;
}

.float__body {
  color: var(--muted);
}

@media (max-width: 479px) {
  .hero__visual {
    min-height: 530px;
  }

  /* 248 e non meno: a 226 data e ora degli eventi andavano a capo e il banner «Adotta un Pet»
   * finiva sotto la barra delle tab (visto al render a 375px) */
  .phone {
    width: 248px;
  }

  .float--memory {
    display: none;
  }

  .float--toast {
    top: -22px;
    max-width: 210px;
  }

  .hero__heart {
    width: 40px;
    height: 40px;
    left: auto;
    right: 6%;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-block: 56px 120px;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .hero__visual {
    max-width: none;
    min-height: 600px;
  }

  .phone {
    width: 272px;
  }
}

/* ---------------------------------------------------------------- capitoli */
.chapter {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-block: 36px;
}

.chapter__text {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.chapter__text p {
  max-width: 60ch;
}

@media (min-width: 900px) {
  .chapter {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding-block: 48px;
  }

  .chapter--flip .chapter__text {
    order: 2;
  }
}

/* vignetta: una scheda dell'app ricostruita. Decorativa (aria-hidden), il testo accanto basta. */
.vg {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.4;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.chip .ic {
  width: 14px;
  height: 14px;
}

.chip--soft {
  background: var(--surface-alt);
  color: var(--muted);
}

/* calendario */
.vg-cal__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}

.vg-cal__head .ic {
  color: var(--coral-strong);
}

.vg-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.vg-cal__grid li {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.vg-cal__grid .off {
  visibility: hidden;
}

.vg-cal__grid .d {
  color: var(--ink);
}

.vg-cal__grid .d::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--dot, var(--ev-vacc));
}

.d--vacc {
  --dot: var(--ev-vacc);
}

.d--anti {
  --dot: var(--ev-anti);
}

.d--vet {
  --dot: var(--ev-vet);
}

.d--groom {
  --dot: var(--ev-groom);
}

.d--med {
  --dot: var(--ev-med);
}

.vg-cal__grid .is-today {
  background: var(--coral);
  color: var(--on-coral);
  font-weight: 800;
}

.vg-cal__grid .is-today::after {
  background: var(--on-coral);
}

.vg-cal .ev {
  font-size: 12px;
}

.vg-cal__cost {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12.5px;
}

.vg-cal__cost .ic {
  color: var(--ev-vacc);
}

.vg-cal__cost strong {
  margin-left: auto;
}

/* peso e documenti */
.vg-weight {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
}

.vg-weight__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.vg-weight__head .ic {
  color: var(--coral-strong);
}

.vg-weight__head strong {
  margin-left: auto;
  font-size: 17px;
}

/* proporzioni fisse (niente preserveAspectRatio="none" ne' vector-effect): il tratto si «disegna»
 * con pathLength="1" e stroke-dashoffset, e con uno spessore non scalato quella normalizzazione
 * non terrebbe piu' */
.vg-weight__chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.vg-weight__area {
  fill: rgba(245, 168, 154, 0.22);
}

.vg-weight__line {
  fill: none;
  stroke: var(--coral-strong);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vg-docs {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.vg-docs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
}

.vg-docs .ic {
  color: var(--ev-vet);
}

.vg-docs li:nth-child(2) .ic {
  color: var(--ev-vacc);
}

.vg-docs li:nth-child(3) .ic {
  color: var(--ev-med);
}

/* diario: la scheda DiaryEntryCard */
.vg-diary {
  padding: 0;
  overflow: visible;
}

.vg-diary__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.vg-diary__media .scene {
  display: block;
  width: 100%;
  height: 100%;
}

.vg-diary__kinds {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.vg-diary__kinds .ic {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(58, 52, 46, 0.65);
  color: #fff;
}

.vg-diary__body {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 16px 16px;
}

.vg-diary__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.vg-diary__date {
  color: var(--muted);
  font-size: 12px;
}

.vg-diary__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.vg-diary__tags {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.chip--pin {
  background: rgba(245, 168, 154, 0.25);
  color: var(--coral-text);
}

.chip--mood {
  background: rgba(245, 193, 108, 0.3);
  color: #8a5a07;
}

@media (prefers-color-scheme: dark) {
  .chip--mood {
    color: var(--amber);
  }
}

.chip--pdf {
  position: absolute;
  top: -14px;
  right: -8px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: rotate(4deg);
}

.chip--pdf .ic {
  color: #d84343;
  width: 18px;
  height: 18px;
}

/* scene dei luoghi: stesse forme dell'app, colori da palette.json (chiaro/scuro). I colori sono
 * CLASSI e non attributi fill="var(...)": dentro un attributo SVG la var() non e' affidabile. */
.scene .s-bg {
  fill: var(--s-bg);
}

.scene .s-ground {
  fill: var(--s-ground);
}

.scene .s-subject {
  fill: var(--s-subject);
}

.scene .s-deep {
  fill: var(--s-deep);
}

.scene .s-accent {
  fill: var(--s-accent);
}

.scene .s-pale {
  fill: var(--s-pale);
}

.scene .s-pale-stroke {
  fill: none;
  stroke: var(--s-pale);
}

.scene--beach {
  --s-bg: #e0f7fa;
  --s-ground: #fff59d;
  --s-subject: #4dd0e1;
  --s-deep: #006064;
  --s-accent: #ff8a65;
  --s-pale: #ffffff;
}

.scene--park {
  --s-bg: #e8f5e9;
  --s-ground: #a5d6a7;
  --s-subject: #4caf50;
  --s-deep: #2e7d32;
  --s-accent: #ffca28;
  --s-pale: #ffffff;
}

.scene--vet {
  --s-bg: #ffebee;
  --s-ground: #ef9a9a;
  --s-subject: #e57373;
  --s-deep: #c62828;
  --s-accent: #4caf50;
  --s-pale: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .scene--beach {
    --s-bg: #0f2c30;
    --s-ground: #6b6430;
    --s-deep: #003e42;
    --s-accent: #ffab91;
    --s-pale: #b2ebf2;
  }

  .scene--park {
    --s-bg: #1b2e1e;
    --s-ground: #2d5a31;
    --s-deep: #245727;
    --s-pale: #a5d6a7;
  }

  .scene--vet {
    --s-bg: #3b1c1c;
    --s-ground: #733636;
    --s-deep: #a82424;
    --s-accent: #81c784;
    --s-pale: #ffcdd2;
  }
}

/* community */
.vg-comm {
  display: grid;
  gap: 14px;
}

.vg-post {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
}

.vg-post__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.avatar .ic {
  width: 18px;
  height: 18px;
}

.avatar--dog {
  background: rgba(245, 168, 154, 0.3);
  color: var(--coral-strong);
}

.avatar--sitter {
  background: rgba(126, 206, 200, 0.3);
  color: #3f9e97;
}

.vg-post__img {
  position: relative;
  aspect-ratio: 16 / 8;
  margin: 10px 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #dcecf3, #ffffff);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .vg-post__img {
    background: linear-gradient(180deg, #22303a, #2f3438);
  }
}

.vg-post__paw {
  position: absolute;
  width: 26px;
  height: 26px;
  color: rgba(58, 52, 46, 0.22);
}

@media (prefers-color-scheme: dark) {
  .vg-post__paw {
    color: rgba(242, 234, 224, 0.25);
  }
}

.vg-post__paw--1 {
  left: 16%;
  bottom: 14%;
  transform: rotate(-18deg);
}

.vg-post__paw--2 {
  left: 42%;
  bottom: 42%;
  transform: rotate(12deg);
}

.vg-post__paw--3 {
  left: 68%;
  bottom: 18%;
  transform: rotate(-8deg);
}

.vg-post__text {
  font-weight: 600;
}

.vg-post__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  color: var(--muted);
}

.like {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
}

.like__on {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -0.625em;
  color: #e5484d;
}

.vg-chat {
  display: grid;
  gap: 8px;
}

.bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 13px;
}

.bubble--in {
  justify-self: start;
  background: var(--surface);
  border-bottom-left-radius: 6px;
}

/* nell'app la bolla inviata e' bianco su coral (1,9:1): qui inchiostro, che si legge */
.bubble--out {
  justify-self: end;
  background: var(--coral);
  color: var(--on-coral);
  border-bottom-right-radius: 6px;
}

.bubble--typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}

.bubble--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--soft);
}

/* luoghi e sitter */
.vg-near {
  display: grid;
  gap: 12px;
}

.vg-map {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.vg-map__bg {
  display: block;
  width: 100%;
  height: 100%;
}

.m-land {
  fill: #ece4d8;
}

.m-park {
  fill: #cfe6c6;
}

.m-water {
  fill: #c9e6ef;
}

.m-road {
  fill: none;
  stroke: #ffffff;
  stroke-width: 7;
  stroke-linecap: round;
}

@media (prefers-color-scheme: dark) {
  .m-land {
    fill: #2b2824;
  }

  .m-park {
    fill: #25402a;
  }

  .m-water {
    fill: #1e3440;
  }

  .m-road {
    stroke: #3a342e;
  }
}

.pin {
  position: absolute;
  color: var(--coral-strong);
}

.pin .ic {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.pin--1 {
  left: 18%;
  top: 20%;
}

.pin--2 {
  left: 64%;
  top: 8%;
  color: #3f9e97;
}

.pin--3 {
  left: 80%;
  top: 46%;
}

.vg-map__me {
  position: absolute;
  left: 44%;
  top: 52%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ev-vet);
  box-shadow: 0 0 0 4px #fff;
}

.vg-map__me::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ev-vet);
  opacity: 0;
}

.vg-places {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vg-places li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
  font-size: 12.5px;
}

.vg-places .scene {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
}

.vg-sitter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.vg-sitter__name {
  font-weight: 700;
}

.vg-sitter__chat {
  margin-left: auto;
  color: var(--muted);
}

/* e ancora */
.more {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.more__title {
  margin-bottom: 24px;
}

.more__list {
  display: grid;
  gap: 24px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* icona e un blocco di testo affiancati: con la griglia a due righe l'icona alta 40px spingeva
 * giu' alcuni paragrafi e non altri */
.more__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.more__txt {
  display: grid;
  gap: 2px;
}

.more__list .ic {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(126, 206, 200, 0.25);
  color: #2f7f79;
}

@media (prefers-color-scheme: dark) {
  .more__list .ic {
    color: var(--teal);
  }
}

.more__list h4 {
  margin: 2px 0 0;
  font-size: 1.02rem;
}

.more__list p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .more__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .more__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* impronte fra una sezione e l'altra */
.paws {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  padding: 8px 0 72px;
  background: var(--surface);
  color: var(--coral);
}

.paw {
  width: 26px;
  height: 26px;
  opacity: 0.7;
}

.paw:nth-child(odd) {
  transform: translateY(-8px) rotate(-14deg);
}

.paw:nth-child(even) {
  transform: translateY(8px) rotate(14deg);
}

/* ---------------------------------------------------------------- sezioni a due colonne */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.split__text {
  display: grid;
  gap: 18px;
  justify-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
  }

  .split--flip .split__text {
    order: 2;
  }

  .split--flip {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ADOTTAMI: il nome della sezione come nell'app, non un'etichetta decorativa */
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.brandmark .ic {
  color: var(--coral-strong);
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 60ch;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

/* il segno dell'elenco e' un'impronta disegnata in CSS (maschera sull'icona «paw» dello sprite
 * non e' possibile da CSS: si usa una forma semplice, cuscinetto e quattro dita) */
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, var(--coral-strong) 0 30%, transparent 31%),
    radial-gradient(circle at 22% 38%, var(--coral-strong) 0 11%, transparent 12%),
    radial-gradient(circle at 40% 18%, var(--coral-strong) 0 11%, transparent 12%),
    radial-gradient(circle at 62% 18%, var(--coral-strong) 0 11%, transparent 12%),
    radial-gradient(circle at 80% 38%, var(--coral-strong) 0 11%, transparent 12%);
}

/* schede di adozione (AdoptablePetCard / FoundPetCard) */
.vg-adopt,
.vg-found {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.acard {
  width: 232px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 13px;
}

.vg-adopt .acard {
  position: absolute;
}

.acard--back {
  --x: -84px;
  --y: 22px;
  --r: -9deg;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
}

.acard--front {
  --x: 58px;
  --y: -8px;
  --r: 5deg;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
}

/* su telefono il ventaglio si stringe: aperto come su desktop sforerebbe dalla pagina */
@media (max-width: 479px) {
  .vg-adopt .acard {
    width: 196px;
  }

  .acard--back {
    --x: -52px;
  }

  .acard--front {
    --x: 38px;
  }
}

.acard__cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 138px;
}

.acard__cover .ic {
  width: 70px;
  height: 70px;
}

.acard__cover--dog {
  background: #fde4dd;
  color: var(--coral-strong);
}

.acard__cover--cat {
  background: #dcf1ee;
  color: #3f9e97;
}

.acard__cover--found {
  background: #fcefd6;
  color: #c08a2a;
}

@media (prefers-color-scheme: dark) {
  .acard__cover--dog {
    background: #3a2a26;
  }

  .acard__cover--cat {
    background: #213331;
  }

  .acard__cover--found {
    background: #3a3222;
    color: var(--amber);
  }
}

.acard__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.acard__badge--trial {
  background: var(--amber);
  color: var(--on-coral);
}

.acard__badge--found {
  background: var(--coral);
  color: var(--on-coral);
}

.acard__fav {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: #e5484d;
}

.acard__fav .ic {
  width: 18px;
  height: 18px;
}

.acard__body {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 12px 14px 14px;
}

.acard__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.acard__meta {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.acard__meta span + span::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 6px 0 0;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

/* il chip «Struttura demo» dell'app: dice che la scheda non e' un annuncio vero */
.chip--demo {
  border: 1px dashed var(--soft);
  color: var(--muted);
  background: transparent;
}

.mini-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 12px;
}

.mini-btn--coral {
  background: var(--coral);
  color: var(--on-coral);
}

.offer {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
}

.offer__text {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.vg-offer {
  display: grid;
  gap: 10px;
  max-width: 340px;
  background: var(--surface);
}

.vg-offer__label {
  font-weight: 700;
}

.vg-offer__field {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
}

.vg-offer__caret {
  width: 2px;
  height: 20px;
  background: var(--ink);
}

.vg-offer .mini-btn {
  justify-self: stretch;
  text-align: center;
  padding-block: 11px;
}

@media (min-width: 900px) {
  .offer {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.callout {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(245, 193, 108, 0.22);
  max-width: 62ch;
}

.vg-found__home {
  position: absolute;
  right: 14%;
  top: 8%;
  width: 46px;
  height: 46px;
  color: var(--coral);
}

/* ---------------------------------------------------------------- privacy */
.trust {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.trust .ic {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(126, 206, 200, 0.25);
  color: #2f7f79;
}

@media (prefers-color-scheme: dark) {
  .trust .ic {
    color: var(--teal);
  }
}

.trust h3 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
}

.trust p {
  color: var(--muted);
  font-size: 0.97rem;
}

@media (min-width: 820px) {
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------- scarica */
.download {
  display: grid;
  gap: 32px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.download__text {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.download__text .lede {
  color: var(--ink);
}

.download__text .stores {
  justify-content: center;
}

/* forma crema dietro la mascotte, in ENTRAMBI i temi: i contorni neri del disegno sul bruno del
 * tema scuro sparirebbero */
.download__art {
  position: relative;
  width: min(100%, 340px);
  padding: 28px;
}

.download__art::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 58% 42% 52% 48% / 48% 58% 42% 52%;
  background: #f4eee6;
}

.mascot {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .download {
    grid-template-columns: 0.9fr 1.1fr;
    justify-items: start;
    text-align: left;
    gap: 64px;
  }

  .download__text {
    justify-items: start;
  }

  .download__text .stores {
    justify-content: flex-start;
  }

  .download__art {
    justify-self: center;
  }
}

/* ---------------------------------------------------------------- strutture */
.orgs__list {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.orgs__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg);
}

.orgs__list .ic {
  width: 28px;
  height: 28px;
  color: var(--coral-strong);
  margin-top: 1px;
}

.orgs__check {
  margin-bottom: 20px;
  font-weight: 700;
}

.orgs__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 820px) {
  .orgs__list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------------- assistenza */
.support {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.support .lede {
  margin-inline: auto;
}

.support__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 700;
}

.support__mail .ic {
  color: var(--coral-strong);
}

.support__mail a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.support .fine {
  max-width: 60ch;
}

/* ---------------------------------------------------------------- documenti legali */
.section--legal {
  padding-top: 0;
}

.legal {
  display: grid;
  gap: 16px;
}

.legal__card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.legal__card .ic {
  width: 30px;
  height: 30px;
  color: var(--coral-strong);
}

.legal__card h3 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
}

.legal__card a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* tutta la scheda e' cliccabile, ma il nome accessibile resta il titolo */
.legal__card a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.legal__card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-md);
}

.legal__card p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .legal {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------- piede */
.footer {
  background: var(--surface-alt);
  padding-block: 56px 28px;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  gap: 32px;
}

.footer__brand {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer__logo {
  height: 30px;
  width: auto;
}

.footer__head {
  margin-bottom: 10px;
  font-weight: 800;
}

.footer__col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  color: var(--muted);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
}

/* il filo e' uno sfondo e non un bordo: un bordo coprirebbe anche il padding di .wrap e
 * sporgerebbe oltre il margine del testo */
.footer__legal {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  padding-top: 20px;
  background: linear-gradient(var(--line), var(--line)) no-repeat top center / calc(100% - 40px) 1px;
  color: var(--muted);
}

.footer__top {
  justify-self: start;
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* torna su: compare dopo un po' di scorrimento; senza script resta il link nel piede */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.ui-ready .to-top {
  display: grid;
}

.to-top.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top .ic {
  width: 24px;
  height: 24px;
}

@media (max-width: 359px) {
  .wrap {
    padding-inline: 16px;
  }

  .topbar__inner {
    padding-inline: 12px;
    gap: 8px;
  }

  .brand__img {
    height: 30px;
  }
}

/* =============================================================================
 * MOVIMENTO. Tutto qui dentro: con «riduci movimento» non si anima NULLA e non si nasconde nulla.
 * Solo transform e opacity (piu' il tratto delle pennellate e del grafico del peso, che si
 * disegnano una volta). Cicli FINITI, al massimo due giri: WCAG 2.2.2 chiede di poter fermare
 * cio' che si muove da solo per piu' di 5 secondi, e il modo piu' semplice e' non farlo durare.
 * ⛔ I badge degli store non si muovono MAI.
 * ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn,
  .to-top {
    transition: transform 0.25s var(--ease-bounce), background-color 0.2s ease, opacity 0.25s ease, box-shadow 0.2s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn:active {
    transform: scale(0.97);
  }

  .legal__card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s var(--ease-bounce);
  }

  .legal__card:hover {
    transform: translateY(-3px);
  }

  .lang[open] .lang__list,
  .menu[open] .nav--panel {
    animation: drop-in 0.2s var(--ease-out);
  }

  /* --- il momento dell'hero: le pennellate si dipingono, il telefono arriva, notifica e ricordo
   *     lo raggiungono, il cuore «scoppia». Il TESTO non si anima: e' l'elemento piu' grande
   *     della prima vista, e farlo comparire in dissolvenza ritarderebbe il suo disegno. */
  .brush__s {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: paint 0.9s var(--ease-out) forwards;
  }

  .brush__s2 {
    animation-delay: 0.15s;
  }

  .brush__s3 {
    animation-delay: 0.3s;
  }

  .brush__s4 {
    animation-delay: 0.45s;
  }

  .phone {
    animation: rise 0.8s var(--ease-out) 0.2s both, bob 2.4s ease-in-out 1.3s 2;
  }

  .float--toast {
    animation: slide-in 0.6s var(--ease-bounce) 0.95s both;
  }

  .float--memory {
    animation: pop 0.5s var(--ease-bounce) 1.35s both;
  }

  .hero__heart {
    animation: pop 0.5s var(--ease-bounce) 1.6s both, float 2.4s ease-in-out 2.2s 2;
  }

  /* --- comparsa allo scroll (solo se lo script l'ha accesa) */
  .reveal-on .reveal {
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }

  .reveal-on .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(18px);
  }

  .reveal-on .chapter .vg.reveal,
  .reveal-on .split .reveal + .reveal,
  .reveal-on .offer .vg.reveal {
    transition-delay: 0.12s;
  }

  /* --- le vignette recitano la loro funzione quando entrano in vista */
  .reveal-on .vg-cal.is-in .d::after {
    animation: pop 0.4s var(--ease-bounce) both;
    animation-delay: calc(0.35s + var(--n, 0) * 0.09s);
  }

  .reveal-on .vg-cal.is-in .ev {
    animation: slide-in 0.5s var(--ease-out) 0.7s both;
  }

  .reveal-on .vg-cal.is-in .ev + .ev {
    animation-delay: 0.9s;
  }

  .reveal-on .vg-cal.is-in .vg-cal__cost {
    animation: rise 0.5s var(--ease-out) 1.15s both;
  }

  .reveal-on .vg-health.is-in .vg-weight__line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: paint 1.3s var(--ease-out) 0.35s forwards;
  }

  .reveal-on .vg-health.is-in .vg-weight__area {
    animation: fade 0.8s ease-out 1.1s both;
  }

  .reveal-on .vg-health.is-in .vg-docs li {
    animation: slide-in 0.45s var(--ease-out) both;
  }

  .reveal-on .vg-health.is-in .vg-docs li:nth-child(1) {
    animation-delay: 0.6s;
  }

  .reveal-on .vg-health.is-in .vg-docs li:nth-child(2) {
    animation-delay: 0.75s;
  }

  .reveal-on .vg-health.is-in .vg-docs li:nth-child(3) {
    animation-delay: 0.9s;
  }

  .reveal-on .vg-diary.is-in .chip--pin {
    animation: drop 0.5s var(--ease-bounce) 0.45s both;
  }

  .reveal-on .vg-diary.is-in .chip--mood {
    animation: pop 0.45s var(--ease-bounce) 0.8s both;
  }

  .reveal-on .vg-diary.is-in .chip--pdf {
    animation: pop-tilt 0.55s var(--ease-bounce) 1.1s both;
  }

  .reveal-on .vg-comm.is-in .like__on {
    animation: heart 0.6s var(--ease-bounce) 0.9s both;
  }

  .reveal-on .vg-comm.is-in .bubble {
    animation: rise 0.4s var(--ease-out) both;
  }

  .reveal-on .vg-comm.is-in .bubble:nth-child(1) {
    animation-delay: 0.4s;
  }

  .reveal-on .vg-comm.is-in .bubble:nth-child(2) {
    animation-delay: 1s;
  }

  .reveal-on .vg-comm.is-in .bubble:nth-child(3) {
    animation-delay: 1.6s;
  }

  .reveal-on .vg-comm.is-in .bubble--typing span {
    animation: blink 1.2s ease-in-out 1.8s 3;
  }

  .reveal-on .vg-comm.is-in .bubble--typing span:nth-child(2) {
    animation-delay: 1.95s;
  }

  .reveal-on .vg-comm.is-in .bubble--typing span:nth-child(3) {
    animation-delay: 2.1s;
  }

  .reveal-on .vg-near.is-in .pin {
    animation: drop 0.5s var(--ease-bounce) both;
  }

  .reveal-on .vg-near.is-in .pin--1 {
    animation-delay: 0.35s;
  }

  .reveal-on .vg-near.is-in .pin--2 {
    animation-delay: 0.55s;
  }

  .reveal-on .vg-near.is-in .pin--3 {
    animation-delay: 0.75s;
  }

  .reveal-on .vg-near.is-in .vg-map__me::after {
    animation: ring 1.6s ease-out 1s 3;
  }

  .reveal-on .vg-adopt.is-in .acard {
    animation: fan-in 0.7s var(--ease-out) both;
  }

  .reveal-on .vg-adopt.is-in .acard--front {
    animation-delay: 0.18s;
  }

  .reveal-on .vg-adopt.is-in .acard__fav {
    animation: heart 0.6s var(--ease-bounce) 1s both;
  }

  .reveal-on .vg-offer.is-in .vg-offer__caret {
    animation: blink 1s steps(1) 0.6s 4;
  }

  .reveal-on .vg-found.is-in .acard {
    animation: rise 0.7s var(--ease-out) both;
  }

  .reveal-on .vg-found.is-in .mini-btn {
    animation: nudge 0.6s var(--ease-bounce) 1.1s both;
  }

  .reveal-on .vg-found.is-in .vg-found__home {
    animation: pop 0.5s var(--ease-bounce) 0.8s both;
  }

  .reveal-on .paws:not(.is-in) .paw {
    opacity: 0;
  }

  .reveal-on .paws.is-in .paw {
    animation: step 0.35s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.16s);
  }
}

@keyframes paint {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float {
  50% {
    transform: translateY(-6px) rotate(-6deg);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes pop-tilt {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-10deg);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes heart {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  60% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes ring {
  from {
    opacity: 0.6;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(3);
  }
}

@keyframes fan-in {
  from {
    opacity: 0;
    transform: translate(0, 30px) rotate(0deg);
  }
}

@keyframes nudge {
  40% {
    transform: scale(1.08);
  }
}

@keyframes step {
  from {
    opacity: 0;
    scale: 0.4;
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------------------------------------------------------------- colori forzati e stampa */
@media (forced-colors: active) {
  .btn,
  .lang__btn,
  .vg,
  .legal__card,
  .trust li {
    border: 1px solid CanvasText;
  }
}

@media print {
  .topbar,
  .to-top,
  .paws,
  .wave,
  .hero__visual,
  .vg,
  .vg-adopt,
  .vg-found,
  .download__art,
  .skip {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding-block: 24px;
  }
}
