/* =========================================================
   Il Dentista Gentile — page sections
   ========================================================= */

/* transition fail-safe: curtain shown on arrival, JS lifts it */
.pt-in .curtain span { transform: scaleY(1); }
.pt-in .curtain .cur-mark { opacity: 1; }
.pt-in .curtain { animation: ptfail 0s 3s forwards; }
@keyframes ptfail { to { visibility: hidden; } }

/* split words */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.sw-i { display: inline-block; will-change: transform; }
.sc { display: inline-block; transform-origin: 50% 100%; }
[data-hero-title] { perspective: 900px; }

/* =============== INTRO =============== */
.intro {
  position: fixed; inset: 0; z-index: 105; background: var(--ink); color: #fff; display: grid; place-items: center;
  --r: 0vmax;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + .6vmax));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + .6vmax));
}
.intro-core { position: relative; width: min(220px, 50vw); aspect-ratio: 1; display: grid; place-items: center; }
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.intro-ring circle { fill: none; stroke: var(--aqua); stroke-width: 1.2; stroke-dasharray: 604; stroke-dashoffset: 604; filter: drop-shadow(0 0 6px rgba(110, 231, 210, .7)); }
.intro-mark { width: 54%; }
.intro-name { position: absolute; left: 0; right: 0; bottom: 14vh; text-align: center; overflow: hidden; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .02em; }
.intro-name span { display: inline-block; }
.intro-count { position: absolute; right: var(--gutter); bottom: 5vh; font-family: var(--f-head); font-weight: 600; font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1; color: rgba(255, 255, 255, .1); font-variant-numeric: tabular-nums; }

/* =============== HOME HERO =============== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hdr-h) + 70px) 0 22px; overflow: hidden;
  background: radial-gradient(80% 75% at 72% 42%, #0f3641 0%, #0a222a 40%, var(--ink) 75%);
}
.hero-3d { position: absolute; inset: 0; z-index: 0; }
.hero-3d canvas { width: 100% !important; height: 100% !important; }
.hero-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(214, 255, 248, .95), rgba(110, 231, 210, .35) 28%, transparent 62%); }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7, 22, 27, .82) 0%, rgba(7, 22, 27, .35) 42%, transparent 66%), linear-gradient(0deg, var(--ink) 0%, rgba(7, 22, 27, 0) 34%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(26px, 3.6vw, 46px); }
.hero-title { max-width: 9ch; }
.hero-rot { display: grid; margin: 22px 0 16px; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 480; font-size: clamp(1.35rem, 2.5vw, 2.25rem); line-height: 1.15; overflow: hidden; letter-spacing: -.01em; }
.rot-item { grid-area: 1 / 1; transform: translateY(135%); opacity: 0; transition: transform .95s var(--ease), opacity .6s; }
.rot-item.is-on { transform: none; opacity: 1; }
.rot-item.is-out { transform: translateY(-135%); opacity: 0; }
.rot-item::before { content: ""; display: inline-block; width: .55em; height: 1px; background: var(--aqua); vertical-align: middle; margin-right: .45em; transform: translateY(-.1em); }
.hero-lead { max-width: 46ch; margin-bottom: 32px; }
.hero-pillars { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.pillar { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; padding: 22px 24px 8px 0; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--line-d); }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.pillar--sos::before { background: var(--sos); }
.pillar:hover::before { transform: scaleX(1); }
.p-num { grid-row: span 2; font: 800 .74rem/1 var(--f-body); color: var(--aqua); padding-top: 7px; letter-spacing: .08em; }
.pillar--sos .p-num { color: var(--sos-2); }
.p-t { font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: #fff; letter-spacing: -.01em; }
.p-s { color: var(--muted-d); font-size: .88rem; }

/* =============== HOME H24 =============== */
.h24-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.h24-copy .h-lg { max-width: 12ch; }
.h24-copy .lead { margin: 26px 0 34px; }
.callout { display: inline-flex; align-items: center; gap: 14px; padding: 6px 22px 6px 6px; border-radius: 999px; border: 1px solid var(--line-d); transition: border-color .3s, background .3s; }
.callout:hover { border-color: rgba(255, 122, 136, .6); background: rgba(255, 74, 94, .06); }
.callout-ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 74, 94, .15); color: var(--sos-2); display: grid; place-items: center; }
.callout-ic svg { width: 20px; height: 20px; }
.callout small { display: block; font: 800 .62rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 5px; }
.callout strong { font-family: var(--f-head); font-weight: 600; font-size: 1.3rem; line-height: 1; letter-spacing: .01em; }

