/* Dr. Ricardo Sampaio Souza · Ortodontista: tema do Painel v4 (padrão do kit 1)
   Identidade: o roxo do monograma RS (#551875, em degradê) com o coral das artes de 2024 (#fc7e7f), sobre neutros lavanda.
   Tipografia: League Spartan nos títulos (a fonte mais próxima do nome no logo) e Lato nos textos (a do "ORTODONTISTA").
   Detalhe do segmento: o fio ortodôntico. O traço fino que corre dentro do monograma vira um arco com bráquetes,
   que se desenha sob os títulos, e o topo tem um arco em degradê com o fio por dentro. O comparativo fixo × alinhador
   é uma foto deslizante. Animações curtas, só em transform e opacity (e o traço do fio, uma vez ao entrar na tela).
   Toda cor e fonte sai das variáveis do :root (tela Cores e fontes do painel). */
:root {
  --bg: #fbf9fc;
  --bg-2: #ffffff;
  --bg-3: #f3edf6;
  --ink: #24132f;
  --ink-2: #43304f;
  --muted: #615268;
  --line: #e6deeb;
  --accent: #551875;
  --accent-hi: #6e2492;
  --accent-ink: #4a1466;
  --accent-rgb: 85 24 117;
  --on-accent: #ffffff;
  --accent-2: #fc7e7f;
  --accent-2-ink: #a3363d;
  --accent-2-rgb: 252 126 127;
  --dark: #2b0c42;
  --wa: #25d366;
  --wa-ink: #04301a;
  --erro: #b3261e;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "League Spartan", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-2: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --degrade: linear-gradient(135deg, var(--accent-2) 0%, color-mix(in oklab, var(--accent-2) 48%, var(--accent)) 46%, var(--accent) 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 10px;
  --r-lg: 22px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --id-h: 34px;
  --header-h: 84px;
  --sec: clamp(64px, 8vw, 112px);
  --sombra: 0 1px 2px rgb(var(--accent-rgb) / .06), 0 24px 48px -30px rgb(var(--accent-rgb) / .45);
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; font-weight: 400; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; color: inherit; text-wrap: balance; }
h4, h5, h6 { font-family: var(--font); font-weight: 700; line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 600; }
h1 em, h2 em { font-style: normal; color: var(--accent); background: linear-gradient(transparent 70%, rgb(var(--accent-2-rgb) / .38) 70%, rgb(var(--accent-2-rgb) / .38) 92%, transparent 92%); padding-inline: .04em; }
p { margin: 0 0 1em; }
small, figcaption, time, label, legend { font-weight: 400; }
strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgb(var(--accent-2-rgb) / .45); color: var(--dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--dark); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r); text-decoration: none; transition: transform .2s; }
.skip:focus { transform: translateY(92px); color: var(--on-accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap-estreito { width: min(760px, 100% - 2 * var(--gut)); }
main { display: block; }
main:focus { outline: none; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

/* ===== o fio ortodôntico ===== */
.fio { width: 150px; height: auto; margin: 16px 0 24px; overflow: visible; }
.fio-arco { fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fio-braq rect { fill: var(--accent); }
.js [data-reveal] .fio-arco { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) .2s; }
.js [data-reveal].is-in .fio-arco { stroke-dashoffset: 0; }
.js [data-reveal] .fio-braq rect { opacity: 0; transition: opacity .5s var(--ease) calc(.45s + var(--k) * .09s); }
.js [data-reveal].is-in .fio-braq rect { opacity: 1; }
.hero .fio-arco, .page-top .fio-arco { animation: traco 1.4s var(--ease) .3s both; }
.hero .fio-braq rect, .page-top .fio-braq rect { animation: braquete .5s var(--ease) calc(.55s + var(--k) * .09s) both; }
@keyframes traco { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes braquete { from { opacity: 0; } to { opacity: 1; } }
.sec-head-centro .fio, .chamada-in .fio, .erro-in .fio { margin-inline: auto; }
.sec-videos .fio-braq rect, .sec-chamada .fio-braq rect { fill: var(--on-accent); }

/* ===== botões ===== */
.btns { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 30px; }
.btns-centro { justify-content: center; }
.btn { --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border: 1.5px solid var(--b); border-radius: 999px; background: var(--b); color: var(--on-accent); font-family: var(--font); font-size: .95rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.btn .i { width: 19px; height: 19px; transition: transform .3s var(--ease); }
.btn:hover { --b: var(--accent-hi); color: var(--on-accent); transform: translateY(-1px); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn-primary { --b: var(--accent); }
.btn-linha { background: transparent; color: var(--accent-ink); --b: color-mix(in oklab, var(--accent) 55%, transparent); }
.btn-linha:hover { background: var(--accent); --b: var(--accent); color: var(--on-accent); }
.btn-claro { --b: var(--bg-2); background: var(--bg-2); color: var(--accent-ink); }
.btn-claro:hover { --b: var(--accent-2); background: var(--accent-2); color: var(--dark); }
.btn-linha-claro { background: transparent; color: var(--on-accent); --b: color-mix(in oklab, var(--on-accent) 50%, transparent); }
.btn-linha-claro:hover { background: var(--on-accent); --b: var(--on-accent); color: var(--dark); }
.btn-texto { --b: transparent; background: transparent; color: var(--accent-ink); padding-inline: 4px; border-radius: 0; box-shadow: inset 0 -1.5px 0 rgb(var(--accent-2-rgb) / .8); min-height: 44px; }
.btn-texto:hover { background: transparent; color: var(--accent); box-shadow: inset 0 -1.5px 0 var(--accent); transform: none; }
.btn-wa { --b: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { --b: color-mix(in oklab, var(--wa) 82%, black); color: var(--wa-ink); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .88rem; }
.btn-lg { min-height: 54px; padding-inline: 32px; }
.btn-bloco { width: 100%; }

/* ===== chamada (kicker): o bráquete antes do texto ===== */
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-2); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2-ink); }
.kicker::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); box-shadow: 9px 0 0 -3.5px var(--accent-2), -9px 0 0 -3.5px var(--accent-2); margin-inline: 9px 4px; }
.sec-head-centro .kicker, .chamada-in .kicker, .erro-in .kicker { justify-content: center; }

/* ===== cabeçalho ===== */
.site-header { position: sticky; top: calc(-1 * var(--id-h)); z-index: 100; background: color-mix(in oklab, var(--bg-2) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-id { background: var(--dark); color: color-mix(in oklab, var(--on-accent) 82%, var(--dark)); font-size: .78rem; letter-spacing: .03em; }
.header-id-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--id-h); }
.header-id p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-id-contato { display: flex; align-items: center; gap: 22px; }
.header-id a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.header-id a:hover { color: var(--on-accent); }
.header-id .i { width: 14px; height: 14px; }
.header-in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { position: relative; display: block; padding: 10px 13px; color: var(--ink-2); font-size: .95rem; font-weight: 700; text-decoration: none; }
.nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-link:hover, .nav-link.is-atual { color: var(--accent); }
.nav-link:hover::after, .nav-link.is-atual::after { transform: scaleX(1); }
.nav-sub-bt { display: grid; place-items: center; width: 26px; height: 32px; margin-left: -10px; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.nav-sub-bt .i { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .3s var(--ease); }
.nav-sub-bt[aria-expanded="true"] .i { transform: rotate(-90deg); }
.nav-sub { position: absolute; top: calc(100% + 8px); left: 50%; width: min(560px, 86vw); padding-top: 4px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s; }
.nav-sub.is-open, .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-sub-in { padding: 18px 18px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sombra); }
.nav-sub ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; margin: 0; padding: 0; list-style: none; }
.nav-sub li a { display: grid; padding: 9px 12px; border-radius: var(--r); color: var(--ink); line-height: 1.3; text-decoration: none; transition: background-color .25s; }
.nav-sub li a span { font-weight: 700; font-size: .95rem; }
.nav-sub li a small { font-size: .8rem; color: var(--muted); }
.nav-sub li a:hover, .nav-sub li a[aria-current="page"] { background: var(--bg-3); color: var(--accent); }
.nav-sub-todos { display: inline-flex; align-items: center; gap: 8px; margin: 10px 12px 2px; color: var(--accent-ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.nav-sub-todos .i { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-2); cursor: pointer; }
.burger-linhas { display: grid; gap: 5px; width: 20px; margin: auto; }
.burger-linhas i { display: block; height: 2px; border-radius: 2px; background: var(--accent); }
.burger-linhas i:nth-child(2) { width: 70%; background: var(--accent-2); }

/* ===== menu do celular ===== */
.menu-celular { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow-y: auto; }
.menu-celular[hidden] { display: none; }
.menu-celular-in { display: flex; flex-direction: column; gap: 24px; min-height: 100%; padding: 18px var(--gut) 40px; }
.menu-celular-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-celular-top img { height: 38px; width: auto; }
.icon-btn { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-2); color: var(--ink); cursor: pointer; }
.menu-celular-list { margin: 0; padding: 0; list-style: none; }
.menu-celular-list li { border-bottom: 1px solid var(--line); animation: entra .5s var(--ease) both; animation-delay: calc(var(--i) * .05s); }
.menu-celular-list a { display: block; padding: 12px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--ink); text-decoration: none; }
.menu-celular-sub { margin: 22px 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2-ink); }
.menu-celular-trat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.menu-celular-trat a { display: block; padding: 8px 0; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.menu-celular-trat a[aria-current="page"] { color: var(--accent); }
.menu-celular-info { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } }

