:root {
  --cream: #f7f3e8;
  --card: #fffdf7;
  --green: #0f5b45;
  --green-dark: #0a4636;
  --olive: #899653;
  --gold: #e3cf87;
  --text: #26332d;
  --muted: #6f7771;
  --border: #e2dccb;
}

/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--text);
}

a {
  color: var(--green);
}

img {
  max-width: 100%;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  background: rgba(255, 253, 247, 0.97);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a {
  text-decoration: none;
}

/* =========================================================
   ARTIGO
   ========================================================= */

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  gap: 36px;
  padding: 28px 0 70px;
  align-items: start;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 54px);
  box-shadow: 0 18px 50px rgba(29, 56, 44, 0.06);
}

.article-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
}

h1 {
  margin: 12px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.03;
}

.article-excerpt {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
}

.article-meta {
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   IMAGEM DESTACADA
   ========================================================= */

.featured {
  width: 100%;
  margin: 0 0 32px;
}

.featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.featured figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* =========================================================
   CORPO DO ARTIGO
   ========================================================= */

.article-body {
  min-width: 0;
  width: 100%;
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: break-word;
}

.article-body h2 {
  margin: 42px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
}

.article-body h3 {
  margin: 30px 0 12px;
  color: var(--green);
  font-size: 21px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.article-body li {
  margin: 8px 0;
}

/* =========================================================
   IMAGENS INTERNAS
   ========================================================= */

/*
   Imagens colocadas dentro de <figure>.
   O FIGURE controla o tamanho.
*/

.article-body figure,
.article-media {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 26px auto 30px;
}

/*
   A imagem ocupa 100% do figure, nunca ultrapassando 520px.
*/

.article-body figure img,
.article-media img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 14px;
}

/*
   Caso o CMS gere uma IMG diretamente,
   sem envolver em FIGURE.
*/

.article-body > img {
  display: block !important;
  width: 100% !important;
  max-width: 520px !important;
  height: auto !important;
  margin: 26px auto 30px !important;
  border-radius: 14px;
}

/*
   Legendas.
*/

.article-body figure figcaption,
.article-media figcaption {
  width: 100%;
  margin: 8px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

/* =========================================================
   CTA
   ========================================================= */

.product-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 42px 0 8px;
  padding: 24px 26px;
  border-radius: 18px;
  background: #eef5ef;
  border: 1px solid #cfe0d3;
}

.product-cta-copy {
  min-width: 0;
}

.product-cta .cta-eyebrow {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--olive);
}

.product-cta h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green);
  font-size: 25px;
  line-height: 1.15;
}

.product-cta p {
  max-width: 520px;
  margin: 0;
  color: #53615a;
  line-height: 1.55;
}

.product-cta a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  white-space: nowrap;
  background: var(--green);
  color: #fff;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 800;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  position: sticky;
  top: 20px;
}

.side-card {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.side-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green);
  font-size: 20px;
}

.side-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* =========================================================
   ADS
   ========================================================= */

.nm-ad-slot {
  min-height: 90px;
  margin: 32px 0;
  text-align: center;
}

.nm-ad-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8f8c;
}

/* =========================================================
   LISTAGEM
   ========================================================= */

.content-list {
  padding: 54px 0 80px;
}

.content-list h1 {
  max-width: 780px;
}

.content-list-lead {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.content-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(29, 56, 44, 0.05);
}

.content-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.content-card-body {
  padding: 20px;
}

.content-card .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
}

.content-card h2 {
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.12;
}

.content-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.empty-state {
  margin-top: 32px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.empty-state p {
  color: var(--muted);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 34px 0 44px;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

footer a {
  text-decoration: none;
  font-weight: 700;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .article-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   CTA RESPONSIVO
   ========================================================= */

@media (max-width: 680px) {

  .product-cta {
    display: block;
  }

  .product-cta a {
    width: 100%;
    margin-top: 18px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

  .shell {
    width: min(calc(100% - 22px), 1040px);
  }

  .nav {
    gap: 10px;
  }

  .nav .hide-mobile {
    display: none;
  }

  .article-wrap {
    padding-top: 18px;
  }

  .article-card {
    padding: 22px;
    border-radius: 16px;
  }

  .article-body {
    font-size: 16.5px;
  }

  .article-body h2 {
    font-size: 27px;
  }

  /*
     No celular a imagem ocupa toda a largura disponível,
     sem ultrapassar o card.
  */

  .article-body figure,
  .article-media {
    width: 100%;
    max-width: 100%;
  }

  .article-body figure img,
  .article-media img,
  .article-body > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .content-list {
    padding-top: 36px;
  }
}