/*
Theme Name: Agropardo — Guardiã da Vida
Theme URI: https://agropardo.org.br
Author: Gabriel de Brito Palhão
Author URI: https://confafbrasil.org.br
Description: Tema exclusivo da Associação Agropardo Guardiã da Vida — comunidade agrícola de manejo biossustentável. Logomarca em destaque no centro do cabeçalho, carrossel de fotos customizável, projetos com pop-up (descrição, foto e vídeo), transparência com documentos, legislação e etapas de projetos com anexos em PDF — tudo editável pelo painel. Inclui a Diretoria Agropardo, formulário de contato e páginas prontas em blocos Gutenberg. Tema criado por Gabriel de Brito Palhão.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agropardo
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, editor-style, one-column, translation-ready
*/

/* =========================================================================
   1. Base
   ====================================================================== */
:root {
	--mata: #173323;
	--mata-2: #10261a;
	--folha: #2f7a45;
	--folha-2: #3f9a57;
	--broto: #9bcf6b;
	--pedra: #7d6a8a;
	--pedra-esc: #3f3150;
	--milho: #e7b54a;
	--urucum: #c8612c;
	--terra: #7a5a43;
	--papel: #f4efe4;
	--creme: #fbf9f4;
	--branco: #ffffff;
	--carvao: #1c2620;
	--texto: #3a4740;
	--linha: rgba(28, 38, 32, .1);
	--f-titulo: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--f-texto: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-cita: Lora, Georgia, serif;
	--wrap: 1240px;
	--r-sm: 14px;
	--r: 24px;
	--r-lg: 36px;
	--sh-1: 0 1px 2px rgba(16, 38, 26, .06), 0 8px 24px -12px rgba(16, 38, 26, .18);
	--sh-2: 0 2px 6px rgba(16, 38, 26, .06), 0 30px 60px -28px rgba(16, 38, 26, .45);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--agp-logo: 210px;
	--agp-hero-h: 82vh;
	--bar-h: 96px;
	--disk: calc(var(--agp-logo) * 1.08);
	--overhang: calc(var(--disk) + 10px - var(--bar-h));
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--creme);
	color: var(--texto);
	font-family: var(--f-texto);
	font-size: 1.04rem;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--folha); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--mata); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-titulo); color: var(--mata); line-height: 1.02; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }
