/* =========================================================
   VetCura Milano — Ambulatorio Veterinario
   Design system: "Accessible & Ethical" | Palette Blu + Verde
   Mobile-first, responsive, accessibile
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colori */
  --color-primary: #0369A1;      /* blu fiducia */
  --color-primary-dark: #075985; /* blu profondo (hover/testi su chiaro) */
  --color-secondary: #38BDF8;    /* azzurro chiaro */
  --color-cta: #22C55E;          /* verde salute */
  --color-cta-hover: #16A34A;    /* hover CTA */
  --color-bg: #F0F9FF;           /* sfondo azzurrato */
  --color-surface: #FFFFFF;      /* card / header */
  --color-tint: #E6F4FB;         /* sezioni alternate */
  --color-text: #0C4A6E;         /* testo principale */
  --color-muted: #475569;        /* testo secondario */
  --color-border: #E2E8F0;       /* bordi */
  --color-whatsapp: #25D366;
  --color-urgent: #EF4444;

  /* Tipografia */
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Spaziatura / raggi / ombre */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(12, 74, 110, .08);
  --shadow: 0 10px 30px -12px rgba(12, 74, 110, .22);
  --shadow-lg: 0 24px 60px -18px rgba(12, 74, 110, .30);
  --container: 1180px;
  --header-h: 76px;

  /* Z-index scale */
  --z-header: 30;
  --z-float: 40;
  --z-menu: 50;
  --z-cookie: 60;

  --ease: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;           /* ~17px */
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--color-text); font-weight: 700; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.text-accent { color: var(--color-cta); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--color-primary); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); z-index: 100;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; }

/* Focus visibile (accessibilità) */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  line-height: 1; text-align: center; cursor: pointer;
  min-height: 48px; padding: 0 1.35rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: #fff;
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--cta { --btn-bg: var(--color-cta); box-shadow: 0 8px 20px -8px rgba(34, 197, 94, .6); }
.btn--cta:hover { --btn-bg: var(--color-cta-hover); }

.btn--outline {
  background: transparent; color: var(--color-primary);
  border-color: var(--color-border);
}
.btn--outline:hover { border-color: var(--color-primary); background: var(--color-surface); }

.btn--lg { min-height: 54px; padding: 0 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Badge / eyebrow ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(34, 197, 94, .12); color: var(--color-cta-hover);
  font-weight: 600; font-size: .9rem;
  padding: .5rem 1rem; border-radius: var(--radius-pill);
}
.badge__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--color-cta);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite;
}
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; font-size: .82rem;
  color: var(--color-primary); margin-bottom: .75rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--ease), background-color var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .96); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); }
.logo__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  color: var(--color-cta);
}
.logo__text { font-weight: 700; font-size: 1.3rem; color: var(--color-primary); display: flex; align-items: baseline; gap: 2px; }
.logo__text strong { font-weight: 800; color: var(--color-cta); }
.logo__city { font-size: .72rem; font-weight: 600; color: var(--color-muted); letter-spacing: .06em; text-transform: uppercase; margin-left: 4px; }

.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  display: inline-block; padding: .6rem .9rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 500; color: var(--color-text);
  transition: background-color var(--ease), color var(--ease);
}
.nav__link:hover { background: var(--color-tint); color: var(--color-primary); }
.nav__link.is-active { color: var(--color-primary); background: var(--color-tint); }

.header__actions { display: flex; align-items: center; gap: .75rem; }

/* Hamburger */
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  border-radius: 12px; padding: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle__bar { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--color-text); transition: transform var(--ease), opacity var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(56, 189, 248, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(34, 197, 94, .12), transparent 55%),
    var(--color-bg);
}
.hero__inner { display: grid; gap: 2.5rem; padding-block: 3rem 3.5rem; align-items: center; }

.hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero__subtitle { margin-top: 1.1rem; font-size: clamp(1.05rem, 2.5vw, 1.2rem); color: var(--color-muted); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2rem;
  padding-top: 1.5rem; border-top: 1px solid var(--color-border);
}
.hero__trust li { font-size: .95rem; color: var(--color-muted); }
.hero__trust strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }

