:root {
  --green-primary: #1d9e75;
  --green-dark: #0f6e56;
  --green-light: #c0dd97;
  --green-bg: #eaf3de;
  --bg-page: #f7f9f4;
  --text-main: #2c2c2a;
  --header-green: #066335;
  --lime: #589519;
  --header-h: 100px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--header-h);
}

main { flex: 1; }

img { max-width: 100%; }

a { color: var(--green-dark); }

/* ---------- Header (fixo, branco) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
.site-nav {
  height: 100%;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
  padding: 0.5rem;
}
.brand {
  display: flex;
  align-items: center;
  padding: 0.5rem;
}
.brand img { height: 60px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-item {
  display: block;
  padding: 2.25rem 1.5rem;
  color: var(--header-green);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.menu-item:hover { background: var(--green-bg); }
.menu-item.active { font-weight: 700; border-bottom-color: var(--header-green); }

/* burger (mobile) */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--header-green);
  padding: 0.5rem 0.75rem;
  user-select: none;
}

@media (max-width: 900px) {
  .site-header { height: auto; }
  body { padding-top: 76px; }
  .site-nav { justify-content: space-between; }
  .brand img { height: 44px; }
  .nav-burger { display: block; }
  .nav-links {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .menu-item { padding: 0.9rem 0.75rem; border-bottom: 1px solid #eee; }
  .menu-item.active { border-bottom-color: var(--header-green); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--header-green);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #166534;
  opacity: 0.4;
  z-index: 10;
}
.hero-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem 1rem;
}
.hero-content h2 { font-size: 1.5rem; font-weight: 400; margin: 0; }
.hero-sub { font-size: 1.5rem; font-weight: 400; margin: 0; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.btn-lime { background: var(--lime); margin-top: 1rem; }
.btn-lime:hover { background: #4a7d15; }
.btn-green { background: var(--header-green); }
.btn-green:hover { background: #05502b; }

/* ---------- Nossa História ---------- */
.historia {
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
}
.historia h1 { font-size: 1.875rem; font-weight: 400; margin: 0.5rem 0; }
.historia p { font-size: 1.125rem; line-height: 1.6; margin: 0; align-self: stretch; }

.historia-foto {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1rem 2.5rem;
}
.historia-foto img {
  width: 591px;
  height: auto;
  border-radius: 0.75rem;
}

/* ---------- Páginas internas ---------- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.page h1 { font-size: 1.875rem; margin: 0 0 1rem; color: var(--green-dark); }
.lead { font-size: 1.125rem; line-height: 1.6; color: #444; }
.empty { color: #777; font-style: italic; margin-top: 2rem; }
.education-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin: 0 0 0.5rem;
}
.back-link { font-weight: 600; text-decoration: none; }

/* equipe */
.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 700; font-style: italic; margin: 0; }
.team-role { color: #777; font-size: 0.9rem; margin: 0.25rem 0 0; }
.team-bio { font-size: 0.85rem; color: #555; margin: 0.6rem 0 0; text-align: left; }

/* ---- listagem de projetos (animada, igual ao site original) ---- */
.projetos-list {
  background: var(--green-bg);
  padding: 1.5rem;
  min-height: calc(100vh - var(--header-h));
}
.projetos-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3.75rem;
  padding: 1.25rem;
}
.project-card {
  width: 15rem;
  position: relative;
  padding: 0 1rem;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.project-shift-right { left: 20%; }
.project-shift-left  { right: 20%; }
.project-link { display: block; text-decoration: none; }
.project-logo-wrap { position: relative; overflow: hidden; z-index: 1; }
.project-logo {
  margin: 0 auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

@media (min-width: 768px) {
  .project-card { width: 25rem; }
}

@keyframes gg-float {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--float-x1), var(--float-y1)); }
  75%  { transform: translate(var(--float-x2), var(--float-y2)); }
  100% { transform: translate(0, 0); }
}
.float { animation: gg-float var(--float-duration, 4s) ease-in-out infinite; }

/* ---- loader de transição por tema ---- */
.project-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  pointer-events: all;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(6, 99, 53, 0.18));
  animation: gg-loader-overlay 0.18s ease-out forwards;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.project-loader-paws     { background: radial-gradient(circle at 50% 22%, rgba(255,255,255,.24), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.16), rgba(88,149,25,.14)); }
.project-loader-leaves   { background: radial-gradient(circle at 50% 22%, rgba(255,255,255,.24), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.14), rgba(88,149,25,.16)); }
.project-loader-beach    { background: radial-gradient(circle at 50% 22%, rgba(255,255,255,.28), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.16), rgba(40,149,179,.16)); }
.project-loader-confetti { background: radial-gradient(circle at 50% 22%, rgba(255,255,255,.22), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.12), rgba(249,199,79,.12)); }
.project-loader-school   { background: radial-gradient(circle at 50% 22%, rgba(255,255,255,.24), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.14), rgba(67,170,139,.14)); }
.project-loader-sharing  { background: radial-gradient(circle at 50% 22%, rgba(255,255,255,.26), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.15), rgba(249,199,79,.13)); }

