/* =========================================================
   AGROP - Associação dos Agricultores Familiares do Tocantins
   ========================================================= */

:root {
  --green-900: #013214;
  --green-800: #04411d;
  --green-700: #0a5a2a;
  --green-500: #2f8f45;
  --leaf: #9be961;
  --orange: #f66804;
  --orange-600: #dc5a00;
  --cream: #f7f5ee;
  --paper: #ffffff;
  --ink: #12261a;
  --muted: #5a6b60;
  --line: #e3e1d6;

  /* variáveis semânticas (mudam no modo escuro) */
  --band: #ffffff;
  --heading: var(--green-900);
  --chrome: var(--green-900);
  --icon-green: var(--green-500);
  --tag-text: var(--green-800);
  --field-bg: #fcfcf9;
  --on-heading: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(1, 50, 20, 0.12);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Modo escuro ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #013214;
  --band: #012a11;
  --paper: #064a25;
  --ink: #e8f3ea;
  --muted: #aac6b1;
  --line: rgba(255, 255, 255, .14);
  --heading: #ffffff;
  --chrome: #01210d;
  --icon-green: var(--leaf);
  --tag-text: var(--leaf);
  --field-bg: rgba(255, 255, 255, .06);
  --on-heading: #013214;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  transition: background-color .3s, color .3s;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; color: var(--heading); }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--orange); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 8px; font: 600 .95rem/1 "Poppins", sans-serif;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); }
.btn-outline { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(0, 0, 0, .15); }
.btn-outline:hover { background: #fff; color: var(--green-900); }
.btn-dark { background: var(--chrome); color: #fff; }
.btn-dark:hover { background: var(--green-700); }
.btn-ghost { border-color: var(--heading); color: var(--heading); }
.btn-ghost:hover { background: var(--heading); color: var(--on-heading); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--chrome);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand img { height: 58px; width: auto; }

.header-actions { display: flex; align-items: center; gap: .8rem; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .12); border-color: var(--leaf); transform: rotate(15deg); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; color: var(--leaf); }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  position: relative; color: #e9f3ea; font-size: .92rem; font-weight: 500; padding: .5rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, top .25s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Fotos (com fallback quando a imagem ainda não existe) ---------- */
.photo {
  --img: none;
  background-color: var(--green-700);
  background-image:
    var(--img),
    radial-gradient(circle at 20% 20%, rgba(155, 233, 97, .35), transparent 45%),
    linear-gradient(135deg, var(--green-700), var(--green-900));
  background-size: cover;
  background-position: center;
  position: relative;
}
.photo::after { /* ícone de folha quando não há foto */
  content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background: url("../assets/favicon.png") center / 22% no-repeat;
}
.photo.has-img::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(620px, 82vh); display: flex; align-items: center;
}
.hero .photo { position: absolute; inset: 0; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(1, 50, 20, .92) 0%, rgba(1, 50, 20, .72) 42%, rgba(1, 50, 20, .1) 100%);
}
.hero-content { max-width: 620px; padding-block: 4rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero p { font-size: 1.1rem; color: #e6f1e7; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* Hero de páginas internas */
.page-hero {
  background: var(--chrome); color: #fff; padding: 4rem 0 3.2rem; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; opacity: .08;
  background: url("../assets/favicon.png") center / contain no-repeat;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .4rem; }
.page-hero p { color: #cfe3d2; max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--leaf); margin-bottom: 1rem; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Seções ---------- */
.section { padding: 5rem 0; }
.section-white { background: var(--band); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .8rem;
}
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Intro + pilares */
.intro-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 3rem; align-items: start; }
.intro-grid h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.intro-grid > div > p { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 0 1.6rem; border-left: 1px solid var(--line); }
.pillar .icon { width: 44px; height: 44px; color: var(--icon-green); margin-bottom: .8rem; }
.pillar h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Faixa de destaque */
.banner { background: var(--chrome); color: #fff; position: relative; overflow: hidden; }
.banner-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.banner-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; }
.banner-text { padding: 3.5rem 3rem 3.5rem 0; display: flex; gap: 1.2rem; align-items: flex-start; position: relative; z-index: 2; }
.banner-text .icon { flex: none; width: 40px; height: 40px; color: var(--leaf); margin-top: .3rem; }
.banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.banner h2 em { color: var(--orange); font-style: normal; }
.banner p { color: #cfe3d2; margin: 0; }
.banner .photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--chrome), transparent 40%);
}

