/* ============================================================
   CASA GRIMALDI · Blog (posts + página pilar)
   v1.0 · 06/06/2026 · Agente E
   Reaproveita o sistema visual de sistema.css.
   Só adiciona o que não existe: corpo de artigo legível,
   breadcrumb, meta do post, FAQ accordion-less, caixa de autor,
   cards "leia também", slots de imagem editorial.
   ============================================================ */

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--taupe);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.breadcrumb a { color: var(--taupe); transition: color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span[aria-hidden] { color: var(--amber); opacity: 0.6; }
.breadcrumb [aria-current] { color: var(--cimento); }

/* ── HERO DO POST ───────────────────────────────────────── */
.post-hero {
  background: var(--carbono);
  color: var(--nevoa);
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: 0; left: var(--pad-x);
  width: 40px; height: 2px;
  background: var(--amber);
  animation: line-grow var(--t-slow) var(--ease) 200ms forwards;
}
.post-hero-inner { max-width: 820px; margin: 0 auto; }
.post-hero .breadcrumb { margin-bottom: 28px; }
.post-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 100;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--nevoa);
  margin: 18px 0 24px;
}
.post-title em { font-style: normal; color: var(--amber); }
.post-standfirst {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--neblina);
  max-width: 680px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--taupe);
}
.post-meta .post-meta-author { color: var(--neblina); }
.post-meta .dot { color: var(--amber); opacity: 0.5; }

/* ── CORPO DO ARTIGO ────────────────────────────────────── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}
.article-body > p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--carbono);
}
.article-body > p + p { margin-top: 1.4em; }
.article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: var(--carbono);
  margin: 56px 0 24px;
  scroll-margin-top: 100px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.3;
  color: var(--carbono);
  margin: 40px 0 16px;
}
.article-body ul {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-body ul li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--carbono);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 8px; height: 1px;
  background: var(--amber);
}
.article-body ol {
  margin: 24px 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.article-body ol li {
  position: relative;
  padding-left: 44px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--carbono);
  counter-increment: step;
}
.article-body ol li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  border-radius: 50%;
}
.article-body li strong,
.article-body p strong {
  font-weight: 500;
  color: var(--carbono);
}
.article-body a {
  color: var(--amber);
  border-bottom: 1px solid var(--amber-soft);
  transition: border-color var(--t-fast) var(--ease);
}
.article-body a:hover { border-color: var(--amber); }

/* ── DESTAQUE / PULL-QUOTE ──────────────────────────────── */
.article-pull {
  margin: 48px 0;
  padding: 28px 0 28px 32px;
  border-left: 2px solid var(--amber);
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4;
  color: var(--carbono);
}

/* ── FIGURA EDITORIAL DENTRO DO ARTIGO ──────────────────── */
.article-figure {
  margin: 48px 0;
  position: relative;
}
.article-figure .frame {
  position: relative;
  background: var(--quartzo);
  border: 1px solid var(--line-light);
  overflow: hidden;
}
.article-figure .frame img {
  width: 100%; height: auto; display: block;
}
.article-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--taupe);
  font-style: italic;
  text-align: center;
}
/* Slot placeholder visível enquanto a foto não chega (Agente H) */
.article-figure .img-slot {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--quartzo) 0%, var(--nevoa) 100%);
}
.article-figure .img-slot .slot-tag {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--amber);
}
.article-figure .img-slot .slot-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--cimento);
  max-width: 360px;
  line-height: 1.5;
}

/* ── CAIXA DE CASO CLÍNICO (placeholder editorial) ──────── */
.case-slot {
  margin: 48px 0;
  padding: 28px 32px;
  background: var(--warm-white);
  border: 1px dashed var(--amber-line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--cimento);
  font-style: italic;
}
.case-slot strong { font-style: normal; color: var(--amber); font-weight: 500; letter-spacing: 1px; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { margin-top: 16px; }
.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-light); }
.faq-q {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--carbono);
  margin-bottom: 12px;
}
.faq-a {
  font-size: 15px;
  line-height: 1.85;
  color: var(--cimento);
}

