/* ==========================================================================
   Cuore di Pelo — v2 "morbida"
   Palette chiara e calda, angoli arrotondati, impronte di cane e gatto,
   collari e croccantini come grafica decorativa.
   ========================================================================== */

:root {
  /* superfici */
  --paper: #fffcf7;
  --paper-2: #fdf6ec;
  --paper-3: #f9efe3;
  --cream: #f6efe4;
  --white: #ffffff;

  /* accenti */
  --blush: #fbe4da;
  --blush-soft: #fdf0ea;
  --peach: #f0cbb4;
  --clay: #dfa184;
  --clay-deep: #a45f3c;
  --clay-dark: #8d4f30;
  --sage: #b9cdbb;
  --sage-soft: #e7f0e7;
  --sage-deep: #8fae95;
  --sage-ink: #4e6b55;

  /* testo */
  --ink: #4a3c34;
  --ink-soft: #6b5b50;
  --ink-mute: #7c6c60;
  --line: rgba(74, 60, 52, 0.12);
  --pattern: #e9d8c4;

  /* tipografia */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  /* forme */
  --r-xs: 10px;
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 34px;
  --r-pill: 999px;

  --shadow-sm: 0 6px 20px -12px rgba(122, 86, 60, 0.35);
  --shadow-md: 0 24px 50px -28px rgba(122, 86, 60, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  --g-dog: url("../img/graphics/paw-dog.svg");
  --g-cat: url("../img/graphics/paw-cat.svg");
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video { max-width: 100%; }

img {
  display: block;
  height: auto;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p { margin: 0; }

em { font-style: italic; }

::selection {
  background: var(--peach);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1200;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-250%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- tipografia condivisa ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.eyebrow::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  background: var(--clay);
  -webkit-mask: var(--g-dog) center / contain no-repeat;
  mask: var(--g-dog) center / contain no-repeat;
}

.display {
  font-size: clamp(1.95rem, 4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display em,
.h2 em,
h1 em {
  font-style: italic;
  color: var(--clay-deep);
}

.h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.14;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 54ch;
}

.small { font-size: 0.86rem; }
.muted { color: var(--ink-mute); }
.mt-3 { margin-top: 1.5rem; }

.editorial p + p { margin-top: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-deep);
  position: relative;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease-soft);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover::after { opacity: 1; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.55rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--clay-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 14px 28px -18px rgba(141, 79, 48, 0.9);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft);
}

.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -18px rgba(141, 79, 48, 0.95);
}

.btn--light {
  background: #fffaf2;
  color: var(--ink);
  box-shadow: 0 14px 28px -18px rgba(60, 40, 28, 0.55);
}
.btn--light:hover { background: #fff; color: var(--clay-dark); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(74, 60, 52, 0.22);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--blush-soft);
  border-color: var(--clay);
  color: var(--clay-dark);
  box-shadow: none;
}

.btn--outline-light {
  background: transparent;
  color: #fff8ef;
  border-color: rgba(255, 248, 239, 0.55);
  box-shadow: none;
}
.btn--outline-light:hover {
  background: rgba(255, 248, 239, 0.16);
  border-color: #fff8ef;
  color: #fff;
  box-shadow: none;
}

/* ---------- header ---------- */
.header {
  --hdr-fg: #fff7ed;
  --hdr-chip: rgba(255, 248, 239, 0.2);
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  padding-block: 0.85rem;
  color: var(--hdr-fg);
  transition: padding 0.4s var(--ease-soft), color 0.35s var(--ease-soft);
}

.header--solid { --hdr-fg: var(--ink); }

.header.is-scrolled {
  --hdr-fg: var(--ink);
  --hdr-chip: rgba(223, 161, 132, 0.2);
  padding-block: 0.55rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.4rem 0.45rem 0.4rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: background-color 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}

.header.is-scrolled .header__inner {
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(74, 60, 52, 0.08);
  box-shadow: 0 18px 40px -34px rgba(90, 60, 40, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.16);
  border: 1px solid rgba(255, 248, 239, 0.38);
  transition: background-color 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft);
}