/* ===== redes ===== */
.redes { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.redes a { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: .92rem; text-decoration: none; }
.redes a:hover { color: var(--accent-2); }
.redes .i { width: 19px; height: 19px; }

/* ===== seções ===== */
.sec { padding-block: var(--sec); }
.sec-head { max-width: 720px; margin-bottom: clamp(34px, 4.5vw, 54px); }
.sec-head-centro { margin-inline: auto; text-align: center; }
.sec-title { font-size: clamp(1.95rem, 3.4vw, 2.9rem); margin-bottom: 0; }
.sec-sub { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.sec-head-centro .sec-sub { margin-inline: auto; }
.sec-head > :last-child { margin-bottom: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich a { color: var(--accent-ink); }

/* revelar ao rolar (só o que está abaixo da dobra) */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* fundos: seções vizinhas sempre com fundos diferentes (espaço igual em cima e embaixo) */
.hero, .sec-trat, .kigs, .sec-onde, .page-top + .sec-texto { background: var(--bg); }
.sec-alin, .sec-sobre, .sec-faq, .item-corpo, .sec-texto { background: var(--bg-2); }
.sec-comp, .sec-clinica, .sec-contato, .page-top { background: var(--bg-3); }
.sec-videos, .sec-chamada { background: var(--dark); color: var(--on-accent); }

/* ===== topo da home ===== */
.hero { position: relative; overflow: hidden; padding-block: clamp(34px, 5vw, 70px) clamp(40px, 5vw, 64px); }
.hero::before { content: ""; position: absolute; left: -18vw; bottom: -22vw; width: 58vw; height: 58vw; max-width: 820px; max-height: 820px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--accent-2-rgb) / .14), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero-txt { padding-bottom: clamp(36px, 5vw, 76px); }
.hero h1 { margin-bottom: 0; }
.hero .lead { max-width: 54ch; color: var(--ink-2); font-size: 1.15rem; }
.hero-foto { position: relative; justify-self: center; width: min(440px, 100%); padding-top: 24px; }
.hero-arco { position: absolute; left: 4%; right: 4%; bottom: 0; height: 84%; border-radius: 999px 999px 26px 26px; background: var(--degrade); overflow: hidden; }
.hero-arco::after { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; bottom: -40px; border: 1.5px solid rgb(255 255 255 / .55); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-arco-fio { position: absolute; left: -10%; right: -10%; top: 52%; height: 160px; border-top: 1.5px solid rgb(255 255 255 / .28); border-radius: 50%; }
.hero-img { position: relative; width: 88%; height: auto; margin-inline: auto; filter: drop-shadow(0 18px 30px rgb(var(--accent-rgb) / .25)); }
.hero-cred { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sombra); }
.hero-cred li { display: grid; gap: 2px; padding: 20px 24px; line-height: 1.35; }
.hero-cred li + li { border-left: 1px solid var(--line); }
.hero-cred strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); }
.hero-cred span { font-size: .92rem; color: var(--muted); }

