/* Ambulatorio Veterinario Vinicio Bonifazi · pagina unica
   Il motore (scrollcraft.css/js) non si tocca: qui solo token e classi della pagina. */

/* Font in locale: nessuna richiesta a Google, niente dati del visitatore a terzi. Licenza SIL OFL 1.1. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --sc-canvas:     #f4f8fc;
  --sc-surface:    #ffffff;
  --sc-ink:        #102d57;
  --sc-ink-soft:   #44608a;
  --sc-accent:     #1e54a2;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Montserrat", system-ui, sans-serif;
  --sc-font-text:    "Figtree", system-ui, sans-serif;
  --sc-shadow-color: 216 60% 22%;

  --blu: #1e54a2;
  --blu-notte: #163f7d;
  --azzurro: #3d96d2;
  --azzurro-chiaro: #d9ebf8;
  --bar: 76px;
  --r-card: 26px;
}

html { scroll-padding-top: calc(var(--bar) + 8px); }
body { background: var(--sc-canvas); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--blu); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------------------------------------------- cane / gatto: la firma -- */
[data-animale="cane"]  [data-pet="gatto"],
[data-animale="gatto"] [data-pet="cane"] { display: none; }
/* le immagini restano nel DOM per la dissolvenza: si nascondono con l'opacità */
.pet-img[data-pet] { display: block !important; }
[data-animale="cane"]  .pet-img[data-pet="gatto"],
[data-animale="gatto"] .pet-img[data-pet="cane"] { opacity: 0; transform: translateY(5%) scale(0.94); pointer-events: none; }
.pet-img { transition: opacity 520ms var(--sc-ease-out), transform 620ms var(--sc-ease-out); transform-origin: 50% 100%; }
.swap { display: inline; }
.is-swapping .swap > * { animation: swap-in 420ms var(--sc-ease-out); }
@keyframes swap-in { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
.swap > * { display: inline-block; }

/* ----------------------------------------------------------- bottoni -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.65em 1.35em; border-radius: 999px;
  font-family: var(--sc-font-display); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; cursor: pointer; border: 2px solid transparent;
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--lg { font-size: 0.95rem; padding: 0.85em 1.7em; min-height: 52px; }
.btn--solid { background: var(--blu); color: #fff; box-shadow: 0 6px 16px -6px hsl(216 70% 30% / 0.55); }
.btn--line { border-color: currentColor; color: var(--blu); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--blu-notte); }
  .btn--line:hover { background: color-mix(in oklab, var(--blu) 8%, transparent); }
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* -------------------------------------------------------------- barra -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding-inline: var(--sc-gutter);
  background: color-mix(in oklab, #fff 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--sc-ease-out), box-shadow 200ms var(--sc-ease-out);
}
.bar.is-scrolled { border-bottom-color: color-mix(in oklab, var(--blu) 10%, transparent); box-shadow: 0 6px 24px -18px hsl(216 60% 20% / 0.5); }
.bar__logo img { width: clamp(150px, 15vw, 230px); height: auto; }
.bar__end { display: flex; justify-content: flex-end; align-items: center; gap: 1.25rem; }
.bar__tel { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; color: var(--blu); text-decoration: none; font-variant-numeric: tabular-nums; }
.bar__tel svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .bar__tel:hover span { text-decoration: underline; text-underline-offset: 0.25em; } }

.switch { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.switch__legend { float: left; padding: 0; font-size: 0.86rem; font-weight: 500; color: var(--sc-ink-soft); white-space: nowrap; }
.switch__track { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--azzurro-chiaro); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch label {
  position: relative; z-index: 1; min-width: 5.4rem; min-height: 40px; display: grid; place-items: center;
  padding: 0 1rem; border-radius: 999px; cursor: pointer; user-select: none;
  font-family: var(--sc-font-display); font-weight: 700; font-size: 0.9rem; color: var(--blu);
  transition: color 220ms var(--sc-ease-out);
}
.switch input:checked + label { color: #fff; }
.switch input:focus-visible + label { outline: 2px solid var(--blu); outline-offset: 3px; }
.switch__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--blu);
  box-shadow: 0 4px 10px -4px hsl(216 70% 30% / 0.6);
  transition: transform 380ms cubic-bezier(0.34, 1.4, 0.5, 1);
}
[data-animale="gatto"] .switch__pill { transform: translateX(100%); }

/* --------------------------------------------------------------- hero -- */
.hero__stage {
  --p: var(--sc-p, 0);
  --mx: 0; --my: 0;
  --petH: min(calc(100svh - var(--bar) - 3vh), 860px);
  --petW: calc(var(--petH) * 1.03);
  --petR: 4.5vw;
  background: var(--sc-canvas);
}
.hero__plane { position: absolute; will-change: transform; }
.hero__zampe {
  inset: -4%;
  background: url("assets/zampe.webp") center / 980px auto repeat;
  opacity: 0.13;
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -5px), 0) scale(calc(1 + var(--p) * 0.04));
}
.hero__ring {
  width: clamp(70px, 7vw, 130px); top: calc(var(--bar) + 9vh); right: calc(var(--petR) + var(--petW) * 0.98);
  filter: blur(2.5px); opacity: 0.85;
  transform: translate3d(calc(var(--mx) * -9px - var(--p) * 5vw), calc(var(--my) * -7px - var(--p) * 7vh), 0) rotate(calc(-18deg - var(--p) * 30deg));
}
.hero__ring img { width: 100%; height: auto; }
.hero__blob {
  width: calc(var(--petH) * 0.7); aspect-ratio: 1;
  border-radius: 58% 42% 47% 53% / 50% 44% 56% 50%;
  transition: border-radius 900ms var(--sc-ease-out), background-color 600ms var(--sc-ease-out);
}
.hero__blob--chiaro {
  background: var(--azzurro);
  right: calc(var(--petR) + var(--petW) * 0.2); bottom: calc(var(--petH) * 0.33);
  transform: translate3d(calc(var(--mx) * -14px - var(--p) * 3vw), calc(var(--my) * -11px - var(--p) * 6vh), 0) rotate(calc(var(--p) * -16deg)) scale(calc(1 + var(--p) * 0.06));
}
.hero__blob--scuro {
  background: var(--blu);
  right: calc(var(--petR) + var(--petW) * 0.1); bottom: calc(var(--petH) * 0.3);
  border-radius: 46% 54% 60% 40% / 56% 48% 52% 44%;
  transform: translate3d(calc(var(--mx) * -20px + var(--p) * 1.5vw), calc(var(--my) * -15px + var(--p) * 2vh), 0) rotate(calc(var(--p) * 10deg)) scale(calc(1 + var(--p) * 0.09));
}
[data-animale="gatto"] .hero__blob--chiaro { border-radius: 44% 56% 52% 48% / 58% 50% 50% 42%; }
[data-animale="gatto"] .hero__blob--scuro  { border-radius: 60% 40% 44% 56% / 46% 58% 42% 54%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__blob--chiaro { animation: blob-a 16s ease-in-out infinite alternate; }
  .hero__blob--scuro  { animation: blob-b 19s ease-in-out infinite alternate; }
}
@keyframes blob-a { 50% { border-radius: 48% 52% 58% 42% / 44% 56% 46% 54%; } }
@keyframes blob-b { 50% { border-radius: 54% 46% 42% 58% / 50% 42% 58% 50%; } }

