/* ============================================================
   NIU DENTAL — sage green design system (no 3D)
   ============================================================ */

:root {
  /* Sage palette */
  --sage-50:  #F2F5EC;
  --sage-100: #E5EBDD;
  --sage-200: #D4DCC9;
  --sage-300: #BFC9B0;
  --sage-400: #A6B493;
  --sage-500: #8DA178;
  --sage-600: #6F8867;
  --sage-700: #556B4F;
  --sage-800: #3F5239;

  /* Neutrals */
  --black:  #1A1B19;
  --ink:    #1D1F1B;
  --ink-2:  #2C2F28;
  --muted:  #6F8867;
  --white:  #FFFFFF;

  /* Backgrounds */
  --bg:     #E8EEE0;
  --bg-2:   #DDE6D2;
  --bg-3:   #F2F5EC;

  /* Type */
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --pad-x: clamp(24px, 5vw, 80px);
  --max-w: 1440px;

  /* Easings */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.7, 0, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: #EFF3E7;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background:
    linear-gradient(180deg,
      #EFF3E7 0%,
      #E8EEE0 10%,
      #DDE6D2 28%,
      #CFDBC0 50%,
      #BFCDAB 72%,
      #B0C19A 88%,
      #A6B493 100%);
  color: var(--ink);
  min-height: 100vh;
}

html.lenis { height: auto; }
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body { overflow-x: hidden; cursor: auto; }

a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
sup { font-size: 0.55em; vertical-align: super; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  transition: backdrop-filter .4s, background-color .4s, padding .35s var(--ease-out);
  will-change: backdrop-filter, background-color;
}
.nav.scrolled {
  background: rgba(232, 238, 224, .78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(166, 180, 147, .35);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
}
.brand em { font-style: normal; font-weight: 400; opacity: .7; letter-spacing: .25em; }
.brand-icon { width: 28px; height: 28px; color: var(--ink); }
.brand-icon-tiny { width: 18px; height: 18px; color: var(--ink); }

.nav-links {
  display: flex;
  gap: 40px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -.005em;
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

/* (nav-meta removed — Italia/Roma indicator no longer in the nav) */

.nav-toggle { display: none; }

/* (side progress dots removed) */

/* ============================================================
   Sections base
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  padding: 160px var(--pad-x) 120px;
  overflow: hidden;
}
.container {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--sage-700);
  font-weight: 500;
  margin-bottom: 32px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 110px var(--pad-x) 60px;
  overflow: hidden;
  z-index: 2;
}

/* Hero background image — wrapper handles scroll-zoom, inner handles entrance */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
  transform-origin: 50% 50%;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../sfondo-hero.jpeg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  /* Soft feather on all four edges so the image dissolves into the
     sage background when it zooms out on scroll. Two-layer mask:
     one gradient feathers the horizontal edges, the other the vertical.
     `intersect` keeps the inner rectangle opaque with feathered borders.
     Cross-browser: standard + webkit values both express intersection. */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right,  transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-composite: intersect;
}

/* Overlay — softens left side for text contrast + fades bottom into the sage gradient.
   Bottom-fade target matches the body gradient at body-y=900px (~11% of body height),
   which is approximately #E7EDDF — so the seam between hero and partner is invisible. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Left soft tint for text contrast (stronger so light-weight words like "sorriso" stay legible) */
    linear-gradient(to right,
      rgba(239, 243, 231, 0.92) 0%,
      rgba(239, 243, 231, 0.72) 18%,
      rgba(239, 243, 231, 0.38) 40%,
      rgba(239, 243, 231, 0) 62%),
    /* Bottom fade — matches body color exactly at the hero-bottom seam */
    linear-gradient(to bottom,
      rgba(231, 237, 223, 0) 0%,
      rgba(231, 237, 223, 0) 50%,
      rgba(231, 237, 223, 0.55) 78%,
      #E7EDDF 100%),
    /* Subtle sage vignette */
    radial-gradient(120% 80% at 50% 40%,
      transparent 55%,
      rgba(166, 180, 147, 0.12) 100%);
}

/* The grid sits above the image and overlay */
.hero-grid { position: relative; z-index: 2; }

.hero-grid {
  position: relative;
  height: calc(100vh - 170px);
  min-height: 700px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto auto 1fr;
  column-gap: 60px;
  row-gap: 22px;
}

.hero-kicker {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
}
.hero-kicker .kicker { margin-bottom: 0; color: #000; }

.hero-title {
  grid-column: 1;
  grid-row: 3;
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #000;
  max-width: 640px;
}
.hero-title em { font-style: normal; font-weight: 700; }
.hero-title em.t-light { font-weight: 200; opacity: .55; }
.hero-title strong { font-weight: 700; }
.hero-title .amp { font-weight: 200; opacity: .55; padding: 0 .1em; }
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.06em 0.22em;
  margin-bottom: -0.18em;
}
.hero-title .word { display: inline-block; will-change: transform; }

.hero-lead {
  grid-column: 1;
  grid-row: 4;
  align-self: start;
  margin-top: 6px;
  max-width: 460px;
  font-size: 14px;
  color: #000;
  line-height: 1.6;
}

.cta-pill {
  grid-column: 1;
  grid-row: 5;
  justify-self: start;
  align-self: start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px 16px 28px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: transform .4s var(--ease-out), background .25s;
  overflow: hidden;
  z-index: 5;
  will-change: transform;
}
.cta-pill svg { width: 16px; height: 16px; }
.cta-pill:hover { transform: translateX(6px); background: var(--sage-700); }

/* SVG centerpiece replaced by hero background image (see .hero-bg) */
.hero-art, .hero-svg { display: none !important; }

/* ============================================================
   Section: Partner
   ============================================================ */
.partner { padding-top: 80px; }

/* Stats banner — anchors the partner section */
.stats-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 40px;
  padding-bottom: 48px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--sage-400);
}
.sb-num { display: flex; flex-direction: column; gap: 16px; }
.sb-num-r { text-align: right; align-items: flex-end; }
.sb-big {
  font-size: clamp(96px, 14vw, 200px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -.05em;
  color: var(--ink);
  display: inline-block;
}
.sb-cap {
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 500;
  color: var(--sage-700);
  text-transform: uppercase;
}
.sb-rule {
  width: 1px;
  height: clamp(80px, 12vw, 140px);
  background: var(--sage-500);
  align-self: end;
  margin-bottom: 18px;
}

.partner-display { margin-top: 0; }

.display {
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -.04em;
  color: var(--ink);
  position: relative;
  z-index: 2;
  max-width: 1000px;
}
.display em { font-style: normal; font-weight: 200; opacity: .42; }
.display em.t-bold { font-weight: 700; opacity: 1; }
.display strong { font-weight: 700; }
.display .line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.05em 0.2em;
  margin-bottom: -0.12em;
}
.display.align-right { text-align: right; margin-left: auto; }
.display.centered { text-align: center; margin: 0 auto; }