.clock24 { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin-inline: auto; }
.clock24::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 74, 94, .28) 100%); animation: spin 7s linear infinite; -webkit-mask-image: radial-gradient(circle, transparent 46%, #000 47%); mask-image: radial-gradient(circle, transparent 46%, #000 47%); }
@keyframes spin { to { transform: rotate(360deg); } }
.c24-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c24-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 2; }
.c24-arc { fill: none; stroke: var(--sos); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 74, 94, .9)); }
.c24-tick { stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-linecap: round; transition: stroke .5s; }
.c24-tick.long { stroke-width: 3.5; }
.c24-tick.on { stroke: var(--aqua); }
.c24-tick.now { stroke: var(--sos); stroke-width: 6; }
.c24-lbl { fill: rgba(255, 255, 255, .38); font: 800 12px var(--f-body); text-anchor: middle; letter-spacing: .1em; }
.c24-hand line { stroke: var(--sos); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.c24-hand circle { fill: var(--sos); filter: drop-shadow(0 0 8px rgba(255, 74, 94, 1)); }
.c24-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.c24-num { font-family: var(--f-head); font-weight: 640; font-size: clamp(5.6rem, 11vw, 9.4rem); line-height: .85; letter-spacing: -.05em; background: linear-gradient(180deg, #fff 30%, #ffb3bc); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.c24-cap { font: 800 .72rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--sos-2); margin-top: 12px; }
.h24-stats { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.h24-stats li { padding: 18px 12px 0 0; }
.h24-stats li + li { padding-left: 18px; border-left: 1px solid var(--line-d); }
.h24-stats b { display: block; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.h24-stats li > span { color: var(--muted-d); font-size: .84rem; }

/* =============== HOME IMPLANT =============== */
.impl-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 84px); align-items: center; }
.impl-stage { position: relative; aspect-ratio: 1 / 1.04; border-radius: var(--r); overflow: hidden; cursor: grab; background: radial-gradient(circle at 50% 42%, #ffffff 0%, #e9f0ed 50%, #d5e1dd 100%); box-shadow: inset 0 0 0 1px rgba(11, 27, 33, .06); }
.impl-stage:active { cursor: grabbing; }
.impl-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.impl-halo { position: absolute; left: 50%; top: 48%; width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(12, 125, 109, .25); animation: spin 60s linear infinite; pointer-events: none; }
.impl-halo::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(12, 125, 109, .12); }
.lbl3d { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px -12px rgba(7, 22, 27, .35); font: 800 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .45s; pointer-events: none; white-space: nowrap; }
.lbl3d::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua-ink); box-shadow: 0 0 0 4px rgba(110, 231, 210, .35); }
.impl-toggle { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; padding: 5px; border-radius: 999px; background: rgba(7, 22, 27, .86); backdrop-filter: blur(10px); }
.impl-toggle button { height: 38px; padding: 0 16px; border-radius: 999px; color: rgba(255, 255, 255, .7); font: 800 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; transition: background .3s, color .3s; }
.impl-toggle button.on { background: var(--aqua); color: var(--ink); }
.impl-hint { position: absolute; z-index: 2; top: 20px; left: 22px; margin: 0; font: 800 .64rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.impl-copy .h-lg { max-width: 13ch; }
.impl-copy .hl { margin: 28px 0 22px; }
.impl-copy .lead { margin-bottom: 30px; }
.impl-copy .note { margin-top: 18px; }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--muted); margin: 0; }
.impl-marquee { margin-top: clamp(56px, 7vw, 96px); font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(2.8rem, 7.5vw, 6.6rem); line-height: 1.05; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.2px rgba(11, 27, 33, .2); }
.impl-marquee .dot { width: .18em; height: .18em; background: var(--aqua); }

/* =============== HOME PHILOSOPHY =============== */
.philo-title { max-width: 19ch; }
.philo-media { position: relative; margin-top: clamp(40px, 5vw, 64px); height: clamp(380px, 58vw, 760px); overflow: hidden; }
.philo-media img { width: 100%; height: 100%; object-fit: cover; }
.philo-tag { position: absolute; left: var(--gutter); bottom: var(--gutter); max-width: 360px; color: #fff; padding: 22px 26px; }
.pt-k { display: block; font: 800 .66rem/1.4 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--aqua); margin-bottom: 8px; }
.pt-v { font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.philo-foot { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.philo-path { position: relative; display: flex; justify-content: space-between; }
.pp-line { position: absolute; left: 8px; right: 8px; top: 7px; height: 1px; background: var(--line); }
.pp-line i { position: absolute; inset: 0; background: var(--aqua-ink); transform: scaleX(0); transform-origin: left; }
.pp-step { position: relative; display: grid; justify-items: center; gap: 12px; font-size: .82rem; }
.pp-step:first-of-type { justify-items: start; }
.pp-step:last-of-type { justify-items: end; }
.pp-dot { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 1px solid rgba(11, 27, 33, .25); transition: background .5s, border-color .5s, box-shadow .5s; }
.pp-step.on .pp-dot { background: var(--aqua); border-color: var(--aqua-ink); box-shadow: 0 0 0 6px rgba(110, 231, 210, .25); }
.pp-step b { font-weight: 700; white-space: nowrap; }

/* =============== PAY (odometer) =============== */
.pay-copy .h-lg { max-width: 13ch; }
.pay-zero .z { display: inline-block; height: .8em; overflow: hidden; background: none; color: inherit; }
.odo { display: flex; flex-direction: column; }
.odo span { display: block; height: .8em; line-height: .8; background: linear-gradient(180deg, var(--aqua-2), var(--aqua) 45%, var(--sea)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =============== SOS HERO =============== */
.sos-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr-h) + 56px) 0 70px; overflow: hidden; background: radial-gradient(70% 70% at 75% 45%, #2a1820 0%, #11191f 45%, var(--ink) 80%); }
.sos-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.sos-hero-copy { position: relative; z-index: 2; }
.sos-live { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border-radius: 999px; background: rgba(255, 74, 94, .12); border: 1px solid rgba(255, 74, 94, .3); color: var(--sos-2); font: 800 .7rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 26px; }
.sos-live .pulse { background: var(--sos); }
.sos-live .pulse::after { border-color: var(--sos); }
.sos-title { font-size: clamp(2.9rem, 7.2vw, 7.4rem); max-width: 10ch; }
.sos-hero .hl { margin: 28px 0 20px; }
.sos-cta { margin-top: 32px; }
.sos-number { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; }
.sn-ic { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 74, 94, .45); display: grid; place-items: center; color: var(--sos-2); animation: ringing 2.4s ease-in-out infinite; }
.sn-ic svg { width: 22px; height: 22px; }
@keyframes ringing { 0%, 60%, 100% { transform: rotate(0); } 64% { transform: rotate(-14deg); } 68% { transform: rotate(12deg); } 72% { transform: rotate(-10deg); } 76% { transform: rotate(6deg); } }
.sos-number small { display: block; font: 800 .62rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 6px; }
.sos-number > span:last-child { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; letter-spacing: .01em; }
.sos-24wrap { position: relative; }
.clock24--hero { width: min(580px, 100%); }
.sos-24 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 640; font-size: clamp(8rem, 17vw, 15.5rem); line-height: 1; letter-spacing: -.07em; padding-right: .06em; }
.sos-24 .d { display: inline-block; background: linear-gradient(180deg, #fff 18%, var(--sos-2) 62%, var(--sos) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 24px 60px rgba(255, 74, 94, .35)); animation: bob 6s ease-in-out infinite; }
.sos-24 .d:nth-child(2) { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-4%); } }

/* =============== SOS SITUATIONS =============== */
.sit-head .h-lg { max-width: 12ch; }
.sit-list { list-style: none; padding: 0; margin: clamp(40px, 5vw, 70px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.sit { position: relative; padding: 36px 28px 40px 0; transition: background .5s; }
.sit + .sit { padding-left: 28px; border-left: 1px solid var(--line); }
.sit::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--sos); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.sit:hover::after { transform: scaleX(1); }
.sit-ic { width: 92px; height: 92px; margin-bottom: 34px; overflow: visible; transition: transform .6s var(--ease); }
.sit:hover .sit-ic { transform: translateY(-6px) rotate(-4deg); }
.sit-ic path, .sit-ic circle { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sit-ic .sos-stroke { stroke: var(--sos); stroke-width: 1.9; }
.sit h3 { margin: 0; max-width: 13ch; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.12; letter-spacing: -.01em; }
.sit-n { position: absolute; top: 36px; right: 22px; font: 800 .7rem/1 var(--f-body); color: var(--muted); letter-spacing: .08em; }
.sit-foot { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 10px; padding-top: 34px; border-top: 1px solid var(--line); }

/* =============== SOS GENTLE =============== */
.sg { min-height: 92vh; display: flex; align-items: flex-end; padding-top: clamp(220px, 30vw, 380px); }
.sg-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sg-media img { width: 100%; height: 100%; object-fit: cover; }
.sg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 6%, rgba(7, 22, 27, .6) 48%, rgba(7, 22, 27, .15)), linear-gradient(90deg, rgba(7, 22, 27, .55), transparent 70%); }
.sg .h-lg { max-width: 15ch; }
.sg .lead { margin: 24px 0 38px; }
.trio { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.55rem, 3.1vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; }
.trio span { display: inline-block; }
.trio span:nth-child(2) { color: var(--aqua); }

/* =============== SOS STEPS =============== */
.steps-head .h-lg { max-width: 14ch; }
.steps-list { list-style: none; padding: 0; margin: clamp(40px, 5vw, 70px) 0 clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.st { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.st::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--sos); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.st.on::before { transform: scaleX(1); }
.st-n { display: block; font-family: var(--f-head); font-weight: 620; font-size: clamp(5rem, 10vw, 9rem); line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(11, 27, 33, .22); background-image: linear-gradient(to top, var(--sos) 50%, transparent 50%); background-size: 100% 200%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; transition: background-position 1.1s var(--ease), -webkit-text-stroke-color .6s; }
.st.on .st-n { background-position: 0 100%; -webkit-text-stroke-color: transparent; }
.st h3 { margin: 18px 0 8px; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.1; }
.st p { color: var(--muted); margin: 0; max-width: 32ch; }
.steps-cta { display: flex; justify-content: center; }

/* =============== SOS FINAL =============== */
.sos-final { text-align: center; padding-block: clamp(100px, 13vw, 180px); }
.sos-final .h-lg { max-width: 13ch; margin-inline: auto; }
.sos-final .lead { margin: 24px auto 36px; text-align: center; }
.sos-final .btn-row { justify-content: center; }
.rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.rings span { position: absolute; left: -32vmin; top: -32vmin; width: 64vmin; height: 64vmin; border-radius: 50%; border: 1px solid rgba(255, 74, 94, .4); animation: ripple 8s linear infinite; opacity: 0; }
.rings span:nth-child(2) { animation-delay: -2s; } .rings span:nth-child(3) { animation-delay: -4s; } .rings span:nth-child(4) { animation-delay: -6s; }
@keyframes ripple { 0% { transform: scale(.15); opacity: 0; } 12% { opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.loc-mini-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 46px; }
.loc-mini { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); text-align: left; transition: border-color .3s, background .3s, transform .5s var(--ease); }
.loc-mini:hover { border-color: rgba(110, 231, 210, .5); background: rgba(110, 231, 210, .06); transform: translateY(-3px); }
.lm-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(110, 231, 210, .12); color: var(--aqua); display: grid; place-items: center; flex: none; }
.lm-ic svg { width: 20px; height: 20px; }
.loc-mini b { display: block; font-weight: 800; }
.loc-mini > span:nth-child(2) { color: var(--muted-d); font-size: .88rem; line-height: 1.35; }
.lm-go { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font: 800 .66rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
.lm-go svg { width: 14px; height: 14px; }
.sos-note { max-width: 62ch; margin: 30px auto 0; }
.inlinks { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 28px; font: 700 .8rem/1.4 var(--f-body); letter-spacing: .04em; }
.inlinks a { color: rgba(255, 255, 255, .7); border-bottom: 1px solid rgba(255, 255, 255, .2); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.inlinks a:hover { color: var(--aqua); border-color: var(--aqua); }
.sos-final .inlinks, .inlinks--c { justify-content: center; }

/* =============== IMPLANT HERO =============== */
.ig-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr-h) + 50px) 0 90px; overflow: hidden; background: radial-gradient(70% 75% at 72% 45%, #103b46 0%, #0a222a 45%, var(--ink) 78%); }
.ig-3d { position: absolute; inset: 0; z-index: 0; }
.ig-3d canvas { width: 100% !important; height: 100% !important; }
.ig-beam { position: absolute; z-index: 1; right: 16%; top: -20%; width: 30vw; height: 140%; background: linear-gradient(180deg, rgba(110, 231, 210, .2), transparent 70%); filter: blur(46px); transform: rotate(16deg); pointer-events: none; animation: beam 9s ease-in-out infinite alternate; }
@keyframes beam { to { transform: rotate(8deg) translateX(-6vw); opacity: .6; } }
.ig-hero-inner { z-index: 2; }
.ig-hero-inner > * { max-width: 620px; }
.ig-title { font-size: clamp(2.8rem, 6.2vw, 6.4rem); max-width: 9ch !important; }
.ig-hero .lead { font-size: 1.02rem; }
.ig-trio { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 26px 0 12px; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 520; font-size: clamp(1.25rem, 2.2vw, 1.95rem); line-height: 1.15; letter-spacing: -.01em; }
.ig-trio span:nth-child(2) { color: var(--aqua); }
.ig-note { margin-bottom: 22px; }
.ig-cta { margin-top: 32px; }
.ig-chips { position: absolute; z-index: 2; right: var(--gutter); bottom: 44px; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: end; }
.ig-chips li { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-d); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .84rem; color: rgba(255, 255, 255, .85); }
.ig-chips b { display: grid; place-items: center; min-width: 52px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--aqua); color: var(--ink); font: 800 .64rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }

/* =============== IMPLANT TECH (pinned 3D) =============== */
.tech { position: relative; background: radial-gradient(70% 80% at 66% 52%, #0f3843 0%, var(--deep) 62%); color: #fff; }
.tech-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.tech-3d { position: absolute; inset: 0; z-index: 0; cursor: grab; }
.tech-3d canvas { width: 100% !important; height: 100% !important; }
.tech-ui { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(300px, 430px) 1fr; grid-template-rows: auto 1fr auto; padding-top: calc(var(--hdr-h) + 36px); padding-bottom: 34px; pointer-events: none; }
.tech-ui > * { pointer-events: auto; }
.tech-head { grid-column: 1; grid-row: 1; }
.tech-head .eyebrow { margin-bottom: 14px; }
.tech-head .h-md { font-size: clamp(1.8rem, 2.9vw, 2.8rem); }
.tech-head .lead { font-size: .96rem; margin: 14px 0 16px; }
.tech-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tech-benefits li { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(110, 231, 210, .32); color: var(--aqua); font: 800 .62rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; background: rgba(7, 22, 27, .4); }
.tech-steps { grid-column: 1; grid-row: 3; list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.tech-steps button { display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; width: 100%; text-align: left; padding: 8px 0; opacity: .42; transition: opacity .4s; }
.tech-steps li.on button, .tech-steps button:hover { opacity: 1; }
.tech-steps span { font: 800 .68rem/1 var(--f-body); color: var(--aqua); padding-top: 6px; letter-spacing: .06em; }
.tech-steps b { font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 540; font-size: 1.12rem; line-height: 1.25; }
.tech-steps small { grid-column: 2; color: var(--muted-d); font-size: .84rem; line-height: 1.4; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.tech-steps li.on small { max-height: 3em; }
.tech-compare { grid-column: 2; grid-row: 3; justify-self: end; align-self: end; width: min(400px, 100%); }
.seg-dark { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(7, 22, 27, .72); border: 1px solid var(--line-d); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.seg-dark button { height: 40px; padding: 0 16px; border-radius: 999px; font: 800 .64rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); transition: background .3s, color .3s; }
.seg-dark button.on { background: var(--aqua); color: var(--ink); }
.tech-cap { margin: 10px 0 0; font-size: .86rem; line-height: 1.5; color: rgba(233, 245, 242, .8); background: rgba(7, 22, 27, .62); border: 1px solid var(--line-d); padding: 12px 16px; border-radius: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tech-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-d); }
.tech-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--aqua-2)); transform-origin: left; transform: scaleX(0); }
.t3d { position: absolute; left: 0; top: 0; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(7, 22, 27, .78); border: 1px solid rgba(110, 231, 210, .45); color: var(--aqua); font: 800 .6rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .4s; pointer-events: none; }
.tech-demo { position: absolute; right: var(--gutter); top: calc(var(--hdr-h) + 40px); z-index: 2; margin: 0; font: 700 .6rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .35); }

