/*
Theme Name: ACA Café do Acre
Theme URI: https://ebat.com.br
Author: EBAT - Empresa Brasileira de Alta Tecnologia
Author URI: https://ebat.com.br
Description: Tema oficial da Associação dos Produtores de Café do Estado do Acre. Design editorial refinado com identidade territorial.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: aca-theme
Tags: custom-menu, featured-images, custom-logo, full-width-template
*/

/* =========================================================
   1. TOKENS DE DESIGN
   ========================================================= */
:root {
  /* Paleta */
  --cafe-escuro:   #1C0F08;
  --cafe:          #2E1810;
  --cafe-medio:    #4A2C1A;
  --casca:         #7A4F2E;
  --terra:         #A0602E;
  --ouro:          #C8962A;
  --ouro-claro:    #E8B84B;
  --ouro-palido:   #F5D98A;
  --creme-escuro:  #E8D9BC;
  --creme:         #F2E8D0;
  --creme-claro:   #FAF5EA;
  --branco-cafe:   #FDFAF4;

  /* Texto */
  --txt-escuro:    #1C0F08;
  --txt-medio:     #4A2C1A;
  --txt-suave:     #7A5C3A;
  --txt-muted:     #A08060;

  /* Tipografia */
  --f-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --f-corpo:   'Lora', Georgia, serif;
  --f-ui:      'DM Sans', system-ui, sans-serif;

  /* Espaçamento */
  --sec-py: clamp(64px, 9vw, 128px);
  --container: 1240px;
  --gap: clamp(16px, 3vw, 32px);

  /* Efeitos */
  --sombra-xs: 0 2px 8px rgba(28,15,8,.08);
  --sombra-sm: 0 4px 20px rgba(28,15,8,.12);
  --sombra-md: 0 8px 40px rgba(28,15,8,.18);
  --sombra-lg: 0 16px 64px rgba(28,15,8,.22);
  --raio: 3px;
  --raio-md: 6px;
  --trans: 0.28s cubic-bezier(.4,0,.2,1);

  /* Cabeçalho */
  --header-h: 76px;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--branco-cafe);
  color: var(--txt-escuro);
  font-family: var(--f-corpo);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--ouro); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--casca); }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* =========================================================
   3. TIPOGRAFIA
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cafe);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.15rem; font-family: var(--f-ui); font-weight: 600; }
h5 { font-size: 0.95rem; font-family: var(--f-ui); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

p { margin-bottom: 1.15em; }
p:last-child { margin-bottom: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-ui); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ouro);
  margin-bottom: .9rem;
}
.kicker::before { content: ''; width: 24px; height: 1.5px; background: var(--ouro); flex-shrink: 0; }

/* =========================================================
   4. LAYOUT
   ========================================================= */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 56px);
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1440px; }

.secao            { padding: var(--sec-py) 0; }
.secao--creme     { background: var(--creme-claro); }
.secao--creme-md  { background: var(--creme); }
.secao--escura    { background: var(--cafe); }
.secao--terra     { background: var(--cafe-medio); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px)  {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.text-center { text-align: center; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }

/* =========================================================
   5. BOTÕES
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 2rem;
  font-family: var(--f-ui); font-size: .875rem; font-weight: 600;
  letter-spacing: .04em; border-radius: var(--raio);
  border: 2px solid transparent;
  transition: all var(--trans); text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-ouro {
  background: var(--ouro); color: var(--cafe);
  border-color: var(--ouro);
}
.btn-ouro:hover {
  background: var(--ouro-claro); border-color: var(--ouro-claro);
  color: var(--cafe); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200,150,42,.35);
}

.btn-outline-ouro {
  background: transparent; color: var(--ouro); border-color: var(--ouro);
}
.btn-outline-ouro:hover {
  background: var(--ouro); color: var(--cafe);
}

.btn-outline-claro {
  background: transparent; color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.btn-outline-claro:hover {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6);
}

.btn-cafe {
  background: var(--cafe); color: var(--ouro-claro);
  border-color: var(--cafe);
}
.btn-cafe:hover {
  background: var(--cafe-medio); transform: translateY(-2px); box-shadow: var(--sombra-sm);
}

.btn-sm { padding: .55rem 1.25rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* =========================================================
   6. CABEÇALHO
   ========================================================= */
#cabecalho {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(28,15,8,.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,150,42,.15);
  transition: background var(--trans), box-shadow var(--trans);
}
#cabecalho.scrolled {
  background: rgba(28,15,8,.99);
  box-shadow: 0 4px 32px rgba(0,0,0,.25);
}

