/* =====================================================================
   BLOG — lista e página do artigo
   Carregado só nas páginas do blog, depois do tailwind.css e style.css.
   ===================================================================== */

/* ---------- filtro ---------- */
.blog-filtro a {
  position: relative; white-space: nowrap;
  padding: 1rem .25rem; color: rgba(10,10,10,.55); transition: color .25s;
}
.blog-filtro a:hover { color: #3f7d70; }
.blog-filtro a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: #3f7d70; transform: scaleX(0); transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.blog-filtro a.is-ativo { color: #0a0a0a; }
.blog-filtro a.is-ativo::after { transform: scaleX(1); }

/* ---------- card da lista ---------- */
.blog-card-capa { aspect-ratio: 4 / 3; overflow: hidden; background: #0a0a0a; }
.blog-card-capa img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.blog-card:hover .blog-card-capa img { transform: scale(1.04); }
.blog-card-semcapa {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a0a0a, #2f6357); color: #a9cdc5; font-size: 1.6rem;
}
.blog-pag {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e2ded6; color: rgba(10,10,10,.6); transition: all .2s;
}
.blog-pag:hover { border-color: #0a0a0a; color: #0a0a0a; }
.blog-pag.is-ativa { background: #0a0a0a; border-color: #0a0a0a; color: #f7f5f1; }

/* ---------- cabeçalho do artigo ---------- */
.art-autor { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.art-autor > img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid rgba(169,205,197,.4); }
.art-autor-meta { margin-left: auto; display: flex; gap: 18px; font-size: 12px; color: #a8a396; }
.art-capa { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; box-shadow: 0 30px 60px rgba(0,0,0,.35); }

/* ---------- grade: sumário + texto ---------- */
.art-grade { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) {
  .art-grade { grid-template-columns: 280px minmax(0, 720px); gap: 5rem; justify-content: center; }
  .art-lateral { position: sticky; top: 110px; align-self: start; }
}

.art-sumario ol { list-style: none; margin: 0; padding: 0; counter-reset: sum; border-left: 1px solid #e2ded6; }
.art-sumario li { counter-increment: sum; }
.art-sumario a {
  display: block; padding: 6px 0 6px 18px; margin-left: -1px;
  font-size: 13px; line-height: 1.45; color: rgba(10,10,10,.6);
  border-left: 2px solid transparent; transition: all .2s;
}
.art-sumario a:hover, .art-sumario a.is-ativo { color: #0a0a0a; border-left-color: #3f7d70; }

.art-selo { margin-top: 2.5rem; padding: 1.5rem; background: #fff; border: 1px solid #e2ded6; }
.art-selo > img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; margin-bottom: 14px; }
.art-selo ul { list-style: none; margin: 14px 0 18px; padding: 0; font-size: 12.5px; color: rgba(10,10,10,.7); line-height: 1.5; }
.art-selo li { padding-left: 18px; position: relative; margin-bottom: 6px; }
.art-selo li::before { content: '✓'; position: absolute; left: 0; color: #3f7d70; font-weight: 600; }
.art-selo .art-btn { margin-top: 8px; }
@media (max-width: 1023px) { .art-selo { display: none; } }   /* no celular o CTA do corpo já basta */

/* ---------- tipografia do corpo ---------- */
.art-corpo { font-size: 1.0625rem; line-height: 1.8; color: #1f1f1f; }
.art-corpo > p { margin: 0 0 1.4rem; font-weight: 300; }
.art-corpo > p:first-of-type { font-size: 1.15rem; color: #0a0a0a; }
.art-corpo h2 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400;
  font-size: 2rem; line-height: 1.2; margin: 3rem 0 1.1rem; color: #0a0a0a;
  scroll-margin-top: 110px;
}
.art-corpo h2::before { content: ''; display: block; width: 44px; height: 2px; background: #a9cdc5; margin-bottom: 14px; }
.art-corpo h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.45rem; margin: 2rem 0 .7rem; color: #0a0a0a; }
.art-corpo strong { font-weight: 600; color: #0a0a0a; }
.art-corpo a { color: #3f7d70; text-decoration: underline; text-underline-offset: 3px; }
.art-corpo ul, .art-corpo ol { margin: 0 0 1.6rem; padding-left: 1.4rem; font-weight: 300; }
.art-corpo li { margin-bottom: .5rem; }
.art-corpo ul li::marker { color: #3f7d70; }
.art-corpo img { max-width: 100%; height: auto; display: block; margin: 2rem auto; }
.art-corpo figure { margin: 2.2rem 0; }
.art-corpo figcaption { font-size: 12px; color: rgba(10,10,10,.5); text-align: center; margin-top: 10px; }
.art-corpo blockquote {
  margin: 2.2rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid #a9cdc5;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; line-height: 1.4; font-style: italic; color: #0a0a0a;
}
.art-corpo hr { border: 0; border-top: 1px solid #e2ded6; margin: 3rem 0; }

/* ---------- blocos visuais (o editor insere pelo botão "Blocos") ---------- */

/* Caixa de destaque — dica, atenção, resumo */
.art-corpo .box {
  margin: 2rem 0; padding: 1.4rem 1.6rem 1.4rem 1.6rem;
  background: #eef5f3; border-left: 3px solid #3f7d70;
  font-size: 1rem; line-height: 1.7;
}
.art-corpo .box > :last-child { margin-bottom: 0; }
.art-corpo .box-titulo { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #3f7d70; margin-bottom: 8px; font-weight: 600; }
.art-corpo .box--atencao { background: #fdf6e8; border-left-color: #9a6b12; }
.art-corpo .box--atencao .box-titulo { color: #9a6b12; }
.art-corpo .box--resumo { background: #0a0a0a; color: #f7f5f1; border-left-color: #a9cdc5; }
.art-corpo .box--resumo .box-titulo { color: #a9cdc5; }
.art-corpo .box--resumo strong { color: #fff; }

/* Passo a passo numerado */
.art-corpo .passos { list-style: none; margin: 2.2rem 0; padding: 0; counter-reset: passo; }
.art-corpo .passos > li {
  counter-increment: passo; position: relative; padding: 0 0 1.6rem 3.6rem; margin: 0;
}
.art-corpo .passos > li::before {
  content: counter(passo, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #eef5f3; border: 1px solid #a9cdc5; color: #3f7d70;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.05rem; font-weight: 600;
}
.art-corpo .passos > li::after {
  content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: #e2ded6;
}
.art-corpo .passos > li:last-child::after { display: none; }
.art-corpo .passos > li:last-child { padding-bottom: 0; }
.art-corpo .passos strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; font-weight: 500; margin-bottom: 4px; }

/* Comparação lado a lado */
.art-corpo .compara { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.2rem 0; }
@media (max-width: 640px) { .art-corpo .compara { grid-template-columns: 1fr; } }
.art-corpo .compara > div { padding: 1.3rem 1.4rem; background: #fff; border: 1px solid #e2ded6; font-size: .95rem; line-height: 1.6; }
.art-corpo .compara > div > strong:first-child { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 500; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #e2ded6; }
.art-corpo .compara ul { margin: 0; padding-left: 1.1rem; }

/* Sim / não */
.art-corpo .lista-sim, .art-corpo .lista-nao { list-style: none; padding: 0; }
.art-corpo .lista-sim li, .art-corpo .lista-nao li { position: relative; padding-left: 28px; }
.art-corpo .lista-sim li::before { content: '✓'; position: absolute; left: 0; color: #3f7d70; font-weight: 700; }
.art-corpo .lista-nao li::before { content: '✕'; position: absolute; left: 0; color: #b3261e; font-weight: 700; }

/* Perguntas frequentes (details/summary) — viram FAQ no Google */
.art-corpo details { border-top: 1px solid #e2ded6; padding: 1rem 0; }
.art-corpo details:last-of-type { border-bottom: 1px solid #e2ded6; }
.art-corpo summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 500; color: #0a0a0a;
}
.art-corpo summary::-webkit-details-marker { display: none; }
.art-corpo summary::after { content: '+'; color: #3f7d70; font-size: 1.6rem; transition: transform .25s; flex: 0 0 auto; }
.art-corpo details[open] summary::after { transform: rotate(45deg); }
.art-corpo details > *:not(summary) { margin-top: .8rem; font-weight: 300; }

/* Dados em destaque (ex.: "6 a 12 meses") */
.art-corpo .dados { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2.2rem 0; }
.art-corpo .dados > div { padding: 1.1rem 1.2rem; background: #fff; border: 1px solid #e2ded6; }
.art-corpo .dados strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; font-weight: 500; color: #3f7d70; line-height: 1; margin-bottom: 6px; }
.art-corpo .dados span { font-size: 12px; color: rgba(10,10,10,.6); line-height: 1.4; display: block; }

/* ---------- CTA dentro do texto ---------- */
.art-cta {
  margin: 3rem 0; padding: 2rem 2rem 1.8rem;
  background: #0a0a0a; color: #f7f5f1;
}
.art-cta--fim { margin-top: 4rem; }
.art-cta-frase { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.8rem; line-height: 1.2; margin: 0 0 .6rem; color: #fff; }
.art-cta-sub { font-size: .95rem; line-height: 1.6; font-weight: 300; color: #d8d4cc; margin: 0 0 1.4rem; }
.art-cta-botoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.art-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .85rem 1.5rem; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none !important; transition: all .25s; text-align: center;
}
.art-btn--wa    { background: #a9cdc5; color: #0a0a0a !important; }
.art-btn--wa:hover { background: #c6ded9; }
.art-btn--ghost { border: 1px solid currentColor; color: inherit !important; }
.art-cta .art-btn--ghost { color: #f7f5f1 !important; }
.art-cta .art-btn--ghost:hover { background: #f7f5f1; color: #0a0a0a !important; }
.art-selo .art-btn--ghost { color: #0a0a0a !important; }
.art-selo .art-btn--ghost:hover { background: #0a0a0a; color: #f7f5f1 !important; }
.art-btn--link  { color: #a9cdc5 !important; padding-left: 0; padding-right: 0; letter-spacing: .1em; text-transform: none; font-size: 13px; }
.w-full { width: 100%; }

.art-aviso { margin-top: 2.5rem; font-size: 11.5px; line-height: 1.6; color: rgba(10,10,10,.5); border-top: 1px solid #e2ded6; padding-top: 1.2rem; }

@media (max-width: 640px) {
  .art-corpo { font-size: 1rem; }
  .art-corpo h2 { font-size: 1.7rem; }
  .art-cta { padding: 1.5rem 1.3rem; }
  .art-cta-frase { font-size: 1.5rem; }
  .art-autor-meta { margin-left: 0; width: 100%; }
}
