/* ==========================================================================
   Santa Casa de Sabará: seções e páginas
   ========================================================================== */

/* ---------- Hero da home ---------- */

.hero {
  position: relative;
  background: var(--wine-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(53,15,24,.94) 0%, rgba(53,15,24,.82) 42%, rgba(74,21,34,.42) 72%, rgba(74,21,34,.22) 100%),
    linear-gradient(0deg, rgba(53,15,24,.55), transparent 45%);
}
.hero__glow {
  position: absolute; z-index: -1;
  right: -12%; top: -25%;
  width: min(46rem, 70vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245,179,194,.22), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: var(--sp-8);
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--sp-10); }
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .55rem;
  margin-bottom: var(--sp-5);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(6px);
  font-size: var(--step--1); font-weight: 600;
  color: var(--rose-200);
}
.hero__badge b { color: #fff; font-weight: 700; }
.hero__badge-dot {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--rose-400); color: var(--wine-950);
}
.hero__badge-dot svg { width: 15px; height: 15px; }

.hero h1 {
  color: #fff;
  font-size: var(--step-6);
  line-height: 1.04;
  letter-spacing: -0.024em;
  margin-bottom: var(--sp-5);
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--rose-300); }
.hero__lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: rgba(253,232,237,.86);
  max-width: 48ch;
  margin-bottom: var(--sp-7);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__actions .btn { padding: .85em 1.5em; font-size: var(--step-0); }

.hero__panel {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
}
.hero__panel h2 {
  color: #fff; font-size: var(--step-2); margin-bottom: .35rem;
}
.hero__panel > p { color: rgba(253,232,237,.78); font-size: var(--step--1); margin-bottom: var(--sp-5); }
.hero__panel-list { display: grid; gap: .6rem; }
.hero__panel-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  transition: background-color .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
.hero__panel-item:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); transform: translateX(4px); color: #fff; text-decoration: none; }
.hero__panel-item svg:first-child { width: 22px; height: 22px; flex: none; color: var(--rose-300); }
.hero__panel-item span { flex: 1; font-size: var(--step--1); font-weight: 600; }
.hero__panel-item .chev { width: 16px; height: 16px; opacity: .55; flex: none; }

/* ---------- Faixa de números ---------- */

.stats { border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--sp-5);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.stat { text-align: center; padding-inline: var(--sp-3); }
.stat + .stat { border-left: 1px solid var(--line-soft); }
@media (max-width: 720px) { .stat:nth-child(odd) { border-left: 0; } }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--wine-700);
  margin-bottom: .4rem;
}
.stat__label { font-size: var(--step--1); color: var(--ink-500); line-height: 1.4; display: block; }

/* ---------- Atalhos ---------- */

.quicklinks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (min-width: 620px)  { .quicklinks__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px)  { .quicklinks__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Bloco sobre ---------- */

.about-split { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 900px) { .about-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); } }
.about-split--reverse .about-split__media { order: 2; }
@media (max-width: 899px) { .about-split--reverse .about-split__media { order: 0; } }