strong { color: var(--carvao); font-weight: 700; }
::selection { background: var(--broto); color: var(--mata); }
:focus-visible { outline: 3px solid var(--milho); outline-offset: 3px; border-radius: 8px; }
.agp-wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.agp-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.18em; }
.agp-skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--milho); color: var(--mata); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.agp-skip:focus { left: 12px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Botões */
.agp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	background: var(--mata); color: var(--creme) !important; text-decoration: none;
	font-family: var(--f-texto); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
	padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
	transition: transform .25s var(--ease), background .25s, box-shadow .25s;
	box-shadow: 0 10px 24px -14px rgba(16, 38, 26, .9);
}
.agp-btn:hover { background: var(--folha); transform: translateY(-2px); }
.agp-btn .agp-icon { transition: transform .25s var(--ease); }
.agp-btn:hover .agp-icon--arrow { transform: translateX(4px); }
.agp-btn--light { background: var(--milho); color: var(--mata) !important; }
.agp-btn--light:hover { background: #fff; }
.agp-btn--ghost { background: transparent; color: var(--mata) !important; box-shadow: inset 0 0 0 1.5px var(--linha); }
.agp-btn--ghost:hover { background: var(--papel); }
.agp-btn--small { font-size: .9rem; padding: .65em 1.2em; }
.agp-btn--block { display: flex; width: 100%; }

/* =========================================================================
   2. Faixa superior e cabeçalho
   ====================================================================== */
.agp-topbar { background: var(--mata-2); color: rgba(251, 249, 244, .78); font-size: .84rem; }
.agp-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.agp-topbar__text { display: flex; align-items: center; gap: 8px; margin: 0; letter-spacing: .02em; }
.agp-topbar__text .agp-icon { color: var(--broto); }
.agp-topbar__links { display: flex; gap: 22px; }
.agp-topbar__links a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.agp-topbar__links a:hover { color: var(--milho); }

.agp-header { position: sticky; top: 0; z-index: 60; }
.admin-bar .agp-header { top: 32px; }
.agp-header__bar {
	background: rgba(244, 239, 228, .86);
	-webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid rgba(23, 51, 35, .12);
	transition: box-shadow .35s, background .35s;
}
.agp-header__inner { display: grid; grid-template-columns: 1fr var(--disk) 1fr; align-items: center; column-gap: clamp(16px, 3vw, 44px); height: var(--bar-h); transition: height .35s var(--ease); }
.agp-nav--left { justify-self: end; }
.agp-nav--right { justify-self: start; }
.agp-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.agp-menu__item { position: relative; }
.agp-menu__item > a {
	display: block; padding: 9px clamp(10px, 1.1vw, 18px); border-radius: 999px;
	font-family: var(--f-titulo); font-weight: 700; font-size: 1.2rem; letter-spacing: .07em; text-transform: uppercase;
	color: var(--mata); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s;
}
.agp-menu__item > a:hover { background: rgba(47, 122, 69, .1); color: var(--folha); }
.agp-menu__item.is-current > a { background: var(--mata); color: var(--creme); }
.agp-menu__sub {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 50%; min-width: 230px;
	transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
	background: #fff; border-radius: 18px; box-shadow: var(--sh-2); border: 1px solid var(--linha);
}
.agp-menu__item:hover > .agp-menu__sub, .agp-menu__item:focus-within > .agp-menu__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.agp-menu__sub a { display: block; padding: 9px 14px; border-radius: 12px; text-decoration: none; color: var(--mata); font-weight: 600; }
.agp-menu__sub a:hover { background: var(--papel); }

.agp-brand { position: relative; height: var(--bar-h); width: var(--disk); justify-self: center; transition: height .35s var(--ease), width .35s var(--ease); }
.agp-brand__logo {
	position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
	width: var(--disk); height: var(--disk); border-radius: 50%;
	display: grid; place-items: center; z-index: 2;
	background: var(--papel) var(--grain);
	box-shadow: 0 0 0 6px rgba(244, 239, 228, .9), 0 24px 50px -18px rgba(16, 38, 26, .55), 0 0 0 1px rgba(23, 51, 35, .14);
	transition: width .4s var(--ease), height .4s var(--ease), top .4s var(--ease), box-shadow .4s;
}
.agp-brand__logo img { width: 90%; height: auto; display: block; transition: transform .6s var(--ease); }
.agp-brand__logo:hover img { transform: rotate(-4deg) scale(1.03); }
.agp-burger, .agp-header__cta { display: none; }

.agp-is-scrolled { --bar-h: 70px; }
.agp-is-scrolled .agp-header__bar { box-shadow: 0 16px 40px -28px rgba(16, 38, 26, .6); background: rgba(244, 239, 228, .94); }
.agp-is-scrolled .agp-brand { width: 74px; }
.agp-is-scrolled .agp-brand__logo { width: 78px; height: 78px; top: 4px; box-shadow: 0 0 0 3px rgba(244, 239, 228, .95), 0 10px 22px -12px rgba(16, 38, 26, .6); }
.agp-is-scrolled .agp-header__inner { grid-template-columns: 1fr 78px 1fr; }

/* Gaveta (celular) */
.agp-drawer { position: fixed; inset: 0; z-index: 200; }
.agp-drawer[hidden] { display: none; }
.agp-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 22, 15, .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.agp-drawer__panel {
	position: absolute; top: 10px; left: 10px; bottom: 10px; width: min(360px, calc(100vw - 20px)); overflow-y: auto; border-radius: 28px;
	background: var(--creme); padding: 22px 22px 28px; box-shadow: var(--sh-2);
	transform: translateX(-110%); transition: transform .4s var(--ease);
	display: flex; flex-direction: column; gap: 18px;
}
.agp-drawer.is-open .agp-drawer__backdrop { opacity: 1; }
.agp-drawer.is-open .agp-drawer__panel { transform: none; }
.agp-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.agp-drawer__logo img { width: 104px; height: auto; display: block; }
.agp-drawer__close { background: var(--papel); color: var(--mata); border: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.agp-drawer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.agp-drawer__menu a { display: block; padding: 13px 16px; border-radius: 16px; font-family: var(--f-titulo); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mata); text-decoration: none; }
.agp-drawer__menu a:hover { background: var(--papel); }
.agp-drawer__menu .is-current > a { background: var(--mata); color: var(--creme); }
.agp-drawer__menu .agp-menu__sub { list-style: none; padding: 0 0 6px 14px; margin: 0; }
.agp-drawer__menu .agp-menu__sub a { font-size: 1.1rem; padding: 8px 14px; }
body.agp-lock { overflow: hidden; }

/* =========================================================================
   3. Carrossel da capa
   ====================================================================== */
.agp-hero {
	position: relative; overflow: hidden; color: var(--creme);
	height: var(--agp-hero-h); min-height: 580px; max-height: 940px;
	background: var(--mata); border-radius: 0 0 var(--r-lg) var(--r-lg);
	--agp-interval: 6s;
}
.agp-hero__edge { display: none; }
.agp-hero__track { position: absolute; inset: 0; }
.agp-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.agp-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease, visibility 0s; z-index: 1; }
.agp-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 9s ease-out; }
.agp-slide.is-active .agp-slide__img { transform: scale(1); }
.agp-hero--slide .agp-hero__track { display: flex; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.agp-hero--slide .agp-slide { position: relative; flex: 0 0 100%; opacity: 1; visibility: visible; transition: none; }
.agp-hero--slide .agp-slide__img { transform: none; }
.agp-slide__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(95deg, rgba(10, 24, 16, .82) 0%, rgba(10, 24, 16, .55) 36%, rgba(10, 24, 16, .08) 70%),
		linear-gradient(0deg, rgba(10, 24, 16, .6) 0%, rgba(10, 24, 16, 0) 38%),
		linear-gradient(180deg, rgba(10, 24, 16, .35) 0%, rgba(10, 24, 16, 0) 24%);
}
.agp-slide__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: calc(var(--overhang) + 10px); padding-bottom: 120px; }
.agp-slide__content > * { max-width: 660px; opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s var(--ease); }
.agp-slide.is-active .agp-slide__content > * { opacity: 1; transform: none; }
.agp-slide.is-active .agp-slide__content > :nth-child(2) { transition-delay: .12s; }
.agp-slide.is-active .agp-slide__content > :nth-child(3) { transition-delay: .24s; }
.agp-slide.is-active .agp-slide__content > :nth-child(4) { transition-delay: .36s; }
.agp-slide__kicker {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
	font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--creme);
	padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
}
.agp-slide__kicker .agp-icon { color: var(--milho); }
.agp-slide__title { font-family: var(--f-titulo); font-weight: 800; text-transform: uppercase; color: #fff; font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .92; margin: 0 0 20px; text-shadow: 0 6px 40px rgba(0, 0, 0, .25); }
.agp-slide__text { font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.65; color: rgba(255, 255, 255, .9); margin-bottom: 30px; }
.agp-hero__controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.agp-hero__dots { display: flex; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(10, 24, 16, .28); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); }
.agp-hero__dot { width: 44px; height: 18px; background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; }
.agp-hero__dot span { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.agp-hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--milho); transform: scaleX(0); transform-origin: left; }
.agp-hero__dot.is-active span::after { animation: agp-progress var(--agp-interval) linear forwards; }
.agp-hero.is-paused .agp-hero__dot.is-active span::after, .agp-hero[data-interval="0"] .agp-hero__dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes agp-progress { to { transform: scaleX(1); } }
.agp-hero__arrows { display: flex; align-items: center; gap: 10px; }
.agp-hero__count { font-family: var(--f-titulo); font-weight: 600; letter-spacing: .12em; margin-right: 8px; color: rgba(255, 255, 255, .75); }
.agp-hero__count b { color: #fff; font-size: 1.35rem; }
.agp-hero__arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 24, 16, .25); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .25s; backdrop-filter: blur(10px); }
.agp-hero__arrow:hover { background: var(--milho); border-color: var(--milho); color: var(--mata); transform: scale(1.05); }