/* =============== IMPLANT COMFORT =============== */
.comfort-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.comfort-q { font-size: clamp(2.5rem, 5.6vw, 5.4rem); max-width: 12ch; }
.cq-a { position: relative; display: inline-block; --strike: 0; }
.cq-a::after { content: ""; position: absolute; left: -2%; right: -2%; top: 56%; height: .07em; border-radius: 4px; background: var(--sos); transform: scaleX(var(--strike)); transform-origin: left; }
.comfort-a { margin: 22px 0 26px; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1.08; letter-spacing: -.02em; }
.comfort-copy .lead { margin-bottom: 32px; }
.comfort-media { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.comfort-media img { width: 100%; height: 100%; object-fit: cover; }
.comfort-media figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; font-size: .92rem; padding: 16px 20px; border-radius: 18px; }
.comfort-media figcaption b { color: var(--aqua); }

/* =============== IMPLANT FINAL FORM =============== */
.ig-final-grid { display: grid; grid-template-columns: 1fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.ig-final-copy .h-lg { max-width: 12ch; }
.ig-final-copy .lead { margin-top: 24px; }
.direct { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 6px; }
.direct a { display: flex; align-items: center; gap: 12px; padding: 7px 20px 7px 7px; border-radius: 999px; border: 1px solid var(--line-d); transition: border-color .3s, background .3s; }
.direct a:hover { border-color: rgba(110, 231, 210, .5); background: rgba(110, 231, 210, .05); }
.d-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(110, 231, 210, .12); color: var(--aqua); display: grid; place-items: center; }
.d-ic svg { width: 19px; height: 19px; }
.d-wa { color: var(--wa); background: rgba(37, 211, 102, .12); }
.direct small { display: block; font: 800 .6rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 4px; }
.direct a > span:last-child { font-weight: 700; }

