/* Alchieri: Fisioterapia — estilo do site (direção 1, "Tinta", escolhida em 05/12/2026).
   Celular primeiro. Cores e fontes nos tokens do :root. */

@font-face { font-family: "Geist"; src: url("../fontes/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fontes/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("../fontes/marcellus-latin-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Marcellus"; src: url("../fontes/marcellus-latin-ext-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  /* Marca (do app da clínica) */
  --petroleo: #053f3c;
  --ouro: #fabe03;
  --fisio: #166534;
  --pilates: #173d7a;

  /* Papéis — cada direção troca */
  --chao: #ffffff;
  --chao-2: #e3efec;
  --chao-3: #f3f6f5;
  --tinta: #0b2a28;
  --tinta-2: #4b5d5b;
  --linha: #d6e0de;
  --marca: var(--petroleo);
  --marca-forte: #032d2b;
  --sobre-marca: #ffffff;
  --sobre-ouro: #2a2000;
  --escuro: #052a28;
  --sobre-escuro: #ffffff;
  --sobre-escuro-2: #a8c3bf;
  --foco: var(--petroleo);

  --f-titulo: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-texto: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-logo: "Marcellus", Georgia, serif;
  --peso-titulo: 800;
  --track-titulo: -0.03em;
  --altura-titulo: 0.98;
  --titulo-heroi: clamp(42px, 8.4vw + 10px, 100px);
  --titulo-2: clamp(34px, 4.2vw + 16px, 72px);
  --texto: 17px;

  --raio: 8px;
  --raio-p: 18px;
  --raio-botao: 10px;
  --raio-foto: 8px;
  --raio-barra: 14px;
  --ouro-escuro: #b8900a;
  --cinza-rodape: #7d8b88;
  --linha-post: #e3e9e7;
  --sombra: 0 1px 2px rgba(5, 42, 40, 0.1), 0 18px 40px -20px rgba(5, 42, 40, 0.38);
  --sombra-barra: 0 0 0 1px rgba(5, 42, 40, 0.08), 0 12px 32px -14px rgba(5, 42, 40, 0.32);
  /* sombras em camadas: perto (contato), média (cartão) e longe (flutua) */
  --sombra-1: 0 1px 1px rgba(5, 42, 40, 0.06), 0 2px 4px rgba(5, 42, 40, 0.05);
  --sombra-2: 0 1px 2px rgba(5, 42, 40, 0.06), 0 6px 14px -4px rgba(5, 42, 40, 0.1), 0 28px 56px -28px rgba(5, 42, 40, 0.32);
  --sombra-3: 0 2px 4px rgba(5, 42, 40, 0.06), 0 14px 28px -10px rgba(5, 42, 40, 0.16), 0 48px 90px -40px rgba(5, 42, 40, 0.42);
  --nevoa: #f3f6f5;
  --nevoa-2: #e9f0ee;

  --max: 1240px;
  --margem: 20px;
  --secao: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-gaveta: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-folha: cubic-bezier(0.65, 0, 0.35, 1);
}
/* telas muito largas: tudo um pouco mais largo, para o início caber sem vão */
@media (min-width: 2000px) { :root { --max: 1560px; } }
@media (min-width: 700px) { :root { --margem: 40px; --secao: clamp(88px, 7vw, 120px); --texto: 18px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--chao); }
body { margin: 0; background: var(--chao); color: var(--tinta); font: 400 var(--texto) / 1.6 var(--f-texto); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
address { font-style: normal; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
p, li, dd { text-wrap: pretty; }
main:focus { outline: none; }
::selection { background: var(--marca); color: var(--sobre-marca); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
@media (pointer: fine) { html { overscroll-behavior-y: none; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icone { flex: none; width: 1.25em; height: 1.25em; }
.pular { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--tinta); color: #fff; font-weight: 600; text-decoration: none; }
.pular:focus { top: 16px; }

.demo { padding: 8px var(--margem); background: var(--ouro); color: var(--sobre-ouro); font-size: 13px; line-height: 1.4; text-align: center; font-weight: 500; }

.dentro { width: min(var(--max), 100% - 2 * var(--margem)); margin-inline: auto; }
.faixa { position: relative; padding-block: var(--secao); background: var(--f, var(--chao)); color: var(--t, var(--tinta)); --t2: var(--tinta-2); }
.faixa-escura, .faixa.escura { --f: var(--escuro); --t: var(--sobre-escuro); --t2: var(--sobre-escuro-2); --foco: #fff; }

/* ---------- Tipografia ---------- */
/* padrão do Instagram (Branco e Petróleo): título em Marcellus maiúsculo, etiqueta espaçada, fio de ouro */
.titulo { font: 400 clamp(30px, 3.4vw + 14px, 62px) / 1.06 var(--f-logo); letter-spacing: 0.02em; text-transform: uppercase; color: var(--marca); text-wrap: balance; }
.cabeca { display: grid; gap: 18px; max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.cabeca::after { content: ""; order: 2; width: 56px; height: 4px; background: var(--ouro); }
.cabeca .cabeca-texto { order: 3; }
.cabeca-centro { justify-items: center; text-align: center; margin-inline: auto; }
.cabeca-centro .cabeca-texto { margin-inline: auto; }
.sobretitulo { color: var(--marca); font: 600 13px / 1 var(--f-texto); letter-spacing: 0.16em; text-transform: uppercase; }
.destaque { font-style: normal; color: inherit; }
.cabeca-texto { color: var(--t2); font-size: clamp(17px, 1.2vw + 8px, 20px); line-height: 1.5; max-width: 34em; }
/* Sobre a clínica: a frase de apresentação, maior */
.onde-lema { max-width: 22em; color: var(--tinta); font-size: clamp(22px, 1.4vw + 15px, 34px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.onde-lema strong { font-weight: 700; color: var(--marca); }

/* ---------- Botões ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 2px solid transparent; border-radius: var(--raio-botao); font: 600 16px / 1.1 var(--f-texto); text-decoration: none; text-align: center; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.botao:active { transform: scale(0.97); }
.botao-grande { min-height: 58px; padding-inline: 28px; font-size: 17px; }
.botao-marca { background: var(--marca); color: var(--sobre-marca); }
.botao-ouro { background: var(--ouro); color: var(--sobre-ouro); }
.botao-linha { border-color: currentColor; color: inherit; }
.botao-grande .icone { width: 22px; height: 22px; }
.botao-marca.botao-grande .icone { color: var(--ouro); }
@media (hover: hover) and (pointer: fine) {
  .botao-marca:hover { background: var(--marca-forte); }
  .botao-ouro:hover { background: #ffcd2e; }
  .botao-linha:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
}
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo-cor, var(--petroleo)); border-radius: 8px; min-height: 44px; }
.logo-a { width: 34px; height: auto; }
.logo-nome { font-family: var(--f-logo); font-size: 17px; letter-spacing: 0.06em; line-height: 1; white-space: nowrap; }
.logo-sub { letter-spacing: 0.01em; }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 50; padding: 12px var(--margem) 0; margin-bottom: -76px; pointer-events: none; }
.topo-barra { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 8px; width: min(var(--max), 100%); margin-inline: auto; min-height: 64px; padding: 8px 8px 8px 16px; border-radius: var(--raio-barra, 999px); background: var(--barra-fundo, rgba(255, 255, 255, 0.96)); color: var(--barra-tinta, var(--tinta)); box-shadow: var(--sombra-barra); transition: box-shadow 250ms ease, background-color 250ms ease; }
.topo .logo { margin-right: auto; }
.topo .logo-a { width: 30px; }
.topo-agendar { display: none; }
.topo-whats { display: none; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--marca); color: var(--sobre-marca); transition: transform 160ms var(--ease-out); }
.topo-whats:active { transform: scale(0.95); }
.topo-menu { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; }
.topo-menu-linhas { position: relative; width: 18px; height: 12px; }
.topo-menu-linhas::before, .topo-menu-linhas::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 220ms var(--ease-out); }
.topo-menu-linhas::before { top: 1px; }
.topo-menu-linhas::after { bottom: 1px; }
.aberto .topo-menu-linhas::before { transform: translateY(4px) rotate(45deg); }
.aberto .topo-menu-linhas::after { transform: translateY(-5px) rotate(-45deg); }

.menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 12px; border-radius: 24px; background: var(--barra-fundo-menu, #fff); color: var(--barra-tinta, var(--tinta)); box-shadow: var(--sombra-menu, var(--sombra-barra)); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top right; transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms; }
.aberto .menu { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s; }
.menu ul { display: grid; }
.menu ul a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 14px; font-size: 18px; font-weight: 500; text-decoration: none; }
.menu-agendar { width: 100%; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .menu ul a:hover { background: color-mix(in srgb, currentColor 7%, transparent); } }

@media (max-width: 429px) {
  .topo-menu { width: 48px; padding: 0; justify-content: center; }
  .topo-menu-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topo .logo-nome { font-size: 16px; letter-spacing: 0.04em; }
}
@media (max-width: 359px) { .topo .logo-nome { font-size: 14px; } .topo .logo-a { width: 26px; } .topo-barra { padding-left: 12px; } }
@media (min-width: 760px) {
  .topo-agendar { display: inline-flex; min-height: 48px; padding-inline: 20px; font-size: 15px; }
}
@media (min-width: 1080px) {
  .topo-barra { padding-left: 22px; }
  .topo-menu { display: none; }
  .menu { position: static; display: flex; align-items: center; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; margin-right: 8px; }
  .menu ul { display: flex; gap: 2px; }
  .menu ul a { min-height: 44px; padding: 0 12px; font-size: 15px; border-radius: 999px; }
  .menu-agendar { display: none; }
  .topo .logo { margin-right: auto; }
}
.compacto .topo-barra { box-shadow: var(--sombra-barra-rolou, var(--sombra-barra)); }


/* ---------- Início: na direção de arte do Instagram (Branco e Petróleo) ----------
   fundo branco, título em Bricolage, fio de ouro e, no computador, o mesmo desenho do "Onde estamos":
   à esquerda um cartão branco com os dados e o botão, à direita uma moldura branca com o canto de ouro,
   onde ficam as folhas das especialidades. */
.heroi { position: relative; overflow: clip; background: #fff; color: var(--marca); }
.heroi-palco { position: relative; padding-top: calc(76px + 28px); padding-bottom: clamp(48px, 6vw, 96px); }
.heroi-cena { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.heroi-texto { display: grid; justify-items: start; }
.heroi-etiqueta { font: 600 13px / 1 var(--f-texto); letter-spacing: 0.16em; text-transform: uppercase; color: var(--marca); }
.heroi-titulo { margin-top: 18px; font: var(--peso-titulo) clamp(34px, calc((100vw - 2 * var(--margem)) / 7.9), 92px) / 0.94 var(--f-titulo); letter-spacing: -0.035em; color: var(--tinta); }
/* "dor." riscada em vermelho, "movimento." ondula, "vida." em verde com o traço de ouro */
.dor { position: relative; display: inline-block; color: #8a9c99; }
.dor::after { content: ""; position: absolute; left: -4%; right: -2%; top: 52%; height: 0.1em; border-radius: 1em; background: #dc2626; transform-origin: left center; }
.mov { display: inline-block; }
.mov i { display: inline-block; font-style: normal; }
.vida { position: relative; display: inline-block; font-style: normal; color: #15803d; isolation: isolate; }
.vida::after { content: ""; position: absolute; left: -3%; right: -6%; bottom: -0.06em; height: 0.22em; background: var(--ouro); -webkit-mask: var(--pincelada) center / 100% 100% no-repeat; mask: var(--pincelada) center / 100% 100% no-repeat; z-index: -1; }
:root { --pincelada: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 15C60 6 140 3 298 8c-90 4-170 9-240 15-20 2-48 1-56-8Z'/%3E%3C/svg%3E"); }
.heroi-titulo > span { display: block; white-space: nowrap; }
.fio-ouro { display: block; width: 56px; height: 4px; background: var(--ouro); }
.heroi-fio { margin-top: 20px; }
.heroi-sub, .heroi-cartao .heroi-dados, .heroi-moldura, .moldura-cabeca { display: none; }
.heroi-cartao { width: 100%; }
.heroi-acoes { display: grid; justify-items: start; gap: 16px; width: 100%; margin-top: 22px; }
.botao-heroi { width: 100%; max-width: 400px; min-height: 62px; padding-inline: 30px; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.botao-heroi .icone { width: 22px; height: 22px; color: var(--ouro); }
.selo { display: inline-flex; align-items: center; gap: 9px; color: #52625f; font: 500 12.5px / 1.3 var(--f-texto); letter-spacing: 0.1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.selo-ponto { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #b8900a; }
.selo.aberto .selo-ponto { background: #1f9d55; }
.selo.aberto .selo-ponto::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #1f9d55; opacity: 0; }

/* as especialidades em folhas brancas, como os posts do Instagram, empilhadas em leque */
.baralho { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; width: 100%; margin-top: 24px; }
.posts { position: relative; display: grid; width: min(80vw, 360px); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.post { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5; padding: 8% 8% 7%; border: 1px solid #e3e9e7; border-radius: 6px; background: #fff; container-type: inline-size;
  transition: transform 680ms var(--ease-folha), translate 520ms var(--ease-out), rotate 520ms var(--ease-out), scale 400ms var(--ease-out), filter 450ms ease; }
@media (max-width: 959.98px) { .baralho-rola .guia-seta { width: 40px; height: 40px; } }
/* em ênfase as folhas de trás ficam desfocadas: o foco é a da frente */
.baralho-rola .enfase .post:not([data-pos="0"]) { filter: blur(3px) brightness(0.9); }
.post img { -webkit-user-drag: none; }
/* celular: o leque abre até as bordas da tela */
.post[data-pos="0"] { z-index: 4; transform: rotate(-1.5deg); }
.post[data-pos="1"] { z-index: 3; transform: translate(34%, 2%) rotate(7deg); }
.post[data-pos="2"] { z-index: 2; transform: translate(-36%, 5%) rotate(-8deg); }
.post[data-pos="3"] { z-index: 1; transform: translate(2%, 6%) rotate(2deg) scale(0.94); }
/* troca de folha: a da frente sai de lado (por cima) e volta por trás; para voltar, a de trás sai de lado (por baixo) e vem para a frente */
.post[data-pos="saindo"] { z-index: 5; transform: translate(-96%, -2%) rotate(-12deg); transition-duration: 360ms, 360ms, 360ms; transition-timing-function: var(--ease-out); }
.post[data-pos="lado"] { z-index: 0; transform: translate(-96%, -2%) rotate(-12deg); transition-duration: 360ms; transition-timing-function: var(--ease-out); }
/* a folha da frente pode ser segurada e arrastada; a de trás chega um pouco mais perto enquanto isso */
.enfase .post[data-pos="0"] { cursor: grab; }
.post.arrastando { transition: none; cursor: grabbing; }
.post[data-pos="1"] { scale: calc(1 + var(--puxar, 0) * 0.035); }
.post-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 4cqi; }
.post-etiqueta { padding-top: 1.5cqi; font: 600 max(10px, 4.6cqi) / 1 var(--f-texto); letter-spacing: 0.16em; text-transform: uppercase; color: var(--marca); }
.post-titulo { margin-top: 2cqi; font: 400 8.8cqi / 1.06 var(--f-logo); letter-spacing: 0.02em; text-transform: uppercase; color: var(--marca); hyphens: manual; text-wrap: balance; }
.post .fio-ouro { flex: none; width: 12cqi; height: 0.9cqi; margin-top: 3.4cqi; }
.post-para { margin-top: 4cqi; color: var(--tinta); font: 400 clamp(12px, 4.3cqi, 16px) / 1.4 var(--f-texto); text-wrap: pretty; }
.post-para strong { font-weight: 700; color: var(--marca); }
.post-tecnicas { display: flex; flex-wrap: wrap; gap: 1.6cqi; margin-top: 4cqi; }
.post-tecnicas li { padding: 1.2cqi 2.4cqi; border: 1px solid #d6e0de; border-radius: 4px; background: var(--nevoa); color: var(--marca); font: 600 clamp(10.5px, 3.5cqi, 13px) / 1.25 var(--f-texto); }
.post-ilustra { flex: 1 1 0; min-height: 0; width: 100%; margin-top: 4cqi; border-radius: 4px; background: var(--nevoa); }
.post-ilustra .m { stroke: #cdd9d6; stroke-width: 5; }
.post-ilustra .m-cheio { fill: #cdd9d6; }
.post-ilustra .chao { stroke: #dde6e4; stroke-width: 2; }
.post-ilustra .p { stroke: #7aa29d; }
.post-ilustra .pc { fill: #7aa29d; }
.post-ilustra .t { stroke: var(--marca); }
.post-ilustra .tc { fill: var(--marca); }
.post-ilustra .o { stroke: #e0a400; stroke-width: 2.5; }
.post-ilustra .o-cheio { fill: var(--ouro); }
.post-rodape { margin-top: 3.4cqi; padding-right: 14cqi; font: 500 max(8px, 3.4cqi) / 1 var(--f-texto); letter-spacing: 0.12em; text-transform: uppercase; color: #6b7a77; }
.post-a { position: absolute; right: 8%; bottom: 6%; width: 11cqi; height: auto; }
.baralho-dica, .baralho-guia { display: none; }

/* com o script: o início ocupa a tela toda. O primeiro movimento de rolar acende as folhas (e a página não desce);
   o seguinte continua a página. As folhas trocam arrastando para o lado ou pelas setas. */
.baralho-rola .heroi-palco { display: grid; align-content: start; height: 100svh; overflow: clip; }
/* entrar na ênfase leva 850 ms; sair é mais rápido (500 ms), para a tela escura não rolar junto com a página */
.baralho-rola .heroi-palco { --t-folha: 500ms; }
.baralho-rola .heroi-palco.enfase { --t-folha: 850ms; }
.marco-esp { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
/* antes: uma sombra parcial cobre as folhas da linha do título do post para baixo, e desfoca o que está atrás */
.baralho-rola .heroi-palco::before, .baralho-rola .heroi-palco::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; transition: opacity var(--t-folha) var(--ease-folha); }
/* (sem backdrop-filter: no celular de verdade o desfoque de fundo junto da faixa de fotos deixava as fotos em branco) */
.baralho-rola .heroi-palco::after { z-index: 4; top: var(--linha, 60%); bottom: 0; background: linear-gradient(to bottom, rgba(2, 14, 13, 0), rgba(2, 14, 13, 0.68) 70px, rgba(2, 14, 13, 0.86)); }
/* o início saiu da tela: as folhas deixam de ser desenhadas e liberam a memória do celular */
.baralho-rola .heroi-palco.fora :is(.baralho, .heroi-moldura) { visibility: hidden; }
/* depois: a tela inteira escurece e as folhas vêm grandes para o centro, cobrindo o início */
.baralho-rola .heroi-palco::before { z-index: 1; top: 0; bottom: 0; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(2, 16, 15, 0.5), rgba(2, 16, 15, 0.7)); opacity: 0; }
.baralho-rola .heroi-palco.enfase::before { opacity: 1; }
.baralho-rola .heroi-palco.enfase::after { opacity: 0; }
.baralho-rola .posts { transform-origin: 50% 0; transition: transform var(--t-folha) var(--ease-folha); }
.baralho-rola .enfase .baralho { z-index: 2; }
.baralho-rola .enfase .posts { transform: translate(var(--mover-x, 0px), var(--subir, 0px)) scale(var(--esc, 1)); }
.baralho-rola .heroi-acoes { position: relative; z-index: 3; }
.baralho-rola .enfase .heroi-acoes { pointer-events: none; }
.baralho-rola .enfase .heroi-acoes .botao { pointer-events: auto; }
/* PC: o botão não acompanha as folhas; fica no cartão, desfocado com o resto do início */
@media (min-width: 960px) {
  .baralho-rola .heroi-acoes { transition: filter var(--t-folha) var(--ease-folha); }
  .baralho-rola .enfase .heroi-acoes { z-index: 0; filter: blur(5px); }
  .baralho-rola .enfase .heroi-acoes .botao { pointer-events: none; }
}
/* celular: na ênfase o botão do início dá lugar ao painel de agendar da base da tela */
@media (max-width: 959.98px) {
  .baralho-rola .botao-heroi { transition: opacity 250ms ease, background-color 200ms ease, box-shadow 200ms ease; }
  .baralho-rola .enfase .botao-heroi { opacity: 0; pointer-events: none; }
}
.baralho-rola .selo { transition: opacity 400ms ease; }
.baralho-rola .enfase .selo { opacity: 0; }
/* em ênfase o texto do início se desfoca: as folhas ficam com toda a atenção */
.baralho-rola :is(.heroi-etiqueta, .heroi-titulo, .heroi-fio, .heroi-sub, .heroi-dados) { transition: filter var(--t-folha) var(--ease-folha); }
.baralho-rola .enfase :is(.heroi-etiqueta, .heroi-titulo, .heroi-fio, .heroi-sub, .heroi-dados) { filter: blur(5px); }
.medindo, .medindo *, .medindo::before, .medindo::after { transition: none !important; }

/* dica antes do primeiro movimento */
.baralho-rola .baralho-dica { position: absolute; z-index: 6; left: var(--dica-x, 50%); top: var(--dica-y, 70%); display: grid; justify-items: center; gap: 6px; width: max-content; max-width: min(320px, 86vw); padding: 12px 22px 10px; border-radius: 999px; background: rgba(4, 30, 28, 0.84); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); color: #fff; font: 600 11.5px / 1.4 var(--f-texto); letter-spacing: 0.14em; text-align: center; text-transform: uppercase; transform: translate(-50%, -50%); pointer-events: none; transition: opacity 350ms ease; }
.baralho-rola .enfase .baralho-dica, .baralho-rola .rolou .baralho-dica { opacity: 0; }
.baralho-dica .icone { width: 22px; height: 22px; color: var(--ouro); }
.dica-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .dica-toque { display: none; } .dica-mouse { display: inline; } }

/* durante a ênfase: só as duas setas, discretas, logo abaixo do botão */
.baralho-rola .baralho-guia { position: absolute; z-index: 6; left: var(--guia-x, 50%); top: var(--guia-y, 85%); display: flex; align-items: center; justify-content: space-between; width: var(--guia-w, 100%); pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.96); transition: opacity 300ms ease, transform 420ms var(--ease-out), visibility 0s linear 300ms; }
.baralho-rola .baralho-guia .guia-seta { pointer-events: auto; box-shadow: 0 6px 18px -8px rgba(5, 42, 40, 0.4); }
.baralho-rola .enfase .baralho-guia { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 400ms ease 500ms, transform 600ms var(--ease-out) 500ms, visibility 0s; }
.guia-seta { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(5, 63, 60, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.78); color: var(--marca); cursor: pointer; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.guia-seta .icone { width: 18px; height: 18px; }
.guia-seta-prox .icone { transform: scaleX(-1); }
.guia-seta:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .guia-seta:hover { background: #fff; } }
/* celular: em ênfase as folhas entram no mesmo painel pontilhado do PC, com "Especialidades" no alto */
@media (max-width: 959.98px) {
  .baralho-rola .heroi-moldura { display: block; position: absolute; z-index: 2; inset: var(--moldura-y, 84px) 10px 0; border: 8px solid #fff; border-bottom: 0; border-radius: 12px 12px 0 0; pointer-events: none;
    background: radial-gradient(circle at 1px 1px, rgba(5, 63, 60, 0.13) 1px, transparent 1.6px) 0 0 / 16px 16px, radial-gradient(ellipse 90% 70% at 50% 30%, #fff, var(--nevoa-2)); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
    opacity: 0; transform: scale(0.96); transition: opacity 450ms ease, transform var(--t-folha) var(--ease-folha); }
  .baralho-rola .heroi-moldura::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--ouro), var(--ouro)) top left / 30px 3px no-repeat, linear-gradient(var(--ouro), var(--ouro)) top left / 3px 30px no-repeat; }
  .baralho-rola .moldura-cabeca { display: grid; gap: 10px; position: absolute; z-index: 2; top: calc(var(--moldura-y, 84px) + 30px); left: 40px; right: 40px; pointer-events: none; opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 600ms var(--ease-out); }
  .baralho-rola .moldura-cabeca p:first-child { font: 600 12px / 1 var(--f-texto); letter-spacing: 0.16em; text-transform: uppercase; color: var(--marca); }
  .baralho-rola .moldura-cabeca .fio-ouro { width: 36px; }
  .baralho-rola .enfase .heroi-moldura { opacity: 1; transform: none; }
  .baralho-rola .enfase .moldura-cabeca { opacity: 1; transform: none; transition-delay: 250ms; }
}

/* sem o script, os quatro posts ficam um embaixo do outro */
html:not(.js) .posts { gap: 18px; }
html:not(.js) .post { grid-area: auto; transform: none; opacity: 1; }

/* computador: o mesmo desenho do "Onde estamos" */
@media (min-width: 960px) {
  .baralho-rola .heroi-palco { padding: calc(76px + clamp(24px, 4.5vh, 48px)) 0 0; }
  .heroi-cena { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(40px, 4.5vw, 96px); }
  .baralho-rola .heroi-cena { height: 100%; }
  /* o texto fica no meio da altura (sem vão embaixo) e o título nunca passa da coluna */
  .heroi-texto { grid-column: 1; grid-row: 1; align-self: center; padding-bottom: 3vh; container-type: inline-size; }
  .heroi-etiqueta { font-size: 14px; }
  .heroi-titulo { font-size: clamp(44px, min(13.4cqi, 9.5vh), 100px); }
  .heroi-sub { display: block; margin-top: clamp(14px, 2.2vh, 22px); max-width: 30em; color: var(--tinta-2); font-size: clamp(17px, 0.5vw + 12px, 19px); line-height: 1.5; }
  .heroi-cartao { max-width: 580px; margin-top: clamp(18px, 3.4vh, 34px); padding: 4px 28px 26px; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra-2); }
  .heroi-cartao .heroi-dados { display: grid; }
  .heroi-dados .dado { padding: clamp(10px, 1.6vh, 16px) 0; }
  .heroi-dados .dado:first-child { border-top: 0; }
  .heroi-dados dd { font-size: 16.5px; line-height: 1.45; }
  .heroi-acoes { grid-auto-flow: column; justify-content: start; align-items: center; gap: 22px; margin-top: 18px; }
  .botao-heroi { width: auto; min-height: 60px; padding-inline: 32px; }
  /* a moldura branca com o canto de ouro, como a do mapa; desce até passar da borda de baixo */
  .heroi-moldura { display: block; grid-column: 2; grid-row: 1; align-self: stretch; margin-bottom: -40vh; position: relative; border: 10px solid #fff; border-radius: 10px; outline: 1px solid rgba(5, 42, 40, 0.06);
    background: radial-gradient(circle at 1px 1px, rgba(5, 63, 60, 0.13) 1px, transparent 1.6px) 0 0 / 16px 16px, radial-gradient(ellipse 80% 70% at 50% 30%, #fff, var(--nevoa-2)); box-shadow: var(--sombra-3); }
  .heroi-moldura::before { content: ""; position: absolute; left: 50%; top: 46%; width: 78%; aspect-ratio: 147 / 130; transform: translate(-50%, -50%); background: url("../img/logo-simbolo.svg") center / contain no-repeat; opacity: 0.07; pointer-events: none; }
  .moldura-cabeca { display: grid; gap: 12px; grid-column: 2; grid-row: 1; align-self: start; justify-self: start; position: relative; z-index: 1; margin: 30px 0 0 36px; max-width: 24em; }
  .moldura-cabeca p:first-child { font: 600 13px / 1 var(--f-texto); letter-spacing: 0.16em; text-transform: uppercase; color: var(--marca); }
  .moldura-cabeca .fio-ouro { width: 44px; }
  .baralho-rola .moldura-cabeca { transition: filter var(--t-folha) var(--ease-folha); }
  .baralho-rola .enfase .moldura-cabeca { filter: blur(5px); }
  .heroi-moldura::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(var(--ouro), var(--ouro)) top left / 34px 3px no-repeat, linear-gradient(var(--ouro), var(--ouro)) top left / 3px 34px no-repeat; }
  /* folhas logo abaixo de "Especialidades", passando da base da tela (medidas pelo script para cada tela) */
  .baralho { grid-column: 2; grid-row: 1; align-self: start; margin-top: var(--folha-y, 150px); }
  .posts { width: var(--folha-w, min(100% - 120px, 480px)); }
  .baralho-rola .post { aspect-ratio: var(--folha-ar, 0.8); }
  .baralho-rola .post::after { content: ""; position: absolute; z-index: 3; inset: -1px; border-radius: inherit; background: linear-gradient(to bottom, rgba(244, 247, 246, 0) 10%, rgba(244, 247, 246, 0.72) 30%, rgba(244, 247, 246, 0.95)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask: linear-gradient(to bottom, transparent 10%, #000 26%); mask: linear-gradient(to bottom, transparent 10%, #000 26%); pointer-events: none; transition: opacity var(--t-folha) var(--ease-folha); }
  .baralho-rola .enfase .post::after { opacity: 0; }
  .post[data-pos="1"] { transform: translate(14%, 2%) rotate(5deg); }
  .post[data-pos="2"] { transform: translate(-16%, 5%) rotate(-7deg); }
  .post[data-pos="3"] { transform: translate(1%, 7%) rotate(2deg) scale(0.94); }
  .post[data-pos="saindo"], .post[data-pos="lado"] { transform: translate(-108%, -3%) rotate(-11deg); }
  /* antes do primeiro movimento a sombra fica nas próprias folhas, da linha do título para baixo */
  .baralho-rola .heroi-palco::after { display: none; }
}
/* telas baixas de computador: menos espaço entre as linhas */
@media (min-width: 960px) and (max-height: 700px) { .heroi-sub { display: none; } }

/* ---------- Faixa de fotos: anda sozinha e sem fim; dá para segurar e arrastar para qualquer lado ---------- */
.filme { position: relative; overflow: hidden; padding-block: clamp(20px, 3vw, 40px); background: var(--chao); touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.filme.arrastando { cursor: grabbing; }
.filme-linha { display: flex; width: max-content; }
.filme-trilho { display: flex; gap: 12px; padding-right: 12px; flex: none; }
.filme-trilho li { flex: none; height: clamp(220px, 24vw, 340px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #f3f5f4; }
.filme-trilho img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
html:not(.js) .filme { overflow-x: auto; }

/* ---------- Sobre a clínica ---------- */
.onde { --f: #fff; border-top: 1px solid var(--linha-post); }
.onde-grade { display: grid; gap: 18px; }
.dados { display: grid; }
.dado { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--linha-post); }
.dado:last-child { border-bottom: 1px solid var(--linha-post); }
.dado dt { display: flex; align-items: center; gap: 10px; font: 500 12.5px / 1.2 var(--f-texto); letter-spacing: 0.12em; text-transform: uppercase; color: #66736f; }
.dado dt .icone { color: var(--marca); width: 18px; height: 18px; }
.dado dd { font-size: 18px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.dado dd a { font-weight: 600; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.onde .acoes { margin-top: 22px; }
/* celular: o endereço escrito, logo embaixo o mapa e depois o cartão com os horários */
.onde-cartao { padding: 4px 24px 24px; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra-2); }
.onde-endereco { padding-bottom: 4px; }
.onde-cartao .dado:first-child { border-top: 0; }
.onde-cartao .dado:last-child { border-bottom: 0; }
.onde-texto .dados .dado:last-child { border-bottom: 1px solid var(--linha-post); }
.mapa { position: relative; height: clamp(300px, 78vw, 400px); overflow: hidden; border-radius: var(--raio); background: #eef2f1; }
/* endereço e mapa são uma coisa só: cidade primeiro, depois a rua, o mapa e os horários */
.local { display: grid; grid-template-areas: "cab" "mapa" "pe"; overflow: hidden; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra-3); outline: 1px solid rgba(5, 42, 40, 0.06); }
.local-cabeca { grid-area: cab; display: grid; gap: 8px; padding: 24px 22px 20px; }
.local-cidade { display: flex; align-items: center; gap: 10px; font: 400 clamp(26px, 2vw + 16px, 36px) / 1.05 var(--f-logo); letter-spacing: 0.02em; text-transform: uppercase; color: var(--marca); }
.local-cidade .icone { width: 26px; height: 26px; flex: none; color: var(--ouro-escuro); }
.local-rua { font-style: normal; color: var(--tinta-2); font-size: 16px; line-height: 1.5; }
.local .local-mapa { grid-area: mapa; height: clamp(260px, 72vw, 380px); border: 0; border-radius: 0; box-shadow: none; outline: 0; }
.local .local-mapa::after { display: none; }
.local-pe { grid-area: pe; display: grid; gap: 16px; padding: 18px 22px 22px; border-top: 1px solid var(--linha); }
.local-pe .dado { padding: 0; border: 0; }
.local-abrir { justify-self: start; }
.mapa-quadro { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) {
  .onde-grade { grid-template-columns: 0.9fr 1.1fr; grid-template-rows: auto 1fr; grid-template-areas: "endereco mapa" "texto mapa"; column-gap: clamp(48px, 6vw, 112px); row-gap: 18px; }
  .local { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.4fr); grid-template-rows: auto 1fr; grid-template-areas: "cab mapa" "pe mapa"; }
  .local-cabeca { align-content: start; padding: 40px 36px 24px; }
  .local-pe { align-content: start; padding: 24px 36px 36px; border-top: 1px solid var(--linha); margin-inline: 36px; padding-inline: 0; }
  .local .local-mapa { height: auto; min-height: 440px; }
  .onde-endereco { grid-area: endereco; }
  .onde-texto { grid-area: texto; align-self: start; }
  .mapa { grid-area: mapa; height: auto; min-height: 480px; }
  .onde-cartao { padding-inline: 36px; }
}

/* fisioterapeutas: cartões lado a lado (no celular, deslizam para o lado) */
.equipe { margin-top: clamp(40px, 6vw, 80px); }
.equipe .cabeca { margin-bottom: clamp(28px, 4vw, 48px); }
.titulo-3 { font: 400 clamp(26px, 2.2vw + 14px, 44px) / 1.08 var(--f-logo); letter-spacing: 0.02em; text-transform: uppercase; color: var(--marca); }
.equipe-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.equipe-lista::-webkit-scrollbar { display: none; }
.fisio { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra-2); }
.fisio-foto { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(ellipse 80% 80% at 70% 20%, #0a5652, var(--petroleo)); color: var(--ouro); }
.fisio-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fisio-iniciais { font: 400 clamp(56px, 8vw, 76px) / 1 var(--f-logo); letter-spacing: 0.04em; }
.fisio-foto small { position: absolute; left: 14px; bottom: 12px; padding: 4px 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); color: #e6efed; font: 600 11px / 1.3 var(--f-texto); letter-spacing: 0.12em; text-transform: uppercase; }
.fisio-foto::after { content: ""; position: absolute; right: -6%; bottom: -14%; width: 46%; aspect-ratio: 147 / 130; background: url("../img/logo-simbolo.svg") center / contain no-repeat; opacity: 0.16; }
.fisio-corpo { display: grid; align-content: start; gap: 8px; padding: 20px 22px 22px; }
.fisio-corpo > * { margin: 0; }
.fisio-nome { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fisio-etiqueta { color: var(--marca); font: 600 12px / 1 var(--f-texto); letter-spacing: 0.16em; text-transform: uppercase; }
.fisio-nome { font: 400 23px / 1.15 var(--f-logo); letter-spacing: 0.02em; text-transform: uppercase; color: var(--marca); }
.fisio-registro { color: var(--tinta-2); font-size: 14px; }
.fisio .pro-tags { margin-top: 4px; }
.fisio-sobre { color: var(--tinta-2); font-size: 15.5px; line-height: 1.5; }
.fisio .botao { margin-top: 10px; width: 100%; }
.fisio .botao .icone { color: var(--ouro); }
@media (min-width: 700px) {
  .equipe-lista { grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; gap: 24px; }
}
/* celular: cartões menores, os dois na tela */
@media (max-width: 699.98px) {
  .fisio-foto { aspect-ratio: 1; }
  .fisio-iniciais { font-size: 40px; }
  .fisio-foto small { left: 8px; bottom: 8px; padding: 3px 6px; font-size: 9px; letter-spacing: 0.08em; }
  .fisio-corpo { gap: 6px; padding: 12px 12px 14px; }
  .fisio-etiqueta { font-size: 10px; letter-spacing: 0.12em; }
  .fisio-nome { font-size: 16px; gap: 4px 6px; }
  .fisio-registro { font-size: 12px; }
  .fisio .pro-tags li { padding: 3px 6px; font-size: 9.5px; }
  .fisio-sobre { font-size: 13px; line-height: 1.45; }
}

/* ---------- Fechamento ---------- */
.fecho { position: relative; overflow: hidden; padding-block: clamp(88px, 10vw, 160px); background: #fff; color: var(--marca); text-align: center; border-top: 1px solid var(--linha-post); }
.fecho-dentro { display: grid; justify-items: center; gap: 22px; }
.fecho-a { width: 64px; height: auto; }
.fecho .titulo { max-width: 16ch; }
.fecho .titulo::after { content: ""; display: block; width: 56px; height: 4px; margin: 26px auto 0; background: var(--ouro); }
.fecho .botao { margin-top: 8px; }

/* ---------- Rodapé ---------- */
.rodape { padding-block: 56px calc(40px + 84px); background: var(--escuro); color: var(--sobre-escuro); --foco: #fff; --logo-cor: #fff; font-size: 15px; }
.rodape-grade { display: grid; gap: 28px; }
.rodape-marca { display: grid; gap: 14px; }
.rodape-marca p, .rodape-col p { color: var(--sobre-escuro-2); }
.rodape-col h2 { margin-bottom: 6px; font: 600 12.5px / 1.2 var(--f-texto); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ouro); }
.rodape-col ul { display: grid; }
.rodape-col a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.rodape-fim { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); color: var(--sobre-escuro-2); font-size: 14px; }
@media (min-width: 760px) { .rodape-grade { grid-template-columns: 1.4fr repeat(3, 1fr); } .rodape { padding-bottom: 40px; } }

/* ---------- Profundidade: fundos em camadas, sombras e fotos decoradas ----------
   o branco continua sendo a base; a névoa e as sombras separam os planos. */

/* início: névoa suave atrás dos posts e uma placa pontilhada que dá chão ao carrossel */
.heroi-palco { background: radial-gradient(ellipse 60% 70% at 85% 40%, var(--nevoa-2), transparent 70%), radial-gradient(ellipse 40% 50% at 10% 0%, rgba(250, 190, 3, 0.07), transparent 70%), #fff; }
/* fim do início: uma linha clara com o fio de ouro no meio separa os posts da faixa de fotos */
.heroi::after { content: ""; position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #cfdad7 12%, #cfdad7 88%, transparent); }
.heroi::before, .heroi::after { transition: opacity 400ms ease; }
.heroi:has(.enfase)::before, .heroi:has(.enfase)::after { opacity: 0; }
.heroi::before { content: ""; position: absolute; z-index: 6; left: 50%; bottom: 0; width: 56px; height: 4px; margin-left: -28px; background: var(--ouro); }
.posts::before { content: ""; position: absolute; z-index: -1; inset: 6% -20% 4% -20%; pointer-events: none; border-radius: 14px; background: radial-gradient(circle at 1px 1px, rgba(5, 63, 60, 0.16) 1px, transparent 1.6px) 0 0 / 14px 14px; -webkit-mask: radial-gradient(ellipse at center, #000 30%, transparent 72%); mask: radial-gradient(ellipse at center, #000 30%, transparent 72%); }
.post { box-shadow: var(--sombra-2); }
/* a sombra mais funda da folha da frente é uma camada que só acende: trocar box-shadow a cada quadro pesava 2–3× na troca de folha */
.post::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; box-shadow: var(--sombra-3); opacity: 0; transition: opacity 400ms ease; pointer-events: none; }
.post[data-pos="0"]::before { opacity: 1; }
.botao-heroi { box-shadow: 0 1px 2px rgba(5, 42, 40, 0.2), 0 14px 30px -14px rgba(5, 63, 60, 0.65); }

/* faixa de fotos: cada foto numa moldura branca, levemente torta, com sombra */
.filme { background: linear-gradient(180deg, #fff 0%, var(--nevoa) 55%, var(--nevoa) 100%); padding-block: clamp(32px, 4vw, 56px); }
.filme-trilho { gap: 22px; padding-right: 22px; padding-block: 10px 18px; }
.filme-trilho li { padding: 8px 8px 30px; border-radius: 4px; background: #fff; box-shadow: var(--sombra-2); overflow: visible; position: relative; }
.filme-trilho li:nth-child(odd) { transform: rotate(-1.6deg); }
.filme-trilho li:nth-child(even) { transform: rotate(1.3deg) translateY(10px); }
.filme-trilho li:nth-child(3n)::before { content: ""; position: absolute; top: -9px; left: 50%; width: 54px; height: 18px; margin-left: -27px; background: rgba(250, 190, 3, 0.55); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.filme-trilho li::after { content: ""; position: absolute; left: 10px; bottom: 11px; width: 18px; height: 3px; background: var(--ouro); }
.filme-trilho img { border-radius: 2px; }

/* sobre a clínica: o mapa numa moldura branca com o canto de ouro */
.onde { --f: #fff; background: radial-gradient(ellipse 50% 60% at 90% 40%, var(--nevoa-2), transparent 70%), #fff; }
.mapa { border: 10px solid #fff; box-shadow: var(--sombra-3); outline: 1px solid rgba(5, 42, 40, 0.06); }
.mapa::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(var(--ouro), var(--ouro)) top left / 34px 3px no-repeat, linear-gradient(var(--ouro), var(--ouro)) top left / 3px 34px no-repeat; }

/* chamada final: névoa em volta e o "A" grande, bem claro, ao fundo */
.fecho { isolation: isolate; background: radial-gradient(ellipse 60% 70% at 50% 50%, #fff 30%, var(--nevoa) 100%); }
.fecho::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(760px, 110vw); aspect-ratio: 147 / 130; transform: translate(-50%, -50%); background: url("../img/logo-simbolo.svg") center / contain no-repeat; opacity: 0.06; }
.fecho-dentro { position: relative; padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 80px); border-radius: 12px; background: rgba(255, 255, 255, 0.88); box-shadow: var(--sombra-3); max-width: 760px; margin-inline: auto; }
.fecho .botao { box-shadow: 0 14px 30px -14px rgba(5, 63, 60, 0.65); }

/* janela de agendar: cartões com sombra */
.pro { box-shadow: var(--sombra-1); }

/* ---------- Agendar sempre à mão ---------- */
/* celular: o agendar é um painel claro que sai da borda de baixo da tela, com o botão dentro; aparece fora do início e na ênfase das folhas, e some onde a seção já tem o mesmo botão. No PC o cabeçalho fixo já tem o botão */
.barra-agendar { position: fixed; left: 8px; right: 8px; bottom: 0; z-index: 40; padding: 8px 8px calc(16px + env(safe-area-inset-bottom)); border: 1px solid rgba(5, 42, 40, 0.08); border-bottom: 0; border-radius: 18px 18px 0 0; background: rgba(247, 249, 248, 0.97); box-shadow: 0 -14px 30px -18px rgba(5, 42, 40, 0.45); transform: translateY(110%); opacity: 0; transition: transform 420ms var(--ease-gaveta), opacity 300ms ease; }
.barra-agendar .botao { width: 100%; min-height: 52px; border-radius: 12px; }
/* celular: na tela inicial vale o botão do próprio início; o painel aparece nas especialidades (ênfase) e segue até o fechamento */
:root.mostrar-agendar:has(.heroi-palco.rolou) .barra-agendar, :root:has(.heroi-palco.enfase) .barra-agendar { transform: none; opacity: 1; }
@media (max-width: 759.98px) { .baralho-rola .rolou .botao-heroi { opacity: 0; pointer-events: none; } }
@media (min-width: 760px) {
  .barra-agendar { display: none; }
}
@keyframes chamar { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }

/* ---------- Janela: com quem agendar ---------- */
.escolha { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--tinta); overflow: hidden; }
.escolha::backdrop { background: transparent; }
.escolha[open] { display: grid; align-items: end; }
.escolha-fundo { position: absolute; inset: 0; background: rgba(3, 30, 28, 0.55); opacity: 0; transition: opacity 260ms ease; }
.escolha-caixa { position: relative; display: grid; gap: 18px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.5); transform: translateY(100%); transition: transform 420ms var(--ease-gaveta); }
.escolha.aberta .escolha-fundo { opacity: 1; }
.escolha.aberta .escolha-caixa { transform: none; }
.escolha.saindo .escolha-caixa { transition-duration: 260ms; }
.escolha-alca { justify-self: center; width: 44px; height: 5px; border-radius: 99px; background: #d3dcda; }
.escolha-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.escolha-topo h2 { font: 400 clamp(24px, 1.6vw + 18px, 34px) / 1.08 var(--f-logo); letter-spacing: 0.02em; text-transform: uppercase; color: var(--marca); text-wrap: balance; }
.escolha-topo h2::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 14px; background: var(--ouro); }
.escolha-assunto { width: fit-content; margin-bottom: 12px; color: var(--marca); font: 600 12.5px / 1.4 var(--f-texto); letter-spacing: 0.14em; text-transform: uppercase; }
.escolha-assunto[hidden] { display: none; }
.escolha-fechar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--linha-post); border-radius: 10px; background: #fff; color: var(--marca); cursor: pointer; transition: transform 160ms var(--ease-out); }
.escolha-fechar:active { transform: scale(0.92); }
.pros { display: grid; gap: 12px; }
.pro { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px; border: 1px solid var(--linha-post); border-radius: var(--raio); background: #fff; }
.escolha.aberta .pro { animation: subir 420ms var(--ease-out) both; }
.escolha.aberta .pro:nth-child(2) { animation-delay: 70ms; }
.pro-rosto { grid-row: span 2; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 8px; background: var(--petroleo); color: var(--ouro); font: 400 24px / 1 var(--f-logo); letter-spacing: 0.04em; }
.pro-rosto img { width: 100%; height: 100%; object-fit: cover; }
.pro h3 { align-self: end; font: 400 21px / 1.2 var(--f-logo); letter-spacing: 0.02em; text-transform: uppercase; color: var(--marca); }
.pro-registro { align-self: start; color: var(--tinta-2); font-size: 14px; }
.pro-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pro-tags { gap: 6px; }
.pro-tags li { font: 600 12px / 1.6 var(--f-texto); letter-spacing: 0.12em; text-transform: uppercase; color: var(--marca); }
.pro-tags li { padding: 3px 8px; border: 1px solid var(--linha-post); border-radius: 4px; }
.pro-sobre { grid-column: 1 / -1; color: var(--tinta-2); font-size: 15px; line-height: 1.5; }
.pro-acoes { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }
.pro-acoes .botao { flex: 1; }
.pro-acoes .botao-linha { flex: 0 0 auto; padding-inline: 18px; }
.exemplo { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 4px; text-transform: none; background: color-mix(in srgb, var(--ouro) 40%, transparent); color: var(--tinta); font: 600 11px / 1.6 var(--f-texto); letter-spacing: 0; vertical-align: 3px; }
@media (min-width: 760px) {
  .escolha[open] { place-items: center; }
  .escolha-caixa { width: min(820px, 100% - 48px); padding: 32px; border-radius: 12px; transform: translateY(16px) scale(0.97); opacity: 0; transition: transform 300ms var(--ease-out), opacity 200ms ease; }
  .escolha.aberta .escolha-caixa { opacity: 1; }
  .escolha-alca { display: none; }
  .pros { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pro { padding: 22px; align-content: start; }
}
html.janela-aberta { overflow: hidden; }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* entrada do início: a dor é riscada, o movimento ondula, a vida ganha o traço */
  .selo.aberto .selo-ponto::after { animation: onda-selo 2s var(--ease-out) infinite; }
  /* o início entra com calma: linhas sobem, o fio de ouro se estende, os posts se assentam */
  .heroi-etiqueta { animation: subir 700ms var(--ease-out) both; }
  .heroi-titulo > span { animation: erguer 900ms var(--ease-out) both; }
  .heroi-titulo > span:nth-child(1) { animation-delay: 80ms; }
  .heroi-titulo > span:nth-child(2) { animation-delay: 180ms; }
  .heroi-titulo > span:nth-child(3) { animation-delay: 280ms; }
  .dor::after { animation: riscar 700ms var(--ease-in-out) 900ms both; }
  .dor { animation: apagar-dor 700ms ease 1100ms both; }
  .mov i { animation: onda-letra 2.6s var(--ease-in-out) calc(1400ms + var(--i) * 70ms) infinite; }
  .vida::after { animation: pincel 900ms var(--ease-in-out) 1300ms both; transform-origin: left center; }
  .heroi-acoes { animation: subir 800ms var(--ease-out) 500ms both; }
  .post { animation: assentar 1000ms var(--ease-out) backwards; }
  /* depois da entrada, a animação não volta: tirar o "cutuca" ao arrastar reiniciava a entrada e a folha sumia */
  .assentado .post { animation: none; }
  .post[data-pos="2"] { animation-delay: 450ms; }
  .post[data-pos="1"] { animation-delay: 550ms; }
  .post[data-pos="0"] { animation-delay: 650ms; }
  /* o desenho do post da frente se traça cada vez que ele chega */
  .post[data-pos="0"] .post-ilustra [pathLength] { stroke-dasharray: 1; animation: tracar 1100ms var(--ease-in-out) 300ms backwards; }
  .fecho-a { animation: flutuar 5s ease-in-out infinite alternate; }

  /* rolagem: o que entra na tela sobe e aparece */
  .js [data-revelar] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-revelar].visivel { opacity: 1; transform: none; }
  /* a seta da dica chama para rolar */
  .baralho-dica .icone { animation: chamar 1.6s var(--ease-in-out) infinite; }
  /* ao acender, a folha da frente dá um toque para o lado: mostra que dá para arrastar */
  .enfase .post.cutuca { animation: cutucar 1100ms var(--ease-in-out) both; }
  /* o mapa chega devagar */
  .js .mapa { transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); }
  /* topo encolhe ao rolar */
  .topo-barra { transition: box-shadow 250ms ease, transform 300ms var(--ease-out), min-height 300ms var(--ease-out); }
  .compacto .topo-barra { min-height: 58px; }
}
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
@keyframes surgir { from { opacity: 0; } }
@keyframes erguer { from { opacity: 0; transform: translateY(0.4em); filter: blur(8px); } }
@keyframes flutuar { to { transform: translateY(-10px); } }
@keyframes aproximar-foto { from { opacity: 0.4; scale: 0.9; } }
@keyframes onda-selo { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(2); } }
@keyframes riscar { from { transform: scaleX(0); } }
@keyframes apagar-dor { to { color: #b9c6c3; } }
@keyframes onda-letra { 0%, 40%, 100% { transform: none; } 20% { transform: translateY(-0.12em) rotate(-3deg); } }
@keyframes chamar { 50% { transform: translateY(5px); } }
@keyframes tracar { from { stroke-dashoffset: 1; } }
@keyframes assentar { from { opacity: 0; transform: translateY(24px) rotate(0deg); } }
@keyframes aparecer { from { opacity: 0; transform: scale(0.96); } }
@keyframes aproximar { from { transform: scale(1.14); } }
@keyframes pincel { from { transform: scaleX(0.001); } }
@keyframes cair { 0% { opacity: 0; transform: translateY(-60px) rotate(-45deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) rotate(-45deg); } }
@keyframes onda { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(3.2); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* tira os enfeites que repetem sem parar; as trocas que a pessoa faz continuam animadas */
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

.marco-topo { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