.header.is-scrolled .brand__mark,
.header--solid .brand__mark {
  background: var(--blush-soft);
  border-color: rgba(190, 126, 96, 0.24);
}

.brand__logo {
  width: 25px;
  height: 25px;
  transition: opacity 0.3s var(--ease-soft);
}

.brand__logo--onLight {
  position: absolute;
  opacity: 0;
}

.header.is-scrolled .brand__logo--onDark,
.header--solid .brand__logo--onDark { opacity: 0; }

.header.is-scrolled .brand__logo--onLight,
.header--solid .brand__logo--onLight { opacity: 1; }

/* logo ufficiale (badge circolare) */
.brand__mark--badge,
.header.is-scrolled .brand__mark--badge,
.header--solid .brand__mark--badge {
  width: 52px;
  height: 52px;
  background: none;
  border: 0;
}

.brand__logo--badge {
  width: 52px;
  height: 52px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: inherit;
}

.brand__sub {
  margin-top: 0.22rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.82;
  transition: background-color 0.3s var(--ease-soft), opacity 0.3s;
}

.nav__link:hover { opacity: 1; background: var(--hdr-chip); }
.nav__link[aria-current="page"] { opacity: 1; background: var(--hdr-chip); }

.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn { padding: 0.72rem 1.25rem; font-size: 0.74rem; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 248, 239, 0.4);
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.header.is-scrolled .burger,
.header--solid .burger { border-color: rgba(74, 60, 52, 0.2); }

.burger span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.2s;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: inherit;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }
body.menu-open .burger { border-color: rgba(74, 60, 52, 0.24); }

