/* =========================================================
   LUMEN Clinica Dentale — stile
   Palette: avorio caldo, petrolio profondo, menta clinica
   ========================================================= */
:root {
  --bg: #f5f8f7;
  --bg-2: #e9f1ef;
  --paper: #ffffff;
  --ink: #0d2a2e;
  --ink-2: #3a5559;
  --muted: #6b8386;
  --line: rgba(16, 40, 44, .12);
  --teal: #0e8a85;
  --teal-2: #22b3aa;
  --mint: #e2f6f4;
  --mint-2: #a6e6df;
  --deep: #0a3236;
  --deep-2: #0f3f43;
  --on-deep: #eef4f1;
  --on-deep-muted: rgba(238, 244, 241, .64);
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(16px, 4.5vw, 64px);
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html { background: var(--bg); -webkit-font-smoothing: antialiased; }
html.is-loading { overflow: hidden; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--mint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--teal); letter-spacing: -.005em; }
h1, h2, h3 { font-weight: 400; }
h2 { font-family: var(--f-serif); font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; }
h2 em { color: var(--teal-2); }
.label { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); margin-bottom: 22px; }
.label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.label--light { color: var(--mint-2); }

/* ---------- Bottoni ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 100px; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s, transform .45s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { background: var(--teal); }
.btn--line { border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::before { background: var(--mint-2); }
.btn--full { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--pad); transition: background .5s, box-shadow .5s, padding .5s, transform .8s var(--ease); transform: translateY(-110%); }
.is-ready .nav { transform: none; }
.nav.is-scrolled { background: rgba(247, 244, 238, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); padding-block: 11px; }
.nav.is-dark:not(.is-scrolled) { color: var(--on-deep); }
.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark { width: 30px; height: 35px; fill: none; stroke: var(--teal); stroke-width: 5; overflow: visible; }
.logo__glint { fill: var(--teal-2); stroke: none; transform-origin: 58px 22px; animation: glint 4s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { transform: scale(.4) rotate(0); opacity: .4; } 80% { transform: scale(1.25) rotate(45deg); opacity: 1; } }
.logo__text { font-family: var(--f-serif); font-size: 25px; letter-spacing: .14em; line-height: .9; display: flex; flex-direction: column; }
.logo__text small { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 34px); list-style: none; }
.nav__links a { position: relative; font-size: 14px; padding: 6px 0; color: inherit; opacity: .8; transition: opacity .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__phone { font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.nav__phone .mono { font-size: 9.5px; color: var(--teal-2); }
.nav .btn { padding: 12px 20px; font-size: 13.5px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 100px var(--pad) 40px; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu ul { list-style: none; }
.menu li a { font-family: var(--f-serif); font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.2; }
.menu .btn { align-self: flex-start; }
.menu__phone { font-size: 18px; color: var(--teal); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
.is-ready .line > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .08s; }
.line:nth-child(3) > span { transition-delay: .16s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 120px var(--pad) 60px; background: radial-gradient(ellipse at 75% 45%, #ffffff 0%, rgba(255,255,255,0) 55%), var(--bg); overflow: hidden; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--teal); margin-bottom: 26px; opacity: 0; transition: opacity 1s .2s; }
.eyebrow i { width: 26px; height: 1px; background: currentColor; }
.is-ready .eyebrow { opacity: 1; }
.hero__title { font-family: var(--f-serif); font-size: clamp(3rem, 7vw, 7.2rem); line-height: .95; letter-spacing: -.03em; }
.hero__title em { color: var(--teal-2); }
.hero__sub { max-width: 470px; margin-top: 30px; font-size: 17px; color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust li { display: flex; flex-direction: column; gap: 2px; }
.trust b { font-weight: 600; font-size: 15px; }
.trust span { font-size: 13px; color: var(--muted); }
.hero__visual { position: relative; height: min(78vh, 760px); }
.gl { display: block; width: 100%; height: 100%; }
.hud { position: absolute; inset: 0; pointer-events: none; color: var(--teal); font-size: 10px; opacity: 0; transition: opacity 1.2s .9s; }
.is-ready .hud { opacity: 1; }
.hud__tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 100px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(14,138,133,.16); box-shadow: 0 8px 30px rgba(16,40,44,.06); animation: float 6s ease-in-out infinite; }
.hud__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 4px rgba(34,179,170,.16); }
.hud__tag--1 { top: 18%; left: 2%; }
.hud__tag--2 { top: 46%; right: 0; animation-delay: -2s; }
.hud__tag--3 { bottom: 16%; left: 8%; animation-delay: -4s; }
.hud__scan { position: absolute; bottom: 4%; right: 6%; color: var(--muted); }
.hud__scan b { color: var(--teal); font-weight: 400; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Section head ---------- */
section { position: relative; }
.section-head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.section-head__copy { color: var(--ink-2); font-size: 17px; max-width: 440px; margin-top: 18px; }