/* ===== alinhadores ===== */
.alin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.alin-txt .sec-head { margin-bottom: 24px; }
.alin-txt .rich { color: var(--ink-2); }
.alin-foto { margin: 0; }
.alin-foto img { width: 100%; height: auto; }
.passos-titulo { margin: clamp(48px, 6vw, 80px) 0 22px; font-size: 1.35rem; }
.passos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: p; }
.passos li { position: relative; display: grid; align-content: start; gap: 6px; padding: 22px 20px 24px; background: var(--bg-3); border-radius: var(--r-lg); font-size: .95rem; line-height: 1.5; color: var(--muted); }
.passos li::after { content: ""; position: absolute; top: 34px; right: -14px; width: 14px; height: 2px; background: var(--accent-2); }
.passos li:last-child::after { display: none; }
.passo-n { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--accent-2-ink); }
.passos strong { color: var(--ink); font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }

/* ===== comparativo fixo × alinhador ===== */
.comp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.comp-col { padding: clamp(24px, 3vw, 34px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.comp-col h3 { margin-bottom: 16px; color: var(--accent); }
.comp-col ul { margin: 0 0 14px; padding: 0; list-style: none; }
.comp-col li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.45; }
.comp-col li:last-child { border-bottom: 0; }
.comp-col li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-2); }
.comp-col-b li::before { background: var(--accent); }
.comp-slider { margin: 0; }
.comp-quadro { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--bg-2); box-shadow: var(--sombra); touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.comp-quadro:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.comp-quadro:focus-within:not(:has(:focus-visible)) { outline: none; } /* toque e mouse não acendem o contorno; o teclado acende */
.comp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.comp-antes { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comp-linha { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--on-accent); pointer-events: none; }
.comp-alca { position: absolute; top: 58%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px rgb(255 255 255 / .7); }
.comp-alca .i { width: 22px; height: 22px; }
.comp-rot { position: absolute; bottom: 16px; z-index: 3; min-height: 36px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgb(var(--accent-rgb) / .9); color: var(--on-accent); font: 700 .8rem/1.2 var(--font); cursor: pointer; }
.comp-rot:focus-visible { outline: 2px solid var(--on-accent); outline-offset: -5px; }
.comp-rot-a { left: 14px; }
.comp-rot-b { right: 14px; background: var(--dark); }
.comp-range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
/* com JS, o toque e o mouse vão para a foto (o Safari do iPhone só arrasta um range pela bolinha nativa); o range fica para teclado e leitor de tela */
.comp-js .comp-range { pointer-events: none; }
.comp-anima .comp-antes { transition: clip-path .35s ease; }
.comp-anima .comp-linha { transition: left .35s ease; }
.comp-slider figcaption { margin-top: 14px; text-align: center; font-size: .88rem; color: var(--muted); }