/* ---------- menu mobile ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 880;
  display: flex;
  flex-direction: column;
  padding: 5.4rem var(--gutter) 2.2rem;
  background: var(--paper);
  color: var(--ink);
  clip-path: circle(0% at 100% 4%);
  transition: clip-path 0.5s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern);
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask: url("../img/graphics/paws-pattern.svg") 0 0 / 300px 300px repeat;
  mask: url("../img/graphics/paws-pattern.svg") 0 0 / 300px 300px repeat;
}

.mobile-menu > * { position: relative; }

body.menu-open .mobile-menu { clip-path: circle(150% at 100% 4%); }

.mobile-menu > nav { margin-block: auto; width: 100%; }

.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5.4vw, 2rem);
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
}

.mobile-menu a[aria-current="page"] { color: var(--clay-deep); }

body.menu-open .mobile-menu a { animation: menuIn 0.45s var(--ease) forwards; }
body.menu-open .mobile-menu nav a:nth-child(1) { animation-delay: 0.06s; }
body.menu-open .mobile-menu nav a:nth-child(2) { animation-delay: 0.1s; }
body.menu-open .mobile-menu nav a:nth-child(3) { animation-delay: 0.14s; }
body.menu-open .mobile-menu nav a:nth-child(4) { animation-delay: 0.18s; }
body.menu-open .mobile-menu nav a:nth-child(5) { animation-delay: 0.22s; }
body.menu-open .mobile-menu nav a:nth-child(6) { animation-delay: 0.26s; }

.mobile-menu a span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}

.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.mobile-menu__foot .btn {
  padding: 0.9rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  border-bottom: 0;
}

.mobile-menu__foot .btn--light {
  background: var(--clay-deep);
  color: #fff;
}
.mobile-menu__foot .btn--light:hover { background: var(--clay-dark); }

.mobile-menu__foot .btn--outline-light {
  background: transparent;
  color: var(--ink);
  border-color: rgba(74, 60, 52, 0.24);
}
.mobile-menu__foot .btn--outline-light:hover {
  background: var(--blush-soft);
  color: var(--clay-dark);
}

body.menu-open { overflow: hidden; }
body.menu-open .header { background: transparent; box-shadow: none; }
body.menu-open .header { --hdr-fg: var(--ink); --hdr-chip: rgba(223, 161, 132, 0.2); }
body.menu-open .header .header__inner {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .header .brand__logo--onDark { opacity: 0; }
body.menu-open .header .brand__logo--onLight { opacity: 1; }
body.menu-open .header .brand__mark {
  background: var(--blush-soft);
  border-color: rgba(190, 126, 96, 0.24);
}
body.menu-open .header .brand__mark--badge {
  background: none;
  border: 0;
}

body.lightbox-open .header { opacity: 0; pointer-events: none; }
body.lightbox-open .float-wa { opacity: 0; pointer-events: none; }

.header,
.float-wa {
  transition: opacity 0.3s var(--ease-soft), color 0.35s var(--ease-soft);
}

@keyframes menuIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(6.5rem, 13vh, 8.5rem);
  padding-bottom: clamp(2.2rem, 6vh, 3.6rem);
  overflow: hidden;
  color: #fff8ef;
  background: var(--paper-2);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: clamp(0.5rem, 1.4vw, 1rem);
  z-index: 0;
  border-radius: clamp(22px, 3vw, 38px);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 20s var(--ease-soft) forwards;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(52, 34, 24, 0.78) 0%, rgba(52, 34, 24, 0.28) 38%, rgba(52, 34, 24, 0.05) 62%),
    linear-gradient(to right, rgba(52, 34, 24, 0.55) 0%, rgba(52, 34, 24, 0.1) 55%, rgba(52, 34, 24, 0.25) 100%);
}

/* impronte decorative sopra la foto */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #fff3e4;
  opacity: 0.2;
  -webkit-mask: url("../img/graphics/paws-scatter.svg") no-repeat right -4% top 8% / min(56vw, 620px) auto;
  mask: url("../img/graphics/paws-scatter.svg") no-repeat right -4% top 8% / min(56vw, 620px) auto;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__eyebrow { color: #ffeedd; }
.hero__eyebrow::before { background: #ffe3c9; }

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: #fff9f2;
}

.hero h1 em { color: #f8cbb0; }

.hero__sub {
  max-width: 46ch;
  margin-top: 1.4rem;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 248, 239, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.hero__meta {
  position: absolute;
  right: calc(var(--gutter) + 0.6rem);
  bottom: clamp(2.4rem, 6vh, 3.6rem);
  z-index: 3;
  text-align: right;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
  color: rgba(255, 248, 239, 0.78);
}

.hero__scroll {
  position: absolute;
  left: calc(var(--gutter) + 0.2rem);
  bottom: clamp(2.4rem, 6vh, 3.6rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.7);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: currentColor;
  opacity: 0.6;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

[data-hero] {
  opacity: 0;
  animation: heroIn 0.95s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--blush-soft);
  border-block: 1px solid rgba(74, 60, 52, 0.07);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-dur, 44s) linear infinite;
}

.marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  color: var(--ink);
  white-space: nowrap;
}

.marquee__group span::after {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  background: var(--clay);
  opacity: 0.55;
  -webkit-mask: var(--g-dog) center / contain no-repeat;
  mask: var(--g-dog) center / contain no-repeat;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sezioni ---------- */
.section {
  position: relative;
  padding-block: clamp(3.2rem, 7vw, 5.6rem);
}

.section--tight { padding-block: clamp(2rem, 4.4vw, 3.2rem); }

.section--cream { background: var(--paper-2); }

.section--cream::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--pattern);
  opacity: 0.34;
  -webkit-mask: url("../img/graphics/paws-pattern.svg") 0 0 / 300px 300px repeat;
  mask: url("../img/graphics/paws-pattern.svg") 0 0 / 300px 300px repeat;
}