.about-split__media { position: relative; }
.about-split__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about-split__stamp {
  position: absolute; left: clamp(-1rem, -2vw, -2rem); bottom: clamp(-1rem, -2vw, -1.75rem);
  display: grid; place-items: center; text-align: center;
  width: clamp(7rem, 12vw, 9.5rem); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wine-700);
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  padding: .5rem;
}
/* `strong, b` define cor na folha base e vence o `color` herdado do selo. */
.about-split__stamp b { display: block; color: inherit; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.about-split__stamp span { font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

.values-list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.values-list li { display: flex; gap: .9rem; margin: 0; }
.values-list svg { width: 22px; height: 22px; flex: none; color: var(--wine-600); margin-top: .18em; }
.values-list b { display: block; color: var(--ink-900); }
.values-list p { margin: .15rem 0 0; font-size: var(--step--1); color: var(--ink-500); }

/* Missão, visão e valores em cartões */
.mvv { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.mvv__card {
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  border-top: 4px solid var(--wine-700);
  box-shadow: var(--shadow-sm);
}
.mvv__card:nth-child(2) { border-top-color: var(--rose-400); }
.mvv__card:nth-child(3) { border-top-color: var(--gold-500); }
.mvv__card h3 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.mvv__card p, .mvv__card li { font-size: var(--step--1); color: var(--ink-600); }
.mvv__card ul { margin: 0; padding-left: 1.2em; }

/* ---------- Grade de especialidades ---------- */

.spec-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.spec-item {
  position: relative;
  display: flex; align-items: center; gap: .9rem;
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink-800);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.spec-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--wine-100); color: var(--wine-800); }
.spec-item__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: var(--r-sm);
  background: var(--wine-50);
  color: var(--wine-700);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.spec-item:hover .spec-item__icon { background: var(--wine-700); color: #fff; }
.spec-item__icon svg { width: 21px; height: 21px; }
.spec-item__name { font-weight: 600; font-size: var(--step--1); line-height: 1.3; }

/* ---------- Carrossel de convênios ---------- */

.logos-marquee { position: relative; overflow: hidden; padding-block: var(--sp-5); }
.logos-marquee::before, .logos-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(3rem, 10vw, 9rem); z-index: 2; pointer-events: none;
}
.logos-marquee::before { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }
.logos-marquee::after { right: 0; background: linear-gradient(270deg, var(--cream), transparent); }
.logos-track { display: flex; gap: var(--sp-6); width: max-content; animation: marquee 56s linear infinite; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logos-track img {
  height: clamp(46px, 5.5vw, 64px); width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: .78;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logos-track a:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

.convenios-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.25rem), 1fr)); }
@media (min-width: 640px) { .convenios-grid { gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); } }
.convenio-card {
  display: grid; place-items: center; gap: .75rem;
  padding: var(--sp-5) var(--sp-4);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  text-decoration: none;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.convenio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--wine-100); }
.convenio-card img { height: 54px; width: auto; max-width: 100%; object-fit: contain; }
.convenio-card span { font-size: var(--step--2); font-weight: 600; color: var(--ink-600); }

/* ---------- Campanhas ---------- */

/* A arte da campanha é peça de rede social: quadrada, com tipografia própria.
   Cortar para 16/9 decepava o título dela, então o cartão respeita o formato. */
.card__media--poster { aspect-ratio: 1 / 1; background: var(--wine-950); }
.card__media--poster img { object-fit: cover; object-position: center; }

/* Arte quadrada não deve ser esticada até a largura da coluna de leitura. */
.entry-figure--poster { max-width: 34rem; margin-inline: auto; }
@media (min-width: 1000px) { .entry-figure--poster { width: auto; margin-inline: auto; } }

/* ---------- Vídeo institucional ---------- */

/* `preload="none"` no HTML: o arquivo só baixa se a pessoa clicar em play. */
.video-frame {
  max-width: 62rem;
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--wine-950);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }

/* ---------- Hero de página interna ---------- */

.page-hero {
  position: relative;
  background: var(--wine-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(53,15,24,.95), rgba(74,21,34,.84) 55%, rgba(117,38,54,.62));
}
.page-hero--plain { background-color: var(--wine-900); background-image: linear-gradient(120deg, var(--wine-900), var(--wine-700) 92%); }
.page-hero__inner { padding-block: clamp(2.75rem, 6vw, 5rem); max-width: 60rem; }
.page-hero .breadcrumbs { color: rgba(253,232,237,.65); margin-bottom: var(--sp-5); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs [aria-current="page"] { color: rgba(255,255,255,.9); }
.page-hero .breadcrumbs li + li::before { color: rgba(253,232,237,.4); }
.page-hero h1 { color: #fff; margin-bottom: var(--sp-4); font-size: var(--step-5); }
.page-hero__lead { font-size: var(--step-1); color: rgba(253,232,237,.85); max-width: 56ch; margin: 0; }
.page-hero__meta { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-5); font-size: var(--step--1); color: rgba(253,232,237,.8); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: .45em; }
.page-hero__meta svg { width: 1.05em; height: 1.05em; opacity: .8; }

/* ---------- Conteúdo editorial ---------- */

.prose { font-size: var(--step-0); line-height: 1.75; color: var(--ink-700); max-width: 74ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--step-3); margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.prose h3 { font-size: var(--step-2); margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.prose h4 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.prose figure { margin: var(--sp-6) 0; }
.prose figcaption { margin-top: .7rem; font-size: var(--step--1); color: var(--ink-400); text-align: center; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .55em; }
.prose a { font-weight: 550; }
.prose table { margin: var(--sp-6) 0; font-size: var(--step--1); }
.prose th, .prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--cream); font-weight: 650; color: var(--ink-900); }
.prose .wp-caption { max-width: 100%; }