/* Media hero: carosello */
.hero__media { position: relative; }
.carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-tint); }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; list-style: none; margin: 0; padding: 0; transition: transform 600ms cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.carousel__slide { position: relative; flex: 0 0 100%; min-width: 0; }
.carousel__img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; background: var(--color-tint); }

.carousel__caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255, 255, 255, .93); backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  padding: .8rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.carousel__caption-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--color-cta), #4ade80); flex-shrink: 0; }
.carousel__caption-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--color-text); }
.carousel__caption-text { font-size: .85rem; color: var(--color-muted); line-height: 1.35; }

.carousel__arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: var(--color-primary);
  box-shadow: var(--shadow-sm); transition: background-color var(--ease), transform var(--ease);
}
.carousel__arrow:hover { background: #fff; }
.carousel__arrow:active { transform: translateY(-50%) scale(.94); }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }

.carousel__dots { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; }
.carousel__dot { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel__dot::before {
  content: ""; width: 9px; height: 9px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .6); box-shadow: 0 1px 3px rgba(12, 74, 110, .4);
  transition: width var(--ease), background-color var(--ease);
}
.carousel__dot.is-active::before { width: 24px; background: #fff; }

/* =========================================================
   SEZIONI GENERICHE
   ========================================================= */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--color-tint); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.section__title { font-size: clamp(1.7rem, 4.5vw, 2.5rem); letter-spacing: -.02em; }
.section__lead { margin-top: 1rem; font-size: 1.1rem; color: var(--color-muted); }

