/* ==========================================================================
   IL LABORATORIO DI PLUTO — foglio di stile del sito pubblico
   Pensato prima per il telefono (è da lì che arriva la maggior parte dei
   clienti), poi allargato per tablet e computer.

   Uno stile solo, ripetuto ovunque:
   - fondo grigio caldo chiaro, superfici quasi bianche, fasce pervinca;
   - titoli tondi e pieni (Fredoka) con un breve "sopratitolo" a mano (Caveat)
     e il segno giallo sotto la parola chiave;
   - angoli morbidi, un solo accento forte: il giallo dei pulsanti d'acquisto;
   - movimento discreto e uguale per tutto (comparsa, sollevamento al passaggio).

   Regole del sistema di design (repo ux-design):
   nessun colore letterale nei componenti, mai bianco puro come fondo,
   decorazioni aria-hidden, un solo interruttore per il movimento: --motion.
   ========================================================================== */

:root {
  --paper: #f5f5f1;
  --card: #fdfdfb;
  --sky: #e2e7f7;
  --sky-2: #cfd8f3;
  --sky-3: #a9b8e8;
  --stone: #e3e4e6;

  --ink: #151515;
  --ink-2: #3d3d3d;
  --ink-3: #6f6f6f;
  --line: #e5e5df;
  --line-2: #d3d3cc;

  --yellow: #f6cf3f;
  --yellow-2: #fde89a;
  --yellow-soft: #fdf3c8;

  --pop-pink: #ec3f8c;
  --pop-orange: #f28a1b;
  --pop-teal: #1fb5d6;
  --pop-green: #86c440;

  --ok: #1f7a4a;
  --ok-bg: #e0f3e8;
  --danger: #b3261e;
  --danger-bg: #fbe4e1;
  --whatsapp: #1f8f55;

  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', 'Segoe Print', cursive;

  --fs-hero: clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.8vw, 2.8rem);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --shadow-1: 0 1px 2px rgb(21 21 21 / .05), 0 6px 18px rgb(21 21 21 / .06);
  --shadow-2: 0 2px 6px rgb(21 21 21 / .06), 0 18px 40px rgb(21 21 21 / .12);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --tabbar-h: 64px;

  --motion: 1;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.5, .64, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* nessuna regola display deve far ricomparire un elemento nascosto */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  overflow-x: clip; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); /* spazio per la barra in basso su telefono */
}
@media (min-width: 900px) { body { padding-bottom: 0; font-size: 1.0625rem; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ---------------------------------------------------- titoli ricorrenti */
.kicker { display: block; font-family: var(--font-script); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); line-height: 1; color: var(--ink-2); margin-bottom: .35rem; }
.title { font-size: var(--fs-h2); }
.title--xl { font-size: var(--fs-hero); letter-spacing: -.025em; line-height: .98; }
.title--l { font-size: var(--fs-h1); }
/* Il segno giallo sotto la parola chiave: lo stesso gesto in ogni pagina. */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ''; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .02em; height: .32em;
  background: var(--yellow); border-radius: 999px; transform-origin: left; transform: scaleX(calc(1 - var(--motion)));
  animation: mark-in .8s .25s var(--ease) forwards;
}
.lead { font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); color: var(--ink-2); max-width: 58ch; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.section-head .lead { margin: .6rem 0 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* ------------------------------------------------------------- pulsanti */
.btn {
  --bg: var(--ink); --fg: var(--card);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .7em 1.5em; border: 2px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(calc(-2px * var(--motion))); box-shadow: 0 6px 0 -1px var(--ink); }
.btn:active { transform: translateY(calc(1px * var(--motion))); box-shadow: none; }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--card); }
.btn--whatsapp { --bg: var(--whatsapp); --fg: var(--card); }
.btn--sm { min-height: 42px; padding: .45em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) { .btn-row--stack .btn { flex: 1 1 100%; } }
.link { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.link:hover { text-decoration-color: var(--ink); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .2s;
}
.icon-btn:hover { background: rgb(21 21 21 / .06); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn--dark { background: var(--ink); color: var(--card); }
.icon-btn--dark:hover { background: var(--ink-2); }
.count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--card);
}
.count[hidden] { display: none; }
.bump { animation: bump .5s var(--spring); }