/* Cards */
.cards { display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .photo { aspect-ratio: 16 / 10; }
.card-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card-body p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.card-link { margin-top: auto; color: var(--orange); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.card-link:hover { gap: .7rem; }
.tag {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .65rem; border-radius: 999px; background: rgba(155, 233, 97, .3); color: var(--tag-text); margin-bottom: .7rem;
}
.date { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }

.section-cta { margin-top: 2.4rem; text-align: center; }

/* Duas colunas texto + foto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split .photo { border-radius: var(--radius); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.split.reverse .photo { order: 2; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .25rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23013214' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Missão, visão, valores */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.mvv-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; border-top: 4px solid var(--orange); }
.mvv-item:nth-child(2) { border-top-color: var(--leaf); }
.mvv-item:nth-child(3) { border-top-color: var(--green-500); }
.mvv-item .icon { width: 42px; height: 42px; color: var(--icon-green); margin-bottom: .8rem; }
.mvv-item p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Linha do tempo */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -2rem; top: .35rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--orange);
}
.section-white .timeline-item::before { border-color: var(--band); }
.timeline-item .year { font-weight: 700; color: var(--orange); font-size: 1.05rem; }
.timeline-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.timeline-item p { color: var(--muted); margin: 0; font-size: .95rem; }

/* História em capítulos */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 920px; margin: 0 auto 4rem; }
.fact { background: var(--chrome); color: #cfe3d2; border-radius: var(--radius); padding: 1.6rem 1.4rem; text-align: center; }
.fact strong { display: block; font-size: 2.6rem; line-height: 1.1; color: var(--orange); margin-bottom: .4rem; }
.fact span { font-size: .9rem; display: block; }

.chapters { max-width: 820px; margin: 0 auto; }
.chapter { display: grid; grid-template-columns: 64px 1fr; gap: 1.6rem; position: relative; padding-bottom: 2.8rem; }
.chapter::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 6px; width: 2px; background: var(--line); }
.chapter:last-child { padding-bottom: 0; }
.chapter:last-child::before { display: none; }
.chapter-num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--chrome); color: var(--leaf); font-weight: 700; font-size: 1.15rem; box-shadow: 0 0 0 5px var(--cream);
}
.chapter-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: .5rem 0 .7rem; }
.chapter-body p { font-size: 1.04rem; color: var(--ink); }
.chapter-body strong { color: var(--heading); }
.chapter-body blockquote {
  margin: 1.2rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--orange); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.chapter-body blockquote p { margin: 0 0 .4rem; font-style: italic; color: var(--ink); }
.chapter-body cite { font-size: .85rem; font-style: normal; font-weight: 600; color: var(--orange); }
.chapter-figure { margin: 1.2rem 0 0; }
.chapter-figure img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow); border: 1px solid var(--line); }
.chapter-body > .chapter-figure { max-width: 400px; }
.chapter-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.chapter-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chapter-photos .chapter-figure img { height: 100%; object-fit: cover; aspect-ratio: 1 / 0.95; }

/* Áreas de atuação */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.area {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf); }
.area .icon {
  width: 56px; height: 56px; padding: 13px; border-radius: 14px; margin-bottom: 1rem;
  background: var(--chrome); color: var(--leaf);
}
.area h3 { font-size: 1.12rem; }
.area p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Números / destaque */
.cta-band { background: var(--orange); color: #fff; padding: 3.2rem 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0; color: #fff3ea; }
.cta-band .btn-dark:hover { background: #000; }

/* Notícias - destaque */
.featured { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.8rem; }
.featured .photo { min-height: 300px; }
.featured .card-body { padding: 2.2rem; justify-content: center; }
.featured h3 { font-size: 1.5rem; }

/* Filtro */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
  border: 1.5px solid var(--heading); background: transparent; color: var(--heading); padding: .5rem 1.1rem; border-radius: 999px;
  font: 500 .88rem "Poppins", sans-serif; cursor: pointer; transition: background .2s, color .2s;
}
.filter:hover, .filter.active { background: var(--heading); color: var(--on-heading); }
.card[hidden] { display: none; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--chrome); color: var(--leaf); }
.contact-list strong { display: block; color: var(--heading); }
.contact-list span, .contact-list a { color: var(--muted); font-size: .95rem; }
.contact-list a:hover { color: var(--orange); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .95rem; background: var(--field-bg); color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(47, 143, 69, .18); }
.form-note { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }
.form-feedback { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(155, 233, 97, .3); color: var(--tag-text); font-size: .92rem; display: none; }
.form-feedback.show { display: block; }