.cab-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}

/* LOGO */
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-img { width: 42px; height: 42px; object-fit: contain; }
.logo-svg { width: 42px; height: 42px; flex-shrink: 0; }
.logo-txt { display: flex; flex-direction: column; }
.logo-txt-nome {
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 700;
  color: var(--ouro-claro); line-height: 1.1; letter-spacing: .01em;
}
.logo-txt-sub {
  font-family: var(--f-ui); font-size: .65rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(245,237,216,.5);
}

/* NAV */
.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-links a {
  font-family: var(--f-ui); font-size: .84rem; font-weight: 500;
  color: rgba(245,237,216,.82);
  padding: .5rem .9rem; border-radius: var(--raio);
  transition: all var(--trans); text-decoration: none;
}
.nav-links a:hover,
.nav-links a.ativo { color: var(--ouro-claro); background: rgba(200,150,42,.1); }

.cab-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(245,237,216,.85); border-radius: 2px;
  transition: all .3s;
}
.hamburger.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.aberto span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MENU MOBILE */
@media (max-width: 960px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--cafe-escuro);
    flex-direction: column; align-items: stretch;
    padding: 1.5rem; gap: .25rem;
    border-top: 1px solid rgba(200,150,42,.15);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: all .3s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.aberto { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { padding: .85rem 1rem; border-bottom: 1px solid rgba(200,150,42,.08); }
  .cab-actions .btn { display: none; }
}

/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  overflow: hidden; padding-top: var(--header-h);
  background: var(--cafe-escuro);
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  opacity: .3; animation: heroScale 20s ease-in-out infinite alternate;
}
@keyframes heroScale { from { transform: scale(1.02); } to { transform: scale(1.1); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(28,15,8,.94) 0%, rgba(46,24,16,.78) 55%, rgba(28,15,8,.90) 100%);
}

/* Textura de grain */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}

.hero-conteudo { position: relative; z-index: 2; padding: clamp(60px,10vh,120px) 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(200,150,42,.12); border: 1px solid rgba(200,150,42,.3);
  padding: .4rem 1.1rem; border-radius: 100px;
  font-family: var(--f-ui); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ouro-claro);
  margin-bottom: 1.75rem;
  animation: fadeUp .8s ease both;
}

.hero h1 {
  color: var(--branco-cafe); max-width: 820px; margin-bottom: 1.25rem;
  animation: fadeUp .8s .12s ease both;
}
.hero h1 em { font-style: italic; color: var(--ouro-palido); }

.hero-sub {
  font-size: clamp(1rem,1.8vw,1.2rem); color: rgba(250,245,234,.78);
  max-width: 560px; margin-bottom: 2.75rem; font-family: var(--f-corpo);
  animation: fadeUp .8s .24s ease both;
}

.hero-acoes {
  display: flex; flex-wrap: wrap; gap: 1rem;
  animation: fadeUp .8s .36s ease both;
}

/* Stats flutuantes */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: linear-gradient(to top, rgba(28,15,8,.7) 0%, transparent 100%);
  padding: 3rem 0 2rem;
}
.hero-stats-inner {
  display: flex; gap: clamp(2rem,5vw,5rem); flex-wrap: wrap;
}
.stat { }
.stat-num {
  font-family: var(--f-display); font-size: clamp(2rem,4vw,3rem);
  font-weight: 700; color: var(--ouro-claro); line-height: 1;
}
.stat-lbl {
  font-family: var(--f-ui); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(250,245,234,.55); margin-top: .3rem;
}