/* =============== ABOUT =============== */
.ab-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--hdr-h) + 70px) 0 clamp(40px, 6vw, 84px); overflow: hidden; background: var(--ink); }
.ab-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ab-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.ab-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7, 22, 27, .96) 4%, rgba(7, 22, 27, .45) 52%, rgba(7, 22, 27, .28)), linear-gradient(90deg, rgba(7, 22, 27, .6), transparent 62%); }
.ab-hero-inner { z-index: 2; }
.ab-title { font-size: clamp(2.8rem, 7.2vw, 7.4rem); max-width: 13ch; }
.ab-hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-d); }
.ab-hero-foot .lead { max-width: 50ch; }
.ab-stamp { display: grid; text-align: right; margin: 0; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.02; letter-spacing: -.02em; flex: none; }
.abp-title { max-width: 19ch; }
.abp-row { display: flex; justify-content: flex-end; margin-top: 34px; }
.kw { display: grid; margin-top: clamp(48px, 6vw, 90px); padding-inline: var(--gutter); overflow: hidden; }
.kw-i { --fill: 0%; display: block; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: clamp(3.6rem, 13.5vw, 13rem); line-height: .98; letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1.4px rgba(11, 27, 33, .28); background-image: linear-gradient(90deg, var(--ink) var(--fill), transparent var(--fill)); -webkit-background-clip: text; background-clip: text; padding-bottom: .04em; }
.kw-i:nth-child(2) { text-align: center; background-image: linear-gradient(90deg, var(--aqua-ink) var(--fill), transparent var(--fill)); }
.kw-i:nth-child(3) { text-align: right; }

.team-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.team-head .h-lg { max-width: 12ch; }
.team-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.tm { position: relative; min-height: clamp(440px, 42vw, 580px); border-radius: var(--r); overflow: hidden; background: var(--ink); color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.tm-img { position: absolute; inset: 0; z-index: -2; }
.tm-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.tm::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 22, 27, .94) 6%, rgba(7, 22, 27, .1) 58%); }
.tm:hover .tm-img img { transform: scale(1.06); }
.tm-body { padding: 28px; }
.tm-role { display: inline-block; margin-bottom: 10px; font: 800 .64rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--aqua); }
.tm h3 { margin: 0 0 8px; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; }
.tm p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .75); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s; }
.tm:hover p, .tm--lead p { max-height: 8em; opacity: 1; }
.tm--slot .tm-img img { filter: grayscale(.7) brightness(.62); }
.tm--slot:hover .tm-img img { filter: grayscale(.2) brightness(.8); }
@media (hover: none) { .tm p { max-height: none; opacity: 1; } }

.tg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.tg-media { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; }
.tg-media img { width: 100%; height: 100%; object-fit: cover; }
.tg-scan { position: absolute; left: 0; right: 0; height: 32%; top: -32%; background: linear-gradient(180deg, transparent, rgba(110, 231, 210, .28) 80%, rgba(214, 255, 248, .9) 100%); mix-blend-mode: screen; animation: scan 4.8s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes scan { to { top: 100%; } }
.tg-grid-ov { position: absolute; inset: 0; background-image: linear-gradient(rgba(110, 231, 210, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 231, 210, .12) 1px, transparent 1px); background-size: 44px 44px; mix-blend-mode: screen; pointer-events: none; }
.tg-chip { position: absolute; left: 18px; top: 18px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 15px; border-radius: 999px; background: rgba(7, 22, 27, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 800 .64rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); }
.tg-chip .pulse { background: var(--aqua); width: 7px; height: 7px; }
.tg-chip .pulse::after { border-color: var(--aqua); }
.tg-copy .h-lg { max-width: 12ch; }
.tg-copy .lead { margin: 24px 0 32px; }

/* =============== CONTACT =============== */
.ct-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: calc(var(--hdr-h) + 90px) 0 clamp(48px, 6vw, 90px); overflow: hidden; }
.ct-lines { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: space-around; pointer-events: none; }
.ct-lines span { position: relative; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .07), transparent); overflow: hidden; }
.ct-lines span::after { content: ""; position: absolute; left: 0; width: 1px; height: 26%; top: -26%; background: linear-gradient(180deg, transparent, var(--aqua)); animation: fall 6s linear infinite; }
.ct-lines span:nth-child(2)::after { animation-delay: -1.4s; animation-duration: 7s; }
.ct-lines span:nth-child(3)::after { animation-delay: -3s; }
.ct-lines span:nth-child(4)::after { animation-delay: -4.6s; animation-duration: 8s; }
.ct-lines span:nth-child(5)::after { animation-delay: -2.2s; }
@keyframes fall { to { top: 100%; } }
.ct-hero-inner { z-index: 2; }
.ct-title { font-size: clamp(3.1rem, 10vw, 10.4rem); max-width: 9ch; }
.ct-hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; align-items: end; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line-d); }
.ct-hero-foot .hl { justify-self: start; }
.ct-hero-foot .lead { grid-column: 1; }
.ct-cta { grid-column: 2; grid-row: 1 / span 2; }

.locs-head .h-lg { max-width: 13ch; }
.locs-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); align-items: stretch; }
.loc { padding: 26px 0; border-top: 1px solid var(--line); transition: opacity .4s; }
.loc:not(.on) { opacity: .55; }
.loc:hover { opacity: 1; }
.loc-pick { display: flex; align-items: baseline; gap: 16px; text-align: left; }
.loc-n { font: 800 .72rem/1 var(--f-body); color: var(--aqua-ink); width: 20px; }
.loc-city { font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.02em; transition: color .3s; }
.loc.on .loc-city { color: var(--ink); }
.loc-pick:hover .loc-city { color: var(--aqua-ink); }
.loc address { margin: 14px 0 8px 36px; font-size: 1.02rem; }
.loc-hours { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px 36px; color: var(--muted); font-size: .9rem; }
.loc-hours svg, .loc-sos svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.loc .arrow-link { margin-left: 36px; color: var(--aqua-ink); }
.loc .arrow-link svg { width: 16px; }
.ph { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 74, 94, .1); color: #c92f43; font: 800 .58rem/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.loc-sos { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 0; padding: 18px 20px; border-radius: 18px; background: rgba(255, 74, 94, .07); border: 1px solid rgba(255, 74, 94, .22); font-size: .92rem; }
.loc-sos svg { color: var(--sos); }
.loc-sos a { color: #d92d43; font-weight: 800; }
.map { position: relative; border-radius: var(--r); overflow: hidden; min-height: 500px; background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05) saturate(.85); transform-origin: center; }
.map-badge { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; font: 800 .7rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 14px 30px -12px rgba(7, 22, 27, .6); }
.map-badge .pulse { background: var(--aqua); }
.map-badge .pulse::after { border-color: var(--aqua); }

.chan-list { margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.ch { position: relative; display: grid; grid-template-columns: 72px 1fr 1.35fr 1.1fr 54px; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease); isolation: isolate; }
.ch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pearl); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.ch:hover::before { transform: scaleY(1); }
.ch:hover { padding-inline: 22px; }
.ch-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--pearl); display: grid; place-items: center; color: var(--aqua-ink); transition: transform .6s var(--ease), background .4s; }
.ch:hover .ch-ic { transform: scale(1.08) rotate(-8deg); background: #fff; }
.ch-ic svg { width: 26px; height: 26px; }
.ch-ic--wa { color: #17a34a; }
.ch-k { font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: -.02em; }
.ch-d { color: var(--muted); }
.ch-v { font-weight: 800; font-size: 1.05rem; }
.ch-go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .4s, color .4s, transform .6s var(--ease), border-color .4s; }
.ch-go svg { width: 20px; height: 20px; }
.ch:hover .ch-go { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }

.bk-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.bk-copy .h-lg { max-width: 10ch; }
.bk-copy .lead { margin-top: 24px; }
.bk-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.bk-steps li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: rgba(255, 255, 255, .86); }
.bk-steps span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(110, 231, 210, .4); display: grid; place-items: center; color: var(--aqua); font: 800 .8rem/1 var(--f-body); flex: none; }