.section--cream > *,
.footer > * { position: relative; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.4rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section-head > * { min-width: 0; }

/* sentiero di impronte */
.paw-trail {
  width: 12rem;
  height: 2.4rem;
  margin: 1.9rem auto 0;
  background: var(--clay);
  opacity: 0.5;
  -webkit-mask:
    url("../img/graphics/paw-dog.svg") left center / 1rem no-repeat,
    url("../img/graphics/paw-cat.svg") center 34% / 1.45rem no-repeat,
    url("../img/graphics/paw-dog.svg") right 8% / 1.1rem no-repeat;
  mask:
    url("../img/graphics/paw-dog.svg") left center / 1rem no-repeat,
    url("../img/graphics/paw-cat.svg") center 34% / 1.45rem no-repeat,
    url("../img/graphics/paw-dog.svg") right 8% / 1.1rem no-repeat;
}

/* ---------- split & frames ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.split--wide-left { grid-template-columns: 1.05fr 0.95fr; }

.split__media { position: relative; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-3);
  box-shadow: var(--shadow-md);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--landscape { aspect-ratio: 4 / 3; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--square { aspect-ratio: 1 / 1; }
.frame--hero { aspect-ratio: 16 / 10; }

.badge {
  position: absolute;
  left: -0.9rem;
  bottom: 1.5rem;
  max-width: 11.5rem;
  padding: 0.95rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(74, 60, 52, 0.07);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.badge::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--clay);
  opacity: 0.22;
  -webkit-mask: var(--g-dog) center / contain no-repeat;
  mask: var(--g-dog) center / contain no-repeat;
}

.badge--right {
  left: auto;
  right: -0.9rem;
}

.badge__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--clay-deep);
}

.badge__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- servizi (card con foto) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(74, 60, 52, 0.07);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

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

.service__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.service:hover .service__img { transform: scale(1.04); }

.service__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem 1.45rem 1.6rem;
}

.service__num {
  align-self: flex-start;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--sage-soft);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-ink);
}

.service h3 { font-size: 1.28rem; font-weight: 500; }
.service p { font-size: 0.94rem; line-height: 1.68; }

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
}

.service__tags li {
  padding: 0.28rem 0.62rem;
  border-radius: var(--r-pill);
  background: var(--blush-soft);
  font-size: 0.69rem;
  font-weight: 600;
  color: #8a5b43;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.service__link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.service:hover .service__link svg { transform: translateX(4px); }

/* ---------- card con icona ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid rgba(74, 60, 52, 0.07);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

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

.card::after {
  content: "";
  position: absolute;
  top: -3.4rem;
  right: -3.4rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blush), rgba(251, 228, 218, 0) 70%);
  opacity: 0.85;
  pointer-events: none;
}

.card > * { position: relative; z-index: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50% 44% 52% 48% / 48% 52% 48% 52%;
  background: var(--sage-soft);
  color: var(--sage-ink);
}

.card__icon svg { width: 25px; height: 25px; }

.card__icon[data-icon]::before {
  content: "";
  width: 26px;
  height: 26px;
  background: var(--sage-ink);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.card__icon[data-icon="collar"]::before {
  -webkit-mask-image: url("../img/graphics/collar.svg");
  mask-image: url("../img/graphics/collar.svg");
}

.card__icon[data-icon="kibble"]::before {
  -webkit-mask-image: url("../img/graphics/kibble.svg");
  mask-image: url("../img/graphics/kibble.svg");
}

.card__icon[data-icon="paw"]::before {
  -webkit-mask-image: url("../img/graphics/paw-dog.svg");
  mask-image: url("../img/graphics/paw-dog.svg");
}

.card__icon[data-icon="paw-cat"]::before {
  -webkit-mask-image: url("../img/graphics/paw-cat.svg");
  mask-image: url("../img/graphics/paw-cat.svg");
}

.card h3 { font-size: 1.2rem; font-weight: 500; }
.card p { font-size: 0.94rem; line-height: 1.68; }

/* ---------- checklist con impronte ---------- */
.checklist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.8rem;
  line-height: 1.62;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.05rem;
  height: 1.05rem;
  background: var(--clay);
  opacity: 0.8;
  -webkit-mask: var(--g-dog) center / contain no-repeat;
  mask: var(--g-dog) center / contain no-repeat;
}