@media (max-width: 600px) {
  .hero-stats { position: relative; }
  .hero-stats-inner { gap: 1.5rem; }
}

/* =========================================================
   8. SEÇÃO SOBRE (HOME)
   ========================================================= */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.sobre-img-wrap { position: relative; }
.sobre-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--raio); box-shadow: var(--sombra-lg);
}
.sobre-img-deco {
  position: absolute; top: -18px; left: -18px; right: 18px; bottom: 18px;
  border: 1.5px solid rgba(200,150,42,.4); border-radius: var(--raio); z-index: -1;
}
.sobre-badge-ano {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--ouro); color: var(--cafe);
  padding: 1.25rem 1.5rem; border-radius: var(--raio);
  text-align: center; box-shadow: var(--sombra-md);
}
.sobre-badge-ano strong { display: block; font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.sobre-badge-ano span { font-family: var(--f-ui); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

.sobre-pilares { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2.25rem; }
.pilar { display: flex; gap: .75rem; align-items: flex-start; }
.pilar-ico { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.pilar h5 { color: var(--cafe); margin-bottom: .2rem; font-size: .82rem; }
.pilar p { font-size: .8rem; color: var(--txt-suave); line-height: 1.5; margin: 0; }

@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-pilares { grid-template-columns: 1fr; }
}

/* =========================================================
   9. CARDS SERVIÇOS
   ========================================================= */
.card-serv {
  background: var(--branco-cafe); border: 1px solid rgba(74,44,26,.1);
  border-radius: var(--raio-md); padding: 2rem 1.75rem;
  transition: all var(--trans); position: relative; overflow: hidden;
}
.card-serv::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 3px; background: var(--ouro);
  transition: width .4s ease;
}
.card-serv:hover { transform: translateY(-5px); box-shadow: var(--sombra-md); }
.card-serv:hover::after { width: 100%; }
.card-serv-ico { font-size: 2.2rem; margin-bottom: 1.1rem; }
.card-serv h4 { color: var(--cafe); margin-bottom: .65rem; font-size: 1.05rem; }
.card-serv p { font-size: .875rem; color: var(--txt-suave); line-height: 1.65; margin: 0; }

/* =========================================================
   10. CARDS NOTÍCIA / EVENTO
   ========================================================= */
.card-post {
  background: var(--branco-cafe); border-radius: var(--raio-md);
  overflow: hidden; box-shadow: var(--sombra-xs);
  transition: all var(--trans); display: flex; flex-direction: column;
}
.card-post:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }

.card-post-thumb {
  aspect-ratio: 16/9; overflow: hidden; background: var(--creme);
}
.card-post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.card-post:hover .card-post-thumb img { transform: scale(1.06); }

.card-post-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-post-cat {
  font-family: var(--f-ui); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ouro);
  margin-bottom: .5rem;
}
.card-post h3 {
  font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--cafe);
  margin-bottom: .65rem; line-height: 1.35; flex: 1;
}
.card-post h3 a { color: inherit; text-decoration: none; }
.card-post h3 a:hover { color: var(--casca); }
.card-post-excerpt { font-size: .85rem; color: var(--txt-suave); margin-bottom: 1rem; line-height: 1.6; }
.card-post-meta {
  font-family: var(--f-ui); font-size: .74rem; color: var(--txt-muted);
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1rem; border-top: 1px solid rgba(74,44,26,.07); margin-top: auto;
}

/* =========================================================
   11. GALERIA
   ========================================================= */