/* Faixa de título das páginas internas */
.agp-pagehero { position: relative; overflow: hidden; color: var(--creme); background: var(--mata); min-height: 440px; display: flex; align-items: flex-end; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.agp-pagehero .agp-hero__edge { display: none; }
.agp-pagehero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.04); animation: agp-zoom 14s ease-out forwards; }
@keyframes agp-zoom { to { transform: scale(1); } }
.agp-pagehero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 24, 16, .88) 0%, rgba(10, 24, 16, .45) 55%, rgba(10, 24, 16, .35) 100%); }
.agp-pagehero__content { position: relative; z-index: 2; padding: calc(var(--overhang) + 44px) 0 70px; text-align: center; }
.agp-pagehero__crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-bottom: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.agp-pagehero__crumbs a { color: var(--milho); text-decoration: none; font-weight: 700; }
.agp-pagehero__title { font-family: var(--f-titulo); font-weight: 800; text-transform: uppercase; color: #fff; font-size: clamp(2.9rem, 7vw, 5.4rem); line-height: .92; margin: 0 0 12px; }
.agp-pagehero__sub { max-width: 660px; margin: 0 auto; font-size: 1.12rem; color: rgba(255, 255, 255, .88); }

/* =========================================================================
   4. Conteúdo Gutenberg
   ====================================================================== */
.agp-content { position: relative; }
.agp-content > :where(:not(.agp-section):not(.agp-band):not(.agp-cta):not(.alignfull)) { width: min(1180px, 100% - 40px); margin-inline: auto; }
.agp-content > :first-child:not(.agp-section):not(.agp-band):not(.agp-cta) { margin-top: 70px; }
.agp-content > :last-child:not(.agp-section):not(.agp-band):not(.agp-cta) { margin-bottom: 90px; }
.agp-content--post { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.agp-content--post > * { width: auto !important; }

.agp-section { position: relative; padding: clamp(70px, 9vw, 120px) 20px; margin: 0 !important; }
.agp-section > * { position: relative; }
.agp-section--paper { background: var(--papel); border-radius: var(--r-lg); margin: 0 clamp(8px, 1.6vw, 22px) !important; }
.agp-section--deep { background: linear-gradient(180deg, var(--papel), var(--creme)); border-radius: var(--r-lg); margin: 0 clamp(8px, 1.6vw, 22px) !important; }
.agp-section--green { background: var(--mata); color: rgba(251, 249, 244, .86); overflow: hidden; border-radius: var(--r-lg); margin: 0 clamp(8px, 1.6vw, 22px) !important; }
.agp-section--green::before {
	content: ""; position: absolute; right: -10%; top: -30%; width: 640px; height: 640px; border-radius: 50%;
	background: radial-gradient(circle, rgba(155, 207, 107, .18), rgba(155, 207, 107, 0) 65%);
}
.agp-section--green h2, .agp-section--green h3, .agp-section--green strong { color: #fff; }
.agp-section--green .agp-kicker { color: var(--broto); }
.agp-section--green .agp-kicker::before { background: var(--broto); }
.agp-section--green a:not(.wp-block-button__link) { color: var(--milho); }

.agp-kicker { display: flex; align-items: center; gap: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--folha); margin-bottom: 14px !important; }
.agp-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--milho); box-shadow: 0 0 0 4px rgba(231, 181, 74, .22); }
.agp-kicker.agp-center { justify-content: center; }
.agp-display { font-size: clamp(2.5rem, 5vw, 4.1rem) !important; line-height: .95 !important; }
.agp-lead { font-size: 1.2rem; line-height: 1.68; color: var(--texto); }
.agp-section--green .agp-lead { color: rgba(255, 255, 255, .9); }
.agp-center { text-align: center; }
.agp-section .agp-narrow, .agp-cta .agp-narrow { max-width: 700px; margin-left: auto; margin-right: auto; }
.agp-note { font-size: .92rem; color: #6b776f; margin-top: 26px; }
.agp-headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px !important; max-width: 1180px !important; }
.agp-headrow h2 { margin: 0; }
.agp-headrow .wp-block-buttons { margin: 0; }

/* Botões do Gutenberg */
.wp-block-buttons { gap: 12px; margin-top: 28px; }
.wp-block-button__link { font-family: var(--f-texto) !important; font-weight: 700 !important; font-size: .98rem !important; letter-spacing: .01em !important; text-transform: none !important; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; box-shadow: 0 10px 24px -14px rgba(16, 38, 26, .9); }
.wp-block-button__link:hover { background: var(--folha); color: #fff; transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--mata); border: 1.5px solid rgba(23, 51, 35, .25); box-shadow: none; padding: calc(.85em - 1.5px) calc(1.7em - 1.5px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--mata); border-color: var(--mata); color: #fff; }
.agp-section--green .wp-block-button__link, .agp-cta .wp-block-button__link { background: var(--milho); color: var(--mata); }
.agp-section--green .wp-block-button__link:hover, .agp-cta .wp-block-button__link:hover { background: #fff; color: var(--mata); }
.agp-section--green .wp-block-button.is-style-outline > .wp-block-button__link, .agp-cta .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.agp-section--green .wp-block-button.is-style-outline > .wp-block-button__link:hover, .agp-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--mata); }

.wp-block-columns { gap: clamp(28px, 5vw, 76px); margin-bottom: 0; }
.agp-split { align-items: center !important; }

/* Fotos */
.agp-photo { position: relative; margin: 0; }
.wp-block-image.agp-photo img { display: block; width: 100%; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.wp-block-image.agp-photo--stack img { aspect-ratio: 4 / 5; }
.agp-photo--stack::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--r-lg); background: var(--papel); z-index: -1; }
.agp-photo--stack::after {
	content: "Desde 2023"; position: absolute; left: -18px; bottom: 34px; padding: 14px 18px; border-radius: 18px;
	background: #fff; color: var(--mata); font-family: var(--f-titulo); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase;
	box-shadow: var(--sh-2);
}
.wp-block-image.agp-photo--soft img { aspect-ratio: 1; border-radius: 50% 50% var(--r-lg) var(--r-lg); }
.agp-intro { overflow: hidden; }
.agp-intro .agp-photo, .agp-section .agp-photo { z-index: 1; }