.lead {
  margin-top: 60px;
  margin-left: auto;
  max-width: 380px;
  font-size: 13px;
  color: var(--sage-700);
  line-height: 1.6;
  text-align: right;
}

.cards {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}
.card {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(212, 220, 201, .8);
  border-radius: 12px;
  padding: 28px 26px;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .55s var(--ease-out), background .35s, border-color .35s, box-shadow .45s var(--ease-out);
  will-change: transform;
  transform-origin: center center;
}
.card:hover {
  transform: scale(1.045);
  background: var(--white);
  border-color: var(--sage-300);
  box-shadow: 0 22px 60px -22px rgba(33, 50, 33, .22);
}
.card-num { font-size: 11px; letter-spacing: .12em; color: var(--sage-700); }
.card h3 {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
}
.card p {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--sage-700);
  line-height: 1.55;
}

/* ============================================================
   Section: Experience
   ============================================================ */
.experience { padding-top: 140px; }
.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}
.exp-controls { display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--sage-400);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease-out);
}
.round-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: scale(1.05); }
.round-btn svg { width: 18px; height: 18px; }

.exp-pager {
  display: flex;
  gap: 60px;
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 200;
  letter-spacing: -.04em;
  line-height: 1;
}
.ep-num {
  color: var(--sage-300);
  transition: color .3s;
  font-variant-numeric: tabular-nums;
}
.ep-num.active { color: var(--ink); }

.exp-stage {
  position: relative;
  min-height: 480px;
}
.exp-slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.exp-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

.exp-side {
  align-self: end;
  font-size: 12.5px;
  color: var(--sage-700);
  line-height: 1.6;
  max-width: 260px;
  padding-bottom: 60px;
}
.exp-display .line { display: block; }
.exp-foot {
  grid-column: 2;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage-600);
}

/* ============================================================
   Section: Quality + Warranty
   ============================================================ */
/* Quality is now a tall scroll-track with a sticky inner viewport
   so the dental implant frame sequence can play across many scroll pixels.
   We MUST NOT use overflow:hidden here — that would break position:sticky. */
.quality {
  padding: 0;
  position: relative;
  overflow: visible;
}