.galeria-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}
.gal-item {
  overflow: hidden; border-radius: var(--raio); cursor: pointer;
  position: relative;
}
.gal-item:nth-child(1),
.gal-item:nth-child(5) { grid-column: span 2; }
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gal-item:hover img { transform: scale(1.07); }
.gal-item-overlay {
  position: absolute; inset: 0;
  background: rgba(28,15,8,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--trans);
}
.gal-item:hover .gal-item-overlay { opacity: 1; }
.gal-item-overlay svg { width: 32px; height: 32px; color: #fff; }

@media (max-width: 768px) {
  .galeria-mosaic { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .gal-item:nth-child(1), .gal-item:nth-child(5) { grid-column: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox.ativo { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: var(--raio); }
.lb-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(200,150,42,.15); border: 1px solid rgba(200,150,42,.3);
  color: var(--ouro-claro); width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(200,150,42,.3); }

/* =========================================================
   12. FORMULÁRIOS
   ========================================================= */
.campo { margin-bottom: 1.25rem; }
.campo label {
  display: block; font-family: var(--f-ui); font-size: .75rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--txt-suave); margin-bottom: .4rem;
}
.campo label .obrig { color: var(--ouro); margin-left: 2px; }

.campo input,
.campo select,
.campo textarea {
  width: 100%; padding: .78rem 1rem;
  background: var(--branco-cafe); color: var(--txt-escuro);
  border: 1.5px solid rgba(74,44,26,.2); border-radius: var(--raio);
  outline: none; transition: border-color var(--trans), box-shadow var(--trans);
  -webkit-appearance: none;
}
.campo input::placeholder,
.campo textarea::placeholder { color: rgba(122,80,58,.4); }
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--ouro);
  box-shadow: 0 0 0 3px rgba(200,150,42,.12);
}
.campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A4F2E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.campo textarea { resize: vertical; min-height: 110px; }

/* Variante escura (formulário sobre fundo café) */
.campo--escuro input,
.campo--escuro select,
.campo--escuro textarea {
  background: rgba(255,255,255,.07); color: var(--creme);
  border-color: rgba(200,150,42,.25);
}
.campo--escuro label { color: rgba(245,237,216,.65); }
.campo--escuro input::placeholder,
.campo--escuro textarea::placeholder { color: rgba(245,237,216,.3); }
.campo--escuro input:focus,
.campo--escuro select:focus,
.campo--escuro textarea:focus {
  border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(200,150,42,.15);
}
.campo--escuro select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E8B84B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-aviso { font-family: var(--f-ui); font-size: .76rem; color: var(--txt-muted); text-align: center; margin-top: .85rem; }
.form-alerta {
  padding: .85rem 1.1rem; border-radius: var(--raio); font-family: var(--f-ui); font-size: .85rem;
  margin-top: 1rem; display: none;
}
.form-alerta.sucesso { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3); color: #1a7a40; }
.form-alerta.erro    { background: rgba(200,50,50,.08); border: 1px solid rgba(200,50,50,.2); color: #a03030; }
.form-alerta.show    { display: block; }

/* Busca CNPJ */
.cnpj-wrap { position: relative; }
.cnpj-wrap input { padding-right: 3rem; }
.cnpj-btn {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: var(--ouro); color: var(--cafe); border: none;
  width: 32px; height: 32px; border-radius: var(--raio); font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--trans); flex-shrink: 0;
}
.cnpj-btn:hover { background: var(--ouro-claro); }
.cnpj-btn.loading { pointer-events: none; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.cnpj-resultado {
  background: rgba(200,150,42,.06); border: 1.5px solid rgba(200,150,42,.25);
  border-radius: var(--raio-md); padding: 1.25rem 1.5rem;
  margin-top: 1rem; display: none;
}
.cnpj-resultado.show { display: block; }
.cnpj-resultado-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: .75rem; margin-top: .75rem; }
.cnpj-campo { font-family: var(--f-ui); }
.cnpj-campo span { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ouro); display: block; margin-bottom: .1rem; }
.cnpj-campo strong { font-size: .9rem; color: var(--txt-escuro); font-weight: 600; }