.map-box { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map-box iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--chrome); color: #cfe3d2; padding: 3.5rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-grid h4 { color: var(--leaf); font-size: .95rem; margin-bottom: 1rem; }
.footer-grid img { height: 70px; width: auto; margin-bottom: 1rem; }
.footer-grid p { font-size: .9rem; margin: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, transform .2s;
}
.social a:hover { background: var(--orange); transform: translateY(-2px); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { padding-top: 1.3rem; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: #8fb09a; }

/* Botão flutuante do Instagram */
.float-ig {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .2s;
}
.float-ig:hover { transform: scale(1.08); }
.float-ig svg { width: 26px; height: 26px; }
.float-ig { bottom: 86px; width: 46px; height: 46px; background: var(--green-700); }
.float-ig svg { width: 22px; height: 22px; }

.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .2s;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 28px; height: 28px; }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--chrome); flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.5rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12);
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity .2s;
  }
  .nav.open { max-height: 480px; visibility: visible; opacity: 1; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav a::after { display: none; }

  .intro-grid, .split, .contact-grid, .featured, .banner-inner { grid-template-columns: 1fr; }
  .split.reverse .photo { order: 0; }
  .banner-text { padding: 2.5rem 0 1.5rem; }
  .banner-photo { position: relative; width: 100%; height: 220px; }
  .banner .photo::before { background: linear-gradient(180deg, var(--chrome), transparent 40%); }
  .cards, .areas, .mvv { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; margin-bottom: 2.5rem; }
  .chapter { grid-template-columns: 44px 1fr; gap: 1rem; }
  .chapter::before { left: 21px; top: 46px; }
  .chapter-num { width: 44px; height: 44px; font-size: .95rem; box-shadow: 0 0 0 4px var(--cream); }
  .chapter-photos { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .pillars { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
  .cards, .areas, .mvv, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(1, 50, 20, .85), rgba(1, 50, 20, .7)); }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .brand img { height: 50px; }
}

/* =========================================================
   Estilo "mural" (referência do material da associação)
   ========================================================= */
:root { --gridline: rgba(1, 50, 20, .07); }
:root[data-theme="dark"] { --gridline: rgba(255, 255, 255, .05); }