/* O "texto grande" do editor virava oito linhas no celular. O `!important` é
   necessário: o WordPress serve o preset como
   `:root :where(.has-large-font-size){font-size:…!important}` e nenhuma
   especificidade vence isso. */
.prose .has-large-font-size { font-size: var(--step-1) !important; line-height: 1.55; color: var(--ink-800); }
@media (min-width: 720px) { .prose .has-large-font-size { font-size: var(--step-2) !important; } }

/* Visualizador de PDF: o navegador do celular não renderiza PDF embutido e
   devolve um retângulo preto: lá fica só o botão de baixar. */
.doc-embed {
  margin-top: var(--sp-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
}
.doc-embed object { width: 100%; height: min(75vh, 760px); display: block; }
@media (max-width: 860px) { .doc-embed { display: none; } }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-lg); border: 0; }

.content-layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  /* Redefinir --wrap aqui encolhe o próprio .wrap: com 1240px a coluna de texto
     ficava em 848px, ou ~93 caracteres por linha: quase o dobro do confortável.
     Com 1060px ela cai para ~73, e a lateral continua com os mesmos 20rem. */
  --wrap: 1060px;
}
@media (min-width: 1000px) { .content-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }

.aside-card {
  padding: var(--sp-6);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.aside-card + .aside-card { margin-top: var(--sp-5); }
.aside-card h3 { font-size: var(--step-1); margin-bottom: var(--sp-4); }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.aside-card li { margin: 0; font-size: var(--step--1); }
.aside-card a { text-decoration: none; font-weight: 550; }
.aside-card a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .aside-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* ---------- Linha do tempo (História) ---------- */

.timeline { position: relative; margin-top: var(--sp-8); padding-left: clamp(1.75rem, 4vw, 2.75rem); }
.timeline::before {
  content: ""; position: absolute; left: clamp(.45rem, 1.2vw, .7rem); top: .6rem; bottom: .6rem;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--wine-700), var(--rose-300));
}
.timeline__item { position: relative; padding-bottom: var(--sp-8); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute;
  left: calc(clamp(1.75rem, 4vw, 2.75rem) * -1 + clamp(.45rem, 1.2vw, .7rem) - 5px);
  top: .45rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--wine-700);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--wine-100);
}
.timeline__year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--wine-700);
  line-height: 1;
  margin-bottom: .55rem;
}
.timeline__item h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.timeline__item p { font-size: var(--step--1); color: var(--ink-600); margin-bottom: 0; line-height: 1.7; }

/* ---------- Portal da Transparência ---------- */