.agp-pillars { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.agp-pillars li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--linha); font-weight: 700; font-size: .88rem; color: var(--mata); }
.agp-pillars li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--folha) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Bento com fotos */
.agp-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 18px; margin-top: 44px !important; max-width: 1180px !important; }
.agp-bento > .agp-tile:first-child { grid-row: span 2; }
.agp-bento > .agp-tile:nth-child(4) { grid-column: span 2; }
.agp-tile { position: relative; overflow: hidden; border-radius: var(--r); margin: 0 !important; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; color: rgba(255, 255, 255, .9); isolation: isolate; }
.agp-tile .agp-tile__img { position: absolute; inset: 0; margin: 0; z-index: -2; }
.agp-tile .agp-tile__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .8s var(--ease); }
.agp-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 24, 16, .88) 0%, rgba(10, 24, 16, .3) 55%, rgba(10, 24, 16, .05) 100%); }
.agp-tile:hover .agp-tile__img img { transform: scale(1.06); }
.agp-tile h3 { color: #fff; font-size: 1.9rem; text-transform: uppercase; margin-bottom: 6px; }
.agp-tile p { margin: 0; max-width: 420px; font-size: .97rem; }

/* Cartões com ícone */
.agp-cards { display: grid; gap: 18px; margin-top: 44px !important; max-width: 1180px !important; }
.agp-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agp-card {
	position: relative; background: #fff; border: 1px solid var(--linha); border-radius: var(--r);
	padding: 92px 26px 28px; margin: 0 !important; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s;
}
.agp-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.agp-card::before { content: ""; position: absolute; top: 26px; left: 26px; width: 50px; height: 50px; border-radius: 16px; background: var(--c, var(--folha)); }
.agp-card::after { content: ""; position: absolute; top: 37px; left: 37px; width: 28px; height: 28px; background: #fff; -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.agp-card h3 { font-size: 1.55rem; margin-bottom: .35em; }
.agp-card p:last-child, .agp-card ul:last-child { margin-bottom: 0; }
.agp-card ul { padding-left: 1.1em; }
.agp-cards > .agp-card:nth-child(4n+1) { --c: var(--folha); }
.agp-cards > .agp-card:nth-child(4n+2) { --c: var(--pedra); }
.agp-cards > .agp-card:nth-child(4n+3) { --c: var(--urucum); }
.agp-cards > .agp-card:nth-child(4n+4) { --c: #b88a26; }
.agp-card { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4C9 4 4 9.5 4 16c0 1.4.3 2.6.8 3.6C7 13 11 10 15 8.5 11.5 11 8.5 14.5 6.6 19.6c1 .3 2 .4 3 .4C16 20 20 14 20 4Z'/%3E%3C/svg%3E"); }
.agp-card--missao, .agp-card--represent { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='black'/%3E%3C/svg%3E"); }
.agp-card--visao { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.5' fill='black'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M4.9 19.1l1.8-1.8M17.3 6.7l1.8-1.8'/%3E%3C/svg%3E"); }
.agp-card--valores { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8.5-5.2-8.5-11.2A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 8.5 3.2C20.5 15.8 12 21 12 21Z'/%3E%3C/svg%3E"); }
.agp-card--organizar { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.agp-card--prestar, .agp-card--contas { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l5 5v13H6Z'/%3E%3Cpath d='M14 3v5h5M9 13h7M9 17h5'/%3E%3C/svg%3E"); }
.agp-card--assembleia { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='8' r='3.2'/%3E%3Ccircle cx='16.5' cy='9' r='2.7'/%3E%3Cpath d='M2 20c0-3.6 2.7-6 6-6s6 2.4 6 6Z'/%3E%3Cpath d='M15 20c0-2-.6-3.7-1.7-4.9a5 5 0 0 1 3.2-1.1c3 0 5.5 2.2 5.5 6Z'/%3E%3C/svg%3E"); }
.agp-card--parcerias { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3.2-3.2a4.5 4.5 0 0 0-6.4-6.4l-1.1 1.1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3.2 3.2a4.5 4.5 0 0 0 6.4 6.4l1.1-1.1'/%3E%3C/svg%3E"); }
.agp-card--acesso { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7 4.5 3 5v14c4-.5 7 0 9 1.5 2-1.5 5-2 9-1.5V5c-4-.5-7 0-9 1.5Z'/%3E%3Cpath d='M12 6.5v14'/%3E%3C/svg%3E"); }

/* Linha do tempo */
.agp-steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px !important; max-width: 1180px !important; }
.agp-step { counter-increment: step; position: relative; padding: 28px 28px 24px 104px; margin: 0 !important; background: #fff; border: 1px solid var(--linha); border-radius: var(--r); }
.agp-step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 26px; top: 26px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 800; font-size: 1.6rem; color: #fff; background: var(--mata); }
.agp-step:nth-child(2)::before { background: var(--pedra); }
.agp-step:nth-child(3)::before { background: var(--folha); }
.agp-step:nth-child(4)::before { background: var(--urucum); }
.agp-step h3 { margin-bottom: .3em; }
.agp-step p:last-child { margin-bottom: 0; }

/* Faixa com citação */
.agp-band {
	position: relative; padding: clamp(100px, 13vw, 170px) 20px; margin: clamp(30px, 5vw, 60px) clamp(8px, 1.6vw, 22px) !important; text-align: center; color: #fff; border-radius: var(--r-lg); overflow: hidden;
	background: linear-gradient(rgba(10, 24, 16, .55), rgba(10, 24, 16, .7)), url(assets/img/fotos/rio-amazonico.jpg) center 60%/cover no-repeat;
}
.agp-band__quote { font-family: var(--f-cita); font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.32; font-style: italic; max-width: 940px !important; margin: 0 auto 20px !important; }
.agp-band__cite { font-weight: 800; text-transform: uppercase; letter-spacing: .2em; color: var(--milho); font-size: .8rem; margin: 0 auto !important; }
.agp-band__cite::before { content: "— "; }

/* Chamada final */
.agp-cta {
	position: relative; padding: clamp(80px, 10vw, 130px) 20px; margin: clamp(30px, 5vw, 60px) clamp(8px, 1.6vw, 22px) 0 !important; color: rgba(255, 255, 255, .88); overflow: hidden; border-radius: var(--r-lg);
	background: radial-gradient(120% 140% at 0% 0%, #5a4870 0%, var(--pedra-esc) 45%, #2a2037 100%);
}
.agp-cta::before, .agp-cta::after { content: ""; position: absolute; border-radius: 50%; }
.agp-cta::before { width: 420px; height: 420px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(231, 181, 74, .28), transparent 65%); }
.agp-cta::after { width: 520px; height: 520px; right: -180px; bottom: -260px; background: radial-gradient(circle, rgba(155, 207, 107, .22), transparent 65%); }
.agp-cta h2 { color: #fff; }

/* Chips */
.agp-chips { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.agp-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--linha); font-weight: 700; font-size: .93rem; color: var(--mata); transition: transform .25s var(--ease), box-shadow .25s; }
.agp-chips li::before { content: ""; width: 10px; height: 10px; border-radius: 50% 0; background: var(--folha); transform: rotate(45deg); }
.agp-chips li:nth-child(3n+2)::before { background: var(--milho); }
.agp-chips li:nth-child(3n)::before { background: var(--pedra); }
.agp-chips li:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }

/* =========================================================================
   5. Projetos (cards + pop-up)
   ====================================================================== */
.agp-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; max-width: 1180px !important; }
.agp-pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linha); border-radius: var(--r); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.agp-pcard:hover { transform: translateY(-8px); box-shadow: var(--sh-2); }
.agp-pcard__hit { position: absolute; inset: 0; z-index: 3; background: transparent; border: 0; cursor: pointer; border-radius: inherit; }
.agp-pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--papel); }
.agp-pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.agp-pcard:hover .agp-pcard__media img { transform: scale(1.07); }
.agp-pcard__num { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); font-family: var(--f-titulo); font-weight: 800; font-size: 1.05rem; color: var(--mata); }
.agp-pcard__play { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 24, 16, .55); color: #fff; font-size: .8rem; font-weight: 700; backdrop-filter: blur(8px); }
.agp-pcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.agp-pcard__body h3 { font-size: 1.75rem; text-transform: uppercase; margin-bottom: 8px; }
.agp-pcard__body > p:not(.agp-pill) { font-size: .96rem; margin-bottom: 14px; }
.agp-pcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--folha); font-size: .92rem; }
.agp-pcard:hover .agp-pcard__more .agp-icon { transform: translateX(4px); }
.agp-pcard__more .agp-icon { transition: transform .25s var(--ease); }
.agp-pill { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(47, 122, 69, .1); color: var(--folha); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px !important; }
.agp-pill--light { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.agp-checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.agp-checks li { position: relative; padding-left: 28px; font-size: .94rem; line-height: 1.45; }
.agp-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: rgba(47, 122, 69, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%232f7a45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.agp-admin-edit { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .82rem; font-weight: 700; color: var(--urucum) !important; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(200, 97, 44, .5); background: rgba(200, 97, 44, .06); }
.agp-admin-edit:hover { background: rgba(200, 97, 44, .14); }

/* Pop-up (dialog) */
.agp-dialog {
	width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 30px;
	background: var(--creme); color: var(--texto); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6); overflow: hidden;
}
.agp-dialog--sm { width: min(820px, calc(100vw - 24px)); }
.agp-dialog::backdrop { background: rgba(8, 18, 12, .62); backdrop-filter: blur(6px); }
.agp-dialog[open] { animation: agp-pop .45s var(--ease); }
.agp-dialog[open]::backdrop { animation: agp-fade .35s ease; }
@keyframes agp-pop { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes agp-fade { from { opacity: 0; } }
.agp-dialog__scroll { max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.agp-dialog__close {
	position: absolute; right: 16px; top: 16px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .9); color: var(--mata); display: grid; place-items: center; box-shadow: var(--sh-1); backdrop-filter: blur(8px); transition: transform .25s var(--ease);
}
.agp-dialog__close:hover { transform: rotate(90deg); }
.agp-mdl__hero { position: relative; height: clamp(240px, 42vh, 420px); overflow: hidden; }
.agp-mdl__hero img { width: 100%; height: 100%; object-fit: cover; }
.agp-mdl__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 24, 16, .85), rgba(10, 24, 16, 0) 65%); }
.agp-mdl__heroin { position: absolute; z-index: 2; left: clamp(22px, 4vw, 44px); right: 80px; bottom: 26px; }
.agp-mdl__heroin h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; font-weight: 800; }
.agp-mdl__head { padding: clamp(30px, 5vw, 50px) clamp(22px, 4vw, 44px) 0; padding-right: 80px; }
.agp-mdl__head h2 { margin-bottom: 8px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.agp-mdl__lead { font-size: 1.05rem; margin: 0; }
.agp-mdl__body { padding: clamp(24px, 4vw, 44px); }
.agp-mdl__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.agp-mdl__side { display: grid; gap: 12px; position: sticky; top: 0; }
.agp-mdl__side h4 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 0; }
.agp-prose h3 { font-size: 1.5rem; margin-top: 1.3em; text-transform: uppercase; }
.agp-prose h3:first-child { margin-top: 0; }
.agp-prose ul { padding-left: 1.2em; }
.agp-prose li { margin: .35em 0; }
.agp-prose li::marker { color: var(--folha); }
.agp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 8.5v7l6-3.5-6-3.5Z' fill='%23ffffff55'/%3E%3C/svg%3E") center/60px no-repeat; box-shadow: var(--sh-1); margin: 4px 0 16px; }
.agp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.agp-single-proj { max-width: 1180px; margin: 0 auto; }

/* Transparência: projetos → etapas */
.agp-tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; max-width: 1180px !important; }
.agp-tcard { position: relative; aspect-ratio: 4 / 3.4; border: 0; padding: 0; cursor: pointer; border-radius: var(--r); overflow: hidden; background: var(--mata); text-align: left; color: #fff; font: inherit; transition: transform .4s var(--ease), box-shadow .4s; }
.agp-tcard:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.agp-tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.agp-tcard:hover img { transform: scale(1.07); }
.agp-tcard__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 24, 16, .92) 0%, rgba(10, 24, 16, .2) 60%, rgba(10, 24, 16, .1) 100%); }
.agp-tcard__body { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 6px; }
.agp-tcard__count { justify-self: start; padding: 4px 11px; border-radius: 999px; background: var(--milho); color: var(--mata); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.agp-tcard strong { color: #fff; font-family: var(--f-titulo); font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.agp-tcard__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; opacity: .85; }
.agp-steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.agp-scard { width: 100%; height: 100%; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--linha); background: #fff; border-radius: 20px; overflow: hidden; padding: 0; cursor: pointer; font: inherit; color: inherit; transition: transform .35s var(--ease), box-shadow .35s; }
.agp-scard:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.agp-scard__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--papel); overflow: hidden; }
.agp-scard__media img { width: 100%; height: 100%; object-fit: cover; }
.agp-scard__n { position: absolute; left: 12px; top: 12px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mata); color: #fff; font-family: var(--f-titulo); font-weight: 800; font-size: 1.25rem; }
.agp-scard__body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.agp-scard__body small { color: var(--folha); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.agp-scard__body strong { font-family: var(--f-titulo); font-size: 1.35rem; line-height: 1.05; color: var(--mata); }
.agp-scard__icons { display: flex; gap: 8px; margin-top: 6px; }
.agp-scard__icons span { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; color: var(--texto); padding: 3px 9px; border-radius: 999px; background: var(--papel); }
.agp-mdl__photo { height: clamp(220px, 40vh, 380px); overflow: hidden; }
.agp-mdl__photo img { width: 100%; height: 100%; object-fit: cover; }
.agp-mdl--etapa h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.agp-mdl__date { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--folha); font-size: .9rem; margin-bottom: 18px; }