/* White bleed for the Quality section — organic "spotlight" effect.
   THREE radial gradients stacked + heavy blur(96px) create irregular,
   cloud-like white concentrations that grow naturally out of the tooth
   area and dissipate outward in all directions. No straight horizontal
   line is ever drawn — every edge is the blur of a radial fall-off, so
   the eye reads it as ambient illumination instead of a section cut. */
.quality-bleed {
  position: absolute;
  left: -14%;
  right: -14%;
  top: -120px;
  bottom: -200px;
  pointer-events: none;
  z-index: 0;
  filter: blur(96px);
  -webkit-filter: blur(96px);
  background:
    /* Core spotlight — full white, centred on the canvas column */
    radial-gradient(ellipse 60% 55% at 65% 50%,
      #FFFFFF 0%,
      rgba(255, 255, 255, 0.95) 35%,
      rgba(255, 255, 255, 0.55) 60%,
      rgba(255, 255, 255, 0.15) 80%,
      rgba(255, 255, 255, 0) 100%),
    /* Upper-left wash — softens the top horizontal contour */
    radial-gradient(ellipse 70% 35% at 40% 25%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.45) 45%,
      rgba(255, 255, 255, 0) 100%),
    /* Lower-right wash — softens the bottom horizontal contour */
    radial-gradient(ellipse 70% 40% at 70% 80%,
      rgba(255, 255, 255, 0.80) 0%,
      rgba(255, 255, 255, 0.40) 50%,
      rgba(255, 255, 255, 0) 100%);
}
.quality-track { position: relative; z-index: 1; }
.quality-track {
  position: relative;
  height: 320vh;
}
.quality-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px var(--pad-x);
  overflow: hidden;
}
.quality-sticky .container { width: 100%; max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }

/* NEW circular halo of light centered on the tooth — sits between the
   existing bleed (z-index 0) and the grid content (z-index 2). Bridges
   any residual hard cuts at the bleed's vertical boundaries by adding
   a perfect circle of soft glow around the implant that extends past
   the section edges in every direction. The existing .quality-bleed,
   .quality-video-mask, and .quality-video-fadeout are all UNTOUCHED. */
.quality-halo {
  position: absolute;
  top: 50%;
  left: 67%;
  width: 90vh;
  height: 90vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.75) 18%,
    rgba(255, 255, 255, 0.48) 34%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0.12) 66%,
    rgba(255, 255, 255, 0.04) 82%,
    rgba(255, 255, 255, 0) 100%);
  filter: blur(40px);
  -webkit-filter: blur(40px);
}
/* On mobile/tablet the tooth shifts toward the page center — recenter the halo */
@media (max-width: 1100px) {
  .quality-halo {
    left: 50%;
    width: 90vw;
    height: 90vw;
    max-width: 700px;
    max-height: 700px;
    top: 60%;
  }
}

/* Side-by-side: text on the LEFT, canvas on the RIGHT. Text column is
   capped so the tooth on the right has more horizontal real-estate to
   feel large and dominant on desktop. */
.quality-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 84vh;
}
.qg-left {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 440px;
  min-height: 500px;
}
.qg-block {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  will-change: opacity, transform;
}
/* Display font tuned so "certificata"/"ufficiale" fit the 440px column
   while staying punchy. At 1440px viewport, 5.2vw ≈ 75px. */
.qg-block .display { font-size: clamp(42px, 5.2vw, 76px); line-height: 1.02; }
.qg-block .kicker  { margin-bottom: 18px; display: block; font-size: 12px; letter-spacing: .25em; }
.qg-block .qg-text { margin-top: 22px; max-width: 100%; font-size: 14.5px; line-height: 1.65; }
.qg-block .link-arrow { margin-top: 24px; font-size: 13px; }
.qg-block .qg-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qg-block .qg-list li { padding-left: 14px; border-left: 1px solid var(--sage-300); text-align: left; font-size: 14px; line-height: 1.55; }
.qg-block .qg-list strong { font-size: 15px; }

.qg-text {
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--sage-700);
  line-height: 1.65;
  max-width: 360px;
}

.qg-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.qg-list li {
  font-size: 13px;
  color: var(--sage-800);
  line-height: 1.55;
  padding-left: 14px;
  border-left: 1px solid var(--sage-300);
}
.qg-list strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