.hero__pet {
  margin: 0; right: var(--petR); bottom: 0; height: var(--petH); width: var(--petW);
  transform-origin: 50% 100%;
  transform: translate3d(calc(var(--mx) * -26px), 0, 0) scale(calc(1 + var(--p) * 0.07));
}
.hero__pet .pet-img { position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none; translate: -50% 0; }
.hero__pet .pet-img[data-pet="gatto"] { height: 96%; }
/* respiro: l'animale nella coperta non è una foto ferma */
@media (prefers-reduced-motion: no-preference) {
  .hero__pet .pet-img { animation: respiro 4.6s ease-in-out infinite; }
}
@keyframes respiro { 0%, 100% { scale: 1 1; } 45% { scale: 1.008 1.016; } }
.hero__shadow {
  position: absolute; left: 10%; right: 10%; bottom: -2%; height: 9%;
  background: radial-gradient(closest-side, hsl(216 60% 20% / 0.28), transparent);
}

.hero__front img { width: 100%; height: auto; }
.hero__front--steto {
  width: clamp(200px, 21vw, 400px); right: calc(var(--petR) + var(--petW) * 0.72); bottom: -9vh;
  filter: blur(1.6px) drop-shadow(0 18px 18px hsl(216 60% 20% / 0.25));
  transform: translate3d(calc(var(--mx) * -54px - var(--p) * 9vw), calc(var(--my) * -32px + var(--p) * 16vh), 0) rotate(calc(-16deg - var(--p) * 12deg)) scale(calc(1 + var(--p) * 0.28));
}
.hero__front--palla {
  width: clamp(80px, 8.5vw, 160px); right: calc(var(--petR) - 1.5vw); bottom: 2.5vh;
  filter: drop-shadow(0 14px 12px hsl(216 60% 20% / 0.3));
  transform: translate3d(calc(var(--mx) * -64px + var(--p) * 7vw), calc(var(--my) * -38px + var(--p) * 12vh), 0) rotate(calc(var(--p) * 140deg)) scale(calc(1 + var(--p) * 0.3));
}