/* ------------------------------------------------------- avviso in alto */
.announce { position: relative; background: var(--ink); color: var(--card); font-weight: 700; font-size: .85rem; text-align: center; padding: .5rem var(--gutter); }
.announce span + span::before { content: '·'; margin: 0 .6rem; color: var(--yellow); }

/* ---------------------------------------------------------- intestazione */
.site-header { position: sticky; top: 0; z-index: 60; background: rgb(245 245 241 / .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-1); }
.brand small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .72rem; color: var(--ink-3); margin-top: 3px; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5rem .8rem; border-radius: 999px; font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { background: rgb(21 21 21 / .06); }
.main-nav a[aria-current="page"] { background: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions .btn { display: none; }
@media (min-width: 1000px) {
  :root { --header-h: 78px; }
  .main-nav { display: block; }
  .header-actions .btn { display: inline-flex; margin-left: 6px; }
  .menu-toggle { display: none !important; }
  .brand img { width: 54px; height: 54px; }
}

/* Barra di navigazione in basso (solo telefono): le azioni che contano a portata di pollice */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(21 21 21 / .06);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: .72rem; font-weight: 800; color: var(--ink-3); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow); }
.tabbar .count { top: 6px; right: calc(50% - 22px); }
@media (min-width: 900px) { .tabbar { display: none; } }
/* Nella scheda prodotto la barra lascia il posto al pulsante d'acquisto */
.has-buybar .tabbar { display: none; }

/* Menu a tutto schermo */
.menu-sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; z-index: 100;
  background: var(--paper); padding: 16px var(--gutter) 32px; overflow-y: auto;
}
.menu-sheet:not([open]) { display: none; }
.menu-sheet[open] { display: flex; flex-direction: column; gap: 20px; animation: sheet-in .35s var(--ease); }
.menu-sheet__top { display: flex; justify-content: space-between; align-items: center; }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-sheet li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r-md); background: var(--card); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; text-decoration: none; }
.menu-sheet li a[aria-current="page"] { background: var(--sky); }
.menu-sheet li a svg { width: 20px; height: 20px; color: var(--ink-3); }