.loader-item {
  position: absolute;
  top: calc(-1 * var(--item-size));
  left: var(--item-left);
  width: var(--item-size);
  height: var(--item-size);
  animation: gg-item-fall var(--item-duration) linear var(--item-delay) forwards;
  will-change: transform, opacity;
}
.loader-item-bubbles {
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 12%, transparent 13%),
    radial-gradient(circle at 62% 70%, rgba(88,149,25,.22), rgba(88,149,25,.05) 58%, transparent 70%);
  box-shadow: inset -4px -6px 12px rgba(6,99,53,.16), 0 8px 18px rgba(6,99,53,.16);
}
.loader-item-paws,
.loader-item-leaves,
.loader-item-beach,
.loader-item-school,
.loader-item-sharing {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 7px 10px rgba(6, 99, 53, 0.16));
  font-size: var(--item-size);
  line-height: 1;
}
.loader-item-paws::before,
.loader-item-leaves::before,
.loader-item-beach::before,
.loader-item-school::before,
.loader-item-sharing::before {
  content: attr(data-symbol);
  transform: rotate(var(--item-rotate));
}
.loader-item-confetti {
  height: calc(var(--item-size) * 1.6);
  width: calc(var(--item-size) * 0.62);
  border-radius: 2px;
  background: var(--confetti-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
@keyframes gg-loader-overlay { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes gg-item-fall {
  0% {
    opacity: 0;
    transform: translate3d(var(--item-start-x), 0, 0) rotate(var(--item-rotate)) scale(calc(var(--item-scale) * 0.72));
  }
  15% { opacity: 1; }
  45% {
    transform: translate3d(var(--item-mid-sway), 45vh, 0) rotate(calc(var(--item-rotate) + var(--item-mid-spin))) scale(var(--item-scale));
  }
  80% { opacity: 0.92; }
  100% {
    opacity: 0;
    transform: translate3d(var(--item-sway), calc(100vh + var(--item-size) * 2), 0) rotate(calc(var(--item-rotate) + var(--item-spin))) scale(var(--item-scale));
  }
}
@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .project-loader { display: none; }
}

.projeto-detalhe { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.projeto-header { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.projeto-logo img { width: 120px; height: 120px; object-fit: contain; }
.projeto-header h1 { font-size: 2rem; margin: 0.25rem 0; color: var(--green-dark); }
.projeto-bloco { margin: 2rem 0; }
.projeto-bloco h2 { font-size: 1.6rem; margin: 0.25rem 0 1rem; }
.projeto-bloco h3 { font-size: 1.2rem; color: var(--green-dark); }
.projeto-bloco p { line-height: 1.7; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.metric-card {
  background: var(--green-bg);
  border-radius: 0.6rem;
  padding: 1rem;
  font-weight: 600;
  color: var(--green-dark);
}
.cta-section {
  background: var(--green-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 2.5rem 0 1.5rem;
}
.cta-section h3 { margin-top: 0; }

/* noticias */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.noticia-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.noticia-card img { width: 100%; height: 170px; object-fit: cover; }
.noticia-card-body { padding: 1.25rem; }
.noticia-cat {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--green-primary); margin: 0;
}
.noticia-card h2 { font-size: 1.15rem; margin: 0.5rem 0; }
.noticia-card p { font-size: 0.9rem; color: #555; line-height: 1.6; margin: 0; }
.noticia-link { display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 700; }

.empty-box { background: #fff; border-radius: 0.75rem; padding: 2rem; margin-top: 2rem; }
.empty-box h2 { margin-top: 0; }

.noticia-detalhe { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.noticia-detalhe h1 { font-size: 2.4rem; line-height: 1.15; color: var(--green-dark); margin: 0.5rem 0; }
.noticia-data { color: #777; font-size: 0.9rem; }
.noticia-cover { width: 100%; border-radius: 0.75rem; margin: 1.5rem 0; }
.noticia-corpo { line-height: 1.8; }
.noticia-corpo img { border-radius: 0.5rem; }

.pagina-corpo { white-space: pre-wrap; line-height: 1.8; margin-top: 1rem; }

.noticias-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.noticia-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.noticia-card h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }

/* ---------- Formulários ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
  margin-top: 2rem;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.form input, .form select, .form textarea {
  padding: 0.6rem 0.7rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 0.4rem;
}
.form textarea { resize: vertical; }

.success { color: var(--green-dark); font-weight: 600; margin-top: 1rem; }
.error { color: #c62828; margin-top: 1rem; }

.contato-direto {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--header-green);
  color: #fff;
  padding: 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.footer-logo img { width: 150px; }
.footer-tagline { margin: 0 0 1.25rem; }
.footer-heading { font-weight: 400; margin: 0; }
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
}
.footer-contact svg { width: 2.5rem; height: 2.5rem; flex: none; }
.footer-follow { text-align: center; margin-top: 1rem; }

/* ---------- consentimento de cookies ---------- */
.footer-legal { font-size: 0.85rem; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.footer-legal a { color: inherit; opacity: 0.85; }

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%); transition: transform 0.25s ease;
}
.consent.show { transform: none; }
.consent-inner {
  max-width: 980px; margin: 0 auto;
  background: #fff; color: var(--text-main);
  border: 1px solid #e3e8dc; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  padding: 1.1rem 1.1rem 1rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.consent-title { font-weight: 800; font-size: 1rem; margin: 0 0 0.3rem; color: var(--green-dark); }
.consent-text p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.consent-custom { display: none; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.consent.custom .consent-custom { display: flex; }
.consent-opt { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; }
.consent-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-dark); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent-btn {
  flex: 1 1 auto; min-height: 44px; padding: 0.55rem 1rem;
  border-radius: 10px; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  border: 1px solid transparent;
}
.consent-btn.primary { background: var(--header-green); color: #fff; }
.consent-btn.primary:hover { background: #05502b; }
.consent-btn.outline { background: #fff; border-color: #cfd6c7; color: var(--text-main); }
.consent-btn.ghost { background: none; color: var(--green-dark); text-decoration: underline; flex: 0 1 auto; }
.consent .save { display: none; }
.consent.custom .save { display: inline-block; }
.consent.custom [data-consent="custom"] { display: none; }
@media (min-width: 760px) {
  .consent { padding: 1rem; }
  .consent-inner { flex-direction: row; align-items: center; padding: 1.25rem 1.5rem; gap: 1.5rem; }
  .consent-text { flex: 1; }
  .consent-actions { flex-wrap: nowrap; flex: none; }
}

/* ---------- página de privacidade ---------- */
.privacidade h2 { color: var(--green-dark); font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
.privacidade ul { padding-left: 1.2rem; }
.privacidade li { margin-bottom: 0.35rem; }

/* =========================================================
   Início
   ========================================================= */
.h-wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.h-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-dark);
}
.h-hero h1, .h-section h2, .h-ways h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600; letter-spacing: -0.01em; color: #1d2b21;
  text-wrap: balance;
}
.h-link { font-weight: 700; color: var(--green-dark); text-decoration: none; white-space: nowrap; }
.h-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* hero — foto de fundo com leve desfoque e camada verde (estilo original) */
.h-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 520px; padding: 4rem 0;
  background: var(--header-green); color: #fff;
}
.h-hero-bg {
  position: absolute; inset: -12px;           /* compensa a borda clara do blur */
  width: calc(100% + 24px); height: calc(100% + 24px);
  object-fit: cover; filter: blur(3px);
}
.h-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 52, 30, 0.55) 0%, rgba(10, 52, 30, 0.62) 100%);
}
.h-hero-content { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.h-hero .h-kicker { color: #d4ecbd; }
.h-hero h1 {
  color: #fff; max-width: 20ch;
  font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: 0 0 1.25rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
.h-lead { font-size: 1.1rem; line-height: 1.7; margin: 0 0 2rem; max-width: 38rem; color: rgba(255, 255, 255, 0.92); }
.h-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.h-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.h-btn-primary { background: var(--lime); color: #fff; }
.h-btn-primary:hover { background: #4a7d15; }
.h-btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.75); }
.h-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
@media (min-width: 900px) { .h-hero { min-height: 600px; } }

/* números */
.h-facts { background: var(--green-bg); border-bottom: 1px solid #dde8cf; }
.h-facts-grid { display: grid; gap: 1.25rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.h-facts-grid div { display: flex; flex-direction: column; gap: 0.2rem; }
.h-facts strong { font-family: "Lora", Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--header-green); }
.h-facts span { font-size: 0.93rem; color: #4d5a50; line-height: 1.5; }
@media (min-width: 760px) {
  .h-facts-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .h-facts-grid div + div { border-left: 1px solid #cddcbc; padding-left: 2.5rem; }
}

/* seções */
.h-section { padding: 3.5rem 0; }
.h-section-tint { background: #f1f5ec; }
.h-section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0; }
.h-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: 2rem; }
.h-head-note { margin: 0; max-width: 26rem; color: #5a645d; line-height: 1.6; }
@media (min-width: 900px) { .h-section { padding: 5rem 0; } }

/* história */
.h-story { display: grid; gap: 2rem; align-items: center; }
.h-story-photo { margin: 0; }
.h-story-photo img { display: block; width: 100%; height: auto; max-width: 480px; border-radius: 18px; }
.h-story-text h2 { margin-bottom: 1.25rem; }
.h-story-text p { font-size: 1.06rem; line-height: 1.8; color: #3e4741; margin: 0 0 1rem; max-width: 38rem; }
.h-sign { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #e3e8dd; max-width: 38rem; }
.h-sign img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.h-sign strong { display: block; color: #1d2b21; }
.h-sign span { font-size: 0.88rem; color: #6b746e; }
@media (min-width: 900px) { .h-story { grid-template-columns: 0.85fr 1fr; gap: 4.5rem; } }

/* projetos */
.h-projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.h-projects a {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem; height: 100%;
  padding: 1.25rem 1rem 1rem; background: #fff; border: 1px solid #e1e8d8; border-radius: 14px;
  text-decoration: none; color: #2f3a33; font-weight: 600; font-size: 0.9rem; text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}
.h-projects a:hover { border-color: var(--green-primary); transform: translateY(-2px); }
.h-projects img { width: 100%; max-width: 180px; aspect-ratio: 16 / 9; object-fit: contain; }
@media (min-width: 640px) { .h-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1000px) { .h-projects { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* notícias */
.h-news { display: grid; gap: 1rem; }
.h-news-item { display: flex; flex-direction: column; background: #fff; border: 1px solid #e1e8d8; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; }
.h-news-item:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.h-news-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.h-news-item > div { padding: 1rem 1.15rem 1.25rem; }
.h-news-meta { margin: 0 0 0.35rem; font-size: 0.8rem; color: #6b746e; }
.h-news-item h3 { margin: 0 0 0.4rem; font-size: 1.1rem; color: #1d2b21; }
.h-news-item p { margin: 0; color: #4d5a50; font-size: 0.93rem; line-height: 1.6; }
@media (min-width: 760px) { .h-news { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* participe */
.h-join { background: #12382a; color: #e7efe9; }
.h-join h2, .h-join .h-ways h3 { color: #fff; }
.h-join .h-kicker { color: #a9d38a; }
.h-join .h-link { color: #c6e6a8; }
.h-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.h-ways li { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 1.25rem; }
.h-num { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: #a9d38a; }
.h-ways h3 { font-size: 1.35rem; margin: 0.5rem 0 0.6rem; }
.h-ways p { margin: 0 0 1rem; line-height: 1.7; color: #c9d6cd; }
@media (min-width: 760px) { .h-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* =========================================================
   Início montado por blocos (editor do painel)
   Cada <section class="blk"> aceita --blk-bg, --blk-fg, --blk-ac.
   ========================================================= */
.blk { background: var(--blk-bg, transparent); color: var(--blk-fg, inherit); padding: 3.5rem 0; }
@media (min-width: 900px) { .blk { padding: 5rem 0; } }
.blk.esp-nenhum { padding: 0; }
.blk.esp-pequeno { padding: 1.5rem 0; }
.blk.esp-medio { padding: 3rem 0; }
.blk.esp-grande { padding: 5rem 0; }
@media (min-width: 900px) { .blk.esp-grande { padding: 7rem 0; } }
.blk-hero { padding: 0 !important; }

.blk-wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.lg-estreita .blk-wrap { max-width: 760px; }
.lg-larga .blk-wrap { max-width: 1440px; }
.lg-total .blk-wrap { max-width: none; padding: 0; }
.al-centro { text-align: center; }
.al-centro .h-head { justify-content: center; text-align: center; }
.al-centro .h-actions, .al-centro .h-story-text p, .al-centro .blk-intro { margin-left: auto; margin-right: auto; justify-content: center; }
.al-direita { text-align: right; }
.al-direita .h-actions { justify-content: flex-end; }
.al-esquerda .h-hero-content { text-align: left; align-items: flex-start; }
.al-esquerda .h-actions { justify-content: flex-start; }
.al-direita .h-hero-content { text-align: right; align-items: flex-end; }

.blk h2, .blk h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600; letter-spacing: -0.01em; color: var(--blk-fg, #1d2b21); text-wrap: balance;
}
.blk h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 1rem; }
.blk .h-head h2 { margin: 0; }
.blk .h-kicker { color: var(--blk-ac, var(--green-dark)); }
.blk .h-link { color: var(--blk-ac, var(--green-dark)); }
.blk-com-fundo .h-story-text p, .blk-com-fundo .blk-intro { color: var(--blk-fg, #3e4741); }
.blk-intro { max-width: 40rem; line-height: 1.7; margin: -1rem 0 1.75rem; color: #4d5a50; }
.blk-rich { line-height: 1.8; font-size: 1.04rem; }
.blk-rich p { margin: 0 0 1rem; }
.blk-rich img { max-width: 100%; height: auto; border-radius: 12px; }
.blk-rich a { color: var(--blk-ac, var(--green-dark)); }

/* botões dos blocos */
.blk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1.5px solid transparent; transition: filter .15s, background .15s;
}
.blk-btn-primario { background: var(--blk-ac, var(--lime)); color: #fff; }
.blk-btn-primario:hover { filter: brightness(.92); }
.blk-btn-secundario { background: var(--header-green); color: #fff; }
.blk-btn-secundario:hover { filter: brightness(.92); }
.blk-btn-contorno { color: currentColor; border-color: currentColor; }
.blk-btn-contorno:hover { background: rgba(127, 127, 127, .12); }
.blk-btn-link { color: var(--blk-ac, var(--green-dark)); padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 3px; }
.blk:not(.blk-hero) .blk-btn-contorno { color: var(--blk-ac, var(--green-dark)); }

/* destaque (hero) — desfoque e escurecimento configuráveis */
.blk-hero .h-hero { background: var(--blk-bg, var(--header-green)); color: var(--blk-fg, #fff); min-height: 0; }
.blk-hero .h-hero-bg { filter: blur(var(--blur, 3px)); }
.blk-hero .h-hero-overlay { background: rgb(10 52 30 / calc(var(--dim, 58) * 1%)); }
.blk-hero .h-hero.sem-foto .h-hero-overlay { display: none; }
.blk-hero .h-hero h1, .blk-hero .h-hero-h2 { color: var(--blk-fg, #fff); }
.blk-hero .h-hero-h2 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; margin: 0 0 1.1rem; max-width: 22ch; }
.blk-hero .h-lead { color: var(--blk-fg, rgba(255, 255, 255, .92)); }
.blk-hero .h-kicker { color: var(--blk-ac, #d4ecbd); }
.h-hero.alt-pequena { min-height: 300px; }
.h-hero.alt-media { min-height: 420px; }
.h-hero.alt-grande { min-height: 520px; }
.h-hero.alt-tela { min-height: calc(100svh - var(--header-h)); }
@media (min-width: 900px) { .h-hero.alt-grande { min-height: 600px; } .h-hero.alt-media { min-height: 480px; } }

/* texto com imagem do outro lado */
@media (min-width: 900px) {
  .h-story.img-direita { grid-template-columns: 1fr 0.85fr; }
  .h-story.img-direita .h-story-photo { order: 2; }
}

/* carrossel (scroll-snap: arrastar com o dedo funciona sem JS) */
.car { position: relative; border-radius: 18px; overflow: hidden; background: #0f2a1d; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; margin: 0; height: var(--car-h, 420px); }
.car.alt-pequena { --car-h: 260px; } .car.alt-media { --car-h: 420px; } .car.alt-grande { --car-h: 560px; } .car.alt-tela { --car-h: 80svh; }
@media (max-width: 640px) { .car.alt-media { --car-h: 300px; } .car.alt-grande { --car-h: 400px; } }
.car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-slide figcaption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.25rem 1.25rem; color: #fff; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65)); display: flex; flex-direction: column; gap: .35rem; align-items: flex-start;
}
.car-slide figcaption strong { font-family: "Lora", Georgia, serif; font-size: 1.35rem; }
.car-slide figcaption span { max-width: 40rem; line-height: 1.5; }
.car-slide figcaption .blk-btn { margin-top: .5rem; min-height: 42px; padding: .6rem 1.2rem; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); color: #12382a; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.car-prev { left: .75rem; } .car-next { right: .75rem; }
.car-nav:hover { background: #fff; }
.car-dots { position: absolute; left: 0; right: 0; bottom: .6rem; display: flex; justify-content: center; gap: .4rem; pointer-events: none; }
.car-dots button { pointer-events: auto; width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .5); cursor: pointer; }
.car-dots button[aria-selected="true"] { background: #fff; width: 22px; border-radius: 5px; }
@media (hover: none) { .car-nav { display: none; } }

/* cartões numerados */
.cards-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; text-align: left; }
@media (min-width: 760px) { .cards-lista { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; } }
.cards-lista li { background: rgba(255, 255, 255, .7); border: 1px solid rgba(0, 0, 0, .07); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.blk-com-fundo .cards-lista li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); }
.cards-lista img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: .4rem; }
.blk-num { font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--blk-ac, var(--green-dark)); }
.cards-lista h3 { font-size: 1.25rem; margin: .1rem 0; }
.cards-lista p { margin: 0 0 .5rem; line-height: 1.65; opacity: .85; }

/* números */
.nums-grade { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.nums-grade div { display: flex; flex-direction: column; gap: .2rem; }
.nums-grade strong { font-family: "Lora", Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--blk-ac, var(--header-green)); line-height: 1.1; }
.nums-grade span { opacity: .8; line-height: 1.5; }

/* imagem, vídeo, espaço */
.blk-figura { margin: 0; }
.blk-figura img { width: 100%; height: auto; display: block; border-radius: 16px; }
.lg-total .blk-figura img { border-radius: 0; }
.blk-figura figcaption { font-size: .88rem; opacity: .75; margin-top: .6rem; }
.video-caixa { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video-caixa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.espaco-vazio.alt-pequena { height: 1.5rem; } .espaco-vazio.alt-media { height: 3rem; } .espaco-vazio.alt-grande { height: 6rem; } .espaco-vazio.alt-tela { height: 30vh; }
.botoes-linha { margin-top: .5rem; }

/* faixa de pré-visualização do rascunho */
.preview-bar { position: sticky; top: var(--header-h); z-index: 50; background: #fff4dc; color: #7a4d00; text-align: center; font-size: .88rem; padding: .5rem 1rem; border-bottom: 1px solid #f0d9a8; }

/* ---- blocos lado a lado ---- */
.blk-linha { background: var(--blk-bg, transparent); color: var(--blk-fg, inherit); padding: 3.5rem 0; }
@media (min-width: 900px) { .blk-linha { padding: 5rem 0; } }
.blk-linha.esp-nenhum { padding: 0; } .blk-linha.esp-pequeno { padding: 1.5rem 0; } .blk-linha.esp-grande { padding: 6rem 0; }
.blk-linha-in { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .blk-linha-in { gap: 3rem; }
  .cols-2.prop-igual .blk-linha-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 .blk-linha-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-2.prop-40-60 .blk-linha-in { grid-template-columns: 2fr 3fr; }
  .cols-2.prop-60-40 .blk-linha-in { grid-template-columns: 3fr 2fr; }
  .cols-2.prop-33-67 .blk-linha-in { grid-template-columns: 1fr 2fr; }
  .cols-2.prop-67-33 .blk-linha-in { grid-template-columns: 2fr 1fr; }
}
/* dentro da linha cada bloco vira uma coluna: sem margens próprias */
.blk-linha-in > .blk { padding: 0; min-width: 0; }
.blk-linha-in > .blk > .blk-wrap { max-width: none; padding: 0; }
.blk-linha-in > .blk:first-child { background: transparent !important; }  /* a cor dele pinta a linha toda */
.blk-linha-in > .blk.blk-com-fundo:not(:first-child) { padding: 1.5rem; border-radius: 16px; }
.blk-linha-in .h-head { margin-bottom: 1.25rem; }
.blk-linha-in .h-story { display: block; }
.blk-linha-in .h-story-photo { margin-bottom: 1.5rem; }
.blk-linha-in .car { --car-h: 360px; }
.blk-linha-in .car.alt-pequena { --car-h: 240px; } .blk-linha-in .car.alt-grande { --car-h: 460px; }
.blk-linha-in .h-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blk-linha-in .h-news { grid-template-columns: minmax(0, 1fr); }
.blk-linha-in .blk-hero .h-hero { border-radius: 18px; min-height: 360px; }