.hero__copy {
  position: absolute; z-index: 5; left: var(--sc-gutter); top: 50%; translate: 0 -56%;
  width: min(38rem, 44vw);
}
.hero__h {
  margin: 0; font-family: var(--sc-font-display); font-weight: 800;
  font-size: clamp(2.5rem, 1.2rem + 3.5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--sc-ink);
  text-wrap: balance;
}
.hero__h > .swap, .hero__h2 { display: block; }
.hero__h2 { color: var(--blu); }
.hero__sub { margin: 1.4rem 0 0; max-width: 30rem; font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); color: var(--sc-ink-soft); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero__facts {
  --f: clamp(0, calc((var(--p) - 0.22) / 0.26), 1);
  position: absolute; z-index: 5; left: var(--sc-gutter); bottom: 5vh;
  display: flex; gap: 0.6rem; margin: 0; padding: 0; list-style: none;
  opacity: var(--f); transform: translateY(calc((1 - var(--f)) * 24px));
}
.hero__facts li {
  display: grid; gap: 0.1rem; padding: 0.75rem 1.1rem; border-radius: 16px; min-width: 9.5rem;
  background: #fff; box-shadow: var(--sc-e2), inset 0 0 0 1px color-mix(in oklab, var(--blu) 8%, transparent);
}
.fact__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--azzurro); color: #2b78b5; }
.fact__v { font-weight: 700; color: var(--sc-ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.fact__v:hover { text-decoration: underline; }

/* -------------------------------------------------------------- chi siamo -- */
.chi {
  --sc-ink: #ffffff; --sc-ink-soft: #d6e5f7; --sc-accent: #ffffff; color: var(--sc-ink);
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(5rem, 10vw, 10rem);
}
.chi__ground { position: absolute; inset: 0; z-index: -1; background: var(--blu); }
.chi__ground::after {
  content: ""; position: absolute; inset: 0;
  background: url("assets/zampe.webp") center / 980px auto repeat;
  filter: brightness(0.55); opacity: 0.2; mix-blend-mode: multiply;
}
.chi__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.chi__text { max-width: 36rem; }
.chi__h {
  margin: 0; font-family: var(--sc-font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); text-wrap: balance;
}
.chi__body { margin: 0; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem); line-height: 1.65; color: var(--sc-ink-soft); max-width: 34rem; }
.valori { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0 0 !important; padding: 0; list-style: none; }
.valori li {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem 0.45rem 0.6rem; border-radius: 999px;
  background: color-mix(in oklab, #fff 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, #fff 22%, transparent);
  font-weight: 600; letter-spacing: 0.01em;
}
.valori li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231e54a2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
/* La foto vive in una finestra a macchia (stesso segno della hero): i bordi tagliati
   della foto restano fuori dalla macchia, la testa esce dal bordo in alto. */
.chi__foto {
  --p: var(--sc-p, 0.5);
  position: relative; margin: 0; justify-self: end;
  width: min(100%, 540px); aspect-ratio: 1; pointer-events: none;
}
.chi__ring {
  position: absolute; inset: -5%; border: 2px solid color-mix(in oklab, #fff 45%, transparent);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  transform: rotate(calc(-12deg + var(--p) * 28deg));
}
.chi__dot { position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #fff; left: 2%; bottom: 8%; transform: translateY(calc((0.5 - var(--p)) * 60px)); }
.chi__win, .chi__pop { position: absolute; inset: 0; }
.chi__win {
  overflow: hidden; background: var(--azzurro);
  border-radius: 54% 46% 44% 56% / 48% 54% 46% 52%;
  box-shadow: 0 30px 60px -30px hsl(216 80% 10% / 0.6);
  transition: border-radius 900ms var(--sc-ease-out);
}
[data-animale="gatto"] .chi__win { border-radius: 46% 54% 52% 48% / 56% 46% 54% 44%; }
.chi__foto .pet-img { position: absolute; width: auto; max-width: none; }
/* posizione della foto dentro la finestra: i tagli netti cadono fuori dalla macchia */
.chi__foto .pet-img[data-pet="cane"]  { height: 96%; left: 0%; top: 6%; }
.chi__foto .pet-img[data-pet="gatto"] { height: 128%; left: -8%; top: -8%; }
/* lo stesso scatto, ritagliato attorno alla testa, sopra il bordo della macchia */
.chi__pop .pet-img[data-pet="cane"]  { clip-path: inset(0 38% 68% 0); }
.chi__pop .pet-img[data-pet="gatto"] { clip-path: inset(0 12% 80% 44%); }

/* ---------------------------------------------------------------- servizi -- */
.servizi__stage {
  --k: clamp(0, calc(var(--sc-p, 0) / 0.42), 1);
  background: var(--sc-canvas);
}
.servizi__zampe { position: absolute; inset: 0; background: url("assets/zampe.webp") center / 980px auto repeat; opacity: 0.08; }
.servizi__h {
  position: absolute; z-index: 4; left: var(--sc-gutter); right: var(--sc-gutter); top: calc(var(--bar) + 4.5vh); margin: 0;
  font-family: var(--sc-font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.3rem); text-align: center; text-wrap: balance;
}
.servizi__pet {
  --h: min(calc(100svh - var(--bar) - 16vh), 720px);
  position: absolute; left: 50%; bottom: 0; height: var(--h); width: calc(var(--h) * 0.62); translate: -50% 0;
}
.servizi__blob {
  position: absolute; left: 50%; bottom: 12%; width: calc(var(--h) * 0.86); aspect-ratio: 1; translate: -50% 0;
  background: var(--azzurro-chiaro); border-radius: 52% 48% 44% 56% / 50% 56% 44% 50%;
  transform: scale(calc(0.55 + var(--k) * 0.45)) rotate(calc(var(--k) * 24deg));
}
.servizi__rise {
  position: absolute; inset: 0;
  transform-origin: 50% 100%;
  transform: translateY(calc((1 - var(--k)) * 30%)) rotate(calc((1 - var(--k)) * -7deg)) scaleY(calc(0.92 + var(--k) * 0.08));
}
.servizi__rise .pet-img { position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none; translate: -50% 0; }
.servizi__rise .pet-img[data-pet="cane"] { filter: drop-shadow(0 0 0.5px #fff); }
.servizi__osso {
  position: absolute; width: calc(var(--h) * 0.26); height: auto; max-width: none; left: -14%; bottom: 1.5%;
  transform: rotate(-14deg) translateY(calc((1 - var(--k)) * 40%)); filter: drop-shadow(0 10px 10px hsl(216 60% 20% / 0.2));
}
.servizi__list { margin: 0; padding: 0; list-style: none; }
.srv {
  position: absolute; z-index: 3; width: min(21rem, 27vw);
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start;
  padding: 1.1rem 1.25rem; border-radius: 22px; background: #fff;
  box-shadow: var(--sc-e3), inset 0 0 0 1px color-mix(in oklab, var(--blu) 7%, transparent);
}
.srv img { grid-row: span 2; width: 46px; height: 46px; object-fit: contain; }
.srv h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--sc-ink); }
.srv p { margin: 0.35rem 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--sc-ink-soft); }
.srv--1 { left: var(--sc-gutter); top: 32%; }
.srv--2 { left: calc(var(--sc-gutter) + 3vw); top: 60%; }
.srv--3 { right: var(--sc-gutter); top: 32%; }
.srv--4 { right: calc(var(--sc-gutter) + 3vw); top: 60%; }

/* ----------------------------------------------------------------- orari -- */
.orari { padding-block: clamp(5rem, 9vw, 9rem); background: #fff; position: relative; z-index: 2; }
.orari__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.orari__h, .dove__h, .prenota__h {
  margin: 0; font-family: var(--sc-font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3.1rem); text-wrap: balance;
}
.stato { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.2rem !important; padding: 0.45rem 1rem 0.45rem 0.8rem; border-radius: 999px; background: #eef5ec; color: #1d5a2e; font-weight: 600; }
.stato__dot { width: 10px; height: 10px; border-radius: 50%; background: #2f9b55; box-shadow: 0 0 0 4px color-mix(in oklab, #2f9b55 22%, transparent); }
.stato.is-chiuso { background: #f1f3f7; color: #3d4b63; }
.stato.is-chiuso .stato__dot { background: #8b97ab; box-shadow: none; }
.orari__tab { width: 100%; max-width: 34rem; border-collapse: collapse; margin-top: 1.8rem !important; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.orari__tab th, .orari__tab td { padding: 1rem 0; border-bottom: 1px solid color-mix(in oklab, var(--blu) 12%, transparent); text-align: left; }
.orari__tab th { font-weight: 500; color: var(--sc-ink-soft); }
.orari__tab td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.orari__tab tr.oggi th, .orari__tab tr.oggi td { color: var(--blu); }
.orari__tab tr.oggi th::after { content: "oggi"; margin-left: 0.6rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--azzurro-chiaro); color: var(--blu); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.15em; }
.orari__nota { margin-top: 1rem !important; color: var(--sc-ink-soft); font-size: 0.95rem; }
.dove__addr { font-style: normal; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.5; margin-top: 1.4rem !important; }
.link-freccia { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--blu); text-underline-offset: 0.25em; }
.link-freccia::after { content: "→"; transition: transform 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .link-freccia:hover::after { transform: translateX(3px); } }
.urgenza { margin-top: 2.4rem !important; padding: 1.5rem 1.6rem; border-radius: var(--r-card); background: var(--azzurro-chiaro); }
.urgenza__k { margin: 0; font-weight: 700; color: var(--sc-ink); }
.urgenza__tel { display: block; margin-top: 0.2rem; font-family: var(--sc-font-display); font-weight: 800; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); letter-spacing: -0.02em; color: var(--blu); text-decoration: none; font-variant-numeric: tabular-nums; }
.urgenza__t { margin: 0.4rem 0 0; color: var(--sc-ink-soft); }

/* --------------------------------------------------------------- prenota -- */
.prenota {
  --sc-ink: #ffffff; --sc-ink-soft: #d6e5f7; color: var(--sc-ink);
  position: relative; isolation: isolate; background: var(--blu); padding-top: clamp(5rem, 9vw, 8rem);
}
.prenota::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/zampe.webp") center / 980px auto repeat; filter: brightness(0.55); opacity: 0.2; mix-blend-mode: multiply;
}
.prenota__head { text-align: center; max-width: 44rem; margin-inline: auto; }
.prenota__sub { margin-top: 1rem !important; color: var(--sc-ink-soft); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }

.scheda { position: relative; max-width: 62rem; margin: clamp(9rem, 15vw, 12rem) auto 0; }
.fila {
  position: absolute; z-index: 0; left: 4%; right: 4%; top: 0; height: clamp(110px, 15vw, 200px);
  display: flex; justify-content: space-between; align-items: flex-end;
  transform: translateY(-64%);
}
.fila img { height: 100%; width: auto; transform: translateY(62%); transition: transform 760ms cubic-bezier(0.34, 1.32, 0.5, 1); }
.fila img:nth-child(2) { height: 106%; } .fila img:nth-child(3) { height: 112%; } .fila img:nth-child(4) { height: 108%; } .fila img:nth-child(5) { height: 88%; } .fila img:nth-child(6) { height: 98%; }
.fila.is-in img { transform: none; }
.fila.is-in img:nth-child(1) { transition-delay: 0ms; } .fila.is-in img:nth-child(2) { transition-delay: 90ms; } .fila.is-in img:nth-child(3) { transition-delay: 180ms; }
.fila.is-in img:nth-child(4) { transition-delay: 270ms; } .fila.is-in img:nth-child(5) { transition-delay: 360ms; } .fila.is-in img:nth-child(6) { transition-delay: 450ms; }

.form {
  --sc-ink: #102d57; --sc-ink-soft: #44608a; --sc-accent: #1e54a2; color: var(--sc-ink);
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: 30px; background: #fff;
  box-shadow: 0 30px 60px -30px hsl(216 80% 10% / 0.6);
}
.campo { display: grid; gap: 0.4rem; min-width: 0; }
.campo--wide { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: 0.92rem; }
.opz { font-weight: 400; color: var(--sc-ink-soft); }
.campo :is(input, select, textarea) {
  width: 100%; min-height: 50px; padding: 0.7rem 0.95rem; border-radius: 14px;
  border: 1.5px solid color-mix(in oklab, var(--blu) 18%, transparent); background: #f7fafd;
  transition: border-color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.campo select { appearance: none; padding-right: 2.6rem; background: #f7fafd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231e54a2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 0.9rem center / 18px no-repeat; }
.campo textarea { resize: vertical; min-height: 96px; }
.campo :is(input, select, textarea):hover { border-color: color-mix(in oklab, var(--blu) 35%, transparent); }
.campo :is(input, select, textarea):focus-visible { outline: none; border-color: var(--blu); background-color: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--blu) 16%, transparent); }
.campo.is-errore :is(input, select) { border-color: #c0392b; }
.campo--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.campo--check input { width: 22px; height: 22px; min-height: 0; margin: 0.1rem 0 0; accent-color: var(--blu); }
.campo--check label { font-weight: 400; color: var(--sc-ink-soft); }
.campo--check.is-errore label { color: #b03a2e; }
.campo--check a { color: var(--blu); font-weight: 600; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.4rem; }
.form__esito { margin: 0; font-weight: 600; max-width: 34rem; }
.form__esito.is-ok { color: #1d6a35; }
.form__esito.is-errore { color: #b03a2e; }

.piede { margin-top: clamp(4rem, 8vw, 7rem); padding-block: 2.5rem 2.5rem; border-top: 1px solid color-mix(in oklab, #fff 16%, transparent); font-size: 0.95rem; color: var(--sc-ink-soft); }
.piede__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1.5rem 3rem; align-items: start; }
.piede p { margin: 0; line-height: 1.6; }
.piede a { color: #fff; font-weight: 600; text-decoration: none; }
.piede__logo { width: 210px; height: auto; filter: brightness(0) invert(1); }
.piede__copy { font-size: 0.85rem; }

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

/* ------------------------------------------------------------------ tablet -- */
@media (max-width: 1100px) {
  .switch__legend { display: none; }
  .bar__tel span { display: none; }
  .srv { width: min(19rem, 30vw); }
  .srv p { font-size: 0.9rem; }
}

/* ------------------------------------------------------------------- phone -- */
@media (max-width: 760px) {
  :root { --bar: 64px; }
  .bar { grid-template-columns: 1fr auto; gap: 0.75rem; padding-inline: 16px; }
  .bar__logo img { width: 148px; }
  .bar__end { display: none; }
  .switch label { min-width: 4.3rem; min-height: 38px; padding: 0 0.7rem; font-size: 0.85rem; }

  .hero__stage { --petH: min(48svh, 420px); --petR: -2vw; }
  .hero__copy { top: calc(var(--bar) + 3.5svh); translate: none; left: 16px; right: 16px; width: auto; }
  .hero__h { font-size: clamp(2.05rem, 1.2rem + 4.2vw, 2.6rem); }
  .hero__sub { margin-top: 0.9rem; font-size: 1rem; max-width: 22rem; }
  .hero__ctas { margin-top: 1.25rem; }
  .hero__ctas .btn--lg { min-height: 48px; padding: 0.7em 1.3em; font-size: 0.9rem; }
  .hero__facts { display: none; }
  .hero__ring { top: auto; bottom: calc(var(--petH) * 0.95); right: calc(var(--petW) * 0.9); width: 60px; }
  .hero__front--steto { width: 40vw; right: auto; left: -12vw; bottom: -5svh; }
  .hero__front--palla { width: 19vw; right: 3vw; bottom: 1.5svh; }

  .chi { padding-block: 4rem 4.5rem; }
  .chi__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .chi__foto { width: min(84vw, 360px); justify-self: center; }

  .servizi__h { top: calc(var(--bar) + 2.5svh); text-align: left; font-size: 1.75rem; left: 16px; right: 16px; }
  .servizi__pet { --h: min(40svh, 360px); left: auto; right: -6vw; translate: none; }
  .servizi__osso { left: -22%; }
  .servizi__list { position: absolute; z-index: 3; left: 16px; right: 16px; top: calc(var(--bar) + 2.5svh + 5.2rem); display: grid; gap: 0.5rem; }
  .srv { position: relative; inset: auto; width: auto; max-width: 23rem; padding: 0.7rem 0.9rem; border-radius: 16px; column-gap: 0.75rem; }
  .srv img { width: 34px; height: 34px; }
  .srv h3 { font-size: 0.95rem; }
  .srv p { font-size: 0.84rem; line-height: 1.4; margin-top: 0.15rem; }
  .srv--2, .srv--4 { margin-left: 1.5rem; }

  .orari__grid { grid-template-columns: 1fr; }
  .scheda { margin-top: 7.5rem; }
  .fila { left: 2%; right: 2%; height: 96px; gap: 2px; }
  .fila img { min-width: 0; flex: 1 1 0; object-fit: contain; object-position: 50% 100%; }
  .form { grid-template-columns: 1fr; border-radius: 22px; padding: 1.4rem 1.1rem; }
  .form__end .btn { width: 100%; }
  .piede__grid { grid-template-columns: 1fr; text-align: left; }
  .piede { padding-bottom: 6.5rem; }

  .mbar {
    display: grid; grid-template-columns: auto 1fr; gap: 0.5rem;
    position: fixed; z-index: 59; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    padding: 8px; border-radius: 999px; background: color-mix(in oklab, #fff 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px -14px hsl(216 70% 15% / 0.55);
    transform: translateY(140%); transition: transform 320ms var(--sc-ease-out);
  }
  .mbar .btn { min-height: 46px; }
  .mbar.is-on { transform: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .srv p { display: none; }
}

/* ---------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .hero__stage { --p: 0 !important; --mx: 0 !important; --my: 0 !important; }
  .hero__facts { --f: 1; }
  .hero[data-sc-act] { height: auto !important; }
  .hero__stage { position: relative; }
  .servizi__stage { --k: 1 !important; }
  .fila img { transform: none; transition: none; }
  .pet-img { transition: opacity 200ms linear; }
  [data-animale] .pet-img[data-pet] { transform: none; }
  .is-swapping .swap > * { animation: none; }
  .switch__pill { transition: none; }
}
