/* ===== Altinópolis Mapa Vivo — tema responsivo ===== */
:root {
  --verde: #1d6b4f;
  --verde-escuro: #14532d;
  --laranja: #e8702a;
  --creme: #f7f4ec;
  --card: #ffffff;
  --text: #26332c;
  --muted: #6b7a70;
  --line: #e3ded0;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(20, 83, 45, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--creme); color: var(--text); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.titulo-secao { display: flex; align-items: center; gap: 9px; font-size: 1.2rem; font-weight: 800; color: var(--verde-escuro); text-transform: uppercase; letter-spacing: .5px; }
.traco { display: inline-block; width: 22px; height: 4px; background: var(--laranja); border-radius: 3px; }
.pin-mini { display: inline-block; width: 10px; height: 10px; background: var(--laranja); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

/* ===== Tags ===== */
.tag { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; width: fit-content; }
.tag-cidade { background: #fde3d2; color: #c05a14; }
.tag-bairros { background: #d8ede2; color: var(--verde); }
.tag-campo { background: #f4ead4; color: #8a6a1f; }
.tag-cultura { background: #f6dbea; color: #a03372; }

/* ===== Topbar ===== */
.topbar { background: var(--creme); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 60; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 48px; }
.brand-texto strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--verde-escuro); letter-spacing: .3px; }
.brand-texto em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); }
.nav-menu { display: flex; list-style: none; gap: 4px; margin: 0 auto; }
.nav-menu a { display: block; padding: 10px 16px; font-weight: 600; font-size: .92rem; color: var(--text); border-bottom: 3px solid transparent; }
.nav-menu a:hover { color: var(--verde); }
.nav-menu a[aria-current="page"] { color: var(--verde); border-bottom-color: var(--laranja); }
.nav-busca {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-size: .82rem; color: var(--muted);
}
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-left: auto; }
.nav-toggle span { display: block; width: 21px; height: 2.4px; background: var(--verde-escuro); margin: 4px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; }
.hero-mapa { width: 100%; height: clamp(300px, 40vw, 500px); object-fit: cover; }
.hero-card {
  position: absolute; left: clamp(14px, 2.5vw, 40px); bottom: 24px;
  background: var(--card); border-radius: 16px; padding: 20px 28px;
  max-width: 620px; box-shadow: 0 12px 34px rgba(20,83,45,.3);
}
.hero-badge { background: var(--laranja); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; display: inline-block; }
.hero-card h1 { font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; color: var(--verde-escuro); margin: 10px 0 8px; }
.hero-card h1 a:hover { text-decoration: underline; }
.hero-local { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.hero-local svg { color: var(--laranja); }
.hero-chip {
  position: absolute; right: 20px; bottom: 24px; background: var(--verde); color: #fff;
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: .82rem; box-shadow: var(--shadow);
}

/* ===== Pautas por território ===== */
.pautas { padding-top: 26px; padding-bottom: 10px; }
.pautas-titulo { font-size: 1.35rem; font-weight: 900; color: var(--verde-escuro); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 16px; }
.pautas-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.territorio-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.territorio-icone { display: inline-flex; }
.territorio-head h3 { font-size: 1.05rem; font-weight: 800; }
.pauta-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.pauta-card > a { display: block; height: 100%; }
.pauta-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pauta-texto { padding: 10px 12px 14px; }
.pauta-num {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--creme);
  border: 1.5px solid var(--line); align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; color: var(--verde-escuro); margin-bottom: 6px;
}
.pauta-texto h4 { font-size: .86rem; line-height: 1.35; color: var(--verde-escuro); margin-top: 5px; }
.pauta-card:hover h4 { text-decoration: underline; }

/* ===== Boletim ===== */
.boletim { padding-top: 22px; padding-bottom: 14px; }
.boletim-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ver-mapa { font-size: .84rem; font-weight: 700; color: var(--laranja); }
.ver-mapa:hover { text-decoration: underline; }
.boletim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.boletim-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.boletim-item > a { display: flex; gap: 10px; padding: 10px; align-items: flex-start; height: 100%; }
.boletim-num { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.boletim-item img { width: 72px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.boletim-hora { display: block; font-size: .7rem; font-weight: 700; color: var(--laranja); letter-spacing: .5px; }
.boletim-texto h3 { font-size: .84rem; line-height: 1.35; color: var(--verde-escuro); margin-top: 4px; }
.boletim-item:hover h3 { text-decoration: underline; }

/* ===== Paginação ===== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 22px 0 10px; }
.page-btn { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--verde-escuro); transition: .15s; }
.page-btn:hover { border-color: var(--laranja); color: var(--laranja); }
.page-btn.current { background: var(--laranja); border-color: var(--laranja); color: #fff; }
.page-ellipsis { align-self: end; padding: 6px; color: var(--muted); }

/* ===== Post / páginas ===== */
main > .post, main > .static-page, main > .categoria-page { margin-top: 24px; }
.post { max-width: 860px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px clamp(18px, 4vw, 40px); }
.post-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.post-header h1 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.4px; margin-top: 10px; color: var(--verde-escuro); }
.post-meta { color: var(--muted); font-size: .86rem; margin-top: 8px; }
.post-image { margin: 0 0 20px; border-radius: 10px; overflow: hidden; }
.post-content { font-size: 1rem; }
.post-content p { margin-bottom: 1em; }
.post-content h2, .post-content h3 { margin: 1.2em 0 .5em; color: var(--verde-escuro); }
.post-content ul, .post-content ol { margin: 0 0 1em 1.4em; }
.post-content blockquote { border-left: 4px solid var(--laranja); background: #fdf3ea; padding: 12px 18px; border-radius: 0 10px 10px 0; margin-bottom: 1em; }
.post-share { display: flex; gap: 12px; align-items: center; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; }
.post-share span { font-weight: 700; color: var(--muted); }
.post-share a { background: var(--creme); padding: 7px 14px; border-radius: 20px; font-weight: 600; }
.post-share a:hover { color: var(--laranja); }
.related { margin-top: 24px; }
.categoria-head { border-bottom: 2px solid var(--verde); padding-bottom: 12px; margin-bottom: 18px; }
.categoria-head p { color: var(--muted); font-size: .9rem; font-style: italic; }
.static-page h1 { font-weight: 800; color: var(--verde-escuro); margin-bottom: 14px; }
.btn { display: inline-block; background: var(--laranja); color: #fff !important; font-weight: 700; padding: 11px 26px; border-radius: 8px; border: 0; cursor: pointer; margin-top: 16px; }
.btn:hover { background: #cf5f1e; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.form-field input, .form-field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--laranja); border-color: transparent; }
.page-404 { text-align: center; }
.page-404 h1 { font-size: 4rem; color: var(--laranja); }
.busca-box { display: flex; gap: 10px; max-width: 540px; margin: 20px auto 24px; }
.busca-box input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }

/* ===== Rodapé ===== */
.rodape { background: var(--verde-escuro); color: #dff0e5; margin-top: 26px; }
.rodape-inner { display: flex; align-items: center; gap: 18px; padding: 22px 20px; flex-wrap: wrap; }
.rodape-marca { display: flex; align-items: center; gap: 10px; }
.rodape-marca img { width: 40px; }
.rodape-marca strong { font-size: 1rem; color: #fff; letter-spacing: .3px; display: block; }
.rodape-marca span { font-size: .74rem; opacity: .85; display: block; }
.rodape-frase { font-size: .82rem; opacity: .9; }
.rodape-news { margin-left: auto; display: flex; flex-direction: column; gap: 8px; }
.news-texto { font-size: .8rem; font-weight: 600; }
.news-campo { display: flex; gap: 8px; }
.news-campo input { padding: 10px 14px; border: 0; border-radius: 6px; font: inherit; min-width: 190px; background: #fff; color: var(--text); }
.news-campo input:focus { outline: 2px solid var(--laranja); }
.news-campo button { background: var(--laranja); color: #fff; border: 0; border-radius: 6px; padding: 10px 20px; font-weight: 700; }
.news-campo button:hover { background: #cf5f1e; }
.news-ok { font-size: .76rem; color: #b8e6c9; }
.rodape-social { display: flex; gap: 8px; }
.rodape-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; }
.rodape-social a:hover { background: #fff; color: var(--verde-escuro); }
.rodape-base { border-top: 1px solid rgba(255,255,255,.15); padding: 12px 20px; font-size: .76rem; opacity: .9; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rodape-base nav { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.rodape-base a:hover { text-decoration: underline; }

/* ===== Responsivo ===== */
@media (max-width: 1180px) {
  .pautas-grid { grid-template-columns: repeat(3, 1fr); }
  .boletim-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pautas-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 76px; left: 0; right: 0; z-index: 80;
    flex-direction: column; gap: 2px; background: #fff; padding: 10px 16px 14px;
    box-shadow: 0 14px 24px rgba(20,83,45,.18);
  }
  .nav-menu.open { display: flex; }
  .topbar-inner { position: relative; }
  .nav-busca { display: none; }
  .hero-card { max-width: calc(100% - 28px); left: 14px; }
  .hero-chip { display: none; }
  .boletim-grid { grid-template-columns: 1fr; }
  .rodape-news { margin-left: 0; }
  .rodape-inner { flex-direction: column; align-items: flex-start; }
  .rodape-base { flex-direction: column; }
}
@media (max-width: 560px) {
  .pautas-grid { grid-template-columns: 1fr; }
  .brand-texto strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