/* --------------------------------------------------------------- sezioni */
.section { padding-block: clamp(44px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section--sky { background: var(--sky); }
.section--card { background: var(--card); }
.band { background: var(--sky); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 56px); }

/* Testata delle pagine interne: uguale ovunque */
.page-hero { padding-block: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.page-hero .band { position: relative; overflow: hidden; }
.page-hero .lead { margin: .8rem 0 0; }
.breadcrumb { font-size: .85rem; font-weight: 700; color: var(--ink-3); margin-bottom: .8rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.band__paw { position: absolute; right: -24px; bottom: -30px; width: clamp(110px, 18vw, 190px); color: var(--sky-2); pointer-events: none; transform: rotate(-18deg); }

/* ------------------------------------------------------------------ home */
.hero { padding-block: clamp(16px, 3vw, 40px) clamp(28px, 5vw, 64px); }
.hero__grid { display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero__lead { margin: 1rem 0 1.4rem; }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); box-shadow: var(--shadow-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: -10px; bottom: 18px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-weight: 800; font-size: .92rem; max-width: 80%;
}
.hero__badge img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.hero__badge span { display: block; font-weight: 600; color: var(--ink-3); font-size: .8rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.4rem; padding: 0; list-style: none; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--ink); }
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .hero__photo { aspect-ratio: 5 / 6; }
}
@media (max-width: 859px) {
  .hero__media { order: -1; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero__badge { left: 12px; bottom: 12px; }
}

/* Categorie: tessere con foto, scorrono in orizzontale sul telefono */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { scroll-snap-align: start; position: relative; display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); text-decoration: none; box-shadow: var(--shadow-1); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover img { transform: scale(calc(1 + .05 * var(--motion))); }
.cat__label { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--card); border-radius: var(--r-sm); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.cat__label small { font-family: var(--font-body); font-size: .75rem; font-weight: 800; color: var(--ink-3); }
@media (min-width: 760px) { .cats { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* Anteprime che portano alle pagine dedicate */
.teasers { display: grid; gap: 14px; }
.teaser { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: var(--card); border-radius: var(--r-md); padding: 12px; text-decoration: none; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .25s; }
.teaser:hover { transform: translateY(calc(-3px * var(--motion))); box-shadow: var(--shadow-2); }
.teaser img { width: 96px; height: 96px; border-radius: var(--r-sm); object-fit: cover; background: var(--stone); }
.teaser h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.teaser p { margin: 0; color: var(--ink-3); font-size: .92rem; line-height: 1.45; }
.teaser .go { font-weight: 800; font-size: .88rem; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.teaser .go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.teaser:hover .go svg { transform: translateX(calc(4px * var(--motion))); }
@media (min-width: 860px) {
  .teasers { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .teaser { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .teaser img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .teaser > div { padding: 4px 20px 22px; }
}

/* Punti di forza */
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.perk { background: var(--card); border-radius: var(--r-md); padding: 18px 16px; box-shadow: var(--shadow-1); }
.perk svg { width: 30px; height: 30px; margin-bottom: 8px; }
.perk h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.perk p { margin: 0; font-size: .88rem; color: var(--ink-3); line-height: 1.45; }
@media (min-width: 860px) { .perks { grid-template-columns: repeat(4, 1fr); gap: 20px; } .perk { padding: 24px; } }

/* Invito finale all'acquisto / al contatto */
.cta { background: var(--yellow); border-radius: var(--r-lg); padding: clamp(28px, 6vw, 64px); display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.cta > * { position: relative; }
.cta .lead { margin: .6rem 0 0; color: var(--ink); }
.cta__paw { position: absolute; right: -30px; top: -30px; width: 180px; color: rgb(21 21 21 / .08); transform: rotate(20deg); }
@media (min-width: 860px) { .cta { grid-template-columns: 1.4fr 1fr; } .cta .btn-row { justify-content: flex-end; } }

/* --------------------------------------------------------- schede prodotto */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateY(calc(-4px * var(--motion))); box-shadow: var(--shadow-2); }
.pcard__media { position: relative; aspect-ratio: 1; background: var(--stone); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.pcard__media img + img { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .pcard:hover .pcard__media img + img { opacity: 1; } }
.pcard__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.pcard__cat { font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pcard__title { font-weight: 800; font-size: .95rem; line-height: 1.25; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* scheda cliccabile con un solo link */
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.add-btn { position: relative; z-index: 2; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--spring), background .2s; }
.add-btn:hover { transform: scale(1.08); }
.add-btn.is-in { background: var(--ink); color: var(--yellow); }
.add-btn svg { width: 20px; height: 20px; }
.tag { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--card); border-radius: 999px; padding: .2rem .6rem; font-size: .68rem; font-weight: 900; box-shadow: var(--shadow-1); }
.tag--sold { background: var(--ink); color: var(--card); }
.pcard.is-sold .pcard__media img { filter: grayscale(.6); opacity: .75; }
@media (min-width: 700px) {
  .pcard__body { padding: 14px 16px 16px; }
  .pcard__title { font-size: 1.05rem; }
  .price { font-size: 1.3rem; }
  .add-btn { width: 46px; height: 46px; }
  .tag { top: 12px; left: 12px; font-size: .74rem; }
}
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--sky); color: var(--sky-3); }
.placeholder svg { width: 38%; height: 38%; }
.empty { text-align: center; padding: 48px 20px; background: var(--card); border-radius: var(--r-lg); grid-column: 1 / -1; }
.empty svg { width: 80px; margin: 0 auto 12px; color: var(--sky-3); }
.skeleton { background: linear-gradient(90deg, var(--line) 0 40%, var(--card) 50%, var(--line) 60% 100%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r-md); }

/* ---------------------------------------------------------------- prodotti */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); padding-block: 10px; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: .35rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--card); font-weight: 800; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"], .pill[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.pill .n { font-size: .75rem; opacity: .6; }
.toolbar__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.select, .input, .textarea {
  width: 100%; min-height: 50px; padding: .65rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--card); font-size: 16px; /* 16px: iPhone non ingrandisce la pagina al tocco */
  transition: border-color .2s, box-shadow .2s;
}
.select { width: auto; min-height: 42px; padding: .35rem 2rem .35rem .9rem; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-2); }
.textarea { min-height: 120px; resize: vertical; }
.shop { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .shop { grid-template-columns: 240px 1fr; } }

/* Filtri: pannello dal basso sul telefono, colonna laterale sul computer */
.filters { display: grid; gap: 18px; }
.filters h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 900; margin-bottom: .6rem; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__foot { display: none; }
@media (max-width: 999px) {
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; max-height: 82vh; overflow-y: auto; background: var(--paper);
    padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px rgb(21 21 21 / .25);
    transform: translateY(105%); transition: transform .35s var(--ease); visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__foot { display: block; position: sticky; bottom: 0; padding-top: 8px; background: var(--paper); }
}
@media (min-width: 1000px) { .filters { position: sticky; top: calc(var(--header-h) + 20px); } .filters-open { display: none !important; } }
.scrim { position: fixed; inset: 0; z-index: 105; background: rgb(21 21 21 / .35); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.remove-btn { border: 0; background: none; cursor: pointer; font-weight: 800; font-size: .85rem; text-decoration: underline; color: var(--ink-3); padding: 8px; }

/* ---------------------------------------------------------- negozio chiuso */
.closed { text-align: center; padding: clamp(32px, 7vw, 90px) 12px; display: flex; flex-direction: column; align-items: center; }
.closed h2 { font-size: var(--fs-h2); margin: .6rem 0; }
.sleep-dog { width: min(260px, 70vw); }
.sleep-dog .body { fill: var(--card); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.sleep-dog .breath { transform-origin: 50% 90%; animation: breathe 3.2s ease-in-out infinite; }
.sleep-dog .z { font-family: var(--font-display); font-weight: 700; fill: var(--ink); animation: zzz 3s ease-in-out infinite; opacity: 0; }
.sleep-dog .z:nth-of-type(2) { animation-delay: 1s; } .sleep-dog .z:nth-of-type(3) { animation-delay: 2s; }
.countdown { display: flex; gap: 8px; margin: 1.4rem 0 1.6rem; justify-content: center; }
.countdown__cell { background: var(--ink); color: var(--card); border-radius: var(--r-sm); padding: 12px 6px 8px; min-width: clamp(66px, 18vw, 100px); }
.countdown__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.countdown__num.tick { animation: tick .45s var(--ease); }
.countdown__lbl { font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }

/* ------------------------------------------------------------ prodotto */
.product { display: grid; gap: clamp(18px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; } .gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.gallery__main { position: relative; aspect-ratio: 1; background: var(--stone); border-radius: var(--r-lg); overflow: hidden; touch-action: pan-y; }
@media (max-width: 899px) { .gallery__main { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; } }
.gallery__main img, .gallery__main .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.gallery__main .is-active { opacity: 1; }
.gallery__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.gallery__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgb(253 253 251 / .6); transition: width .25s, background .25s; }
.gallery__dots span.is-on { width: 22px; border-radius: 999px; background: var(--card); }
.gallery__thumbs { display: none; gap: 10px; margin-top: 12px; }
.gallery__thumbs button { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: var(--stone); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .gallery__thumbs { display: flex; } .gallery__dots { display: none; } }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: var(--card); border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-1); display: none; place-items: center; font-size: 1.4rem; }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
@media (hover: hover) { .gallery__nav { display: grid; } }
.product__info h1 { font-size: var(--fs-h1); margin: .2rem 0 .6rem; }
.product__price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 1rem 0; }
.features li { background: var(--sky); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 800; }
.features li span { color: var(--ink-3); font-weight: 700; }
.product__desc { color: var(--ink-2); white-space: pre-line; }
.facts { list-style: none; padding: 16px; margin: 1.2rem 0; display: grid; gap: 12px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.facts li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: .95rem; }
.facts svg { width: 24px; height: 24px; flex: none; }
.product__actions { display: grid; gap: 10px; margin: 1.2rem 0; }
@media (min-width: 520px) { .product__actions { grid-template-columns: 1fr auto; } }
/* Pulsante d'acquisto fisso in basso sul telefono */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(21 21 21 / .08); }
.buybar .price { font-size: 1.35rem; }
.buybar .btn { flex: 1; }
@media (min-width: 900px) { .buybar { display: none; } }