/* =========================================================
   13. TIMELINE (Estatuto / História)
   ========================================================= */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: .75rem; top: 0; bottom: 0;
  width: 1.5px; background: linear-gradient(to bottom, var(--ouro), rgba(200,150,42,.1));
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute; left: -2.1rem; top: .3rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ouro); border: 3px solid var(--branco-cafe);
  box-shadow: 0 0 0 2px var(--ouro);
}
.timeline-item h4 { color: var(--cafe); margin-bottom: .4rem; }
.timeline-item p { font-size: .9rem; color: var(--txt-suave); margin: 0; }
.timeline-ano { font-family: var(--f-ui); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ouro); margin-bottom: .35rem; }

/* =========================================================
   14. DIRETORIA (CARDS)
   ========================================================= */
.card-diretor {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--branco-cafe); border-radius: var(--raio-md);
  box-shadow: var(--sombra-xs); transition: all var(--trans);
}
.card-diretor:hover { transform: translateY(-3px); box-shadow: var(--sombra-sm); }
.card-diretor-foto {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--ouro);
}
.card-diretor-foto-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--creme); border: 3px solid var(--ouro);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1rem;
}
.card-diretor h4 { font-size: 1rem; color: var(--cafe); margin-bottom: .3rem; }
.card-diretor .cargo {
  font-family: var(--f-ui); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ouro);
}
.card-diretor .municipio { font-size: .82rem; color: var(--txt-suave); margin-top: .3rem; }

/* =========================================================
   15. DOCUMENTO (lista)
   ========================================================= */
.doc-lista { display: flex; flex-direction: column; gap: 1px; }
.doc-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.5rem;
  background: var(--branco-cafe); border-radius: var(--raio);
  border: 1px solid rgba(74,44,26,.09);
  transition: all var(--trans);
}
.doc-item:hover { border-color: rgba(200,150,42,.3); box-shadow: var(--sombra-xs); }
.doc-item-left { display: flex; align-items: center; gap: 1rem; }
.doc-item-ico { font-size: 1.5rem; flex-shrink: 0; }
.doc-item h5 { color: var(--cafe); margin-bottom: .15rem; font-size: .9rem; }
.doc-item-meta { font-family: var(--f-ui); font-size: .74rem; color: var(--txt-muted); }

/* =========================================================
   16. PAINEL DO ASSOCIADO
   ========================================================= */
.painel-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .painel-grid { grid-template-columns: 1fr; } }

.painel-sidebar {
  background: var(--cafe); border-radius: var(--raio-md);
  overflow: hidden; position: sticky; top: calc(var(--header-h) + 1.5rem);
}
.painel-user {
  padding: 2rem 1.5rem; border-bottom: 1px solid rgba(200,150,42,.15);
  text-align: center;
}
.painel-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(200,150,42,.15); border: 2px solid var(--ouro);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 1rem;
}
.painel-user h4 { color: var(--ouro-claro); font-size: 1rem; margin-bottom: .25rem; }
.painel-user p { font-family: var(--f-ui); font-size: .78rem; color: rgba(245,237,216,.5); }
.painel-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.5rem; font-family: var(--f-ui); font-size: .85rem; font-weight: 500;
  color: rgba(245,237,216,.72); border-left: 3px solid transparent;
  transition: all var(--trans); text-decoration: none;
}
.painel-nav a:hover, .painel-nav a.ativa {
  color: var(--ouro-claro); background: rgba(200,150,42,.1);
  border-left-color: var(--ouro);
}
.painel-nav a span { font-size: 1rem; }

.painel-main { min-height: 400px; }
.painel-section { display: none; }
.painel-section.ativa { display: block; }
.painel-section h3 { color: var(--cafe); margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--creme); }