.grid-bg {
  background-image:
    linear-gradient(to right, var(--gridline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gridline) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* Foto "colada" no mural */
.scrap {
  --rot: 0deg;
  margin: 0; background: #fff; padding: 6px; border-radius: 3px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transform: rotate(var(--rot));
  transition: transform .25s, box-shadow .25s;
}
.scrap img { display: block; width: 100%; height: auto; }
.scrap:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.scrap figcaption { color: #3b4a40; font-size: .8rem; padding: .5rem .3rem .2rem; line-height: 1.35; }

/* Adesivo laranja */
.sticker {
  display: inline-block; background: var(--orange); color: var(--green-900); font-weight: 700; line-height: 1.25;
  padding: .7rem 1.2rem; border-radius: 16px; transform: rotate(-2deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.sticker.big { font-size: 1.15rem; padding: 1rem 1.5rem; max-width: 380px; }

.sunburst {
  position: absolute; width: 96px; height: 96px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23f66804'%3E%3Cpolygon points='50,0 57,38 100,50 57,62 50,100 43,62 0,50 43,38'/%3E%3Cpolygon transform='rotate(45 50 50)' points='50,14 55,41 86,50 55,59 50,86 45,59 14,50 45,41'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hero da história */
.hero-story { background: var(--chrome); color: #fff; position: relative; overflow: hidden; padding: 4.2rem 0 5rem; }
.hero-story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hero-story-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero-story h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -.5px; margin: 1.2rem 0 1rem; }
.hero-story h1 em { font-style: normal; color: var(--leaf); }
.hero-story p { color: #dcebdd; font-size: 1.1rem; max-width: 520px; }
.collage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.02; margin-left: auto; }
.collage .scrap { position: absolute; }
.collage .c1 { left: 0; top: 2%; width: 54%; --rot: -4deg; }
.collage .c2 { right: 0; top: 0; width: 46%; --rot: 3deg; z-index: 2; }
.collage .c3 { left: 24%; bottom: 0; width: 56%; --rot: -1.5deg; z-index: 3; }
.collage .sticker { position: absolute; right: 0; bottom: 6%; z-index: 4; font-size: .95rem; }
.hero-story .sunburst { left: 50%; bottom: -44px; width: 78px; height: 78px; opacity: .9; }

/* Faixa de números (4 colunas) */
.facts.four { grid-template-columns: repeat(4, 1fr); max-width: 1000px; }

/* Frase em destaque */
.quote-band { background: var(--paper); border-block: 1px solid var(--line); padding: 3.2rem 0; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; text-align: center; }
.quote-band blockquote p { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.45; color: var(--heading); margin-bottom: .8rem; }
.quote-band blockquote p em { font-style: normal; color: var(--orange); }
.quote-band cite { font-style: normal; font-weight: 600; color: var(--orange); font-size: .95rem; }

/* Tira de recortes de jornal */
.press-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; margin-top: 2rem; }
.press-strip .scrap:nth-child(1) { --rot: -2deg; }
.press-strip .scrap:nth-child(2) { --rot: 1.5deg; margin-top: 1.2rem; }
.press-strip .scrap:nth-child(3) { --rot: -1deg; }

/* Faixa escura com fotos */
.feature-dark { background: var(--chrome); color: #dcebdd; padding: 4.5rem 0; position: relative; overflow: hidden; }
.feature-dark h2 { color: #fff; }
.feature-dark p { color: #cfe3d2; }
.feature-dark .split .scrap { --rot: 2deg; }
.feature-dark .eyebrow { color: var(--leaf); }

/* Lista de produtos */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tags li { background: rgba(155, 233, 97, .25); color: var(--tag-text); font-size: .85rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; }
.feature-dark .tags li { color: var(--leaf); }
.card .photo.top { background-position: center top; }
.card .photo.tall { aspect-ratio: 4 / 3; }

/* Galeria */
.gallery { columns: 3 260px; column-gap: 1.4rem; }
.g-item { break-inside: avoid; margin: 0 0 1.4rem; cursor: zoom-in; display: block; }
.g-item[hidden] { display: none; }
.g-item:nth-child(3n+1) { --rot: -1.5deg; }
.g-item:nth-child(3n+2) { --rot: 1.2deg; }
.g-item:nth-child(3n) { --rot: -.6deg; }

/* Fotos dentro dos capítulos */
.chapter-figure.scrap { padding: 6px; }
.chapter-figure.scrap img { border: 0; box-shadow: none; border-radius: 0; }
.chapter-body > .chapter-figure { max-width: 430px; }
.chapter-photos .chapter-figure { margin-top: 0; }
.chapter-photos .chapter-figure img { aspect-ratio: auto; height: auto; }
.chapter-photos { align-items: start; margin-top: 1.2rem; }
.chapter-photos .wide { grid-column: 1 / -1; }
.chapter-photos.three { grid-template-columns: repeat(3, 1fr); }
.chapter-photos .chapter-figure:nth-child(odd) { --rot: -1.2deg; }
.chapter-photos .chapter-figure:nth-child(even) { --rot: 1.2deg; }
.chapter-body > .chapter-figure { --rot: -1deg; }
.chapter-sticker { margin-top: 1.2rem; }

/* Lightbox */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0, 12, 5, .92); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 78vh; border-radius: 4px; background: #fff; padding: 6px; }
.lightbox p { color: #dcebdd; margin: 1rem 0 0; text-align: center; max-width: 700px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.lightbox button:hover { background: var(--orange); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; }
.lightbox .lb-next { right: 18px; top: 50%; }

.steps-note { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }

@media (max-width: 980px) {
  .hero-story-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .collage { margin: 0 auto; max-width: 440px; }
  .facts.four { grid-template-columns: repeat(2, 1fr); }
  .press-strip { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .press-strip .scrap { --rot: 0deg !important; margin-top: 0 !important; }
}
@media (max-width: 640px) {
  .facts.four { grid-template-columns: 1fr; }
  .chapter-photos.three { grid-template-columns: 1fr; }
  .hero-story { padding: 3rem 0 3.5rem; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 18px; }
}

/* fotos "wide" em capítulos: não esticar além da resolução disponível */
.chapter-photos .chapter-figure.wide { max-width: 520px; justify-self: start; }
.chapter-photos .chapter-figure.wide:nth-child(even) { justify-self: end; }


/* Parceiros */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 980px; margin: 0 auto; }
.partner {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem 1.6rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf); }
.partner-badge {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--chrome); color: var(--leaf); font-weight: 700; font-size: 1.5rem; letter-spacing: .5px; box-shadow: 0 0 0 4px rgba(155, 233, 97, .35);
}
.partner h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.partner-handle { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.partner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: auto; }
.btn-sm { padding: .6rem 1rem; font-size: .85rem; border-width: 1.5px; }
@media (max-width: 980px) { .partners { grid-template-columns: 1fr; max-width: 420px; } }


/* Logos dos parceiros */
.partner { padding: 0 1.5rem 1.6rem; overflow: hidden; }
.partner-logo {
  display: block; width: calc(100% + 3rem); margin: 0 -1.5rem 1.3rem; aspect-ratio: 4 / 3; object-fit: cover;
  border-bottom: 1px solid var(--line); transition: transform .35s;
}
.partner:hover .partner-logo { transform: scale(1.04); }
.partner-logo-wrap { overflow: hidden; }

.partner-logo { width: auto; align-self: stretch; height: auto; }

.partner { display: block; }
.partner-logo { width: calc(100% + 3rem); align-self: auto; max-width: none; }
.partner-actions { margin-top: 0; }


/* Submenu (Produtos) */
.nav-item { position: relative; display: flex; align-items: center; gap: .15rem; }
.sub-toggle {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #e9f3ea; cursor: pointer; border-radius: 50%;
  transition: transform .2s, background .2s;
}
.sub-toggle:hover { background: rgba(255, 255, 255, .12); }
.nav-item.open .sub-toggle { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: -1rem; min-width: 250px; padding: .5rem; border-radius: 12px; z-index: 120;
  background: var(--chrome); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu, .nav-item.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: .65rem .9rem; border-radius: 8px; white-space: nowrap; }
.submenu a::after { display: none; }
.submenu a:hover, .submenu a[aria-current] { background: rgba(155, 233, 97, .14); color: #fff; }

/* PDF */
.pdf-card {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; max-width: 860px; margin: 0 auto; padding: 1.6rem 1.8rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pdf-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--chrome); color: var(--leaf); }
.pdf-icon svg { width: 32px; height: 32px; }
.pdf-info { flex: 1; min-width: 180px; }
.pdf-info h3 { margin: 0 0 .1rem; font-size: 1.2rem; }
.pdf-info p { margin: 0; color: var(--muted); font-size: .9rem; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.pdf-preview { max-width: 960px; margin: 1.6rem auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pdf-preview[hidden] { display: none; }
.pdf-preview iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; }

@media (max-width: 980px) {
  .nav-item { display: block; }
  .nav-item > a { display: block; }
  .sub-toggle { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 0 1rem; background: none; border: 0; box-shadow: none; }
  .submenu a { padding: .8rem 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #cfe3d2; font-size: .88rem; white-space: normal; }
  .nav-item.open .sub-toggle { transform: none; }
  .nav.open { max-height: 640px; }
  .pdf-card { padding: 1.3rem; }
}
