/* =========================================================
   BLOG — hero + grid de artigos (claro, no estilo do site)
   ========================================================= */

/* ---- Hero ---- */
.bloghero {
  position: relative;
  overflow: hidden;
  padding: 156px 0 72px;
  background:
    radial-gradient(720px 440px at 88% -10%, rgba(100, 223, 0, 0.12), transparent 62%),
    radial-gradient(560px 400px at 4% 108%, rgba(4, 157, 92, 0.08), transparent 60%),
    var(--papel);
}

.bloghero__folha {
  position: absolute;
  color: var(--verde);
  pointer-events: none;
  animation: bhFlutua 9s ease-in-out infinite;
}

.bloghero__folha--1 { width: 26px; top: 32%; left: 9%;  opacity: .28; }
.bloghero__folha--2 { width: 18px; top: 64%; left: 85%; opacity: .26; animation-delay: -4s; color: var(--lima); }

@keyframes bhFlutua {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(14deg); }
}

.bloghero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.bloghero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--branco);
  border: 1px solid rgba(4, 157, 92, 0.18);
  border-radius: 999px;
  padding: 7px 16px;
}

.bloghero__crumb a { color: var(--verde); }
.bloghero__crumb a:hover { text-decoration: underline; }
.bloghero__crumb span { margin: 0 4px; opacity: .5; }

.bloghero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.14;
  color: var(--tinta);
  margin: 20px auto 0;
  max-width: 720px;
}

.bloghero__title .grad {
  background: var(--grad-folha);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bloghero__lead {
  font-size: 16px;
  color: var(--tinta-2);
  line-height: 1.65;
  margin: 20px auto 0;
  max-width: 540px;
}

/* ---- Grid de artigos ---- */
.artigos {
  position: relative;
  background: var(--branco);
  padding: 64px 0 80px;
}

.artigos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(to bottom, var(--papel), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.artigos__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* card de artigo */
.artigo {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border: 1px solid rgba(4, 157, 92, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(23, 40, 31, 0.05);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.artigo:hover {
  transform: translateY(-6px);
  border-color: rgba(4, 157, 92, 0.32);
  box-shadow: 0 20px 42px rgba(23, 40, 31, 0.12);
}

.artigo__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.artigo__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.artigo:hover .artigo__img img { transform: scale(1.05); }

.artigo__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--floresta);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 4px 12px rgba(23, 40, 31, 0.12);
}

.artigo__corpo {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  flex: 1;
}

.artigo__meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
}

.artigo__corpo h2,
.artigo__corpo h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--tinta);
  line-height: 1.3;
  margin-top: 8px;
}

.artigo__corpo p {
  font-size: 13.5px;
  color: var(--tinta-2);
  line-height: 1.6;
  margin-top: 10px;
  flex: 1;
}

.artigo__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--verde);
  margin-top: 18px;
}

.artigo__link svg {
  width: 15px;
  height: 15px;
  transition: transform .25s ease;
}

.artigo:hover .artigo__link svg { transform: translateX(4px); }

/* ---- CTA final (faixa clara) ---- */
.cta-final {
  position: relative;
  background:
    radial-gradient(680px 380px at 50% 60%, rgba(100, 223, 0, 0.14), transparent 65%),
    var(--papel);
  padding: 40px 0 88px;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(to bottom, var(--branco), rgba(243, 247, 238, 0));
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
}

.cta-final__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--tinta);
}

.cta-final__title em { font-style: normal; color: var(--verde); }

.cta-final__sub {
  font-size: 15px;
  color: var(--tinta-2);
  margin: 14px auto 0;
  max-width: 440px;
  line-height: 1.6;
}

.cta-final__btn { margin-top: 28px; }

/* ---- Desktop: grid bento (destaque largo + 2 colunas) ---- */
@media (min-width: 680px) {
  .artigos__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .artigos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* card destaque ocupa 2 colunas e é horizontal (imagem + texto lado a lado) */
  .artigo--destaque {
    grid-column: span 2;
    grid-row: span 2;
    flex-direction: row;
  }

  .artigo--destaque .artigo__img {
    aspect-ratio: auto;
    width: 52%;
    flex: none;
  }

  .artigo--destaque .artigo__corpo {
    justify-content: center;
    padding: 34px 34px 34px 32px;
  }

  .artigo--destaque .artigo__corpo h2 {
    font-size: 27px;
    line-height: 1.2;
  }

  .artigo--destaque .artigo__corpo p {
    font-size: 15px;
    flex: none;
  }
}