/* Botões de download */
.agp-dl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--linha); text-decoration: none; color: var(--mata); margin-top: 8px; transition: box-shadow .25s, transform .25s var(--ease); }
.agp-dl:hover { box-shadow: var(--sh-1); transform: translateY(-2px); color: var(--mata); }
.agp-dl__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fde9e1; color: var(--urucum); font-size: 1.3rem; }
.agp-dl strong { display: block; color: var(--mata); }
.agp-dl small { display: block; color: #74817a; font-size: .8rem; }
.agp-dl__go { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--folha); color: #fff; }

/* Tabela de documentos e leis */
.agp-docs { margin: 26px 0 0; display: grid; gap: 10px; max-width: 1180px !important; }
.agp-docs__head, .agp-docs__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr) 140px 210px; gap: 20px; align-items: center; }
.agp-docs__head { padding: 0 22px 4px; font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #74817a; }
.agp-docs__row { background: #fff; border: 1px solid var(--linha); border-radius: 20px; padding: 16px 22px; transition: box-shadow .25s, transform .25s var(--ease); }
.agp-docs__row:hover { box-shadow: var(--sh-1); transform: translateY(-2px); }
.agp-docs__name { display: flex; align-items: center; gap: 14px; }
.agp-docs__name strong { font-family: var(--f-titulo); font-size: 1.22rem; line-height: 1.1; color: var(--mata); font-weight: 700; }
.agp-docs__ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(47, 122, 69, .1); color: var(--folha); font-size: 1.25rem; }
.agp-docs__desc { font-size: .92rem; line-height: 1.5; }
.agp-docs__act { display: flex; flex-direction: column; align-items: flex-end; }
.agp-docs__act .agp-admin-edit { margin-top: 8px; }
.agp-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; background: #eef1ee; color: #4d5a53; white-space: nowrap; }
.agp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.agp-status--em-vigor, .agp-status--disponivel, .agp-status--aprovado, .agp-status--publicado { background: rgba(47, 122, 69, .12); color: var(--folha); }
.agp-status--em-breve, .agp-status--em-elaboracao, .agp-status--pendente { background: rgba(231, 181, 74, .2); color: #8a6512; }
.agp-status--revogado, .agp-status--vencido { background: rgba(200, 97, 44, .14); color: var(--urucum); }
.agp-dlbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 190px; padding: 12px 18px; border-radius: 14px;
	background: linear-gradient(135deg, var(--folha-2), var(--mata)); color: #fff !important; text-decoration: none; font-weight: 800; font-size: .88rem;
	box-shadow: 0 12px 24px -14px rgba(23, 51, 35, .9), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.agp-dlbtn .agp-icon { width: 1.25em; height: 1.25em; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .18); box-sizing: content-box; }
.agp-dlbtn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 30px -14px rgba(23, 51, 35, .9); }
.agp-dlbtn.is-off { background: var(--papel); color: #8a7a5a !important; box-shadow: none; cursor: default; }
.agp-dlbtn.is-off .agp-icon { background: rgba(0, 0, 0, .05); }
.agp-dlbtn.is-off:hover { transform: none; filter: none; }
.agp-section h2 + .agp-docs, .agp-section p + .agp-docs { margin-top: 18px; }
.agp-section .agp-docs + h2, .agp-section .agp-docs + .agp-admin-edit + h2 { margin-top: 64px; }

/* Transparência: fatos */
.agp-facts { background: var(--mata); color: #fff; border-radius: var(--r-lg); padding: 34px 32px; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.agp-facts::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(155, 207, 107, .25), transparent 65%); }
.agp-facts__label { font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--broto); margin: 0 0 4px !important; }
.agp-facts__value { font-family: var(--f-titulo); font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin: 0 0 18px !important; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.agp-facts__value:last-child { border: 0; margin: 0 !important; padding: 0; }

/* Tabela antiga (v1.0), caso a página não tenha sido atualizada */
.agp-table table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-1); }
.agp-table th { background: var(--mata); color: #fff; text-align: left; padding: 14px 18px; border: 0; }
.agp-table td { padding: 14px 18px; border: 0; border-top: 1px solid var(--linha); }

/* Contato */
.agp-contact { align-items: flex-start !important; }
.agp-contact__form { background: #fff; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 46px) !important; box-shadow: var(--sh-2); border: 1px solid var(--linha); }
.agp-info { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.agp-info li { display: flex; gap: 14px; align-items: center; line-height: 1.45; }
.agp-info small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 800; color: var(--folha); }
.agp-info a { color: inherit; text-decoration: none; font-weight: 600; word-break: break-word; }
.agp-info a:hover { color: var(--folha); text-decoration: underline; }
.agp-info__icon { width: 48px; height: 48px; border-radius: 16px; flex: 0 0 48px; display: grid; place-items: center; background: #fff; border: 1px solid var(--linha); color: var(--folha); }
.agp-social { display: flex; gap: 10px; margin-top: 20px; }
.agp-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mata); color: #fff; transition: .25s; }
.agp-social a:hover { background: var(--milho); color: var(--mata); }
.agp-admin-hint { margin-top: 18px; font-size: .86rem; padding: 10px 14px; border-radius: 12px; background: #fff6dc; border: 1px dashed #d8b45a; color: #6b5310; }
.agp-form { display: grid; gap: 16px; }
.agp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agp-form label { display: grid; gap: 7px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--mata); }
.agp-form input, .agp-form select, .agp-form textarea {
	width: 100%; font: inherit; font-weight: 500; font-size: 1rem; color: var(--carvao);
	padding: 14px 16px; border-radius: 14px; border: 1.5px solid #e2ddd1; background: var(--creme); transition: border-color .2s, box-shadow .2s, background .2s;
}
.agp-form input:focus, .agp-form select:focus, .agp-form textarea:focus { outline: none; border-color: var(--folha); background: #fff; box-shadow: 0 0 0 4px rgba(47, 122, 69, .14); }
.agp-form .agp-btn { justify-self: start; margin-top: 6px; }
.agp-form__hp { position: absolute; left: -9999px; }
.agp-alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.agp-alert--ok { background: #e7f3e4; color: #1f5a2a; border: 1px solid #b9dcb0; }
.agp-alert--erro { background: #fbe9e3; color: #8a2c12; border: 1px solid #efc0b0; }

.agp-empty { text-align: center; padding: 46px 24px; border: 1.5px dashed rgba(47, 122, 69, .3); border-radius: var(--r); background: rgba(255, 255, 255, .6); margin: 30px auto; max-width: 720px !important; }
.agp-empty__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--folha); color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.agp-empty p:last-child { margin-bottom: 0; }

.wp-block-quote { border-left: 4px solid var(--milho); padding: 6px 0 6px 24px; margin: 30px 0; font-family: var(--f-cita); font-style: italic; font-size: 1.2rem; }
.wp-block-quote cite { display: block; margin-top: 8px; font-family: var(--f-texto); font-style: normal; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--folha); }
.wp-block-image img { border-radius: 18px; }
.wp-block-separator { border: 0; height: 1px; background: var(--linha); }

/* =========================================================================
   6. Diretoria Agropardo
   ====================================================================== */
body .agp-diretoria { margin-top: 44px; max-width: 1180px !important; }
body .agp-diretoria .confaf-diretoria-grid { gap: 20px; }
body .agp-diretoria .confaf-diretoria-card { border-radius: var(--r); border: 1px solid var(--linha); background: #fff; box-shadow: none; transition: transform .35s var(--ease), box-shadow .35s; }
body .agp-diretoria .confaf-diretoria-card:hover { box-shadow: var(--sh-2); transform: translateY(-6px); }
body .agp-diretoria .confaf-diretoria-photo-wrap { background: var(--papel); }
body .agp-diretoria .confaf-diretoria-info h3 { font-family: var(--f-titulo); color: var(--mata); font-size: 1.4rem; font-weight: 700; }
body .agp-diretoria .confaf-cargo { text-transform: uppercase; letter-spacing: .1em; color: var(--folha); font-size: .72rem; font-weight: 800; }
body .agp-diretoria .confaf-whatsapp { color: var(--folha) !important; }
body .agp-diretoria .confaf-email { color: var(--mata) !important; }
body .agp-diretoria .confaf-contact-icon { background: var(--papel); }
body .agp-diretoria .confaf-phone-icon { color: var(--folha); }
body .agp-diretoria .confaf-bio-link { color: var(--urucum); font-size: .82rem; font-weight: 800; }
body .confaf-bio-box { border-radius: 28px; background: var(--creme); }
body .confaf-bio-title { font-family: var(--f-titulo); color: var(--mata); font-size: 2rem; text-transform: uppercase; }
body .confaf-bio-cargo { color: var(--folha); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; }
body .confaf-bio-text { font-family: var(--f-texto); color: var(--texto); }
@media (max-width: 767px) {
	body .agp-diretoria .confaf-diretoria-info h3 { font-size: 1rem; }
	body .agp-diretoria .confaf-cargo { font-size: .6rem; letter-spacing: .05em; }
	body .agp-diretoria .confaf-bio-link { font-size: .7rem; }
	body .agp-diretoria .confaf-diretoria-grid { gap: 10px; }
	body .agp-diretoria .confaf-diretoria-card { border-radius: 16px; }
}

/* =========================================================================
   7. Notícias / arquivo
   ====================================================================== */
.agp-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 70px auto; }
.agp-post-card { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--linha); transition: .35s var(--ease); }
.agp-post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.agp-post-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.agp-post-card__body { padding: 22px 24px 26px; }
.agp-post-card h2 { font-size: 1.6rem; text-transform: none; }
.agp-post-card h2 a { color: var(--mata); text-decoration: none; }
.agp-tag { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--folha); margin-bottom: 10px !important; }
.agp-postnav { display: flex; justify-content: space-between; gap: 20px; margin: 50px 0 80px; font-weight: 700; }
.agp-pagination { text-align: center; margin-bottom: 70px; }
.agp-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; text-decoration: none; color: var(--mata); font-weight: 700; }
.agp-pagination .current { background: var(--mata); color: #fff; }

/* =========================================================================
   8. Rodapé
   ====================================================================== */
.agp-footer { position: relative; color: rgba(255, 255, 255, .78); margin-top: clamp(40px, 6vw, 80px); }
.agp-footer__body { background: var(--mata); padding: clamp(56px, 7vw, 84px) 0 50px; position: relative; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.agp-footer__body::before { content: ""; position: absolute; width: 700px; height: 700px; left: -260px; top: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(155, 207, 107, .14), transparent 65%); pointer-events: none; }
.agp-footer__grid { display: grid; grid-template-columns: 1.35fr .8fr 1.2fr 1.1fr; gap: 44px; position: relative; }
.agp-footer__grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.agp-footer__grid--2 { grid-template-columns: 1.4fr 1fr; }
.agp-footer__grid--1 { grid-template-columns: 1fr; max-width: 520px; }
.agp-footer__badge { width: 146px; height: 146px; border-radius: 50%; background: var(--papel) var(--grain); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); margin-bottom: 22px; }
.agp-footer__logo img { width: 126px; height: auto; display: block; }
.agp-footer__about p { font-size: .95rem; line-height: 1.7; }
.agp-footer__title { font-family: var(--f-texto); color: #fff; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; margin: 6px 0 20px; }
.agp-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.agp-footer__menu a { color: rgba(255, 255, 255, .85); text-decoration: none; font-family: var(--f-titulo); font-weight: 600; font-size: 1.25rem; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 10px; transition: color .2s, transform .25s var(--ease); }
.agp-footer__menu a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--broto); }
.agp-footer__menu a:hover { color: var(--milho); transform: translateX(4px); }
.agp-footer .agp-info { margin-top: 0; gap: 14px; font-size: .94rem; }
.agp-footer .agp-info__icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); color: var(--broto); }
.agp-footer .agp-info small { color: var(--broto); }
.agp-footer .agp-social a { background: rgba(255, 255, 255, .1); }
.agp-footer__support { font-size: .95rem; }
.agp-footer__support strong { color: #fff; }
.agp-footer__support a { color: var(--milho); }
.agp-footer__partner { display: inline-flex; align-items: center; gap: 8px; color: var(--milho); font-weight: 700; text-decoration: none; }
.agp-footer__bottom { background: var(--mata-2); font-size: .86rem; }
.agp-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 0; }
.agp-footer__top { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s; }
.agp-footer__top:hover { background: var(--milho); color: var(--mata); }
.agp-credit strong { color: var(--milho); font-weight: 700; }

