/* Identidade visual COV — novembro de 2026 */
:root {
  --azul: #17486b;
  --azul-escuro: #12354f;
  --azul-claro: #edf4f5;
  --verde: #34866f;
  --texto: #233544;
  --texto-suave: #657582;
  --cinza: #f5f7f6;
  --borda: #dfe7e7;
  --sombra: 0 18px 50px rgba(20, 54, 75, .09);
  --sombra-forte: 0 24px 65px rgba(20, 54, 75, .15);
  --raio: 22px;
  --container: 1200px;
}

html { scroll-padding-top: 92px; }
body {
  color: var(--texto);
  background: #fff;
  font-family: 'Open Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  letter-spacing: -.012em;
}
::selection { color: #fff; background: var(--verde); }
a { text-underline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #80b8a7; outline-offset: 3px; }
.container { max-width: 1200px; padding-right: 28px; padding-left: 28px; }
section { padding: 88px 0; scroll-margin-top: 88px; }
h1, h2, h3, h4, h5, h6 { color: var(--azul-escuro); letter-spacing: -.035em; }
.reveal { opacity: 1; transform: none; }
.section-title { margin: 0; text-align: left; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.16; }
.section-sub { max-width: 670px; margin: 14px 0 0; text-align: left; font-size: 1.02rem; }
.title-bar { align-items: flex-start; margin-bottom: 38px; }
.title-bar::after { width: 48px; height: 3px; margin: 16px 0 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--verde);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* Navegação */
.site-header {
  position: sticky;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,231,231,.86);
  box-shadow: 0 4px 20px rgba(18,53,79,.035);
  backdrop-filter: blur(16px);
}
.header-inner { max-width: 1256px; min-height: 82px; padding: 10px 28px; }
.logo { flex: 0 0 auto; }
.logo img { width: auto; height: 52px; object-fit: contain; }
.nav-menu { gap: 2px; }
.nav-menu a { padding: 10px 13px; border-radius: 999px; color: #455766; font-size: .88rem; font-weight: 600; }
.nav-menu a:hover, .nav-menu a.active { color: var(--azul); background: #edf4f3; }
.header-actions .btn { padding: 11px 19px; font-size: .86rem; }
.btn {
  min-height: 48px;
  justify-content: center;
  border: 1px solid var(--azul);
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--azul);
  box-shadow: 0 8px 18px rgba(23,72,107,.12);
  color: #fff;
  font-size: .91rem;
  font-weight: 700;
}
.btn:hover { background: var(--azul-escuro); border-color: var(--azul-escuro); box-shadow: 0 12px 24px rgba(23,72,107,.18); transform: translateY(-2px); }
.btn-outline { color: var(--azul); background: transparent; box-shadow: none; }
.btn-outline:hover { color: #fff; background: var(--azul); }
.btn-wpp { color: #fff; background: #21815f; border-color: #21815f; }
.btn-wpp:hover { color: #fff; background: #176c4e; border-color: #176c4e; }
.menu-toggle { border-radius: 12px; }

/* Hero da home */
.hero {
  min-height: 0;
  padding: clamp(54px, 7vw, 90px) 0;
  background: radial-gradient(ellipse at 83% 6%, rgba(216,235,228,.55), transparent 34%), #f7f9f7;
  color: var(--texto);
}
.hero-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(36px, 6vw, 76px); }
.hero-content { max-width: 590px; }
.hero .eyebrow {
  display: inline-flex;
  padding: 0;
  margin: 0 0 22px;
  color: var(--verde);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 { max-width: 590px; margin: 0 0 20px; color: var(--azul-escuro); font-size: clamp(2.7rem, 5vw, 4.35rem); line-height: 1.04; font-weight: 700; }
.hero p { max-width: 540px; margin: 0 0 28px; color: #586a77; font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.75; opacity: 1; }
.hero-actions { gap: 12px; }
.hero .btn-outline { border-color: #b9cacd; color: var(--azul); }
.hero .btn-outline:hover { border-color: var(--azul); color: #fff; }
.hero-context { display: flex; align-items: center; gap: 9px; margin-top: 25px; color: #687984; font-size: .84rem; font-weight: 600; }
.hero-context i { color: var(--verde); }
.hero-media { position: relative; min-width: 0; }
.hero-media::before { position: absolute; inset: 18px -18px -18px 18px; z-index: 0; border: 1px solid #d9e8e2; border-radius: 30px; content: ''; }
.hero-media > img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 1.24; border-radius: 28px; object-fit: cover; object-position: center; box-shadow: 0 24px 60px rgba(24,60,68,.16); }
.hero-image-note { position: absolute; z-index: 2; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 44px); padding: 13px 17px; border: 1px solid rgba(255,255,255,.78); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(17,48,61,.13); color: var(--azul-escuro); font-size: .8rem; font-weight: 700; line-height: 1.35; backdrop-filter: blur(10px); }
.hero-image-note i { color: var(--verde); font-size: 1.1rem; }

/* Serviços: seletor de tratamentos e conteúdo em um painel */
.especialidades { background: #f0f5f3; }
.services-intro { max-width: 720px; margin: 0 0 34px; text-align: left; }
.services-intro .badge { margin: 0 0 10px; }
.services-intro .section-title { text-align: left; }
.services-intro .section-sub { max-width: 600px; margin: 12px 0 0; }
.services-intro::after { display: none; }
.service-explorer { display: grid; grid-template-columns: minmax(235px, .72fr) minmax(0, 1.75fr); align-items: stretch; gap: 22px; }
.service-selector { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px solid rgba(213,226,222,.9); border-radius: 24px; background: #fff; box-shadow: 0 12px 35px rgba(24,60,68,.055); }
.service-trigger { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 53px; padding: 10px 12px; border: 1px solid transparent; border-radius: 15px; background: transparent; color: #506270; text-align: left; font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; transition: background .2s ease, color .2s ease, border .2s ease; }
.service-trigger::after { margin-left: auto; color: #92a2a7; font-family: 'Font Awesome 6 Free'; font-size: .75rem; font-weight: 900; content: '\f054'; transition: transform .2s ease; }
.service-trigger:hover { color: var(--azul); background: #f6f9f8; }
.service-trigger[aria-selected="true"] { border-color: #dceae5; background: #edf5f1; color: var(--azul-escuro); }
.service-trigger[aria-selected="true"]::after { color: var(--verde); transform: translateX(2px); }
.service-trigger-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 11px; background: #eff4f5; color: var(--azul); font-size: .9rem; }
.service-trigger[aria-selected="true"] .service-trigger-icon { background: #dcebe4; color: var(--verde); }
.service-trigger:focus-visible { outline-offset: 1px; }
.service-feature { display: grid; min-width: 0; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid #e2e9e7; border-radius: 25px; background: #fff; box-shadow: 0 14px 38px rgba(24,60,68,.08); }
.service-feature-media { min-height: 100%; background: #e5eeeb; }
.service-feature-media img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.service-feature-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 3.3vw, 42px); }
.service-detail-kicker { color: var(--verde); font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.service-feature h3 { margin: 9px 0 13px; color: var(--azul-escuro); font-size: clamp(1.55rem, 2.4vw, 2.05rem); line-height: 1.16; }
.service-feature-copy { color: #5b6b77; font-size: .96rem; line-height: 1.72; }
.service-detail[hidden] { display: none !important; }
.service-detail-note { margin-top: 13px; color: #71808a; font-size: .78rem; line-height: 1.55; }
.service-feature .service-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.service-feature .service-detail-actions .btn { min-height: 44px; padding: 10px 17px; font-size: .82rem; }
.service-disclaimer { margin: 14px 0 0; color: #78858a; font-size: .75rem; }

/* Sobre e princípios */
.sobre-intro { background: #fff; }
.sobre-intro-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(42px, 7vw, 82px); }
.sobre-intro-figure { position: relative; }
.sobre-intro-figure::after { position: absolute; right: -12px; bottom: -12px; z-index: 0; width: 42%; height: 38%; border-radius: 20px; background: #e7f1ed; content: ''; }
.sobre-intro-figure img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.13; border-radius: 25px; object-fit: cover; box-shadow: var(--sombra); }
.sobre-intro-grid .badge { display: inline-flex; margin-bottom: 13px; }
.sobre-intro-grid h2 { max-width: 600px; margin: 0 0 18px; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.16; }
.sobre-intro-grid p { margin-bottom: 13px; color: #63727c; font-size: .98rem; }
.mvv-grid { gap: 18px; }
.mvv-card { padding: 30px 28px; border: 1px solid #e6ecea; border-radius: 20px; box-shadow: 0 10px 30px rgba(20,54,75,.045); text-align: left; }
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.mvv-card img { width: 58px; height: 58px; margin: 0 0 18px; padding: 9px; border-radius: 16px; background: #edf4f2; }
.mvv-card h3 { margin-bottom: 9px; color: var(--azul); font-size: 1.2rem; }
.mvv-card p { font-size: .9rem; }
.mvv-card ul li { color: #65747d; font-size: .86rem; }

/* Convênios, diferenciais e espaços */
.planos { background: #f7f9f8; }
.planos-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.plano-card { display: grid; min-height: 105px; place-items: center; padding: 18px; border-color: #e6ecea; border-radius: 17px; box-shadow: none; }
.plano-card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.plano-card img { width: 100%; max-width: 165px; max-height: 64px; object-fit: contain; }
.dif-grid { gap: 20px; }
.dif-card { border: 1px solid #e7ecea; border-radius: 21px; box-shadow: 0 12px 32px rgba(20,54,75,.055); }
.dif-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.dif-card img { height: 205px; }
.dif-card .dif-body { padding: 22px 23px 25px; text-align: left; }
.dif-card h3 { margin-bottom: 8px; color: var(--azul-escuro); font-size: 1.12rem; }
.dif-card p { color: #687782; font-size: .89rem; }
.galeria-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.galeria-grid a { aspect-ratio: 1.2; border-radius: 15px; box-shadow: none; background: #e9efed; }
.galeria-grid img { transition: transform .35s ease; }
.galeria-grid a:hover img { transform: scale(1.045); }

/* Blog e cartões de leitura */
.blog { background: #f3f6f5; }
.blog > .container > .title-bar { margin-bottom: 30px; }
.posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { border: 1px solid #e4eae8; border-radius: 20px; box-shadow: 0 10px 28px rgba(20,54,75,.05); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.post-card .post-img { height: auto; aspect-ratio: 1.62; background: #e5ecea; }
.post-body { padding: 21px 22px 23px; }
.post-meta { margin-bottom: 9px; color: var(--verde); font-size: .7rem; letter-spacing: .08em; }
.post-body h3 { margin-bottom: 16px; font-size: 1.08rem; line-height: 1.4; }
.post-body .read-more { color: var(--azul); font-size: .85rem; font-weight: 700; }
.blog-loading { min-height: 130px; display: grid; place-items: center; padding: 36px 20px; border: 1px dashed #cbd8d5; border-radius: 18px; color: #657582; }
.page-hero { padding: 66px 0 54px; background: radial-gradient(ellipse at 85% 0, rgba(216,235,228,.65), transparent 40%), #f4f7f5; color: var(--texto); text-align: left; }
.page-hero h1 { margin-bottom: 12px; color: var(--azul-escuro); font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1.08; }
.page-hero p { max-width: 620px; margin: 0; color: #61717d; font-size: 1.03rem; }
.page-hero .container::before { display: block; margin-bottom: 10px; color: var(--verde); content: 'CENTRO ORTOPÉDICO VALQUEIRE  /  CONTEÚDO'; font-size: .72rem; font-weight: 700; letter-spacing: .13em; }
.blog:has(#blog-posts) { min-height: 360px; padding-top: 38px; }

/* Artigos WordPress */
.artigo { min-height: 62vh; padding: 48px 0 90px; background: #f4f7f6; }
.artigo-wrap { max-width: 860px; padding: clamp(24px, 5vw, 62px); border: 1px solid #e4eae8; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(20,54,75,.055); }
.artigo-meta { color: var(--verde); font-size: .73rem; letter-spacing: .1em; }
.artigo-titulo { margin: 0 0 25px; font-size: clamp(2rem, 4vw, 3.05rem); line-height: 1.14; }
.artigo-capa { max-height: 500px; margin-bottom: 32px; border-radius: 17px; box-shadow: none; object-fit: cover; }
.artigo-content { color: #465762; font-size: 1.02rem; line-height: 1.85; }
.artigo-content p { margin-bottom: 20px; }
.artigo-content h2, .artigo-content h3, .artigo-content h4 { margin: 36px 0 13px; color: var(--azul-escuro); line-height: 1.25; }
.artigo-content h2 { font-size: 1.7rem; }
.artigo-content h3 { font-size: 1.36rem; }
.artigo-content ul, .artigo-content ol { padding-left: 22px; }
.artigo-content li { margin-bottom: 8px; }
.artigo-content img { box-shadow: none; }
.artigo-content blockquote { border-left-color: var(--verde); background: #eff5f2; color: #536872; }
.artigo-share { margin-top: 34px; }
.share-btn { width: 40px; height: 40px; font-size: 1rem; }
.artigo .btn { margin-top: 28px; }

/* Contato e rodapé */
.contato { background: #f1f5f4; color: var(--texto); }
.contato .section-title, .contato h3 { color: var(--azul-escuro); }
.contato .title-bar::after { background: var(--verde); }
.contato-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; }
.contato-info { height: 100%; padding: clamp(24px, 4vw, 38px); border-radius: 22px; background: var(--azul-escuro); color: #fff; }
.contato-info .info-item { gap: 14px; margin-bottom: 21px; }
.contato-info .info-icon { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.12); color: #b6ddce; }
.contato-info h4 { margin-bottom: 4px; color: #fff; font-size: .93rem; }
.contato-info p { color: rgba(255,255,255,.78); font-size: .86rem; line-height: 1.65; }
.contato-info a:not(.btn) { color: rgba(255,255,255,.85) !important; }
.contato-info .btn-wpp { background: #21815f; border-color: #21815f; }
.contato-img { overflow: hidden; min-height: 340px; border-radius: 22px; background: #e1e9e7; }
.contato-img img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; box-shadow: none; }
.map-wrap { margin: 22px 0 0; border: 8px solid #fff; border-radius: 21px; box-shadow: 0 12px 34px rgba(20,54,75,.08); }
.map-wrap iframe { height: 340px; }
.site-footer { padding: 50px 0 0; background: #102f46; color: rgba(255,255,255,.73); }
.footer-grid { grid-template-columns: 1.45fr .75fr 1fr; gap: 46px; }
.site-footer img { width: 190px; height: auto !important; object-fit: contain; }
.site-footer h4 { margin-bottom: 13px; font-size: .95rem; }
.site-footer p, .site-footer li { font-size: .84rem; }
.footer-bottom { padding: 18px 0; font-size: .78rem; }
.wpp-float { width: 54px; height: 54px; right: 20px; bottom: 20px; font-size: 1.55rem; }
.wpp-modal-content { border: 1px solid #e3eae7; border-radius: 18px; box-shadow: 0 22px 60px rgba(13,39,56,.22); }

@media (max-width: 1000px) {
  .header-inner { gap: 10px; }
  .nav-menu a { padding-right: 9px; padding-left: 9px; font-size: .82rem; }
  .hero-layout { gap: 35px; }
  .service-explorer { grid-template-columns: minmax(210px, .75fr) minmax(0, 1.55fr); gap: 15px; }
  .service-feature { grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr); }
  .service-feature-media img { min-height: 360px; }
  .planos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .container { padding-right: 22px; padding-left: 22px; }
  section { padding: 68px 0; }
  .site-header { z-index: 10000; }
  .header-inner { min-height: 72px; padding: 8px 22px; }
  .logo img { height: 46px; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: inline-flex; }
  .nav-menu { position: fixed; top: 0; right: -100%; left: auto; z-index: 10001; display: flex; width: 78%; max-width: 320px; height: 100vh; flex-direction: column; align-items: flex-start; gap: 6px; padding: 86px 26px 26px; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: none; visibility: hidden; transition: right .35s ease, visibility .35s; }
  .nav-menu.open { right: 0; visibility: visible; }
  .nav-menu a { width: 100%; }
  .nav-overlay { position: fixed; top: 0; left: 0; z-index: 9999; width: 100%; height: 100%; background: rgba(14,36,51,.42); opacity: 0; visibility: hidden; transition: .3s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .nav-menu a { font-size: .95rem; }
  .hero { padding: 58px 0 68px; }
  .hero-layout { grid-template-columns: 1fr; gap: 35px; }
  .hero-content { max-width: 650px; }
  .hero h1 { max-width: 640px; font-size: clamp(2.55rem, 8vw, 3.7rem); }
  .hero-media { max-width: 650px; }
  .hero-media > img { aspect-ratio: 1.45; }
  .hero-media::before { inset: 12px -10px -10px 12px; border-radius: 23px; }
  .service-explorer { grid-template-columns: 1fr; }
  .service-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 9px; }
  .service-trigger { min-height: 48px; padding: 8px; font-size: .8rem; }
  .service-trigger::after { display: none; }
  .service-trigger-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .service-feature { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .service-feature-media img { min-height: 335px; }
  .sobre-intro-grid { grid-template-columns: 1fr; gap: 35px; text-align: left; }
  .sobre-intro-figure { max-width: 560px; }
  .sobre-intro-grid .reveal { max-width: 680px; }
  .mvv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mvv-card:last-child { grid-column: 1 / -1; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .galeria-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contato-grid { grid-template-columns: 1fr; }
  .contato-img, .contato-img img { min-height: 280px; }
  .footer-grid { grid-template-columns: 1.2fr .8fr; gap: 28px; }
}
@media (max-width: 540px) {
  .container { padding-right: 18px; padding-left: 18px; }
  section { padding: 58px 0; }
  .section-title { font-size: 1.85rem; }
  .section-sub { font-size: .94rem; }
  .header-inner { padding-right: 18px; padding-left: 18px; }
  .logo img { height: 42px; }
  .hero { padding: 46px 0 58px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.05rem); }
  .hero p { font-size: .98rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { flex: 1 1 auto; padding-right: 15px; padding-left: 15px; font-size: .82rem; }
  .hero-media > img { aspect-ratio: 1.08; border-radius: 21px; }
  .hero-media::before { display: none; }
  .hero-image-note { right: 12px; bottom: 12px; padding: 10px 12px; font-size: .72rem; }
  .services-intro { margin-bottom: 24px; }
  .service-selector { gap: 4px; }
  .service-trigger { gap: 7px; min-height: 48px; padding: 6px; font-size: .73rem; line-height: 1.25; }
  .service-trigger-icon { width: 27px; height: 27px; flex-basis: 27px; border-radius: 9px; font-size: .78rem; }
  .service-feature { grid-template-columns: 1fr; border-radius: 20px; }
  .service-feature-media img { min-height: 0; height: auto; aspect-ratio: 1.55; }
  .service-feature-body { padding: 23px 21px 25px; }
  .service-feature h3 { font-size: 1.6rem; }
  .service-feature-copy { font-size: .9rem; }
  .service-feature .service-detail-actions .btn { flex: 1 1 auto; }
  .sobre-intro-figure img { aspect-ratio: 1.05; }
  .mvv-grid { grid-template-columns: 1fr; }
  .mvv-card:last-child { grid-column: auto; }
  .planos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plano-card { min-height: 83px; padding: 12px; }
  .dif-grid { grid-template-columns: 1fr; }
  .dif-card img { height: 190px; }
  .galeria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card .post-img { aspect-ratio: 1.65; }
  .page-hero { padding: 46px 0 40px; }
  .page-hero h1 { font-size: 2.55rem; }
  .page-hero p { font-size: .95rem; }
  .artigo { padding: 24px 0 58px; }
  .artigo-wrap { padding: 23px 19px; border-radius: 18px; }
  .artigo-titulo { font-size: 1.85rem; }
  .artigo-content { font-size: .96rem; }
  .share-btn { width: 38px; height: 38px; }
  .contato-info { padding: 23px 19px; }
  .contato-info .btn { width: 100%; padding-right: 12px; padding-left: 12px; font-size: .8rem; }
  .contato-img, .contato-img img { min-height: 220px; }
  .map-wrap iframe { height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding-top: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Acabamento responsivo: CTA fixo no cabeçalho e sem rolagem lateral */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe { max-width: 100%; }
.container, .header-inner, main, section, footer, .artigo-wrap, .artigo-content { min-width: 0; }
h1, h2, h3, p, li, a { overflow-wrap: anywhere; }
.artigo-content, .artigo-content p, .artigo-content li { overflow-wrap: anywhere; }
.artigo-content table { display: block; max-width: 100%; overflow-x: auto; }

/* Fotos e ilustrações com cantos quase retos */
img { border-radius: 2px !important; }
.service-feature, .post-card, .dif-card { border-radius: 2px !important; }

/* Revelação ao rolar: IntersectionObserver nativo, sem biblioteca externa */
html.motion-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .72s ease, transform .72s cubic-bezier(.2,.7,.2,1);
}
html.motion-ready .reveal.visible { opacity: 1; transform: none; }
html.motion-ready .mvv-card:nth-child(2), html.motion-ready .dif-card:nth-child(2), html.motion-ready .post-card:nth-child(2) { transition-delay: .08s; }
html.motion-ready .mvv-card:nth-child(3), html.motion-ready .dif-card:nth-child(3), html.motion-ready .post-card:nth-child(3) { transition-delay: .16s; }
.sobre-intro, .planos, .blog, .contato { position: relative; isolation: isolate; overflow: hidden; }
.sobre-intro::before, .planos::before, .blog::before, .contato::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: -115px;
  width: 270px;
  aspect-ratio: 1;
  border: 2px solid rgba(52,134,111,.20);
  border-radius: 43% 57% 58% 42% / 48% 42% 58% 52%;
  background: linear-gradient(145deg, rgba(52,134,111,.12), rgba(52,134,111,.025));
  box-shadow: 0 0 0 14px rgba(52,134,111,.035), 0 0 0 30px rgba(52,134,111,.02);
  content: '';
  transform: rotate(14deg);
  pointer-events: none;
}
.planos::before { top: auto; right: auto; bottom: -150px; left: -100px; width: 310px; }
.blog::before { top: 8%; right: -135px; width: 300px; }
.contato::before { top: auto; right: -90px; bottom: 8%; width: 225px; }

/* WhatsApp flutuante permanece acessível fora do menu */
.wpp-float {
  z-index: 10002;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.galeria-grid a, .contato-img { border-radius: 2px !important; }
@media (max-width: 900px) {
  .site-header { z-index: 10000; }
  .header-inner { width: min(100%, 1256px); gap: 8px; }
  .header-actions { position: relative; z-index: 10002; flex: 0 0 auto; gap: 7px; margin-left: auto; }
  .header-actions .btn { display: inline-flex !important; min-height: 40px; padding: 8px 10px; font-size: .72rem; white-space: nowrap; }
  .menu-toggle { flex: 0 0 38px; width: 38px; height: 38px; padding: 0; }
  .nav-menu { z-index: 10001; }
  .nav-overlay { z-index: 9999; }
  .nav-menu {
    right: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .nav-menu.open { right: 0; opacity: 1; visibility: visible; pointer-events: auto; }
}
@media (max-width: 540px) {
  .header-inner { min-height: 64px; padding: 7px 12px; }
  .logo img { width: 110px; height: 38px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { min-height: 36px; gap: 5px; padding: 7px 8px; font-size: .64rem; }
  .header-actions .btn i { font-size: .82rem; }
  .menu-toggle { flex-basis: 35px; width: 35px; height: 35px; border-radius: 10px; font-size: 1.05rem; }
  .wpp-float { width: 52px; height: 52px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .sobre-intro::before, .blog::before { top: 2%; right: -190px; width: 245px; }
  .planos::before { bottom: -155px; left: -170px; width: 270px; }
  .contato::before { right: -175px; bottom: 4%; width: 210px; }
}
@media (max-width: 360px) {
  .header-inner { padding-right: 9px; padding-left: 9px; }
  .logo img { width: 90px; }
  .header-actions .btn { gap: 4px; padding-right: 7px; padding-left: 7px; font-size: .60rem; }
  .menu-toggle { flex-basis: 33px; width: 33px; height: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  html.motion-ready .reveal, html.motion-ready .reveal.visible { opacity: 1; transform: none; transition: none; }
}

/* Formas e movimento leve no hero e no seletor de serviços */
.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 83% 6%, rgba(216,235,228,.62), transparent 34%), linear-gradient(125deg, #f8faf9, #f5f8f6 66%, #eef5f1); }
.hero::before { position: absolute; z-index: -1; top: -25%; left: -12%; width: clamp(340px, 42vw, 630px); aspect-ratio: 1; border-radius: 46% 54% 65% 35% / 47% 36% 64% 53%; background: linear-gradient(135deg, rgba(52,134,111,.11), rgba(52,134,111,.015)); content: ''; transform: rotate(-12deg); }
.hero::after { position: absolute; z-index: -1; top: 8%; right: 2.5%; width: 118px; height: 118px; background-image: radial-gradient(rgba(23,72,107,.18) 1.2px, transparent 1.4px); background-size: 13px 13px; content: ''; mask-image: radial-gradient(closest-side, #000 38%, transparent 100%); }
.hero-layout { position: relative; z-index: 1; }
.hero-content { animation: cov-hero-enter .65s cubic-bezier(.2,.7,.2,1) both; }
.hero-media { animation: cov-hero-enter .8s .08s cubic-bezier(.2,.7,.2,1) both; }
.hero-media::after { position: absolute; z-index: 0; top: -20px; right: -21px; width: 86px; height: 86px; border: 1px solid rgba(52,134,111,.34); border-radius: 50%; background: rgba(255,255,255,.34); content: ''; }
.hero-media > img { object-position: 58% center; transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.hero-media:hover > img { transform: translateY(-3px) scale(1.008); box-shadow: 0 30px 72px rgba(24,60,68,.2); }
.especialidades { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 4% 100%, rgba(52,134,111,.09), transparent 34%), #f0f5f3; }
.especialidades::after { position: absolute; z-index: -1; top: 7%; right: -105px; width: 255px; height: 255px; border: 1px solid rgba(52,134,111,.16); border-radius: 48% 52% 41% 59% / 58% 45% 55% 42%; content: ''; transform: rotate(18deg); }
.especialidades .container { position: relative; z-index: 1; }
.service-feature { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-feature:hover { transform: translateY(-3px); border-color: #d4e3de; box-shadow: 0 20px 48px rgba(24,60,68,.11); }
.service-feature-media { position: relative; isolation: isolate; overflow: hidden; }
.service-feature-media::after { position: absolute; z-index: 1; right: -38px; bottom: -52px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; box-shadow: 0 0 0 14px rgba(255,255,255,.09), 0 0 0 30px rgba(255,255,255,.06); content: ''; pointer-events: none; }
.service-feature-media img { transition: opacity .28s ease, transform .55s cubic-bezier(.2,.7,.2,1), filter .28s ease; }
.service-feature-media img.is-changing { opacity: .4; filter: saturate(.8); transform: scale(1.025); }
.service-trigger { transition: background .22s ease, color .22s ease, border .22s ease, transform .22s ease, box-shadow .22s ease; }
.service-trigger:hover { transform: translateX(2px); }
.service-trigger[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--verde), 0 5px 16px rgba(24,60,68,.055); }
@keyframes cov-hero-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .hero::before { top: -110px; left: -180px; width: 410px; }
  .hero::after { top: 4%; right: -20px; width: 92px; height: 92px; }
  .hero-media::after { top: -12px; right: -11px; width: 64px; height: 64px; }
  .especialidades::after { top: 28%; right: -150px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content, .hero-media { animation: none; }
  .hero-media:hover > img, .service-feature:hover, .service-trigger:hover { transform: none; }
}

/* Contraste dos elementos decorativos após todas as regras de layout */
.hero::before { background: linear-gradient(135deg, rgba(52,134,111,.22), rgba(52,134,111,.055)); }
.hero::after { background-image: radial-gradient(rgba(23,72,107,.27) 1.35px, transparent 1.55px); }
.especialidades::after { border: 2px solid rgba(52,134,111,.28); box-shadow: 0 0 0 14px rgba(52,134,111,.045), 0 0 0 30px rgba(52,134,111,.03); }

/* Galeria da clínica: lightbox responsivo com controles de navegação */
.galeria-grid a { cursor: zoom-in; }
.clinic-lightbox-open { overflow: hidden; }
.clinic-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vw, 30px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}
.clinic-lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.clinic-lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(5,17,27,.97); cursor: default; }
.clinic-lightbox-dialog { position: relative; z-index: 1; display: grid; width: min(100%, 1280px); height: min(92vh, 930px); height: min(92dvh, 930px); grid-template-rows: minmax(0, 1fr) auto; align-items: center; gap: 8px; outline: none; }
.clinic-lightbox-figure { display: grid; width: 100%; min-width: 0; min-height: 0; height: 100%; align-content: center; justify-items: center; gap: 12px; margin: 0; padding: 42px 0 0; }
.clinic-lightbox-figure img { display: block; width: 100%; height: min(76vh, 800px); height: min(76dvh, 800px); max-height: calc(100dvh - 168px); border-radius: 2px !important; object-fit: contain; cursor: grab; touch-action: pan-y; user-select: none; }
.clinic-lightbox-figure img:active { cursor: grabbing; }
.clinic-lightbox-figure figcaption { color: rgba(255,255,255,.88); font-size: .88rem; font-weight: 600; text-align: center; }
.clinic-lightbox-control { position: absolute; z-index: 2; top: 50%; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(0,0,0,.22); color: var(--azul-escuro); cursor: pointer; transform: translateY(-50%); transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.clinic-lightbox-control:hover { background: #fff; box-shadow: 0 10px 32px rgba(0,0,0,.3); transform: translateY(-50%) scale(1.04); }
.clinic-lightbox-control:disabled { opacity: .45; cursor: default; transform: none; }
.clinic-lightbox-control span { font-size: 2rem; line-height: 1; }
.clinic-lightbox-close { top: 8px; right: 0; width: 46px; height: 46px; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.14); box-shadow: none; color: #fff; font-size: 1.8rem; line-height: 1; transform: none; }
.clinic-lightbox-close:hover { background: rgba(255,255,255,.25); transform: scale(1.04); }
.clinic-lightbox-prev { left: 12px; }
.clinic-lightbox-next { right: 12px; }
.clinic-lightbox-count { margin: 0; color: rgba(255,255,255,.7); font-size: .8rem; font-variant-numeric: tabular-nums; letter-spacing: .12em; text-align: center; }
@media (max-width: 600px) {
  .clinic-lightbox { padding: 10px; }
  .clinic-lightbox-dialog { width: 100%; height: min(94vh, 920px); height: min(94dvh, 920px); gap: 5px; }
  .clinic-lightbox-figure { gap: 10px; padding-top: 40px; }
  .clinic-lightbox-figure img { width: 100%; height: min(74vh, 680px); height: min(74dvh, 680px); max-height: calc(100dvh - 145px); }
  .clinic-lightbox-control { width: 44px; height: 44px; }
  .clinic-lightbox-close { top: 0; right: 0; width: 40px; height: 40px; }
  .clinic-lightbox-prev { left: 7px; }
  .clinic-lightbox-next { right: 7px; }
  .clinic-lightbox-control span { font-size: 1.8rem; }
  .clinic-lightbox-figure figcaption { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .clinic-lightbox, .clinic-lightbox-control { transition: none; }
}