.checklist li:nth-child(even)::before {
  background: var(--sage-deep);
  -webkit-mask-image: var(--g-cat);
  mask-image: var(--g-cat);
}

/* ---------- timeline ---------- */
.steps { display: grid; }

.step {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: start;
  gap: 1.5rem;
  padding: 1.45rem 0;
  border-bottom: 1px dashed rgba(74, 60, 52, 0.18);
}

.step:last-child { border-bottom: 0; }

.step::before {
  content: attr(data-time);
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0.34rem 0.72rem;
  border-radius: var(--r-pill);
  background: var(--sage-soft);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--sage-ink);
}

.step h3 {
  margin-bottom: 0.3rem;
  font-size: 1.14rem;
  font-weight: 500;
}

.step p { font-size: 0.94rem; line-height: 1.68; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery--mosaic {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 15rem;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-3);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(52, 34, 24, 0.6), rgba(52, 34, 24, 0) 58%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}

.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }

.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff8ef;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease);
}

.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap {
  opacity: 1;
  transform: none;
}

.gallery__item:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }

.gallery--mosaic .gallery__item {
  aspect-ratio: auto;
  height: 100%;
}

.gallery__item--tall { grid-row: span 2; }

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.gallery-preview .gallery__item { aspect-ratio: 4 / 5; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  margin: 0 clamp(0.5rem, 1.4vw, 1rem) clamp(0.5rem, 1.4vw, 1rem);
  padding-block: clamp(3rem, 7vw, 5.2rem);
  border-radius: clamp(24px, 3vw, 38px);
  overflow: hidden;
  color: #fff8ef;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(120deg, rgba(46, 31, 23, 0.93) 0%, rgba(74, 50, 37, 0.82) 48%, rgba(126, 84, 62, 0.62) 100%);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ffeede;
  opacity: 0.16;
  -webkit-mask: url("../img/graphics/paws-scatter.svg") no-repeat right -8% bottom -14% / min(62vw, 700px) auto;
  mask: url("../img/graphics/paws-scatter.svg") no-repeat right -8% bottom -14% / min(62vw, 700px) auto;
}

.cta-band .eyebrow { color: #f3c6a8; }
.cta-band .eyebrow::before { background: #f3c6a8; }

.cta-band h2 {
  max-width: 22ch;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  line-height: 1.08;
  color: #fff9f2;
}

.cta-band h2 em { color: #f8cbb0; }

.cta-band p {
  max-width: 48ch;
  margin-top: 1rem;
  font-size: 0.98rem;
  color: rgba(255, 248, 239, 0.88);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

/* ---------- pagehead ---------- */
.pagehead {
  position: relative;
  padding-top: clamp(6.5rem, 11vw, 8.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.4rem);
  overflow: hidden;
  background: var(--paper);
}

.pagehead::before {
  content: "";
  position: absolute;
  top: -16rem;
  right: -14rem;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blush) 0%, rgba(251, 228, 218, 0) 68%);
  pointer-events: none;
}

.pagehead::after {
  content: "";
  position: absolute;
  bottom: -14rem;
  left: -10rem;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-soft) 0%, rgba(231, 240, 231, 0) 70%);
  pointer-events: none;
}

.pagehead > .container { position: relative; z-index: 2; }

.pagehead__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.pagehead h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.pagehead h1 em { color: var(--clay-deep); }

.pagehead__sub {
  max-width: 48ch;
  margin-top: 1.2rem;
  font-size: clamp(0.98rem, 1.3vw, 1.04rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.pagehead__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.pagehead__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-3);
  box-shadow: var(--shadow-md);
}

.pagehead__media--wide { aspect-ratio: 4 / 3; }