/* ------------------------------------------------------------- carrello */
.checkout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1fr 380px; gap: 32px; } .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.panel { background: var(--card); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow-1); border: 0; margin: 0; min-width: 0; }
.stack { display: grid; gap: 16px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: .95rem; flex: none; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img, .cart-line .placeholder { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: var(--stone); }
.cart-line__title { font-weight: 800; text-decoration: none; line-height: 1.3; }
.cart-line.is-leaving { animation: leave .35s var(--ease) forwards; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice label { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; background: var(--card); transition: border-color .2s, background .2s, box-shadow .2s; }
.choice label:hover { border-color: var(--ink); }
.choice input:checked + label { border-color: var(--ink); background: var(--sky); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice strong { font-size: 1rem; }
.choice small { color: var(--ink-3); font-weight: 600; line-height: 1.35; }
.choice .ico { width: 28px; height: 28px; margin-bottom: 2px; }
.choice-list { display: grid; gap: 10px; }
.choice-list .choice label { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 800; font-size: .9rem; }
.hint { font-size: .8rem; color: var(--ink-3); }
.req { color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 800; text-align: right; }
.summary .disc { color: var(--ok); }
.summary .total { font-family: var(--font-display); font-size: 1.5rem; padding-top: 10px; border-top: 1.5px dashed var(--line-2); margin-top: 4px; }
.code-row { display: flex; gap: 8px; margin: 16px 0 4px; }
.code-row .input { text-transform: uppercase; min-height: 44px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: var(--r-sm); background: var(--sky); font-weight: 700; font-size: .95rem; }
.notice--warn { background: var(--yellow-soft); }
.notice--error { background: var(--danger-bg); color: var(--danger); }
.notice--ok { background: var(--ok-bg); color: var(--ok); }

/* ------------------------------------------------------------ conferma */
.thanks { text-align: center; max-width: 680px; margin-inline: auto; }
.thanks__icon { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; animation: pop .6s var(--spring); }
.thanks__icon svg { width: 44px; height: 44px; }
.bank-box { text-align: left; background: var(--yellow-soft); border-radius: var(--r-md); padding: 20px; margin: 20px 0; }
.bank-box code { font-size: 1.05rem; font-weight: 800; word-break: break-all; }

/* ------------------------------------------------------------ recensioni */
.reviews { display: grid; gap: 14px; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews--scroll { grid-auto-flow: column; grid-auto-columns: min(84%, 340px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
.reviews--scroll::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; background: var(--card); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px; }
.review__stars { color: var(--pop-orange); letter-spacing: .1em; }
.review__text { margin: 0; color: var(--ink-2); flex: 1; }
.review__pet { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.review__pet .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); flex: none; }
.review__pet .avatar svg { width: 20px; height: 20px; }
.review__pet small { display: block; font-weight: 600; color: var(--ink-3); font-size: .78rem; }
.rating { display: flex; align-items: center; gap: 12px; }
.rating__num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.stars { color: var(--pop-orange); letter-spacing: .08em; }
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.4rem; line-height: 1; cursor: pointer; color: var(--line-2); padding: 2px; transition: transform .2s var(--spring), color .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--pop-orange); }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 3px solid var(--ink); border-radius: 6px; }

/* ------------------------------------------------ pagine di contenuto */
.split { display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.photo { border-radius: var(--r-lg); overflow: hidden; background: var(--stone); box-shadow: var(--shadow-1); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 4 / 3; }
.photo--contain { background: var(--card); }
.photo--contain img { object-fit: contain; }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-strip img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--stone); width: 100%; }
@media (min-width: 760px) { .gallery-strip { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.list-check { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 10px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.list-check li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--card); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-1); }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; background: var(--yellow); }
.steps h3 { font-size: 1.15rem; margin: .35rem 0 .2rem; }
.steps p { margin: 0; color: var(--ink-2); }
.measure-art { background: var(--sky); border-radius: var(--r-lg); padding: clamp(12px, 3vw, 32px); }
.measure-art svg { width: 100%; height: auto; }
.measure-art .dog-outline { fill: var(--card); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.measure-art .tape { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 8 7; }
.measure-art .tape--neck { stroke: var(--pop-pink); }
.measure-art .tape--chest { stroke: var(--pop-teal); }
.measure-art .tape--back { stroke: var(--pop-orange); }
.measure-art .lbl { font-family: var(--font-script); font-size: 28px; font-weight: 700; fill: var(--ink); }
.size-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); font-size: .95rem; }
.size-table th, .size-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.size-table th { background: var(--sky); font-weight: 900; }
.size-table tr:last-child td { border-bottom: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 14px; background: var(--card); padding: 16px 18px; border-radius: var(--r-md); text-decoration: none; font-weight: 800; box-shadow: var(--shadow-1); transition: transform .2s var(--ease); }
.contact-list a:hover { transform: translateX(calc(4px * var(--motion))); }
.contact-list svg { width: 26px; height: 26px; flex: none; }
.contact-list small { display: block; font-weight: 600; color: var(--ink-3); font-size: .82rem; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 1.8rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; }
.prose em { color: var(--ink-3); }