.transp-intro {
  display: grid; gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-8);
}
@media (min-width: 860px) { .transp-intro { grid-template-columns: 1.35fr 1fr; align-items: center; gap: var(--sp-8); } }
.transp-intro p { margin-bottom: 0; color: var(--ink-600); }
.transp-intro__stats { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
.transp-intro__stat { text-align: center; padding: var(--sp-4); background: #fff; border-radius: var(--r-md); border: 1px solid var(--line-soft); }
.transp-intro__stat b { display: block; font-family: var(--font-display); font-size: var(--step-3); color: var(--wine-700); line-height: 1; }
.transp-intro__stat span { font-size: var(--step--2); color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.doc-filters {
  display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: flex-end;
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-7);
}
.doc-filters .field { margin: 0; flex: 1 1 13rem; }
.doc-filters__search { flex: 2 1 18rem; }
.doc-filters__actions { display: flex; gap: .6rem; flex: 0 0 auto; }

.doc-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--sp-6); }
.doc-chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: #fff;
  font-size: var(--step--1); font-weight: 600;
  color: var(--ink-600);
  text-decoration: none;
  transition: all .2s var(--ease);
}
.doc-chip:hover { border-color: var(--wine-400, var(--wine-500)); color: var(--wine-700); background: var(--wine-50); }
.doc-chip.is-active { background: var(--wine-700); border-color: var(--wine-700); color: #fff; }
.doc-chip__n { font-size: var(--step--2); opacity: .72; font-weight: 600; }

.doc-group + .doc-group { margin-top: var(--sp-6); }
.doc-group__head {
  display: flex; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.doc-group__head h2 { font-size: var(--step-2); margin: 0; }
.doc-group__head span { font-size: var(--step--1); color: var(--ink-400); }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.doc-list li { margin: 0; }
.doc-item {
  position: relative;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.doc-item:hover { transform: translateX(3px); box-shadow: var(--shadow-md); border-color: var(--wine-100); color: inherit; }
.doc-item__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--r-sm);
  background: var(--wine-50);
  color: var(--wine-700);
}
.doc-item__icon svg { width: 22px; height: 22px; }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__title { display: block; font-weight: 600; font-size: var(--step-0); color: var(--ink-900); line-height: 1.35; margin-bottom: .2rem; }
.doc-item__meta { display: flex; gap: .85rem; flex-wrap: wrap; font-size: var(--step--2); color: var(--ink-400); }
.doc-item__meta span { display: inline-flex; align-items: center; gap: .3em; }
.doc-item__go {
  flex: none;
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--step--1); font-weight: 650; color: var(--wine-700);
}
.doc-item__go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.doc-item:hover .doc-item__go svg { transform: translateY(2px); }
@media (max-width: 640px) {
  .doc-item { flex-wrap: wrap; gap: var(--sp-3); }
  .doc-item__go { width: 100%; justify-content: flex-start; padding-left: calc(44px + var(--sp-3)); }
}

.empty-state {
  padding: clamp(3rem, 7vw, 5rem) var(--sp-5);
  text-align: center;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.empty-state svg { width: 54px; height: 54px; margin: 0 auto var(--sp-4); color: var(--wine-300); }
.empty-state h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.empty-state p { color: var(--ink-500); max-width: 42ch; margin-inline: auto; }

/* ---------- Check-ups ---------- */

.checkup-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.checkup-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.checkup-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.checkup-card--featured { border-color: var(--wine-700); box-shadow: var(--shadow-md); }
.checkup-card__head {
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background-color: var(--wine-800);
  background-image: linear-gradient(135deg, var(--wine-800), var(--wine-950));
  color: #fff;
}
.checkup-card--featured .checkup-card__head { background-color: var(--wine-700); background-image: linear-gradient(135deg, var(--wine-700), var(--wine-900)); }
.checkup-card__head h3 { color: #fff; margin-bottom: .3rem; font-size: var(--step-2); }
.checkup-card__head p { font-size: var(--step--1); color: rgba(253,232,237,.82); margin: 0; }
.checkup-card__price {
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-soft);
  background: var(--cream);
}
.checkup-card__price small { font-size: var(--step--2); color: var(--ink-400); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.checkup-card__price b { font-family: var(--font-display); font-size: var(--step-3); color: var(--wine-700); line-height: 1; }
/* Carimbo da data do preço: encosta na direita e não grita como o rótulo. */
.checkup-card__price .checkup-card__since {
  margin-left: auto; text-transform: none; letter-spacing: 0;
  font-weight: 500; color: var(--ink-500);
}
.checkup-card__list { flex: 1; list-style: none; margin: 0; padding: var(--sp-5); display: grid; gap: .5rem; }
.checkup-card__list li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; font-size: var(--step--1); color: var(--ink-600); }
.checkup-card__list svg { width: 17px; height: 17px; flex: none; color: var(--wine-600); margin-top: .22em; }
.checkup-card__foot { padding: 0 var(--sp-5) var(--sp-5); display: grid; gap: .6rem; }

/* Passo a passo */
.steps { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr)); counter-reset: step; }
.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: calc(var(--sp-5) * -1 + .25rem); left: var(--sp-5);
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-full);
  background: var(--wine-700);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  box-shadow: 0 0 0 5px #fff;
}
.step h3 { font-size: var(--step-1); margin: var(--sp-3) 0 .5rem; }
.step p { font-size: var(--step--1); color: var(--ink-500); margin: 0; }

/* ---------- Contato ---------- */