.pagehead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagehead__rule {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pagehead__rule::before {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  background: var(--clay-deep);
  -webkit-mask: var(--g-cat) center / contain no-repeat;
  mask: var(--g-cat) center / contain no-repeat;
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-bottom: 1.5rem;
  background: var(--paper-3);
  color: var(--ink-soft);
  overflow: hidden;
}

.footer::before { opacity: 0.4; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr;
  gap: clamp(1.6rem, 3vw, 2.8rem);
}

.footer h4 {
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.brand__mark--ftr {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: none;
  border: 0;
  box-shadow: none;
}

.brand__mark--ftr img {
  width: 92px;
  height: 92px;
}

.footer__brand p {
  max-width: 32ch;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__links {
  display: grid;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease-soft);
}

.footer__links a:hover { color: var(--clay-deep); }

.footer__contact {
  display: grid;
  gap: 0.9rem;
  font-size: 0.92rem;
}

.footer__contact > div { display: grid; gap: 0.1rem; }

.footer__contact > div > span:first-child {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.footer__contact a { color: var(--ink); }
.footer__contact a:hover { color: var(--clay-deep); }
.footer__contact > div > span:not(:first-child) { color: var(--ink); }

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--clay-deep);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(141, 79, 48, 0.65);
  transition: background-color 0.3s var(--ease-soft), color 0.3s,
    border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease-soft);
}

.socials a svg { width: 20px; height: 20px; }

.socials a:hover {
  background: var(--clay-dark);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -12px rgba(141, 79, 48, 0.75);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(74, 60, 52, 0.12);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
  font-weight: 600;
}

.footer__legal a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(74, 60, 52, 0.45);
}

.footer__legal a:hover {
  color: var(--clay-deep);
  text-decoration-color: currentColor;
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(74, 60, 52, 0.3);
}

.footer__bottom a:hover { color: var(--clay-deep); }

.footer__credit {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: center;
}

.footer__credit a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(74, 60, 52, 0.3);
  transition: color 0.25s var(--ease-soft), text-decoration-color 0.25s;
}

.footer__credit a:hover {
  color: var(--clay-deep);
  text-decoration-color: currentColor;
}

/* ---------- WhatsApp flottante ---------- */
.float-wa {
  position: fixed;
  right: clamp(0.9rem, 2.4vw, 1.7rem);
  bottom: clamp(0.9rem, 2.4vw, 1.7rem);
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.1rem;
  border: 1px solid rgba(74, 60, 52, 0.08);
  border-radius: var(--r-pill);
  background: #fff;
  color: #3a6248;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 18px 34px -20px rgba(60, 50, 40, 0.75);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    opacity 0.3s var(--ease-soft);
}

.float-wa svg { width: 20px; height: 20px; color: #4e9a6b; }

.float-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -20px rgba(60, 50, 40, 0.8);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(38, 27, 21, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1080px, 92vw);
  max-height: 82vh;
  border-radius: var(--r-md);
  box-shadow: 0 40px 80px -40px #000;
}

.lightbox__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.9rem, 4vh, 2rem);
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 248, 239, 0.82);
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 248, 239, 0.3);
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.08);
  color: #fff8ef;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__btn:hover { background: rgba(255, 248, 239, 0.2); border-color: rgba(255, 248, 239, 0.6); }