.qg-art {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Canvas centerpiece — the dental implant frame sequence appears to FLOAT
   on the sage page with no visible rectangular boundary. A radial mask
   centered on the tooth keeps the implant fully visible at center while
   dissolving the white video background into transparency at the edges.
   `mix-blend-mode: multiply` makes the white video bg integrate naturally
   with the page sage so the implant looks part of the page, not pasted in. */
.quality-video-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: clamp(540px, 70vw, 1080px);
  max-height: 88vh;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  transform-origin: 50% 55%;
}
.quality-canvas {
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: multiply;
  /* Two-layer mask:
     1) radial centered on the tooth — keeps the implant crisp at center
     2) linear-to-top — fades the BOTTOM of the canvas into transparency
        so the screw dissolves into the white bleed instead of cutting hard.
     `mask-composite: intersect` keeps a pixel visible only where BOTH
     masks are opaque → the bottom is always faded, even at radial center. */
  -webkit-mask-image:
    radial-gradient(circle at 50% 50%,
      #000 0%, #000 32%,
      rgba(0,0,0,0.85) 46%,
      rgba(0,0,0,0.35) 62%,
      transparent 76%),
    linear-gradient(to top,
      transparent 0%,
      rgba(0,0,0,0.35) 12%,
      rgba(0,0,0,0.85) 22%,
      #000 32%);
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(circle at 50% 50%,
      #000 0%, #000 32%,
      rgba(0,0,0,0.85) 46%,
      rgba(0,0,0,0.35) 62%,
      transparent 76%),
    linear-gradient(to top,
      transparent 0%,
      rgba(0,0,0,0.35) 12%,
      rgba(0,0,0,0.85) 22%,
      #000 32%);
          mask-composite: intersect;
}
/* (wrap::after removed — it created a visible white rectangle at the
    canvas bottom. The bleed gradient + canvas linear mask together
    handle the seamless dissolve.) */
/* Side gradient overlay — keeps "Qualità certificata" / "Garanzia ufficiale"
   text readable when wide screens compress the gap between text and video */
/* Soft radial halo behind the tooth — adds depth without any hard edge.
   This is below the canvas (z-index 0) so the implant sits on a subtle
   warm-bloom that ties it to the sage page. */
.quality-video-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 55%,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.30) 22%,
      rgba(255, 255, 255, 0.10) 42%,
      transparent 65%);
  mix-blend-mode: screen;
  filter: blur(8px);
}
/* Exit overlay — covers the video as user scrolls past the section,
   producing a "fade out + dissolve to sage" feel */
.quality-video-fadeout {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    100% 100% at 50% 50%,
    rgba(232, 238, 224, 0) 0%,
    rgba(232, 238, 224, 0.5) 60%,
    rgba(232, 238, 224, 1) 100%);
  opacity: 0;
  will-change: opacity;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--sage-700);
}
.link-arrow svg { width: 14px; height: 14px; }

/* ============================================================
   Section: Servizi
   ============================================================ */
.servizi { padding: 160px var(--pad-x); }
.srv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.srv-display { font-size: clamp(56px, 8.5vw, 132px); }
.srv-video {
  margin-top: 60px;
  width: 240px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 60px -30px rgba(33,33,33,.3);
}
.srv-video-thumb {
  height: 140px;
  background-image: url('../studio-opt.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.srv-video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--white);
}
.srv-video-meta span { font-size: 11px; letter-spacing: .04em; opacity: .85; }
.play-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid; place-items: center;
  transition: transform .25s;
}
.play-btn:hover { transform: scale(1.1); }
.play-btn svg { width: 12px; height: 12px; }

.srv-list {
  list-style: none;
  align-self: end;
  border-top: 1px solid var(--sage-400);
}
.srv-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--sage-400);
  transition: padding .35s var(--ease-out);
}
.srv-item:hover { padding-left: 12px; }
.srv-num { font-size: 11px; color: var(--sage-700); letter-spacing: .15em; }
.srv-item h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--ink);
}
.srv-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sage-400);
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .35s, border-color .3s;
}
.srv-toggle svg { width: 14px; height: 14px; }
.srv-item:hover .srv-toggle { background: var(--ink); color: var(--white); border-color: var(--ink); transform: rotate(90deg); }

.srv-desc {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--sage-700);
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease-out), opacity .35s, margin-top .35s;
}
.srv-item.is-open .srv-desc { max-height: 140px; opacity: 1; margin-top: 14px; }
.srv-item.is-open .srv-toggle { background: var(--ink); color: var(--white); border-color: var(--ink); transform: rotate(45deg); }

/* ============================================================
   Marquee strip
   ============================================================ */
.marquee-strip {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--sage-400);
  border-bottom: 1px solid var(--sage-400);
  background: transparent;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  align-items: center;
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 200;
  letter-spacing: -.03em;
  color: var(--ink);
  white-space: nowrap;
  will-change: transform;
}
.marquee-track .m-dot {
  font-size: .5em;
  color: var(--sage-500);
  font-weight: 400;
}