/* ===== tratamentos ===== */
.grade-trat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.card-trat a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.card-trat a:hover { border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); transform: translateY(-3px); }
.card-trat-foto { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.card-trat-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card-trat a:hover .card-trat-foto img { transform: scale(1.04); }
.card-trat-corpo { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.card-trat-rotulo { margin-bottom: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2-ink); }
.card-trat h3 { margin-bottom: 10px; font-size: 1.22rem; color: var(--ink); }
.card-trat p { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card-trat-mais { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: .92rem; font-weight: 700; color: var(--accent); }
.card-trat-mais .i { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.card-trat a:hover .card-trat-mais .i { transform: translateX(4px); }

/* ===== vídeos ===== */
.sec-videos .kicker { color: var(--accent-2); }
.sec-videos .kicker::before { background: var(--on-accent); }
.sec-videos .sec-title em, .sec-chamada .sec-title em { color: var(--on-accent); background: linear-gradient(transparent 70%, rgb(var(--accent-2-rgb) / .55) 70%, rgb(var(--accent-2-rgb) / .55) 92%, transparent 92%); }
.sec-videos .sec-sub { color: color-mix(in oklab, var(--on-accent) 78%, var(--dark)); }
.videos-topo { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 40px; margin-bottom: clamp(30px, 4vw, 48px); }
.videos-topo .sec-head { margin-bottom: 0; }
.videos-topo .btns { margin-top: 0; }
.grade-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.video { display: grid; gap: 14px; color: var(--on-accent); text-decoration: none; }
.video-capa { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: color-mix(in oklab, var(--dark) 80%, var(--on-accent)); }
.video-capa img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.video:hover .video-capa img { transform: scale(1.04); }
.video-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: var(--on-accent); color: var(--accent); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); transition: transform .35s var(--ease); }
.video-play .i { width: 24px; height: 24px; margin-left: 3px; }
.video:hover .video-play { transform: scale(1.08); }
.video-tit { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.video:hover .video-tit { color: var(--accent-2); }

/* ===== apresentação do Dr. Ricardo ===== */
.sobre-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 104px); align-items: center; }
.sobre-foto { position: relative; margin: 0; width: min(420px, 100%); justify-self: center; }
.sobre-moldura { position: relative; overflow: hidden; padding-top: 30px; border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--bg-3); }
.sobre-moldura::before { content: ""; position: absolute; inset: 10px 10px auto 10px; height: 70%; border: 1.5px solid rgb(var(--accent-2-rgb) / .7); border-bottom: 0; border-radius: 999px 999px 0 0; }
.sobre-moldura img { position: relative; width: 100%; height: auto; }
.sobre-selo { position: absolute; left: -18px; bottom: 34px; display: flex; align-items: center; gap: 12px; max-width: 250px; padding: 12px 18px 12px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sombra); font-size: .86rem; line-height: 1.3; color: var(--muted); }
.sobre-selo img { width: 46px; height: auto; flex: none; }
.sobre-selo strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; }
.sobre-txt .sec-head { margin-bottom: 24px; }
.sobre-txt .rich { color: var(--ink-2); }
.citacao { position: relative; margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.citacao .i { width: 30px; height: 30px; color: var(--accent-2); margin-bottom: 10px; }
.citacao p { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.45; color: var(--ink); }
.citacao footer { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.linha-tempo { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: clamp(56px, 7vw, 88px) 0 0; padding: 30px 0 0; list-style: none; }
.linha-tempo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.linha-tempo li { position: relative; display: grid; gap: 4px; font-size: .94rem; line-height: 1.45; color: var(--muted); }
.linha-tempo li::before { content: ""; position: absolute; left: 0; top: -36px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 4px var(--bg-2); }
.lt-ano { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.linha-tempo strong { color: var(--ink); font-size: 1rem; }

/* ===== a clínica ===== */
.clinica-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.clinica-txt .sec-head { margin-bottom: 24px; }
.clinica-txt .rich { color: var(--ink-2); }
.clinica-fotos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cf { grid-column: span 2; }
.cf-4, .cf-5 { grid-column: span 3; }
.cf a { position: relative; display: block; height: 100%; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--bg-2); }
.cf-1 { grid-column: span 4; grid-row: span 2; }
.cf-1 a { aspect-ratio: auto; border-radius: 999px 999px var(--r) var(--r); }
.cf img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cf a:hover img { transform: scale(1.04); }
.galeria-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-2); color: var(--accent); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.cf a:hover .galeria-zoom, .cf a:focus-visible .galeria-zoom { opacity: 1; transform: none; }
.galeria-zoom .i { width: 17px; height: 17px; }

/* lightbox */
.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: color-mix(in oklab, var(--dark) 96%, transparent); color: var(--on-accent); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: entra-lb .3s var(--ease); }
@keyframes entra-lb { from { opacity: 0; } }
.lb-fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 92vw; }
.lb-fig img { max-width: 92vw; max-height: 80dvh; width: auto; height: auto; border-radius: var(--r); }
.lb-fig figcaption { max-width: 70ch; text-align: center; font-size: .92rem; color: color-mix(in oklab, var(--on-accent) 80%, var(--dark)); }
.lb-bt { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: transparent; color: var(--on-accent); cursor: pointer; transition: background-color .3s, color .3s; }
.lb-bt:hover { background: var(--on-accent); color: var(--dark); }
.lb-x { top: 18px; right: 18px; }
.lb-ant { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-prox { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-n { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; font-size: .8rem; letter-spacing: .14em; }
.lb-unica .lb-ant, .lb-unica .lb-prox, .lb-unica .lb-n { display: none; }

/* ===== Instagram (peça do kit) ===== */
.kigs { padding-block: var(--sec); }
.kigs .kigs-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .16em; color: var(--accent-2-ink); }
.kigs .kigs-titulo { font-weight: 700; font-size: clamp(1.95rem, 3.4vw, 2.9rem); }
.kigs .kigs-titulo em { color: var(--accent); }
.kigs .kig { --kig-raio: var(--r-lg); --kig-gap: 10px; }
.kigs .kigs-in { max-width: none; padding-inline: 0; }

/* ===== perguntas frequentes ===== */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.faq-intro .sec-head { margin-bottom: 0; }
.faq-intro .btns { margin-top: 26px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 22px 48px 22px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.35; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); background: var(--accent-2); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--accent); }
.faq-a { padding: 0 40px 22px 0; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ===== formulário ===== */
.contato-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contato-canais { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.contato-canais a { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid color-mix(in oklab, var(--accent) 16%, transparent); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contato-canais a:hover { color: var(--accent); }
.contato-canais .i { width: 22px; height: 22px; color: var(--accent); }
.contato-canais span { display: grid; line-height: 1.4; font-weight: 700; }
.contato-canais small { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contato-form { padding: clamp(24px, 4vw, 46px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sombra); }
.q-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.field .req { color: var(--accent-2-ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); font-size: 1rem; transition: border-color .3s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-size: 6px 6px; background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-repeat: no-repeat; padding-right: 38px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--erro); }
.err { font-size: .85rem; color: var(--erro); }
.err:empty { display: none; }
.q-form button { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--muted); }
.form-ok { grid-column: 1 / -1; display: none; margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--bg-3); color: var(--ink); font-size: .95rem; }
.form-ok.show { display: block; }

/* ===== onde estamos ===== */
.onde-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 70px); align-items: stretch; }
.sec-onde-sem-mapa .onde-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.onde-card .sec-head { margin-bottom: 24px; }
.onde-lista { display: grid; gap: 16px; margin: 0; }
.onde-lista div { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.onde-lista dt { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.onde-lista dt .i { width: 18px; height: 18px; color: var(--accent); }
.onde-lista dd { margin: 0; color: var(--ink); }
.onde-lista a { color: inherit; }
.mapa { position: relative; min-height: 380px; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-3); border: 1px solid var(--line); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-capa { position: absolute; inset: 0; display: grid; place-items: center; }
.mapa-ruas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa-ruas path { fill: none; stroke: var(--bg-2); stroke-width: 10; }
.mapa-pino { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 70px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 10px rgb(var(--accent-2-rgb) / .3); }
.mapa-pino .i { width: 26px; height: 26px; }
.mapa-bt { position: absolute; left: 50%; bottom: 24%; white-space: nowrap; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--bg-2); color: var(--accent-ink); font-size: .95rem; font-weight: 700; cursor: pointer; transition: background-color .3s, color .3s; }
.mapa-bt:hover { background: var(--accent); color: var(--on-accent); }

/* ===== topo das páginas internas ===== */
.page-top { padding-block: clamp(40px, 6vw, 84px); }
.pt-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 6vw, 84px); align-items: center; }
.page-top-foto .pt-in, .page-top-item .pt-in:has(.pt-foto) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.pt-txt { max-width: 760px; }
.page-top h1 { margin-bottom: 0; font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.page-top .lead { max-width: 58ch; color: var(--ink-2); font-size: 1.12rem; }
.pt-foto { position: relative; margin: 0; width: min(470px, 100%); justify-self: end; }
.pt-foto::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--r-lg); background: var(--degrade); }
.pt-foto img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 26px; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--accent-2-ink); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ===== páginas de tratamento e textos longos ===== */
.item-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: clamp(32px, 6vw, 90px); align-items: start; }
.rich-longo { font-size: 1.07rem; color: var(--ink-2); }
.rich-longo > * { max-width: 70ch; }
.rich-longo h2 { margin: 1.7em 0 .55em; font-size: clamp(1.5rem, 2.3vw, 1.95rem); color: var(--ink); }
.rich-longo h3 { margin: 1.4em 0 .5em; font-size: 1.25rem; color: var(--ink); }
.rich-longo > :first-child { margin-top: 0; }
.rich-longo ul, .rich-longo ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.rich-longo li { margin-bottom: .45em; padding-left: .25em; }
.rich-longo ul li::marker { content: "■  "; color: var(--accent-2); font-size: .75em; }
.rich-longo ol li::marker { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.rich-longo strong { color: var(--ink); }
.aviso { display: flex; gap: 12px; margin: 40px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: .9rem; line-height: 1.6; color: var(--muted); }
.aviso .i { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.item-lateral { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.item-box { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.item-box-titulo { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2-ink); }
.item-agenda-nome { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.item-agenda-nome small { display: block; margin-top: 4px; font-family: var(--font); font-weight: 400; font-size: .88rem; color: var(--muted); }
.item-agenda-end { display: flex; gap: 10px; margin: 14px 0 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.item-agenda-end .i { width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.item-links { margin: 0; padding: 0; list-style: none; }
.item-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: .95rem; text-decoration: none; }
.item-links li:last-child a { border-bottom: 0; }
.item-links a:hover { color: var(--accent); }
.item-links .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.item-links a:hover .i { transform: translateX(4px); }

/* ===== chamada para agendar ===== */
.chamada-in { max-width: 760px; text-align: center; }
.sec-chamada .kicker { color: var(--accent-2); }
.sec-chamada .kicker::before { background: var(--on-accent); }
.chamada-txt { margin: 0 auto; max-width: 56ch; color: color-mix(in oklab, var(--on-accent) 80%, var(--dark)); }
.sec-chamada .btns { margin-top: 32px; }

/* ===== 404 ===== */
.erro-in { text-align: center; padding-block: clamp(10px, 4vw, 40px); }
.erro-mono { width: 120px; height: auto; margin: 0 auto 26px; }
.erro-in .lead { margin-inline: auto; }

/* ===== rodapé ===== */
.site-footer { background: var(--dark); color: color-mix(in oklab, var(--on-accent) 80%, var(--dark)); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 90px) clamp(36px, 5vw, 56px); }
.footer-logo { height: 112px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 40ch; line-height: 1.7; }
.footer-title { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--on-accent); }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover, .site-footer .redes a:hover { color: var(--accent-2); }
.footer-contato li { display: flex; gap: 12px; }
.nw { white-space: nowrap; }
.footer-contato .i { width: 18px; height: 18px; margin-top: 4px; color: var(--accent-2); }
.footer-legal { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; padding-block: 26px 32px; border-top: 1px solid color-mix(in oklab, var(--on-accent) 14%, var(--dark)); font-size: .86rem; line-height: 1.6; }
.footer-legal-txt { display: grid; gap: 6px; }
.footer-legal p { margin: 0; }
.footer-legal a { color: inherit; }
.footer-id-nome { color: var(--on-accent); font-weight: 700; }
.footer-aviso { color: color-mix(in oklab, var(--on-accent) 70%, var(--dark)); }
.dev-sign { display: inline-flex; flex: none; opacity: .8; transition: opacity .3s; }
.dev-sign:hover { opacity: 1; }
.dev-sign img { width: 160px; height: 23px; max-width: none; display: block; }

/* ===== botão e balão do WhatsApp ===== */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: grid; justify-items: end; gap: 12px; }
.wa-fab { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--wa); color: var(--wa-ink); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .5); cursor: pointer; transition: transform .3s var(--ease); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulsa 2.6s var(--ease) infinite; }
.wa-fab .i { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.06); }
@keyframes pulsa { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-bubble { position: relative; width: min(310px, calc(100vw - 36px)); padding: 22px 20px 18px; border-radius: var(--r-lg); background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sombra); animation: entra .4s var(--ease); }
.wa-bubble[hidden] { display: none; }
.wa-bubble-titulo { margin: 0 0 6px; padding-right: 30px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.wa-bubble > p { margin: 0 0 16px; font-size: .94rem; color: var(--muted); line-height: 1.55; }
.wa-bubble > p.wa-bubble-fone { margin: 10px 0 0; text-align: center; font-size: .9rem; color: var(--ink-2); }
.wa-bubble-x { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.wa-bubble-x .i { width: 18px; height: 18px; }

/* ===== responsivo ===== */
@media (max-width: 1359px) {
  .footer-legal { padding-bottom: 96px; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
  .grade-trat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .passos li::after { display: none; }
  .comp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .comp-slider { grid-column: 1 / -1; grid-row: 1; width: min(380px, 100%); justify-self: center; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
  .hero-grid, .alin-grid, .sobre-grid, .clinica-grid, .faq-grid, .contato-grid, .onde-grid, .item-grid, .page-top-foto .pt-in, .page-top-item .pt-in:has(.pt-foto) { grid-template-columns: minmax(0, 1fr); }
  .hero-txt { padding-bottom: 8px; }
  .hero-foto { width: min(380px, 84%); }
  .hero-cred { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cred li:nth-child(3) { border-left: 0; }
  .hero-cred li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .linha-tempo { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
  .linha-tempo::before { display: none; }
  .linha-tempo li { padding-top: 22px; border-top: 2px solid var(--line); }
  .linha-tempo li::before { top: -7px; }
  .grade-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-foto { justify-self: start; width: min(460px, 94%); }
  .item-lateral { position: static; }
  .mapa { min-height: 320px; }
}
@media (max-width: 640px) {
  :root { --id-h: 0px; --gut: 16px; }
  .header-id { display: none; }
  body { font-size: 1rem; }
  .header-in { gap: 12px; }
  .brand img { height: 40px; }
  .header-cta { display: none; }
  .hero { padding-top: 22px; }
  .hero-cred li { padding: 16px; }
  .grade-trat, .grade-videos, .q-form, .comp-grid { grid-template-columns: minmax(0, 1fr); }
  .comp-slider { grid-row: auto; }
  .passos { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .passos li { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 14px 16px; }
  .passos li .passo-n { grid-row: span 2; }
  .card-trat a { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .card-trat-foto { aspect-ratio: auto; height: 100%; min-height: 128px; }
  .card-trat-corpo { padding: 14px 16px 16px; }
  .card-trat p { display: none; }
  .card-trat h3 { font-size: 1.08rem; margin-bottom: 6px; }
  .grade-trat { gap: 12px; }
  .q-form button { justify-self: stretch; }
  .btns .btn { flex: 1 1 auto; }
  .btn-texto { flex: 0 0 auto !important; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: stretch; }
  .footer-legal .dev-sign { align-self: flex-end; }
  .clinica-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf, .cf-4, .cf-5 { grid-column: span 1; }
  .cf-1 { grid-column: span 2; grid-row: auto; }
  .cf-1 a { aspect-ratio: 3 / 2; }
  .sobre-selo { left: 0; bottom: 18px; }
  .lb-ant, .lb-prox { top: auto; bottom: 16px; transform: none; }
  .lb-ant { left: 16px; }
  .lb-prox { right: 16px; }
  .wa-float { right: 14px; bottom: 14px; }
  .menu-celular-trat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .brand img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .fio-arco, .js [data-reveal] .fio-arco { stroke-dashoffset: 0; }
  .fio-braq rect, .js [data-reveal] .fio-braq rect { opacity: 1; }
}

/* CDW assinatura padrao 160x23 */
.cdw-css-guard {}
/* computador: direita, na linha da ultima info, longe do botao do WhatsApp */
.dev-sign { display: flex !important; width: fit-content; flex: 0 0 auto !important; order: 99 !important; line-height: 0; opacity: 1 !important;
  margin: 0 max(0px, calc(var(--cdw-fab, 100px) - (100vw - 100%) / 2)) 0 auto !important; align-self: flex-end !important; justify-self: end !important; }
.dev-sign img { width: 160px !important; height: 23px !important; max-width: none !important; display: block; opacity: 1 !important; }
@media (min-width: 701px) {
  :has(> .dev-sign) { flex-wrap: nowrap !important; }
  :has(> .dev-sign) > :not(.dev-sign) { min-width: 0; }
}
/* celular: linha propria, alinhada a esquerda como o texto */
@media (max-width: 700px) {
  /* -5px compensa a margem interna do desenho (16 de 480), para a letra alinhar com o texto */
  .dev-sign { margin: 0 calc(100% - 155px) 0 -5px !important; align-self: flex-start !important; justify-self: start !important; }
}
/* pagina de links (bio do Instagram): conteudo centralizado -> assinatura centralizada */
.pg-links .dev-sign, .tpl-links .dev-sign { margin: 6px auto 0 !important; align-self: center !important; justify-self: center !important; }