.contact-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2.5rem, 5vw, 4rem); } }

.contact-cards { display: grid; gap: var(--sp-4); }
.contact-card {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--wine-100); color: inherit; }
.contact-card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--rose-100), var(--wine-50));
  color: var(--wine-700);
}
.contact-card__icon svg { width: 23px; height: 23px; }
.contact-card h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 650; margin-bottom: .2rem; }
.contact-card p { font-size: var(--step--1); color: var(--ink-500); margin: 0; }
.contact-card strong { color: var(--wine-700); font-size: var(--step-0); }

.map-embed {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  background: var(--cream-2);
}
/* Fica atrás do iframe: se o mapa não carregar (rede bloqueada, bloqueador de
   rastreio), o visitante ainda vê o endereço e o link para abrir no Maps. */
.map-embed__fallback {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-content: center; gap: .9rem;
  padding: var(--sp-6); text-align: center;
  color: var(--ink-500);
}
.map-embed__fallback svg { width: 34px; height: 34px; margin-inline: auto; color: var(--wine-300); }
.map-embed__fallback strong { display: block; color: var(--ink-800); font-size: var(--step-0); }
.map-embed iframe { position: relative; z-index: 1; width: 100%; height: clamp(280px, 40vw, 420px); border: 0; display: block; }

/* ---------- Notícias ---------- */

.post-card__date { font-size: var(--step--2); color: var(--wine-600); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }

/* A foto de abertura respira além da coluna de texto, sem estourar a tela. */
.entry-figure { margin: 0 0 clamp(2rem, 4vw, 3rem); }
@media (min-width: 1000px) {
  .entry-figure { width: min(940px, 100vw - var(--gutter) * 2); margin-inline: calc((min(940px, 100vw - var(--gutter) * 2) - 100%) / -2); }
}
.entry-figure img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.entry-figure figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--ink-400); text-align: center; }
.post-featured {
  display: grid; gap: var(--sp-6);
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-xl); overflow: hidden;
  margin-bottom: var(--sp-8);
}
@media (min-width: 880px) { .post-featured { grid-template-columns: 1.15fr 1fr; gap: 0; } }
.post-featured__media { aspect-ratio: 16 / 10; }
.post-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured__body { padding: clamp(var(--sp-5), 3vw, var(--sp-8)); display: flex; flex-direction: column; justify-content: center; gap: .7rem; }
.post-featured__body h2 { font-size: var(--step-3); margin: 0; }
.post-featured__body h2 a { color: inherit; text-decoration: none; }
.post-featured__body h2 a:hover { color: var(--wine-700); }

.entry-meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--step--1); color: var(--ink-400); margin-bottom: var(--sp-5); }
.entry-meta span { display: inline-flex; align-items: center; gap: .4em; }
.entry-meta svg { width: 1em; height: 1em; }

.share-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.share-row span { font-size: var(--step--1); font-weight: 650; color: var(--ink-500); }
.share-row a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-full);
  color: var(--ink-600);
  transition: all .2s var(--ease);
}
.share-row a:hover { background: var(--wine-700); border-color: var(--wine-700); color: #fff; }
.share-row svg { width: 17px; height: 17px; }

/* ---------- Saúde Indígena ---------- */

.dsei-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.dsei-card {
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--wine-700);
  border-radius: var(--r-md);
}
.dsei-card h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.dsei-card p { font-size: var(--step--1); color: var(--ink-500); margin: 0; }

/* ---------- 404 / busca ---------- */

.centered-panel { text-align: center; max-width: 46rem; margin-inline: auto; padding-block: clamp(3rem, 8vw, 6rem); }
.centered-panel__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: .9;
  color: var(--wine-350);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.04em;
}
.search-form-inline { display: flex; gap: .6rem; max-width: 30rem; margin: var(--sp-6) auto 0; }
.search-form-inline input { flex: 1; }

/* ---------- Ouvidoria / avisos ---------- */

.info-banner {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-5);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: var(--r-lg);
}
.info-banner svg { width: 24px; height: 24px; color: var(--gold-700); flex: none; margin-top: .1em; }
.info-banner p { font-size: var(--step--1); color: var(--ink-700); margin: 0; }
.info-banner strong { color: var(--gold-700); }