/* ============================================================
   Section: Risultati
   ============================================================ */
.risultati { padding-top: 160px; padding-bottom: 60px; text-align: center; }
.risultati .container { display: flex; flex-direction: column; align-items: center; }
.risultati .kicker { margin-bottom: 24px; }
.risultati .display { margin-bottom: 80px; font-size: clamp(56px, 8vw, 124px); }

.patients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
  margin-bottom: 40px;
}
.patient {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.patient-photo {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: var(--sage-300);
  position: relative;
  overflow: hidden;
  filter: grayscale(.2);
  transition: filter .5s, transform .55s var(--ease-out);
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  contain: paint;
}
.patient-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(33,33,33,.45), transparent 50%);
}
.patient:hover .patient-photo { filter: grayscale(0); transform: translateY(-6px); }

.p-photo-1 {
  background-image: url('../dentisti/luca-opt.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.p-photo-2 {
  background-image: url('../dentisti/chiara-opt.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.p-photo-3 {
  background-image: url('../dentisti/marco-opt.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.patient-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.patient-meta span { font-size: 16px; font-weight: 500; color: var(--ink); }
.patient-meta small { font-size: 11px; color: var(--sage-800); }
.patient-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--sage-400);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.patient-link:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.patient-link svg { width: 12px; height: 12px; }

/* ============================================================
   Section: Help (contact)
   ============================================================ */
.help { padding: 80px var(--pad-x) 0; }
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.help-left .display { margin-top: 24px; font-size: clamp(56px, 7.5vw, 116px); }
.socials { display: flex; gap: 16px; margin-top: 60px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--sage-400);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.socials a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.socials svg { width: 16px; height: 16px; }

.help-form { display: grid; gap: 40px; }
.addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}
.addresses div { display: flex; flex-direction: column; gap: 4px; }
.addresses strong { font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.addresses span { font-size: 12px; color: var(--sage-800); line-height: 1.5; }

.email-link {
  display: inline-block;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  align-self: start;
  width: max-content;
  transition: color .25s;
}
.email-link:hover { color: var(--sage-700); }

.fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  align-items: end;
}
.field { position: relative; }
.field input {
  width: 100%;
  padding: 14px 0 8px;
  border: none;
  border-bottom: 1px solid var(--sage-400);
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .25s;
}
.field input:focus { border-color: var(--ink); }
.field span {
  position: absolute;
  left: 0;
  bottom: 8px;
  font-size: 13px;
  color: var(--sage-800);
  pointer-events: none;
  transition: transform .3s var(--ease-out), font-size .3s, color .3s;
  transform-origin: left;
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span {
  transform: translateY(-22px) scale(.78);
  color: var(--sage-700);
}
.field-wide { grid-column: 1 / -1; }

.send-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-size: 13px;
  width: max-content;
  transition: transform .35s var(--ease-out), background .25s;
}
.send-btn:hover { background: var(--sage-700); transform: translateX(4px); }
.send-btn svg { width: 14px; height: 14px; }

.help-form.sent .send-btn { background: var(--sage-600); }
.help-form.sent .send-btn span::after { content: ' ✓'; }

.hours {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px 32px;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid var(--sage-300);
}
.hours strong {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.hours span { font-size: 12px; color: var(--sage-800); font-variant-numeric: tabular-nums; }

/* Big footer wordmark */
.wordmark {
  margin-top: 120px;
  font-size: clamp(180px, 32vw, 460px);
  font-weight: 300;
  line-height: .85;
  letter-spacing: -.06em;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  will-change: transform, letter-spacing;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  font-size: 11px;
  color: var(--ink);
}
.footer a { transition: color .25s; }
.footer a:hover { color: var(--sage-700); }
.footer-credit a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.footer-credit a:hover { color: var(--sage-700); }

/* ============================================================
   Reveal primitives
   ============================================================ */
.reveal-text .line { overflow: hidden; }

/* will-change hints for the intro-animated targets */
.hero-title .word,
.hero-kicker,
.hero-lead,
.cta-pill            { will-change: transform, opacity; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .srv-grid { grid-template-columns: 1fr; gap: 40px; }
  .help-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Below 1100px collapse the 2-col to single col: text first, canvas below. */
  .quality-grid { grid-template-columns: 1fr; gap: 40px; }
  .quality-track  { height: auto; }
  .quality-sticky { position: static; height: auto; padding: 60px var(--pad-x); }
  .qg-left { grid-column: 1; grid-row: 1; }
  .qg-art  { grid-column: 1; grid-row: 2; }
  .quality-video-wrap { width: clamp(260px, 70vw, 540px); aspect-ratio: 1 / 1; margin: 0 auto; max-height: none; }
  /* On tablet/mobile both blocks stack normally — no scroll-driven swap */
  .qg-left { min-height: auto; max-width: 100%; }
  .qg-block { position: relative; top: auto; left: auto; right: auto; transform: none; opacity: 1 !important; }
  .qg-block-1 { margin-bottom: 48px; }
  .qg-block .display { font-size: clamp(42px, 8vw, 76px); }
}

/* Phone: shift the tooth slightly to the LEFT so it sits visually offset
   from the page center, partially off the left edge but still readable. */
@media (max-width: 760px) {
  .quality-video-wrap {
    width: 108vw;
    max-width: none;
    margin: 0 0 0 -14vw;
    aspect-ratio: 1 / 1;
  }
}
@media (max-width: 1100px) {
  /* Image stays larger on tablet but shifts to keep the white wall behind the title */
  .hero-bg-img { background-position: 70% 35%; }
}
@media (max-width: 900px) {
  .hero {
    padding: 100px var(--pad-x) 40px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 80vh;
    row-gap: 22px;
  }
  .hero-title { font-size: clamp(34px, 8.5vw, 60px); max-width: 100%; }
  .hero-lead  { font-size: 13px; max-width: 100%; }
  /* Mobile: shift image fully to the right so the dental chair stays in view
     while the text on the left sits over a clean sage-tinted area */
  .hero-bg-img { background-position: 70% center; }
  /* Strengthen overlay so text stays readable on smaller widths */
  .hero-overlay {
    background:
      linear-gradient(to right,
        rgba(239, 243, 231, 0.94) 0%,
        rgba(239, 243, 231, 0.78) 40%,
        rgba(239, 243, 231, 0.45) 70%,
        rgba(239, 243, 231, 0.15) 100%),
      linear-gradient(to bottom,
        rgba(231, 237, 223, 0) 0%,
        rgba(231, 237, 223, 0) 55%,
        rgba(231, 237, 223, 0.55) 80%,
        #E7EDDF 100%);
  }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(30px, 9vw, 48px); }
  .hero-grid  { min-height: 70vh; }
  .hero-bg-img { background-position: 70% center; }
}
@media (max-width: 760px) {
  /* Hamburger button — pinned to the right edge of the nav */
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    gap: 5px;
    grid-template-rows: auto auto;
    z-index: 102;
    position: absolute;
    top: 50%;
    right: var(--pad-x);
    transform: translateY(-50%);
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform .35s var(--ease-out), opacity .25s;
    transform-origin: center;
  }
  .nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }
  .nav.is-open .nav-toggle span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* Mobile menu overlay */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    background: #EFF3E7;
    padding: 100px var(--pad-x) 60px;
    margin: 0;
    gap: 4px;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 30px;
    font-weight: 300;
    color: var(--ink);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility .4s;
    pointer-events: none;
    overflow-y: auto;
  }
  .nav.is-open .nav-links {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
  .nav-links a {
    color: var(--ink);
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--sage-300);
  }

  /* Prevent body scroll when menu open */
  body.menu-open { overflow: hidden; }

  .patients { grid-template-columns: 1fr; }
  .addresses { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .hours { grid-template-columns: 1fr; gap: 4px; }
  .exp-slide { grid-template-columns: 1fr; }
  .exp-pager { gap: 24px; }
  .cards { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE — fix responsivo completo (max-width: 767px)
   Tutte le regole desktop rimangono invariate.
   ============================================================ */
@media (max-width: 767px) {

  /* ----------------------------------------------------------
     Variabili: ridurre il padding orizzontale su mobile stretto
     ---------------------------------------------------------- */
  :root {
    --pad-x: 20px;
  }

  /* ----------------------------------------------------------
     Layout generale sezioni
     ---------------------------------------------------------- */
  .section {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  /* ----------------------------------------------------------
     Navigazione
     ---------------------------------------------------------- */
  .nav {
    padding: 14px var(--pad-x);
  }
  /* Assicura che il nav-inner non crei overflow con il toggle assoluto */
  .nav-inner {
    position: relative;
    gap: 0;
  }
  /* Nasconde i link desktop (già gestito dal media 760px, ribadito qui
     per sicurezza e coerenza con il nuovo breakpoint 767px) */
  .nav-links {
    display: none;
  }
  .nav.is-open .nav-links {
    display: flex;
  }
  /* Il toggle è già posizionato in assoluto nel blocco 760px */

  /* ----------------------------------------------------------
     Hero — padding ridotto, min-height più conservativa
     ---------------------------------------------------------- */
  .hero {
    padding: 90px var(--pad-x) 48px;
    min-height: 100svh;
  }
  .hero-grid {
    height: auto;
    /* min-height più conservativa: evita eccesso con barre browser visibili */
    min-height: calc(100svh - 150px);
    row-gap: 16px;
    column-gap: 0;
  }
  .hero-title {
    font-size: clamp(28px, 8.5vw, 44px);
    max-width: 100%;
    letter-spacing: -.025em;
  }
  .hero-lead {
    font-size: 13px;
    max-width: 100%;
    line-height: 1.55;
  }
  /* CTA full-width su mobile */
  .cta-pill {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 14px;
  }
  /* Overlay più denso su mobile per leggibilità */
  .hero-overlay {
    background:
      linear-gradient(to right,
        rgba(239, 243, 231, 0.96) 0%,
        rgba(239, 243, 231, 0.88) 50%,
        rgba(239, 243, 231, 0.55) 100%),
      linear-gradient(to bottom,
        rgba(231, 237, 223, 0) 0%,
        rgba(231, 237, 223, 0) 50%,
        rgba(231, 237, 223, 0.65) 78%,
        #E7EDDF 100%);
  }
  /* Respiro hero: nessun effetto scale sul background su mobile,
     la proprietà will-change può essere rimossa per risparmiare memoria GPU */
  .hero-bg-img {
    will-change: auto;
  }

  /* ----------------------------------------------------------
     Stats banner
     ---------------------------------------------------------- */
  .stats-banner {
    /* Mantieni 3 colonne ma comprimi i numeri */
    gap: 16px;
    padding-bottom: 32px;
    margin-bottom: 40px;
  }
  .sb-big {
    font-size: clamp(64px, 18vw, 96px);
  }
  .sb-rule {
    height: clamp(60px, 16vw, 90px);
    margin-bottom: 12px;
  }
  .sb-cap {
    font-size: 9px;
    letter-spacing: .15em;
  }

  /* ----------------------------------------------------------
     Titoli display — ridurre il minimo per evitare overflow
     ---------------------------------------------------------- */
  .display {
    font-size: clamp(36px, 9.5vw, 72px);
    letter-spacing: -.035em;
  }
  .partner-display,
  .srv-display,
  .risultati .display,
  .help-left .display {
    font-size: clamp(34px, 9.5vw, 68px);
  }
  .exp-display {
    font-size: clamp(32px, 9vw, 64px);
  }
  .qg-block .display {
    font-size: clamp(34px, 9vw, 60px);
  }

  /* ----------------------------------------------------------
     Lead text
     ---------------------------------------------------------- */
  .lead {
    margin-top: 32px;
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }

  /* ----------------------------------------------------------
     Sezione Partner
     ---------------------------------------------------------- */
  .partner {
    padding-top: 60px;
  }
  .cards {
    margin-top: 56px;
    gap: 10px;
  }
  .card {
    min-height: 200px;
    padding: 22px 20px;
    /* Rimuove hover scale su touch device: non si attiva mai e causa
       un flash visivo involontario al tap */
    will-change: auto;
  }
  .card h3 {
    font-size: 20px;
  }

  /* ----------------------------------------------------------
     Sezione Experience
     ---------------------------------------------------------- */
  .experience {
    padding-top: 80px;
  }
  .exp-top {
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .exp-pager {
    font-size: clamp(28px, 8vw, 48px);
    gap: 16px;
    order: -1; /* pager sopra i controlli su mobile */
    width: 100%;
  }
  .exp-controls {
    order: 1;
  }
  /* L'altezza fissa desktop (480px) viene annullata: su mobile l'altezza
     è dettata dallo slide attivo, evitando spazio vuoto visibile */
  .exp-stage {
    min-height: 0;
    position: relative;
  }
  /* Su mobile gli slide non si sovrappongono in absolute — usano
     il flusso normale: nascosti con display:none, visibile solo l'attivo */
  .exp-slide {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    display: none;
    padding-bottom: 20px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none; /* no transition CSS su mobile, la transizione è gestita via JS */
  }
  .exp-slide.is-active {
    display: grid;
  }
  .exp-side {
    padding-bottom: 0;
    max-width: 100%;
  }
  .exp-foot {
    grid-column: 1;
  }

  /* ----------------------------------------------------------
     Sezione Quality — il track su desktop è 320vh sticky.
     Su mobile (già collassato dal blocco 1100px): normalizza.
     ---------------------------------------------------------- */
  .quality-sticky {
    padding: 60px var(--pad-x) 40px;
  }
  .quality-grid {
    gap: 32px;
  }
  .quality-video-wrap {
    /* Sovrascrivi il blocco 760px che sposta il dente fuori viewport.
       Su mobile stretto (< 768px) manteniamo il dente centrato. */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
  .qg-block-1 {
    margin-bottom: 32px;
  }
  /* Canvas senza will-change su mobile: risparmia memoria GPU */
  .quality-canvas {
    will-change: auto;
    mix-blend-mode: multiply;
  }

  /* ----------------------------------------------------------
     Sezione Servizi
     ---------------------------------------------------------- */
  .servizi {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  .srv-grid {
    gap: 32px;
  }
  .srv-display {
    font-size: clamp(34px, 9.5vw, 64px);
  }
  .srv-video {
    width: 100%;
    margin-top: 32px;
  }
  .srv-video-thumb {
    height: 200px;
  }
  .srv-item {
    gap: 14px;
    padding: 20px 0;
    /* Rimuove l'hover padding-left su mobile: non si attiva su touch */
    transition: none;
  }
  .srv-item h3 {
    font-size: 18px;
  }

  /* ----------------------------------------------------------
     Marquee — ridurre font size per non perdere troppo spazio
     ---------------------------------------------------------- */
  .marquee-strip {
    padding: 36px 0;
  }
  .marquee-track {
    font-size: clamp(28px, 8vw, 52px);
    gap: 32px;
  }

  /* ----------------------------------------------------------
     Sezione Risultati
     ---------------------------------------------------------- */
  .risultati {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .risultati .display {
    margin-bottom: 48px;
  }
  .patient-photo {
    aspect-ratio: 3 / 4;
    /* Rimuove will-change e hover transform su touch */
    will-change: auto;
  }
  .patient-meta {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  /* Larghezza piccola su piccola scheda: evita overflow */
  .patient-meta small {
    white-space: normal;
  }

  /* ----------------------------------------------------------
     Sezione Contatti
     ---------------------------------------------------------- */
  .help {
    padding: 60px var(--pad-x) 0;
  }
  .help-left .display {
    font-size: clamp(34px, 9.5vw, 64px);
    margin-top: 16px;
  }
  .socials {
    margin-top: 32px;
  }
  .help-form {
    gap: 28px;
  }
  /* Indirizzi: gap orizzontale ridotto su mobile */
  .addresses {
    gap: 16px 20px;
  }
  .email-link {
    font-size: clamp(16px, 4.5vw, 22px);
    width: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Orari su mobile: singola colonna, allineamento sinistro */
  .hours {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  /* Send button full-width su mobile */
  .send-btn {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
  }

  /* ----------------------------------------------------------
     Wordmark footer
     ---------------------------------------------------------- */
  .wordmark {
    /* clamp 180px → troppo grande su 375px: ridurre il minimo */
    font-size: clamp(100px, 28vw, 220px);
    margin-top: 60px;
    /* Rimuove will-change: letter-spacing non è animabile GPU-accelerated */
    will-change: auto;
  }

  /* ----------------------------------------------------------
     Footer
     ---------------------------------------------------------- */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px 0;
    font-size: 11px;
  }
}

/* ============================================================
   MOBILE STRETTO — 375px (iPhone SE / base Android)
   ============================================================ */
@media (max-width: 390px) {
  .display,
  .partner-display,
  .srv-display,
  .risultati .display,
  .help-left .display {
    font-size: clamp(30px, 9vw, 48px);
  }
  .hero-title {
    font-size: clamp(26px, 8vw, 38px);
  }
  .sb-big {
    font-size: clamp(52px, 16vw, 80px);
  }
  .wordmark {
    font-size: clamp(88px, 26vw, 160px);
  }

  /* Experience: pager numeri più compatti su schermi <390px */
  .exp-pager {
    font-size: clamp(24px, 7vw, 36px);
    gap: 12px;
  }

  /* Quality: canvas leggermente più piccolo per evitare
     sporgenza laterale su device strettissimi */
  .quality-video-wrap {
    width: calc(100% - 4px);
  }

  /* Servizi: testo item leggermente ridotto */
  .srv-item h3 {
    font-size: 16px;
  }

  /* Indirizzi: padding gap ulteriormente ridotto */
  .addresses {
    gap: 12px 16px;
  }
}

/* ============================================================
   Preferisce riduzione di movimento — disabilita animazioni
   non essenziali in tutto il sito
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-title .word,
  .hero-kicker,
  .hero-lead,
  .cta-pill,
  .display .line-inner,
  .patient-photo,
  .card {
    transition: none !important;
    animation: none !important;
  }
}