.ct-sos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.ct-h24 { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; font-family: var(--f-head); font-weight: 640; font-size: clamp(7rem, 17vw, 15rem); line-height: .9; letter-spacing: -.06em; padding: .02em .05em .06em 0; }
.ct-h24 span { display: inline-block; }
.ct-h24 .h { color: transparent; -webkit-text-stroke: 2px var(--sos-2); margin-right: .04em; }
.ct-h24 .n { background: linear-gradient(180deg, #fff 15%, var(--sos-2) 65%, var(--sos)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-sos-copy .h-md { max-width: 12ch; }
.ct-sos-copy .lead { margin: 20px 0 30px; }
.ct-sos-copy .btn-row { gap: 22px; }

/* =============== LEGAL =============== */
.legal { min-height: 80vh; display: flex; align-items: center; padding: calc(var(--hdr-h) + 80px) 0 80px; }
.legal .lead { margin: 22px 0 32px; }

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px) {
  .h24-grid, .impl-grid, .tg-grid, .comfort-grid, .ig-final-grid, .bk-grid, .ct-sos-grid { grid-template-columns: 1fr; }
  .impl-stage { max-width: 620px; width: 100%; margin-inline: auto; }
  .impl-grid .impl-copy { order: -1; }
  .philo-foot { grid-template-columns: 1fr; }
  .philo-path { max-width: 520px; }
  .sit-list { grid-template-columns: repeat(2, 1fr); }
  .sit:nth-child(3) { border-left: 0; padding-left: 0; }
  .sit:nth-child(n+3) { border-top: 1px solid var(--line); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .tm--lead { grid-column: 1 / -1; }
  .ch { grid-template-columns: 64px 1fr 1fr 48px; }
  .ch-d { display: none; }
  .locs-grid { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
  .ig-chips { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--hdr-h) + 40px); }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 4%, rgba(7, 22, 27, .7) 46%, rgba(7, 22, 27, .1) 75%); }
  .hero-pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar, .pillar + .pillar { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line-d); grid-template-columns: 34px 1fr; }
  .pillar .p-s { grid-column: 2; }
  .p-num { grid-row: auto; padding-top: 5px; }
  .hero-lead { font-size: .98rem; }
  .sos-hero { align-items: flex-end; padding-top: calc(var(--hdr-h) + 40px); }
  .sos-hero-grid { grid-template-columns: 1fr; }
  .sos-24wrap { position: absolute; z-index: 0; right: -18%; top: -6%; width: 78%; opacity: .32; pointer-events: none; }
  .sit-foot { flex-direction: column; align-items: flex-start; }
  .steps-list { grid-template-columns: 1fr; }
  .st { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: start; }
  .st-n { font-size: 4.6rem; }
  .st h3 { margin-top: 6px; }
  .ig-hero { align-items: flex-end; padding-top: calc(var(--hdr-h) + 34vh); }
  .ig-beam { right: 0; width: 60vw; }
  .tech-ui { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding-top: calc(var(--hdr-h) + 20px); padding-bottom: 18px; gap: 10px; }
  .tech-head .lead { display: none; }
  .tech-head .h-md { font-size: 1.7rem; }
  .tech-head .eyebrow { margin-bottom: 8px; }
  .tech-benefits li { font-size: .56rem; padding: 6px 9px; }
  .tech-steps { grid-row: 3; }
  .tech-steps li:not(.on) { display: none; }
  .tech-steps small { max-height: none; }
  .tech-compare { grid-column: 1; grid-row: 4; justify-self: stretch; width: 100%; }
  .tech-cap { font-size: .78rem; padding: 10px 12px; }
  .seg-dark { width: 100%; }
  .seg-dark button { flex: 1; padding: 0 8px; font-size: .58rem; }
  .tech-demo { top: auto; bottom: 10px; right: 50%; transform: translateX(50%); white-space: nowrap; display: none; }
  .ab-hero-foot { flex-direction: column; align-items: flex-start; }
  .ab-stamp { text-align: left; }
  .team-head { grid-template-columns: 1fr; }
  .ct-hero-foot { grid-template-columns: 1fr; }
  .ct-cta { grid-column: 1; grid-row: auto; }
  .ch { grid-template-columns: 56px 1fr 44px; gap: 4px 16px; padding: 22px 0; }
  .ch:hover { padding-inline: 10px; }
  .ch-ic { width: 54px; height: 54px; grid-row: span 2; }
  .ch-k { grid-column: 2; font-size: 1.5rem; }
  .ch-v { grid-column: 2; font-size: .95rem; word-break: break-all; }
  .ch-go { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .ct-h24 { justify-content: flex-start; font-size: clamp(6rem, 30vw, 10rem); }
  .loc address, .loc-hours, .loc .arrow-link { margin-left: 0; }
  .h24-stats b { font-size: 1.8rem; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .tm { min-height: 420px; }
  .sit-list { grid-template-columns: 1fr 1fr; }
  .sit { padding: 26px 14px 26px 0; }
  .sit + .sit { padding-left: 14px; }
  .sit:nth-child(3) { padding-left: 0; }
  .sit-ic { width: 64px; height: 64px; margin-bottom: 22px; }
  .sit h3 { font-size: 1.12rem; }
  .sit-n { top: 26px; right: 10px; }
  .loc-mini { width: 100%; }
  .lm-go { margin-left: auto; }
  .philo-tag { left: 16px; right: 16px; bottom: 16px; max-width: none; padding: 16px 18px; }
  .pt-v { font-size: 1.15rem; }
  .pp-step b { font-size: .74rem; }
  .callout { width: 100%; }
  .intro-count { display: none; }
  .clock24 { width: min(330px, 100%); }
}
.fallback[hidden] { display: none; }
.philo-tag, .comfort-media figcaption { background: rgba(7, 22, 27, .58); border-color: rgba(255, 255, 255, .14); }
.pay-zero { line-height: 1; padding-bottom: .22em; }
.pay-zero .z, .odo span { height: 1em; line-height: 1; }
.pay-zero .pc { margin-top: .1em; }
.pay-zero small { bottom: 0; }
.map-badge { left: auto; right: 18px; }
.sw { white-space: nowrap; }
.eyebrow { line-height: 1.45; }
@media (max-width: 900px) {
  .ig-3d { bottom: auto; height: 60svh; }
  .ig-hero { padding-top: calc(var(--hdr-h) + 44svh); }
  .ig-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 34svh; height: 30svh; z-index: 1; background: linear-gradient(180deg, transparent, var(--ink)); pointer-events: none; }
  .hero-3d { bottom: auto; height: 62svh; }
}
@media (max-width: 900px) {
  .tech-ui { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .tech-steps small { font-size: .78rem; }
}
@media (max-width: 600px) { .t3d { display: none; } }

/* ===== anti-clipping: give masks & gradient text room for full glyphs ===== */
.sw { padding: .18em .1em .16em; margin: -.18em -.1em -.16em; }
.split-done .sw { overflow: visible; }
.hero-rot { padding-bottom: .14em; }
.c24-num { line-height: 1.05; padding: .04em .12em 0 .04em; }
.sos-24 { line-height: 1.1; }
.sos-24 .d { padding: .06em .07em .08em; margin: 0 -.07em; }
.st-n { line-height: 1.05; padding: .02em .08em .04em 0; }
.ct-h24 { overflow: visible; line-height: 1.05; padding: .04em .08em .06em; }
.ct-h24 span { padding: 0 .05em; margin: 0 -.05em; }
.kw { overflow-x: clip; overflow-y: visible; }
.kw-i { line-height: 1.08; padding: .02em .1em .08em; }
.pay-zero .z, .odo span { height: 1.1em; line-height: 1.1; }
.odo span { padding: 0 .06em; }
.tech-steps li.on small { max-height: 6em; }
.c24-cap { margin-top: 4px; }
.pay-zero small { bottom: .14em; }
.hdr-sos .pulse::after, .mbar .pulse::after, .btn .pulse::after { inset: -4px; animation-name: ping-sm; }
@keyframes ping-sm { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
.hdr-sos, .btn--sos { gap: 12px; }

/* hero 3D: labels anchored to the floating symbols */
.hero-3d-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-3d-labels[hidden] { display: none; }
.h3d-lbl { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; border-radius: 999px; background: rgba(7, 22, 27, .62); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 800 .62rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .6s, background .3s, border-color .3s; }
.h3d-lbl i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(110, 231, 210, .2); }
.h3d-lbl--sos i { background: var(--sos); box-shadow: 0 0 0 4px rgba(255, 74, 94, .25); }
.h3d-lbl.on { opacity: 1; }
.h3d-lbl.hot { background: rgba(110, 231, 210, .2); border-color: var(--aqua); }
.h3d-lbl--sos.hot { background: rgba(255, 74, 94, .22); border-color: var(--sos); }

/* hero 3D on phones: the scene gets its own stage above the title */
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--hdr-h) + 40svh); }
  .hero-3d { top: calc(var(--hdr-h) + 6px); bottom: auto; height: 42svh; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 6%, rgba(7, 22, 27, .55) 40%, rgba(7, 22, 27, 0) 58%); }
}