/* ---------- Chi siamo: valori ---------- */
.values { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.value {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.value:hover { box-shadow: var(--shadow); border-color: #bae6fd; }
.value__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  color: var(--color-primary); background: var(--color-tint); margin-bottom: 1rem;
}
.value__title { font-size: 1.15rem; margin-bottom: .4rem; }
.value p { color: var(--color-muted); font-size: .98rem; }

/* ---------- Split (certificazioni) ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split__media { position: relative; }
.split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__stat {
  position: absolute; right: -8px; bottom: -18px;
  background: var(--color-primary); color: #fff; padding: 1rem 1.25rem; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
}
.split__stat strong { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; }
.split__stat span { font-size: .8rem; opacity: .9; }

.cert-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.cert-list li { display: flex; gap: .9rem; align-items: flex-start; }
.cert-list__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(34, 197, 94, .15); color: var(--color-cta-hover);
}
.cert-list strong { display: block; font-family: var(--font-head); color: var(--color-text); }
.cert-list span { color: var(--color-muted); font-size: .95rem; }

/* ---------- Servizi: card ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #bae6fd; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__icon {
  position: absolute; left: 16px; bottom: -22px;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  color: #fff; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: var(--shadow); border: 3px solid var(--color-surface);
}
.card__icon--urgent { background: linear-gradient(135deg, var(--color-urgent), #f87171); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.25rem; margin-bottom: .6rem; }
.card__body p { color: var(--color-muted); flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem;
  font-family: var(--font-head); font-weight: 600; color: var(--color-primary);
}
.card__link svg { transition: transform var(--ease); }
.card__link:hover { color: var(--color-primary-dark); }
.card__link:hover svg { transform: translateX(4px); }

/* ---------- Storie / recensioni ---------- */
.story {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; display: grid; gap: 0; margin-bottom: 2.5rem;
}
.story__gallery { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; background: var(--color-tint); }
.story__figure { position: relative; margin: 0; }
.story__figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.story__label {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  color: #fff; padding: .35rem .8rem; border-radius: var(--radius-pill);
}
.story__label--before { background: #64748b; }
.story__label--after { background: var(--color-cta); }
.story__arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow);
  margin-inline: -26px; z-index: 1; position: relative;
}
.story__text { padding: 1.75rem 1.6rem; }
.story__title { font-size: 1.35rem; margin-bottom: .6rem; }
.story__text p { color: var(--color-muted); }
.story__author { margin-top: .75rem; font-weight: 600; color: var(--color-text); }

.testimonials { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.testimonial {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial__stars { display: flex; gap: 2px; color: #f59e0b; }
.testimonial blockquote { font-size: 1.05rem; color: var(--color-text); flex: 1; }
.testimonial__person { display: flex; align-items: center; gap: .75rem; }
.testimonial__person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial__avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; background: #e2e8f0; color: #94a3b8; }
.testimonial__person strong { display: block; font-family: var(--font-head); }
.testimonial__person span { font-size: .88rem; color: var(--color-muted); }

/* ---------- Dove siamo ---------- */
.location { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.location__map {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--color-border); min-height: 320px;
}
.location__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.location__info { display: grid; gap: 1rem; align-content: start; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.info-card__icon {
  display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  color: var(--color-primary); background: var(--color-tint);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.info-card p { color: var(--color-muted); font-size: .98rem; }
.info-card__badge {
  display: inline-block; margin-top: .4rem;
  background: rgba(239, 68, 68, .12); color: var(--color-urgent);
  font-weight: 700; font-size: .82rem; padding: .2rem .7rem; border-radius: var(--radius-pill);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #062f4a; color: #cbd8e6; margin-top: 0; }
.footer a { color: #cbd8e6; transition: color var(--ease); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.25rem;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}
.logo--footer .logo__text { color: #fff; }
.logo--footer .logo__text strong { color: var(--color-cta); }
.logo--footer .logo__city { color: #94a3b8; }
.footer__tagline { margin-top: 1rem; color: #94a3b8; max-width: 40ch; }
.footer__social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); color: #cbd8e6;
  transition: background-color var(--ease), color var(--ease), transform var(--ease);
}
.social:hover { background: var(--color-secondary); color: #062f4a; transform: translateY(-3px); }

.footer__heading { font-family: var(--font-head); font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.footer__nav ul, .footer__contacts ul, .footer__hours ul { display: grid; gap: .7rem; }
.footer__contacts li { display: flex; align-items: center; gap: .6rem; }
.footer__contacts svg { color: #7dd3fc; flex-shrink: 0; }
.footer__contacts address { font-style: normal; }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: .55rem; }
.footer__hours-urgent span:last-child { color: #7dd3fc; font-weight: 700; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.35rem; font-size: .85rem; color: #94a3b8; }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float);
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-whatsapp); color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform var(--ease), box-shadow var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px -6px rgba(37, 211, 102, .75); }
.whatsapp-float__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--color-whatsapp); z-index: -1; animation: whatsapp-pulse 2.4s infinite;
}

/* =========================================================
   BANNER COOKIE
   ========================================================= */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: var(--z-cookie);
  width: min(420px, calc(100vw - 40px));
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.25rem;
  display: grid; gap: 1rem;
}
.cookie[hidden] { display: none; }
.cookie__body { display: flex; gap: .85rem; align-items: flex-start; }
.cookie__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; color: var(--color-primary); background: var(--color-tint); }
.cookie__title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: .25rem; }
.cookie__text p { font-size: .92rem; color: var(--color-muted); }
.cookie__text a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }
.cookie__actions { display: flex; gap: .6rem; }
.cookie__actions .btn { flex: 1; min-height: 44px; }

/* Overlay consenso mappa */
.location__map { position: relative; }
.location__consent {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem;
  text-align: center; padding: 1.5rem;
  background: var(--color-tint); color: var(--color-muted);
}
.location__consent[hidden] { display: none; }
.location__consent svg { color: var(--color-primary); }
.location__consent p { max-width: 34ch; font-size: .95rem; }

/* =========================================================
   ANIMAZIONI
   ========================================================= */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: .6; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

/* Evidenziazione del pulsante "Chiama ora" quando si clicca "Prenota" */
.btn.is-highlighted {
  border-color: var(--color-cta);
  color: var(--color-cta-hover);
  background: rgba(34, 197, 94, .08);
  animation: call-attn 1.2s cubic-bezier(.4, 0, .2, 1) 2;
}
@keyframes call-attn {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); transform: scale(1); }
  40%  { transform: scale(1.06); }
  70%  { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); transform: scale(1); }
}

/* Placeholder d'attesa/errore per le immagini remote */
.card__media, .split__img, .story__figure img, .testimonial__person img { background: var(--color-tint); }
img[data-fallback] { object-fit: cover; }

/* Nota "dimostrativo" */
.info-card__note, .story__note { color: var(--color-primary); font-size: .82rem; font-weight: 600; }
.story__note { font-weight: 500; color: var(--color-muted); }

/* Nascosto solo se JS è attivo (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE (mobile-first → up)
   ========================================================= */

/* ≥ 600px : griglie a 2 colonne */
@media (min-width: 600px) {
  .values { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1.1fr 1fr; }
  .story__gallery { height: 100%; }
}

/* ≥ 768px : tablet */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .location { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr; }
  .footer__hours { grid-column: 2 / -1; }
}