/* ── CTA INLINE NO ARTIGO ───────────────────────────────── */
.article-cta {
  margin: 56px auto 0;
  max-width: 720px;
  padding: 40px;
  background: var(--carbono);
  color: var(--nevoa);
  text-align: center;
}
.article-cta .eyebrow { color: var(--amber); }
.article-cta .h3 {
  color: var(--nevoa);
  margin: 16px auto 12px;
  max-width: 520px;
}
.article-cta p { color: var(--taupe); max-width: 480px; margin: 0 auto 28px; }
.article-cta-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 16px;
}

/* ── LEIA TAMBÉM (cards relacionados) ───────────────────── */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  margin-top: 40px;
}
.related-card {
  background: var(--nevoa);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.related-card:hover { background: var(--carbono); }
.related-card:hover .related-card-title,
.related-card:hover .related-card-kicker { color: var(--nevoa); }
.related-card:hover .related-card-arrow { color: var(--amber); transform: translateX(4px); }
.related-card-kicker {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
}
.related-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.35;
  color: var(--carbono);
  transition: color var(--t-fast) var(--ease);
}
.related-card-arrow {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 16px;
  color: var(--amber);
  align-self: flex-end;
  margin-top: auto;
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

/* ── PÁGINA PILAR ───────────────────────────────────────── */
.pillar-toc {
  max-width: 720px;
  margin: 40px auto 0;
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.pillar-toc a {
  background: var(--nevoa);
  padding: 24px 28px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  transition: background var(--t-fast) var(--ease);
}
.pillar-toc a:hover { background: var(--warm-white); }
.pillar-toc a:hover .pillar-toc-title { color: var(--amber); }
.pillar-toc-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: 22px;
  color: var(--amber);
  flex-shrink: 0;
  width: 28px;
}
.pillar-toc-body { display: flex; flex-direction: column; gap: 4px; }
.pillar-toc-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--carbono);
  transition: color var(--t-fast) var(--ease);
}
.pillar-toc-desc { font-size: 13px; line-height: 1.6; color: var(--taupe); }

/* ── ÍNDICE DO BLOG (listagem) ──────────────────────────── */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.blog-list-card {
  background: var(--warm-white);
  border: 1px solid var(--line-light);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.blog-list-card:hover { border-color: var(--amber-soft); transform: translateY(-2px); }
.blog-list-card .related-card-kicker { color: var(--amber); }
.blog-list-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.3;
  color: var(--carbono);
}
.blog-list-card p { font-size: 14px; line-height: 1.8; color: var(--cimento); }
@media (max-width: 768px) { .blog-list { grid-template-columns: 1fr; } }

/* ── RESPONSIVO POST ────────────────────────────────────── */
@media (max-width: 768px) {
  .post-hero { padding: 56px 0 48px; }
  .article-body > p,
  .article-body ul li,
  .article-body ol li { font-size: 15px; }
  .article-cta { padding: 32px 24px; }
}

/* ── BLOCO ANTES/DEPOIS ─────────────────────────────────────
   Componente de caso clínico: duas colunas (antes | depois) que
   empilham no mobile. Cada coluna carrega rótulo visível.
   Reaproveita o frame e o figcaption de .article-figure.
   ─────────────────────────────────────────────────────────── */
.ba-block {
  margin: 48px 0;
  position: relative;
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ba-item {
  position: relative;
  background: var(--quartzo);
  border: 1px solid var(--line-light);
  overflow: hidden;
}
.ba-item img {
  width: 100%; height: auto; display: block;
}
.ba-label {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--carbono);
  color: var(--nevoa);
}
.ba-label--depois {
  background: var(--amber);
  color: var(--carbono);
}
.ba-block figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--taupe);
  font-style: italic;
  text-align: center;
}
@media (max-width: 600px) {
  .ba-grid { grid-template-columns: 1fr; }
}