/* brief 02 §9: "Un'emergenza? Contattaci subito." right above the call buttons */
.sos-urgent { margin: 26px 0 -6px; font: 800 .8rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sos); }
/* team placeholders: blurred, desaturated backdrop + public "Foto in arrivo" chip, so no stock face reads as a real person */
.tm-ph { background: radial-gradient(120% 85% at 72% 18%, #1a5561 0%, #0f3640 38%, #07161b 100%); overflow: hidden; }
.tm-ph::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(110, 231, 210, .16) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 60% at 50% 38%, #000 0%, transparent 100%); mask-image: radial-gradient(70% 60% at 50% 38%, #000 0%, transparent 100%); }
.tm-ph-orbit { position: absolute; left: 50%; top: 40%; width: 68%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(110, 231, 210, .28); transform: translate(-50%, -50%); transition: transform 1.2s var(--ease), border-color .6s; }
.tm-ph-orbit::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 14px 3px rgba(110, 231, 210, .55); }
.tm-ph-orbit { animation: tmOrbit 26s linear infinite; }
.tm-ph-orbit--2 { width: 92%; border-style: dashed; border-color: rgba(255, 255, 255, .12); animation-duration: 40s; animation-direction: reverse; }
.tm-ph-orbit--2::after { width: 6px; height: 6px; margin-left: -3px; top: -3px; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .45); }
@keyframes tmOrbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.tm-ph-mono { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: clamp(5.5rem, 11vw, 9.5rem); line-height: 1; letter-spacing: -.04em; color: transparent; background: linear-gradient(160deg, #ffffff 10%, var(--aqua) 95%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 10px 30px rgba(110, 231, 210, .25)); transition: transform 1.2s var(--ease); }
.tm-ph .tm-ph-mark { position: absolute; left: 50%; top: 40%; width: 30%; height: auto; object-fit: contain; transform: translate(-50%, -50%); opacity: .92; filter: drop-shadow(0 10px 26px rgba(110, 231, 210, .25)); transition: transform 1.2s var(--ease); }
.tm:hover .tm-ph-mono, .tm:hover .tm-ph .tm-ph-mark { transform: translate(-50%, -50%) scale(1.06); }
.tm:hover .tm-ph-orbit { border-color: rgba(110, 231, 210, .5); }
@media (prefers-reduced-motion: reduce) { .tm-ph-orbit { animation: none; } }
.tm-soon { position: absolute; z-index: 4; pointer-events: none; top: 16px; right: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(7,22,27,.62); border: 1px solid rgba(255,255,255,.22); color: #fff; font: 800 .6rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(6px); }

/* brief 05 §4: keep the three channel descriptions on tablet and phone */
@media (max-width: 1100px) {
  .ch .ch-d { display: block; grid-column: 2 / 4; grid-row: 2; font-size: .92rem; }
  .ch .ch-ic { grid-column: 1; grid-row: 1 / span 2; }
  .ch .ch-k { grid-column: 2; grid-row: 1; }
  .ch .ch-v { grid-column: 3; grid-row: 1; }
  .ch .ch-go { grid-column: 4; grid-row: 1 / span 2; }
}
@media (max-width: 900px) {
  .ch .ch-ic { grid-row: 1 / span 3; }
  .ch .ch-k { grid-column: 2; grid-row: 1; }
  .ch .ch-v { grid-column: 2; grid-row: 2; }
  .ch .ch-d { grid-column: 2; grid-row: 3; font-size: .88rem; }
  .ch .ch-go { grid-column: 3; grid-row: 1 / span 3; }
}

/* Home · Filosofia photo: dentist AND patient in frame, soft ink veil so bright whites never glare */
.philo-media { height: clamp(380px, 56vw, 1080px); } /* width-driven: keeps ~16:9 so the face is never cropped on wide, short screens */
.philo-media img { object-position: 50% 22%; }
.philo-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 22, 27, .12) 0%, rgba(7, 22, 27, 0) 16%),
    linear-gradient(315deg, rgba(7, 22, 27, .42) 0%, rgba(7, 22, 27, 0) 28%); } /* photo kept as visible as possible: only a light corner behind the caption */
.philo-media .philo-tag, .philo-media .ph-tag { z-index: 2; }
.philo-media .philo-tag { left: auto; right: var(--gutter); }
@media (max-width: 700px) {
  .philo-media { height: auto; }
  .philo-media img { display: block; height: auto; aspect-ratio: 4 / 3; object-position: 50% 92%; }
  .philo-media::after { bottom: auto; aspect-ratio: 4 / 3; height: auto; width: 100%; background: linear-gradient(180deg, rgba(7, 22, 27, .1) 0%, rgba(7, 22, 27, 0) 20%); }
  .philo-media .philo-tag { position: relative; inset: auto; max-width: none; margin: 0; border-radius: 0; border: 0; background: var(--ink); backdrop-filter: none; }
}

/* H24 · "Il nostro modo di esserci": bright clinic room, dark only where the text sits */
.sg-media img { object-position: 72% 55%; }
.sg-media::after { background:
    linear-gradient(90deg, rgba(7, 22, 27, .9) 0%, rgba(7, 22, 27, .74) 36%, rgba(7, 22, 27, .22) 68%, rgba(7, 22, 27, .08) 100%),
    linear-gradient(0deg, var(--ink) 2%, rgba(7, 22, 27, .5) 30%, rgba(7, 22, 27, 0) 60%),
    linear-gradient(180deg, rgba(7, 22, 27, .5) 0%, rgba(7, 22, 27, 0) 24%); }
@media (max-width: 900px) {
  .sg-media img { object-position: 80% 40%; }
  .sg-media::after { background:
    linear-gradient(0deg, var(--ink) 28%, rgba(7, 22, 27, .8) 52%, rgba(7, 22, 27, .2) 80%, rgba(7, 22, 27, .45) 100%); }
}

/* Chi siamo hero: clinic photo kept as visible as possible; ink only behind the H1 (left), the texts (bottom) and the header (top) */
.ab-media img { object-position: 66% 22%; }
.ab-shade { background:
    linear-gradient(90deg, rgba(7, 22, 27, .74) 0%, rgba(7, 22, 27, .52) 30%, rgba(7, 22, 27, .12) 50%, rgba(7, 22, 27, 0) 62%),
    linear-gradient(0deg, rgba(7, 22, 27, .9) 0%, rgba(7, 22, 27, .62) 20%, rgba(7, 22, 27, 0) 45%),
    linear-gradient(180deg, rgba(7, 22, 27, .38) 0%, rgba(7, 22, 27, 0) 16%); }
@media (max-width: 900px) {
  /* phones: photo as a clear band on top, texts below on ink (no text over the face) */
  .ab-hero { padding-top: calc(var(--hdr-h) + 16px + 46svh + 30px); }
  .ab-media { top: calc(var(--hdr-h) + 16px); left: 12px; right: 12px; bottom: auto; height: 46svh; border-radius: 24px; }
  .ab-media img { object-position: 66% 30%; }
  .ab-shade { display: none; }
}