/* Botão flutuante de voltar ao topo */
.agp-totop {
	position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--mata); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(16, 38, 26, .7);
	opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s;
}
.agp-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.agp-totop:hover { background: var(--folha); }

/* Animação de entrada ao rolar */
.agp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s var(--ease); }
.agp-reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   9. Responsivo
   ====================================================================== */
@media (max-width: 1180px) {
	.agp-menu__item > a { font-size: 1.05rem; letter-spacing: .05em; padding-inline: 10px; }
	.agp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agp-pgrid, .agp-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agp-footer__grid { grid-template-columns: 1fr 1fr; }
	.agp-docs__head { display: none; }
	.agp-docs__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name status" "desc desc" "act act"; gap: 10px 16px; }
	.agp-docs__row > :nth-child(1) { grid-area: name; }
	.agp-docs__row > :nth-child(2) { grid-area: desc; }
	.agp-docs__row > :nth-child(3) { grid-area: status; }
	.agp-docs__row > :nth-child(4) { grid-area: act; align-items: stretch; }
	.agp-dlbtn { width: 100%; }
}

@media (max-width: 1000px) {
	:root { --agp-logo: 124px !important; --bar-h: 72px; }
	.agp-topbar__text { display: none; }
	.agp-topbar__inner { justify-content: center; }
	.agp-nav { display: none; }
	.agp-header__inner { grid-template-columns: 48px 1fr 48px; }
	.agp-brand { width: var(--disk); }
	.agp-burger, .agp-header__cta { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--mata); color: #fff; text-decoration: none; }
	.agp-header__cta { background: var(--folha); justify-self: end; }
	.agp-is-scrolled .agp-header__inner { grid-template-columns: 48px 1fr 48px; }
	.agp-is-scrolled { --bar-h: 64px; }
	.agp-is-scrolled .agp-brand__logo { width: 58px; height: 58px; top: 3px; }
	.agp-hero { min-height: 620px; height: 92vh; border-radius: 0 0 28px 28px; }
	.agp-slide__img { object-position: 65% center; }
	.agp-slide__shade { background: linear-gradient(0deg, rgba(10, 24, 16, .92) 0%, rgba(10, 24, 16, .7) 45%, rgba(10, 24, 16, .2) 80%, rgba(10, 24, 16, .35) 100%); }
	.agp-slide__content { justify-content: flex-end; padding-bottom: 120px; }
	.agp-hero__controls { bottom: 34px; }
	.agp-hero__count { display: none; }
	.agp-hero__arrow { width: 46px; height: 46px; }
	.agp-hero__dot { width: 26px; }
	.agp-steps { grid-template-columns: 1fr; }
	.agp-cards--3 { grid-template-columns: 1fr; }
	.agp-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 240px 240px; }
	.agp-bento > .agp-tile:first-child { grid-row: auto; grid-column: span 2; }
	.agp-bento > .agp-tile:nth-child(4) { grid-column: span 2; }
	.agp-mdl__grid { grid-template-columns: 1fr; }
	.agp-mdl__side { position: static; }
}