/* ≥ 900px : desktop */
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; padding-block: 4.5rem 5rem; }
  .split { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1.4fr 1.2fr; }
  .footer__hours { grid-column: auto; }
}

/* Mobile nav ( < 860px ) */
@media (max-width: 859px) {
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem 1rem 1.25rem; }
  .nav__link { padding: .9rem 1rem; font-size: 1.1rem; }
  .nav__cta-item { margin-top: .5rem; }
  .nav__cta-item .btn { width: 100%; }
}

/* Voce CTA nel menu: visibile solo su mobile */
.nav__cta-item { display: none; }
@media (max-width: 859px) { .nav__cta-item { display: block; } }

/* ---------- Hero ottimizzata per smartphone ( < 600px ) ---------- */
@media (max-width: 599px) {
  /* Più respiro dai bordi su tutte le sezioni */
  .container { padding-inline: 24px; }

  .hero__inner { gap: 1.6rem; padding-block: 1.25rem 2.5rem; }
  .hero__title { font-size: clamp(1.85rem, 8vw, 2.5rem); line-height: 1.16; }
  .hero__subtitle { margin-top: .8rem; font-size: 1.02rem; }
  .badge { font-size: .8rem; padding: .45rem .8rem; }

  /* CTA impilate a tutta larghezza: tap target ampi e ordinati */
  .hero__cta { flex-direction: column; align-items: stretch; gap: .65rem; margin-top: 1.35rem; }
  .hero__cta .btn { width: 100%; min-height: 48px; padding: 0 1.25rem; font-size: .98rem; }

  /* Statistiche di fiducia: riga a 3 con separatori, niente a-capo disordinati */
  .hero__trust {
    gap: 0; margin-top: 1.5rem; padding-top: 1.2rem;
    justify-content: space-between; text-align: center; flex-wrap: nowrap;
  }
  .hero__trust li { flex: 1 1 0; min-width: 0; padding: 0 .3rem; font-size: .8rem; line-height: 1.25; }
  .hero__trust li + li { border-left: 1px solid var(--color-border); }
  .hero__trust strong { font-size: 1.3rem; margin-bottom: .1rem; }

  /* Carosello: più compatto, senza frecce (spazio a swipe + dots) */
  .carousel__img { aspect-ratio: 5 / 4.4; }
  .carousel__arrow { display: none; }
  .carousel__caption { left: 10px; right: 10px; bottom: 10px; padding: .7rem .85rem; gap: .6rem; }
  .carousel__caption-icon { width: 38px; height: 38px; }
  .carousel__caption-title { font-size: .95rem; }
  .carousel__caption-text { font-size: .82rem; }
  .carousel__dots { top: 12px; }
}

/* Schermi molto piccoli */
@media (max-width: 380px) {
  .logo__city { display: none; }
  .whatsapp-float { width: 54px; height: 54px; }
  .hero__trust strong { font-size: 1.2rem; }
  .hero__trust li { font-size: .74rem; }
}

/* =========================================================
   ACCESSIBILITÀ: reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