/* Contatti · map: styled OpenStreetMap preview (self-hosted, no third-party request) + Google on demand */
.map { min-height: 540px; background: #eef3f1; isolation: isolate; }
.map-static { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 1.8s var(--ease); }
.map-img.on { opacity: 1; transform: scale(1); }
.map-static::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(110, 231, 210, .16) 0, rgba(110, 231, 210, 0) 22%), radial-gradient(120% 90% at 50% 45%, rgba(7, 22, 27, 0) 55%, rgba(7, 22, 27, .14) 100%); }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 46px; height: 58px; transform: translate(-50%, -100%); filter: drop-shadow(0 12px 14px rgba(7, 22, 27, .35)); }
.map-pin svg { width: 100%; height: 100%; display: block; }
.map-pin .mp-body { fill: var(--ink); }
.map-pin .mp-dot { fill: var(--aqua); }
.map-pin::before, .map-pin::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 84px; height: 30px; margin-left: -42px; border-radius: 50%; background: rgba(15, 140, 120, .28); z-index: -1; animation: mapPulse 2.6s cubic-bezier(.2, .7, .3, 1) infinite; }
.map-pin::after { animation-delay: 1.3s; }
.map-pin.drop { animation: pinDrop .95s cubic-bezier(.2, .9, .25, 1.2); }
@keyframes mapPulse { 0% { transform: scale(.25); opacity: .95; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pinDrop { 0% { transform: translate(-50%, -260%); opacity: 0; } 55% { opacity: 1; } 100% { transform: translate(-50%, -100%); } }
.map-card { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; padding: 18px 18px 14px 22px; border-radius: 22px; background: rgba(255, 255, 255, .84); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 24px 48px -26px rgba(7, 22, 27, .5); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.map-card b { display: block; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: 1.3rem; line-height: 1.1; color: var(--ink); }
.map-card .mc-addr { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; }
.map-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.map-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 800 .66rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.map-btn svg { width: 15px; height: 15px; flex: none; }
.map-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.map-btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.map-btn--ink:hover { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.map-note { flex-basis: 100%; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; line-height: 1.4; }
.map-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.map iframe { z-index: 4; opacity: 0; transition: opacity .6s; }
.map iframe:not([src]) { visibility: hidden; }
.map.is-on iframe { opacity: 1; }
.map.is-on .map-card, .map.is-on .map-pin { display: none; }
.map .map-badge { z-index: 5; }
@media (max-width: 900px) {
  .map { min-height: 0; }
  .map-static { position: relative; inset: auto; height: 340px; }
  .map-pin { top: 170px; }
  .map-card { position: relative; left: auto; right: auto; bottom: auto; margin: -34px 12px 12px; padding: 16px; }
  .map-actions, .map-btn { width: 100%; }
  .map-btn { justify-content: center; }
  .map.is-on .map-static { height: 460px; }
}
@media (prefers-reduced-motion: reduce) { .map-pin::before, .map-pin::after, .map-pin.drop { animation: none; } .map-img { transition: none; } }

/* Home · video testimonianze: swipeable row of vertical cards; YouTube (nocookie) loads only on play */
.vrev-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 56px; align-items: end; }
.vrev-side .lead { margin: 0 0 22px; }
.vrev-nav { display: flex; gap: 10px; }
.vrev-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s, opacity .3s, transform .4s var(--ease); }
.vrev-btn svg { width: 20px; height: 20px; }
.vrev-btn--prev svg { transform: rotate(180deg); }
.vrev-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.vrev-btn[disabled] { opacity: .3; pointer-events: none; }
.vrev-track { display: flex; gap: clamp(14px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
  margin-top: clamp(34px, 4vw, 56px); padding: 6px max(var(--gutter), calc((100% - var(--maxw)) / 2)) 30px; scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
.vrev-track::-webkit-scrollbar { display: none; }
.vrev-track:focus-visible { outline: 2px solid var(--aqua-ink); outline-offset: -2px; }
.vrev-card { position: relative; flex: 0 0 clamp(228px, 21vw, 290px); aspect-ratio: 9 / 16; margin: 0; border-radius: 26px; overflow: hidden; background: var(--ink); scroll-snap-align: start; isolation: isolate; box-shadow: 0 34px 60px -38px rgba(7, 22, 27, .6); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.vrev-card:hover { transform: translateY(-6px); box-shadow: 0 44px 70px -40px rgba(7, 22, 27, .7); }
.vrev-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.vrev-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.vrev-card:hover .vrev-play img { transform: scale(1.06); }
.vrev-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 22, 27, .18) 0%, rgba(7, 22, 27, 0) 26%, rgba(7, 22, 27, 0) 46%, rgba(7, 22, 27, .9) 100%); }
.vrev-icon { position: absolute; left: 50%; top: 44%; z-index: 2; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .6s var(--ease), background .3s, color .3s, border-color .3s; }
.vrev-icon svg { width: 26px; height: 26px; margin-left: 3px; }
.vrev-icon::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(110, 231, 210, .7); animation: vrevRing 2.6s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes vrevRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.vrev-card:hover .vrev-icon, .vrev-play:focus-visible .vrev-icon { transform: scale(1.1); background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.vrev-cap { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: #fff; pointer-events: none; }
.vrev-n { display: block; margin-bottom: 8px; font: 800 .64rem/1 var(--f-body); letter-spacing: .2em; color: var(--aqua); }
.vrev-cap p { margin: 0; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.05rem; line-height: 1.28; text-wrap: balance; }
.vrev-card iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: #000; }
.vrev-card.is-playing .vrev-play, .vrev-card.is-playing .vrev-cap { visibility: hidden; }
.vrev-card.is-playing:hover { transform: none; }
.vrev-foot { display: flex; align-items: center; gap: 28px; }
.vrev-bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.vrev-bar i { display: block; height: 100%; background: var(--aqua-ink); transform-origin: left; transform: scaleX(.15); transition: transform .35s var(--ease); }
.vrev-note { margin: 0; color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) {
  .vrev-head { grid-template-columns: 1fr; }
  .vrev-card { flex-basis: min(68vw, 280px); }
  .vrev-foot { flex-direction: column; align-items: stretch; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .vrev-icon::before { animation: none; } .vrev-track { scroll-behavior: auto; } }

/* video testimonianze · clean player: cropped to the cover framing (YouTube title bar and logo strip fall outside the card) */
.vrev-card iframe { position: absolute; z-index: 1; left: -26.5%; top: -27.9%; width: 153%; height: 153%; border: 0; background: #000; pointer-events: none; }
.vrev-card iframe.vrev-plain { left: 0; top: 0; width: 100%; height: 100%; z-index: 4; pointer-events: auto; }
.vrev-card .vrev-play { z-index: 2; }
.vrev-card.is-playing .vrev-play, .vrev-card.is-playing .vrev-cap { visibility: visible; }
.vrev-play img, .vrev-play::after, .vrev-cap { transition: opacity .5s var(--ease), transform 1.4s var(--ease); }
.vrev-card.is-playing .vrev-play img, .vrev-card.is-playing .vrev-play::after, .vrev-card.is-playing .vrev-cap, .vrev-card.is-playing .vrev-icon { opacity: 0; }
.vrev-icon { transition: transform .6s var(--ease), background .3s, color .3s, border-color .3s, opacity .4s; }
.vrev-card.is-loading .vrev-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--aqua); animation: vrevSpin .8s linear infinite; }
@keyframes vrevSpin { to { transform: rotate(360deg); } }
.vrev-ui { position: absolute; left: 16px; right: 12px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.vrev-card.is-playing .vrev-ui, .vrev-card.is-muted.is-playing .vrev-ui { opacity: 1; pointer-events: auto; }
.vrev-prog { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.vrev-prog i { display: block; width: 0; height: 100%; background: var(--aqua); transition: width .25s linear; }
.vrev-mute { position: relative; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 22, 27, .58); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s, color .3s; }
.vrev-mute:hover { background: var(--aqua); color: var(--ink); }
.vrev-mute svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.vrev-mute svg:last-child, .vrev-card.is-muted .vrev-mute svg:first-child { display: none; }
.vrev-card.is-muted .vrev-mute svg:last-child { display: block; }
.vrev-card.is-muted .vrev-mute { background: var(--aqua); color: var(--ink); animation: vrevNudge 2s ease-in-out infinite; }
@keyframes vrevNudge { 50% { box-shadow: 0 0 0 8px rgba(110, 231, 210, .25); } }
.vrev-card.is-plain .vrev-ui { display: none; }
@media (prefers-reduced-motion: reduce) { .vrev-card.is-muted .vrev-mute, .vrev-card.is-loading .vrev-icon::after { animation: none; } }

/* Chi siamo · tecnologia: real X-ray room, framed on the unit */
.tg-media img { object-position: 70% 50%; }
/* Contatti hero: waiting-room photo next to the H1 */
.ct-top { display: grid; grid-template-columns: 1fr minmax(260px, 36%); gap: 28px clamp(32px, 5vw, 72px); align-items: end; }
.ct-photo { position: relative; margin: 0 0 10px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .1); }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.ct-photo:hover img { transform: scale(1.05); }
.ct-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 22, 27, 0) 55%, rgba(7, 22, 27, .45)); pointer-events: none; }
.ct-photo .tg-chip { top: auto; bottom: 16px; left: 16px; z-index: 1; }
@media (max-width: 900px) {
  .ct-top { grid-template-columns: 1fr; }
  .ct-photo { aspect-ratio: 16 / 10; margin: 0; }
}

/* Contatti · email of each location (list + map card) */
.loc-mail { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px 36px; color: var(--aqua-ink); font-weight: 700; font-size: .95rem; text-decoration: underline; text-decoration-color: rgba(12, 125, 109, .3); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.loc-mail svg { width: 17px; height: 17px; flex: none; }
.loc-mail:hover { color: var(--ink); text-decoration-color: currentColor; }
.map-card .mc-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--aqua-ink); font-weight: 700; font-size: .9rem; }
.map-card .mc-mail[hidden] { display: none; }
.map-card .mc-mail svg { width: 16px; height: 16px; flex: none; }
.map-card .mc-mail:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .loc-mail { margin-left: 0; } }