@media (max-width: 781px) {
	.agp-photo--stack { max-width: 440px; margin: 10px auto 0 !important; }
	.agp-photo--stack::before { inset: 14px -10px -14px 14px; }
	.agp-photo--stack::after { left: -6px; }
	.agp-photo--soft { max-width: 340px; margin: 0 auto !important; }
	.agp-form__row { grid-template-columns: 1fr; }
	.agp-posts { grid-template-columns: 1fr; }
	.agp-headrow { align-items: flex-start; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.agp-topbar__links { gap: 14px; font-size: .8rem; }
	.agp-topbar__links a span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.agp-cards--4, .agp-pgrid, .agp-tgrid { grid-template-columns: 1fr; }
	.agp-bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 250px; }
	.agp-bento > .agp-tile:first-child, .agp-bento > .agp-tile:nth-child(4) { grid-column: auto; }
	.agp-footer__grid, .agp-footer__grid--3, .agp-footer__grid--2 { grid-template-columns: 1fr; gap: 34px; }
	.agp-footer__bottom-inner { justify-content: center; text-align: center; }
	.agp-step { padding: 92px 22px 22px; }
	.agp-step::before { left: 22px; top: 22px; }
	.agp-slide__title { font-size: clamp(2.4rem, 11.5vw, 3.4rem); }
	.agp-pagehero { min-height: 360px; border-radius: 0 0 26px 26px; }
	.agp-section { padding-inline: 18px; }
	.agp-section--paper, .agp-section--green, .agp-section--deep, .agp-band, .agp-cta { border-radius: 26px; }
	.agp-dialog { border-radius: 22px; }
	.agp-mdl__heroin { right: 70px; }
	.agp-totop { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}

@media (max-width: 782px) { .admin-bar .agp-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .agp-header { top: 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.agp-reveal { opacity: 1; transform: none; }
}

/* >>> contador de visitas */
.agp-visitas{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:inherit;font-weight:600;white-space:nowrap}
.agp-visitas svg{opacity:.85}
.agp-visitas__n{font-variant-numeric:tabular-nums}
/* <<< contador de visitas */