/* ---------- Prima / Dopo ---------- */
.whitening { padding: clamp(90px, 13vw, 170px) var(--pad); background: var(--paper); border-radius: 40px 40px 0 0; }
.whitening .section-head { text-align: center; margin-inline: auto; }
.whitening .section-head__copy { margin-inline: auto; }
.ba { position: relative; max-width: 1180px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 80px -30px rgba(16,40,44,.35); touch-action: pan-y; user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; pointer-events: none; }
.ba__img.is-loaded { opacity: 1; }
.ba__before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__tag { position: absolute; top: 20px; padding: 7px 12px; border-radius: 100px; background: rgba(255,255,255,.82); backdrop-filter: blur(6px); font-size: 10px; }
.ba__tag--before { left: 20px; } .ba__tag--after { right: 20px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(255,255,255,.8); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(16,40,44,.25); transition: transform .4s var(--ease); }
.ba.is-dragging .ba__handle span { transform: scale(1.12); }
.ba__handle svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ba__handle span::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8); animation: ping 2.2s ease-out infinite; }
.ba.is-touched .ba__handle span::after { display: none; }
@keyframes ping { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.shade { max-width: 1180px; margin: 30px auto 0; }
.shade__scale { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 26px; }
.shade__scale i { border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(16,40,44,.06); }
.shade__marker { position: absolute; top: -7px; bottom: -7px; width: 3px; border-radius: 3px; background: var(--ink); left: var(--m, 30%); transform: translateX(-50%); transition: left .12s linear; }
.shade__labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 10px; color: var(--muted); }
.shade__now { color: var(--ink); }
.shade__now b { color: var(--teal); font-weight: 400; }
.disclaimer { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Trattamenti ---------- */
.treatments { padding: clamp(90px, 12vw, 160px) var(--pad); background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 300px; padding: 30px; border-radius: var(--radius); background: var(--bg); border: 1px solid transparent; overflow: hidden; isolation: isolate; transition: transform .7s var(--ease), border-color .5s, box-shadow .7s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--mint) 0%, rgba(226,246,244,0) 60%); opacity: 0; transition: opacity .6s; }
.card:hover { transform: translateY(-6px); border-color: rgba(14,138,133,.22); box-shadow: 0 24px 60px -30px rgba(16,40,44,.35); }
.card:hover::before { opacity: 1; }
.card__icon { width: 52px; height: 52px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.card__icon path, .card__icon circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.card:hover .card__icon path, .card:hover .card__icon circle { animation: draw 1.1s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.card__n { color: var(--muted); margin-top: 36px; }
.card h3 { font-family: var(--f-serif); font-size: 30px; line-height: 1.05; }
.card p { color: var(--ink-2); font-size: 15px; max-width: 320px; }
.card__more { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--teal); display: inline-flex; gap: 8px; }
.card__more i { font-style: normal; transition: transform .5s var(--ease); }
.card:hover .card__more i { transform: translateX(6px); }

/* ---------- Implantologia (sticky, chiara e rassicurante) ---------- */
.implant { height: 440vh; background: var(--mint); }
.implant__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(ellipse at 66% 52%, #ffffff 0%, #eefaf8 45%, var(--mint) 80%); }
.implant__sticky .gl { position: absolute; inset: 0; }
.implant__copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(480px, 40vw); z-index: 2; }
.isteps { position: relative; min-height: 300px; }
.istep { position: absolute; inset: 0 0 auto 0; opacity: 0; }
.istep h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.istep__note { margin-top: 18px; color: var(--ink-2); font-size: 16px; max-width: 400px; }
.istep .btn { margin-top: 30px; pointer-events: auto; }
.implant__labels { position: absolute; inset: 0; pointer-events: none; }
.plabel { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px 8px 92px; opacity: 0; transition: opacity .6s; white-space: nowrap; }
.plabel i { position: absolute; left: 0; top: 19px; width: 80px; height: 1px; background: linear-gradient(90deg, var(--teal-2), rgba(34,179,170,.25)); }
.plabel i::before { content: ''; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 5px rgba(34,179,170,.18); }
.plabel b { font-weight: 600; font-size: 15px; }
.plabel small { font-size: 13px; color: var(--muted); }
.implant__progress { position: absolute; right: var(--pad); bottom: 40px; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.implant__progress i { width: 120px; height: 1px; background: rgba(13,42,46,.15); overflow: hidden; }
.implant__progress b { display: block; height: 100%; background: var(--teal-2); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Allineatori (sticky, mese per mese) ---------- */
.aligner { height: 380vh; background: var(--paper); }
.aligner__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 44px; padding: 90px var(--pad) 40px; overflow: hidden; }
.aligner__lead { margin-top: 22px; color: var(--ink-2); font-size: 17px; max-width: 420px; }
.aligner__list { list-style: none; margin-top: 30px; display: grid; gap: 12px; max-width: 420px; }
.aligner__list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.aligner__list b { color: var(--ink); font-weight: 600; }
.aligner__visual { position: relative; border-radius: 26px; overflow: hidden; background: #160607; box-shadow: 0 40px 80px -40px rgba(13,42,46,.55); }
.aframes { position: relative; aspect-ratio: 16 / 9; }
.aframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aframe--b { opacity: 0; }
.aframe:not([src]) { visibility: hidden; }
.month { position: absolute; top: 18px; left: 20px; display: flex; align-items: baseline; gap: 10px; padding: 8px 16px 8px 14px; border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.month .mono { font-size: 10px; color: var(--muted); }
.month b { font-family: var(--f-serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; min-width: 1.1em; }
.astate { position: absolute; top: 24px; right: 20px; padding: 8px 12px; border-radius: 100px; background: rgba(255,255,255,.9); font-size: 10px; color: var(--ink); }
.aticks { position: absolute; left: 20px; right: 20px; bottom: 22px; display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,.7); }
.aligner__bar { position: absolute; left: 20px; right: 20px; bottom: 44px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.aligner__bar i { display: block; height: 100%; background: var(--mint-2); transform-origin: left; transform: scaleX(var(--p, 0)); }
.aligner__note { grid-column: 2; margin-top: -26px; }

/* ---------- Prima visita ---------- */
.steps { padding: clamp(90px, 12vw, 160px) var(--pad); }
.timeline { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; }
.timeline__line { position: absolute; top: 8px; left: 8px; right: 8px; height: 1px; background: var(--line); }
.timeline__line i { display: block; height: 100%; background: var(--teal-2); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tstep { position: relative; display: flex; flex-direction: column; gap: 10px; opacity: .35; transition: opacity .6s; }
.tstep.on { opacity: 1; }
.tstep__dot { position: absolute; top: -40px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); transition: background .5s, border-color .5s, box-shadow .5s; z-index: 1; }
.tstep.on .tstep__dot { background: var(--teal-2); border-color: var(--teal-2); box-shadow: 0 0 0 6px rgba(34,179,170,.16); }
.tstep .mono { color: var(--teal); }
.tstep h3 { font-family: var(--f-serif); font-size: 30px; line-height: 1.05; }
.tstep p { color: var(--ink-2); font-size: 15px; }

/* ---------- Tecnologia ---------- */
.tech { padding: clamp(90px, 12vw, 160px) var(--pad); background: var(--deep); color: var(--on-deep); border-radius: 40px 40px 0 0; }
.tech h2 { color: var(--on-deep); }
.tech h2 em { color: var(--mint-2); }
.tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard { padding: 28px; border-radius: var(--radius); background: var(--deep-2); border: 1px solid rgba(238,244,241,.08); display: flex; flex-direction: column; gap: 10px; min-height: 230px; transition: border-color .5s, transform .7s var(--ease); }
.tcard:hover { border-color: rgba(191,224,216,.4); transform: translateY(-4px); }
.tcard .mono { color: var(--mint-2); margin-bottom: auto; }
.tcard h3 { font-family: var(--f-serif); font-size: 27px; line-height: 1.05; }
.tcard p { color: var(--on-deep-muted); font-size: 15px; }
.tcard:nth-child(2) { transition-delay: .06s; } .tcard:nth-child(3) { transition-delay: .12s; } .tcard:nth-child(4) { transition-delay: .18s; }
.comfort { margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.comfort__title { font-family: var(--f-serif); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; }
.comfort__title em { color: var(--mint-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 12px 18px; border-radius: 100px; border: 1px solid rgba(238,244,241,.18); font-size: 14.5px; transition: background .4s, color .4s, border-color .4s; }
.chips li:hover { background: var(--mint-2); color: var(--ink); border-color: var(--mint-2); }
.stats { margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid rgba(238,244,241,.12); padding-top: 40px; }
.stat b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1; color: var(--mint-2); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--on-deep-muted); }

/* ---------- Team ---------- */
.team { padding: clamp(90px, 12vw, 160px) var(--pad); }
.doctors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(160deg, #e6f2f0, #c9ece7); display: grid; place-items: center; overflow: hidden; position: relative; }
.doc__photo span { font-family: var(--f-serif); font-size: 84px; color: rgba(14,138,133,.35); transition: transform 1s var(--ease); }
.doc:hover .doc__photo span { transform: scale(1.08); }
.doc h3 { font-family: var(--f-serif); font-size: 28px; margin-top: 18px; }
.doc p { color: var(--muted); margin-top: 4px; font-size: 10px; }
.doc:nth-child(2) { transition-delay: .08s; } .doc:nth-child(3) { transition-delay: .16s; }

/* ---------- Recensioni ---------- */
.reviews { padding: clamp(60px, 8vw, 110px) var(--pad) clamp(90px, 12vw, 160px); }
.reviews__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { padding: 34px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.review p { font-family: var(--f-serif); font-size: 25px; line-height: 1.2; }
.review footer { display: flex; flex-direction: column; gap: 4px; }
.review footer b { font-weight: 600; font-size: 15px; }
.review footer .mono { font-size: 9.5px; color: var(--teal); }
.review:nth-child(2) { transition-delay: .08s; } .review:nth-child(3) { transition-delay: .16s; }

/* ---------- FAQ ---------- */
.faq { padding: 0 var(--pad) clamp(90px, 12vw, 160px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: background .4s, border-color .4s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.faq details[open] summary i { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details div { overflow: hidden; }
.faq details p { padding: 0 60px 28px 0; color: var(--ink-2); max-width: 640px; }
.faq details[open] div { animation: open .6s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contatti ---------- */
.contact { padding: clamp(90px, 12vw, 160px) var(--pad); background: var(--teal); color: var(--on-deep); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); border-radius: 40px 40px 0 0; }
.contact h2 { color: var(--on-deep); }
.contact h2 em { color: var(--mint-2); }
.contact__copy { margin-top: 22px; color: var(--on-deep-muted); max-width: 440px; font-size: 17px; }
.contact__dl { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.contact__dl dt { font-size: 10px; color: var(--mint-2); margin-bottom: 6px; }
.contact__dl dd { font-size: 16px; }
.contact__dl a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.4); align-self: start; }
.field { position: relative; }
.field input, .field select { width: 100%; height: 60px; padding: 24px 18px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); outline: none; transition: border-color .3s, background .3s; -webkit-appearance: none; appearance: none; font-size: 16px; }
.field input:focus, .field select:focus { border-color: var(--teal-2); background: #fff; }
.field label { position: absolute; left: 18px; top: 19px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease), font-size .3s, top .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field select:focus + label, .field select:valid + label { top: 9px; font-size: 11.5px; color: var(--teal); }
.field--select::after { content: ''; position: absolute; right: 20px; top: 26px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field.is-invalid input, .field.is-invalid select { border-color: #b4453b; }
.slots { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.slots legend { font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.slots label { cursor: pointer; }
.slots input { position: absolute; opacity: 0; }
.slots span { display: inline-block; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line); font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.slots input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slots input:focus-visible + span { outline: 2px solid var(--teal-2); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 6px 0 4px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid { color: #b4453b; }
.form .btn--light { background: var(--ink); color: var(--paper); padding-block: 18px; }
.form .btn--light::before { background: var(--teal); }
.form__msg { font-size: 14px; color: var(--teal); min-height: 1em; }
.form__msg.is-error { color: #b4453b; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--on-deep); padding: 60px var(--pad) 36px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(238,244,241,.12); }
.logo--light .logo__mark { stroke: var(--mint-2); }
.logo--light .logo__glint { fill: var(--mint-2); }
.logo--light .logo__text small { color: var(--on-deep-muted); }
.footer__claim { font-family: var(--f-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-style: italic; color: var(--mint-2); }
.footer__legal { display: grid; gap: 6px; padding-top: 26px; font-size: 13px; color: var(--on-deep-muted); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Loader
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: clip-path 1.1s var(--ease-io); clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity .5s, transform 1s var(--ease-io); }
.loader.is-done .loader__inner { opacity: 0; transform: translateY(-40px); }
.loader__tooth { width: 74px; height: 86px; overflow: visible; }
.loader__stroke { fill: none; stroke: var(--teal); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.loader__fill { fill: #fff; opacity: 0; transition: opacity .6s; filter: drop-shadow(0 10px 20px rgba(16,40,44,.12)); }
.loader__glint { fill: var(--teal-2); transform-origin: 58px 22px; transform: scale(0); }
.loader.is-full .loader__fill { opacity: 1; }
.loader.is-full .loader__glint { animation: pop .8s var(--ease) forwards; }
@keyframes pop { 0% { transform: scale(0) rotate(0); } 60% { transform: scale(1.5) rotate(60deg); } 100% { transform: scale(1) rotate(90deg); } }
.loader__name { font-family: var(--f-serif); font-size: 30px; letter-spacing: .3em; margin-top: 8px; padding-left: .3em; }
.loader__count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav nav, .nav__phone { display: none; }
  .tech__grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav .btn { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero__visual { order: -1; height: 46vh; margin-bottom: -20px; }
  .hud__tag--2 { right: 2%; }
  .trust { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
  .section-head--split { grid-template-columns: 1fr; gap: 0; }
  .ba { aspect-ratio: 4 / 3; }
  .cards, .doctors, .reviews__track { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .implant__copy { top: auto; bottom: 6vh; transform: none; width: auto; right: var(--pad); }
  .isteps { min-height: 210px; }
  .istep__note { font-size: 14.5px; }
  .istep h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .plabel { padding-left: 50px; }
  .plabel i { width: 40px; }
  .plabel small { display: none; }
  .implant__progress { display: none; }
  .aligner__sticky { grid-template-columns: 1fr; align-content: center; padding-top: 80px; gap: 18px; }
  .aligner__list, .aligner__lead { display: none; }
  .aframes { aspect-ratio: 4 / 3; }
  .month b { font-size: 30px; }
  .aligner__note { grid-column: 1; margin-top: 0; }
  .timeline { grid-template-columns: 1fr; gap: 34px; padding: 0 0 0 40px; }
  .timeline__line { top: 8px; bottom: 8px; left: 8px; right: auto; width: 1px; height: auto; }
  .timeline__line i { height: 100%; transform-origin: top; transform: scaleY(var(--p, 0)); }
  .tstep__dot { top: 4px; left: -40px; }
  .tech__grid, .stats { grid-template-columns: 1fr 1fr; }
  .comfort, .faq, .contact { grid-template-columns: 1fr; }
  .contact__dl { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 520px) {
  .tech__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .ba__tag { top: 12px; }
  .ba__tag--before { left: 12px; } .ba__tag--after { right: 12px; }
  .shade__labels span:first-child, .shade__labels span:last-child { display: none; }
  .shade__labels { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hud__tag, .logo__glint, .ba__handle span::after { animation: none; }
}

/* ---------- Diagnosi: radiografia 3D ---------- */
.xray { height: 420vh; background: #041517; color: var(--on-deep); }
.xray__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(ellipse at 60% 50%, #0b2f33 0%, #061c1f 50%, #031012 100%); }
.xray__sticky .gl { position: absolute; inset: 0; }
.xray__grid { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(166,230,223,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(166,230,223,.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 75%); }
.xray__line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; pointer-events: none; background: linear-gradient(transparent, #a6e6df 15%, #ffffff 50%, #a6e6df 85%, transparent); box-shadow: 0 0 18px 3px rgba(34,179,170,.7), 0 0 80px 18px rgba(34,179,170,.25); opacity: 0; transition: opacity .4s; }
.xray__line::before { content: ''; position: absolute; top: 0; bottom: 0; right: 2px; width: 140px; background: linear-gradient(90deg, transparent, rgba(34,179,170,.12)); }
.xray__line span { position: absolute; top: 96px; left: 12px; font-size: 10px; color: var(--mint-2); white-space: nowrap; }
.xray__pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 1px; padding: 9px 14px 9px 30px; border-radius: 14px; background: rgba(4,21,23,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(166,230,223,.18); white-space: nowrap; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .5s, transform .6s var(--ease); }
.pin.on { opacity: 1; transform: none; }
.pin i { position: absolute; left: 12px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 25%, transparent), 0 0 14px var(--c); }
.pin b { font-weight: 600; font-size: 14px; }
.pin small { font-size: 12px; color: var(--on-deep-muted); }
.pin--ok { --c: #5fe3d4; } .pin--warn { --c: #ffb35c; } .pin--info { --c: #9cc8ff; }
.xray__copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(440px, 36vw); z-index: 2; }
.xray__copy h2 { color: var(--on-deep); font-size: clamp(2.2rem, 4vw, 3.8rem); }
.xray__copy h2 em { color: var(--mint-2); }
.xsteps { position: relative; min-height: 70px; margin-top: 24px; }
.xstep { position: absolute; inset: 0 0 auto 0; color: var(--on-deep-muted); font-size: 17px; opacity: 0; transition: opacity .5s, transform .6s var(--ease); transform: translateY(10px); }
.xstep.on { opacity: 1; transform: none; }
.xray__hud { position: absolute; right: var(--pad); bottom: 36px; display: flex; gap: 22px; font-size: 10px; color: var(--on-deep-muted); }
.xray__hud span { display: flex; align-items: center; gap: 8px; }
.xray__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 10px var(--teal-2); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.xray__note { position: absolute; left: var(--pad); bottom: 36px; font-size: 12px; color: rgba(238,244,241,.4); }
@media (max-width: 860px) {
  .xray__copy { top: auto; bottom: 64px; transform: none; width: auto; right: var(--pad); }
  .xray__copy h2 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .xstep { font-size: 15px; }
  .xray__hud { top: 90px; bottom: auto; right: var(--pad); gap: 14px; }
  .xray__note { bottom: 18px; }
  .pin small { display: none; }
  .pin { padding: 7px 10px 7px 26px; }
  .pin i { left: 10px; top: 12px; }
}