/* Quick cards painel */
.painel-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.painel-quick-card {
  background: var(--creme-claro); border: 1px solid rgba(74,44,26,.1);
  border-radius: var(--raio-md); padding: 1.5rem 1.25rem; text-align: center;
  cursor: pointer; transition: all var(--trans); text-decoration: none;
}
.painel-quick-card:hover { background: var(--creme); transform: translateY(-2px); box-shadow: var(--sombra-xs); }
.painel-quick-card span:first-child { font-size: 1.75rem; display: block; margin-bottom: .6rem; }
.painel-quick-card span:last-child { font-family: var(--f-ui); font-size: .8rem; font-weight: 600; color: var(--cafe); }

/* =========================================================
   17. HERO INTERNO (páginas internas)
   ========================================================= */
.hero-interno {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--cafe-escuro) 0%, var(--cafe-medio) 100%);
  position: relative; overflow: hidden;
}
.hero-interno::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(200,150,42,.06)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.hero-interno .container { position: relative; z-index: 1; }
.hero-interno h1 { color: var(--ouro-claro); margin-bottom: .75rem; }
.hero-interno p { color: rgba(245,237,216,.75); font-size: 1.05rem; max-width: 560px; }

.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-family: var(--f-ui); font-size: .78rem;
  color: rgba(245,237,216,.45); margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(245,237,216,.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--ouro-claro); }
.breadcrumb-sep { opacity: .4; }

/* =========================================================
   18. CONTEÚDO TEXTO (páginas estáticas)
   ========================================================= */
.conteudo-texto h2 { margin: 2.5rem 0 1rem; }
.conteudo-texto h3 { margin: 2rem 0 .75rem; }
.conteudo-texto p  { color: var(--txt-suave); }
.conteudo-texto ul,
.conteudo-texto ol { padding-left: 1.5rem; color: var(--txt-suave); margin-bottom: 1.2em; }
.conteudo-texto li { margin-bottom: .5rem; }
.conteudo-texto blockquote {
  border-left: 3px solid var(--ouro); padding: 1rem 1.5rem;
  background: var(--creme); border-radius: 0 var(--raio) var(--raio) 0;
  font-style: italic; color: var(--cafe-medio); margin: 2rem 0;
}
.conteudo-texto table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: .9rem;
}
.conteudo-texto th, .conteudo-texto td {
  padding: .75rem 1rem; border: 1px solid rgba(74,44,26,.12);
  text-align: left;
}
.conteudo-texto th { background: var(--creme); font-family: var(--f-ui); font-weight: 600; color: var(--cafe); }

/* =========================================================
   19. SEÇÃO ASSOCIE-SE
   ========================================================= */
.assoc-wrap {
  background: linear-gradient(135deg, var(--cafe) 0%, var(--cafe-medio) 100%);
  border-radius: var(--raio-md); overflow: hidden; position: relative;
}
.assoc-wrap::before {
  content: '☕'; position: absolute; right: -1rem; bottom: -2rem;
  font-size: 18rem; opacity: .03; line-height: 1; pointer-events: none;
}
.assoc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.assoc-info { padding: clamp(2.5rem,5vw,4rem); }
.assoc-info h2 { color: var(--ouro-claro); margin-bottom: 1rem; }
.assoc-info > p { color: rgba(245,237,216,.78); margin-bottom: 1.75rem; }
.assoc-beneficios { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: .65rem; }
.assoc-ben {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .9rem; color: rgba(245,237,216,.82);
  padding-bottom: .65rem; border-bottom: 1px solid rgba(200,150,42,.1);
}
.assoc-ben::before { content: '✓'; color: var(--ouro); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.form-assoc-wrap {
  background: rgba(250,245,234,.05); border-left: 1px solid rgba(200,150,42,.15);
  padding: clamp(2.5rem,5vw,4rem);
}
.form-assoc-wrap h3 { color: var(--ouro-claro); margin-bottom: 1.75rem; font-size: 1.4rem; }

@media (max-width: 900px) {
  .assoc-grid { grid-template-columns: 1fr; }
  .form-assoc-wrap { border-left: none; border-top: 1px solid rgba(200,150,42,.15); }
}

/* =========================================================
   20. RODAPÉ
   ========================================================= */
#rodape {
  background: var(--cafe-escuro); color: rgba(245,237,216,.65);
  padding: clamp(3rem,5vw,5rem) 0 0;
}
.rodape-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(2rem,4vw,4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(200,150,42,.12);
}