/* ---------- Contatti rapidi: floating chat button + appointment popup ---------- */
.qc { position: fixed; z-index: 118; right: clamp(16px, 2.4vw, 30px); bottom: calc(clamp(16px, 2.4vw, 30px) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.qc .qc-main { pointer-events: auto; }
body:has(#intro) .qc, .menu-open .qc, .qm-open .qc, body:has(.dg-cookie:not([hidden])) .qc { opacity: 0; transform: translateY(16px); pointer-events: none; }
body:has(#intro) .qc > *, .menu-open .qc > *, .qm-open .qc > *, body:has(.dg-cookie:not([hidden])) .qc > * { pointer-events: none; }
.qc-main { position: relative; width: 64px; height: 64px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: radial-gradient(120% 120% at 30% 20%, #a8f5e7 0%, var(--aqua) 45%, #3fc7b0 100%); box-shadow: 0 18px 40px -14px rgba(7, 22, 27, .55), 0 0 0 1px rgba(255, 255, 255, .5) inset; transition: transform .5s var(--ease), box-shadow .4s, background .4s; }
.qc-main:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 24px 50px -16px rgba(7, 22, 27, .6), 0 0 0 1px rgba(255, 255, 255, .6) inset; }
.qc-main::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--aqua); animation: qcRing 2.8s cubic-bezier(.2, .7, .3, 1) infinite; }
.qc.is-open .qc-main::before { animation: none; opacity: 0; }
@keyframes qcRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.qc-main svg { position: absolute; width: 26px; height: 26px; transition: transform .5s var(--ease), opacity .3s; }
.qc-main .qc-ic-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.qc.is-open .qc-main { background: var(--ink); color: #fff; box-shadow: 0 18px 40px -14px rgba(7, 22, 27, .7), 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.qc.is-open .qc-main .qc-ic-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.qc.is-open .qc-main .qc-ic-close { opacity: 1; transform: none; }
.qc-dot { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; z-index: 1; }
.qc-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #22c55e; animation: qcRing 2s ease-out infinite; }
.qc.is-open .qc-dot { opacity: 0; }
.qc-items { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qc-i { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none; visibility: hidden;
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .5s; transition-delay: calc((3 - var(--i)) * 30ms); }
.qc.is-open .qc-i { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .4s var(--ease), transform .55s var(--ease), visibility 0s; transition-delay: calc(var(--i) * 55ms); }
.qc-l { padding: 11px 16px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 .66rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 14px 30px -14px rgba(7, 22, 27, .45), 0 0 0 1px rgba(7, 22, 27, .06); transition: background .3s, color .3s; }
.qc-ic { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ink); box-shadow: 0 14px 30px -12px rgba(7, 22, 27, .55); transition: transform .4s var(--ease); }
.qc-ic svg { width: 22px; height: 22px; }
.qc-i:hover .qc-ic, .qc-i:focus-visible .qc-ic { transform: scale(1.08); }
.qc-i:hover .qc-l { background: var(--ink); color: #fff; }
.qc-i--wa .qc-ic { background: #22c55e; }
.qc-i--sos .qc-ic { background: var(--sos); }
.qc-i--sos .qc-l { color: #d92d43; }
.qc-i--sos:hover .qc-l { background: var(--sos); color: #fff; }
.qc-i--bk .qc-ic { background: var(--aqua); color: var(--ink); }
@media (max-width: 900px) {
  .qc { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .qc-main { width: 56px; height: 56px; }
  .qc-ic { width: 46px; height: 46px; }
}

.qm { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; }
.qm[hidden] { display: none; }
.qm-bg { position: absolute; inset: 0; background: rgba(7, 22, 27, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease); }
.qm-card { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--deep); color: #fff; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.qm.is-open .qm-bg { opacity: 1; }
.qm.is-open .qm-card { opacity: 1; transform: none; }
.qm-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, transform .4s var(--ease); }
.qm-x:hover { background: rgba(255, 255, 255, .1); transform: rotate(90deg); }
.qm-x svg { width: 18px; height: 18px; }
.qm-h { margin: 6px 0 8px; padding-right: 48px; font-family: var(--f-head); font-variation-settings: "SOFT" 100; font-weight: 560; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; }
.qm-lead { margin: 0 0 22px; color: var(--muted-d); font-size: .95rem; }
.qm-form.form { padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.qm-wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--aqua); font: 800 .7rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.qm-wa svg { width: 18px; height: 18px; }
.qm-wa:hover { color: #fff; }
.qm-open, .qm-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .qc-main::before, .qc-dot::after { animation: none; } }

/* video testimonianze · keep the cropped player size even inside Elementor (".elementor iframe { max-width:100%; width:100% }") */
.vrev .vrev-card iframe:not(.vrev-plain) { position: absolute !important; left: -26.5% !important; top: -27.9% !important; width: 153% !important; height: 153% !important; max-width: none !important; max-height: none !important; margin: 0 !important; }
.vrev .vrev-card iframe.vrev-plain { width: 100% !important; height: 100% !important; max-width: none !important; }

/* mobile fixes (client test on iPhone): */
/* 1 · the folded-up quick-contact menu must not catch taps (it sat over the video's audio button in portrait) */
.qc .qc-items { pointer-events: none; }
/* 2 · cards always fit the screen height (landscape phones are ~390px tall): the whole person stays visible */
.vrev-card { flex-basis: min(clamp(228px, 21vw, 290px), calc((100svh - 110px) * .5625)); }
@media (max-width: 900px) { .vrev-card { flex-basis: min(68vw, 280px, calc((100svh - 110px) * .5625)); } }
/* 3 · iPhones start videos muted: a clear "tap for sound" pill on the playing card */
.vrev-tap { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 999px; background: var(--aqua); color: var(--ink); font: 800 .62rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55); animation: vrevNudge 2s ease-in-out infinite; }
.vrev-tap svg { width: 16px; height: 16px; }
.vrev-card.is-muted.is-playing .vrev-tap { display: inline-flex; }
/* 4 · landscape phones (very short screens): the bottom bar would cover the video; the header keeps the H24 button visible */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .mbar { display: none; }
  .qc { bottom: calc(14px + env(safe-area-inset-bottom)); }
}