/* -------------------------------------------------------------- piè di pagina */
.site-footer { background: var(--ink); color: var(--card); padding-top: clamp(40px, 6vw, 72px); margin-top: clamp(32px, 5vw, 64px); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.footer-grid h3 { font-size: 1rem; margin-bottom: .8rem; color: var(--yellow); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; background: var(--card); margin-bottom: .8rem; }
.footer-brand p { color: rgb(253 253 251 / .8); max-width: 36ch; }
.footer-legal { border-top: 1px solid rgb(253 253 251 / .15); margin-top: 36px; padding-block: 18px; font-size: .8rem; color: rgb(253 253 251 / .65); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ---------------------------------------------------------------- toast */
.toast-region { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 150; display: grid; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 900px) { .toast-region { bottom: 24px; } }
.has-buybar .toast-region { bottom: calc(84px + env(safe-area-inset-bottom)); }
.toast { background: var(--ink); color: var(--card); padding: 12px 16px; border-radius: var(--r-md); font-weight: 700; box-shadow: var(--shadow-2); display: flex; gap: 10px; align-items: center; animation: toast-in .35s var(--spring); }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--yellow); }
.toast a { color: var(--yellow); margin-left: auto; font-weight: 900; white-space: nowrap; }

/* ------------------------------------------------------------- comparse */
[data-reveal] { opacity: 0; transform: translateY(calc(18px * var(--motion))); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-io [data-reveal] { opacity: 1; transform: none; }

@keyframes mark-in { to { transform: scaleX(1); } }
@keyframes bump { 30% { transform: scale(1.3); } 60% { transform: scale(.92); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(calc(16px * var(--motion))); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes breathe { 50% { transform: scaleY(1.05); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(24px, -36px); } }
@keyframes tick { from { transform: translateY(calc(-30% * var(--motion))); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes leave { to { opacity: 0; transform: translateX(calc(30px * var(--motion))); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sleep-dog .breath, .sleep-dog .z { animation: none !important; }
  .sleep-dog .z { opacity: 1; }
  .mark::after { transform: none; }
}
@media print { .site-header, .site-footer, .announce, .tabbar, .buybar, .toast-region { display: none !important; } body { background: #fff; padding: 0; } }
.shop > * { min-width: 0; }
.band > :not(.band__paw) { position: relative; z-index: 1; }

/* ------------------------------------------------------ fiere ed eventi */
.events { display: grid; gap: 14px; }
@media (min-width: 900px) { .events { grid-template-columns: 1fr 1fr; gap: 20px; } }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; background: var(--card); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-1); }
.event__date { background: var(--yellow); border-radius: var(--r-sm); text-align: center; padding: 10px 4px; line-height: 1; }
.event__day { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.event__month { display: block; font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.event h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.event__meta { list-style: none; padding: 0; margin: 0 0 .7rem; display: grid; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--ink-2); }
.event__meta li { display: flex; gap: 8px; align-items: flex-start; }
.event__meta svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.event__desc { color: var(--ink-2); margin: .6rem 0 .8rem; white-space: pre-line; }
.event .btn-row { margin-top: .4rem; }
.chip-ok { display: inline-flex; align-items: center; gap: 6px; background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: .25rem .75rem; font-size: .8rem; font-weight: 800; }
.chip-ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.event-pick { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--sky); }
.event-pick > p { margin: 0 0 10px; font-weight: 800; }
.event-pick .choice label { background: var(--card); }
.event-pick .choice input:checked + label { background: var(--yellow-soft); }