.rodape-sobre .logo-wrap { margin-bottom: 1.25rem; }
.rodape-sobre p {
  font-size: .85rem; line-height: 1.7; color: rgba(245,237,216,.55);
  max-width: 270px; margin-bottom: 1.5rem;
}
.rodape-social { display: flex; gap: .6rem; }
.rodape-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(200,150,42,.1); border: 1px solid rgba(200,150,42,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--ouro); transition: all var(--trans);
  text-decoration: none;
}
.rodape-social a:hover { background: var(--ouro); color: var(--cafe); }

.rodape-col h5 {
  font-family: var(--f-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ouro); margin-bottom: 1.25rem;
}
.rodape-col ul { display: flex; flex-direction: column; gap: .6rem; }
.rodape-col a { font-size: .85rem; color: rgba(245,237,216,.55); transition: color var(--trans); }
.rodape-col a:hover { color: var(--ouro-claro); }

.rodape-bottom {
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.rodape-copy { font-family: var(--f-ui); font-size: .76rem; color: rgba(245,237,216,.3); }
.rodape-copy a { color: rgba(245,237,216,.4); }
.rodape-copy a:hover { color: var(--ouro); }
.rodape-cnpj { font-family: var(--f-ui); font-size: .7rem; color: rgba(245,237,216,.2); }

@media (max-width: 960px) { .rodape-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rodape-grid { grid-template-columns: 1fr; } }

/* =========================================================
   21. ANIMAÇÕES
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }

/* =========================================================
   22. UTILITÁRIOS
   ========================================================= */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--creme); color: var(--cafe-medio);
  font-family: var(--f-ui); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 100px;
}
.tag-ouro { background: rgba(200,150,42,.12); color: var(--ouro); }

.divisor {
  border: none; border-top: 1px solid rgba(74,44,26,.1); margin: 3rem 0;
}

.aviso-box {
  padding: 1.25rem 1.5rem; border-radius: var(--raio-md);
  border-left: 4px solid var(--ouro);
  background: rgba(200,150,42,.07); font-size: .9rem; color: var(--txt-suave);
}

.scroll-topo {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ouro); color: var(--cafe); border: none;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: all var(--trans); box-shadow: var(--sombra-sm);
}
.scroll-topo.vis { opacity: 1; transform: translateY(0); }
.scroll-topo:hover { background: var(--ouro-claro); transform: translateY(-2px); }

/* Alinhamentos WordPress */
.aligncenter { text-align: center; margin: 0 auto 1.5rem; }
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption-text { font-size: .8rem; color: var(--txt-muted); text-align: center; }

/* Paginação */
.nav-paginacao {
  display: flex; justify-content: center; gap: .5rem;
  flex-wrap: wrap; margin-top: 3rem;
}
.nav-paginacao a, .nav-paginacao span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--raio);
  font-family: var(--f-ui); font-size: .85rem; font-weight: 500;
  border: 1.5px solid rgba(74,44,26,.15); color: var(--cafe-medio);
  transition: all var(--trans); text-decoration: none;
}
.nav-paginacao a:hover { background: var(--ouro); border-color: var(--ouro); color: var(--cafe); }
.nav-paginacao .current { background: var(--ouro); border-color: var(--ouro); color: var(--cafe); font-weight: 700; }
.nav-paginacao .prev, .nav-paginacao .next { width: auto; padding: 0 1rem; }