.lightbox__close { top: clamp(0.7rem, 2vw, 1.4rem); right: clamp(0.7rem, 2vw, 1.4rem); }
.lightbox__prev { left: clamp(0.5rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(0.5rem, 2vw, 1.4rem); top: 50%; transform: translateY(-50%); }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal="scale"] { transform: scale(0.965); }

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav__link { padding: 0.5rem 0.6rem; font-size: 0.74rem; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }

  .split,
  .split--wide-left,
  .pagehead__grid,
  .grid-2,
  .grid-3,
  .services {
    grid-template-columns: 1fr;
  }

  .pagehead { padding-top: clamp(5.8rem, 16vw, 7rem); }
  .pagehead__media { order: -1; aspect-ratio: 4 / 3; }

  .split { gap: 2.2rem; }
  .split__media { order: -1; }

  .services { gap: 1.2rem; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 12rem; }

  .gallery-preview { grid-template-columns: repeat(3, 1fr); }

  .badge { left: 0.8rem; bottom: 0.8rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .hero__scroll { display: none; }
  .hero__meta { bottom: 1.4rem; right: var(--gutter); }

  /* niente reveal su touch/telefono (allineato al JS) */
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }

  .hero { min-height: 92svh; padding-bottom: 2rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); max-width: 14ch; }
  .hero__sub { font-size: 0.96rem; margin-top: 1.1rem; }
  .hero__actions { margin-top: 1.5rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__meta { display: none; }

  .brand__sub { display: none; }

  .service { flex-direction: column; }
  .service__img { width: 100%; aspect-ratio: 16 / 10; }

  .step { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.15rem 0; }

  .gallery--mosaic { grid-auto-rows: 10rem; }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }

  .section-head { gap: 1.2rem; }

  .cta-band { margin-inline: 0.5rem; }
  .cta-band__actions .btn { flex: 1 1 auto; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }

  .float-wa span { display: none; }
  .float-wa { padding: 0.85rem; }
}

@media (max-height: 740px) {
  .mobile-menu { padding-top: 4.9rem; padding-bottom: 1.5rem; }
  .mobile-menu a { font-size: clamp(1.2rem, 4.6vw, 1.6rem); padding: 0.4rem 0; }
  .mobile-menu__foot { margin-top: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-hero] { opacity: 1; }
  .hero__media img { transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Badge "Pensione autorizzata" + modale ---------- */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 248, 239, 0.45);
  background: rgba(255, 248, 239, 0.14);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft),
    transform 0.3s var(--ease);
}

.auth-badge svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.auth-badge strong {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.auth-badge span {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.72;
}

.auth-badge:hover {
  background: rgba(255, 248, 239, 0.26);
  border-color: rgba(255, 248, 239, 0.7);
  transform: translateY(-1px);
}

.auth-badge:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.authmodal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(38, 28, 22, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-soft), visibility 0.28s;
}

.authmodal.is-open {
  opacity: 1;
  visibility: visible;
}

.authmodal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.32s var(--ease);
}

.authmodal.is-open .authmodal__panel {
  transform: none;
}

.authmodal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.authmodal__close:hover {
  background: var(--blush-soft);
  color: var(--ink);
}

.authmodal__close svg {
  width: 16px;
  height: 16px;
}

.authmodal__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 1.1rem;
  margin: 1.4rem 0 0;
  font-size: 0.94rem;
}

.authmodal__list dt {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  align-self: start;
  padding-top: 0.15rem;
  white-space: nowrap;
}

.authmodal__list dd {
  margin: 0;
  color: var(--ink);
}

body.auth-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .authmodal__list {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .authmodal__list dt {
    margin-top: 0.7rem;
  }
}

@media (max-width: 640px) {
  .authmodal {
    align-items: end;
    padding: 0.9rem;
  }
  .authmodal__panel {
    max-height: min(88vh, 640px);
    padding-top: 1.9rem;
  }
  .authmodal__list {
    gap: 0.15rem 0.8rem;
  }
}

@media (max-width: 780px) {
  .badge--right {
    left: auto;
    right: 0.8rem;
  }
}

/* ---------- utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section--first {
  padding-top: clamp(7rem, 12vw, 9.5rem);
}

.pagehead__caption {
  max-width: 720px;
  margin: clamp(1.8rem, 4vw, 2.6rem) auto 0;
}

.pagehead__caption .lead {
  max-width: 54ch;
}

.pagehead__grid--single {
  grid-template-columns: 1fr;
}

.pagehead__grid--single .pagehead__media {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  grid-column: 1 / -1;
  order: -2;
  margin-bottom: clamp(1rem, 2.5vw, 1.7rem);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--clay);
  font-weight: 400;
}

.breadcrumbs a {
  color: var(--clay-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  border-bottom-color: currentColor;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

/* h1 con classe .display nel pagehead: mantiene la scala del .display */
.pagehead h1.display {
  font-size: clamp(1.95rem, 4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
