/* ==============================================
   PERIFERIA VIVA — VARIÁVEIS E BASE
   (estrutura herdada do site da ELEA, identidade visual do programa)
   ============================================== */
:root {
    --azul-escuro: #1b2a5e;
    --azul-escuro-2: #121d45;
    --azul: #1e88e5;
    --amarelo: #f5b700;
    --vermelho: #d62f2f;
    --verde: #5cb531;
    --laranja: #f08a00;
    --primaria: var(--azul-escuro);
    --primaria-claro: #eaf0fb;
    --fundo: #f5f7fb;
    --texto: #2b2f3a;
    --efeito-vidro: rgba(255, 255, 255, 0.92);
    --sombra-suave: 0 8px 32px rgba(18, 29, 69, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

html { scroll-behavior: smooth; font-size: 100%; }

body {
    background-color: var(--fundo);
    color: var(--texto);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; }
a { color: var(--azul); }

/* Faixa de 4 cores da identidade do programa */
.titulo-underline, .footer-top-stripe { display: flex; }
.titulo-underline i, .footer-top-stripe i { flex: 1; display: block; }
.titulo-underline i:nth-child(1), .footer-top-stripe i:nth-child(1) { background: var(--azul); }
.titulo-underline i:nth-child(2), .footer-top-stripe i:nth-child(2) { background: var(--amarelo); }
.titulo-underline i:nth-child(3), .footer-top-stripe i:nth-child(3) { background: var(--vermelho); }
.titulo-underline i:nth-child(4), .footer-top-stripe i:nth-child(4) { background: var(--verde); }

/* ==============================================
   CABEÇALHO E MENU
   ============================================== */
header {
    background-image: linear-gradient(rgba(18,29,69,0.55), rgba(18,29,69,0.35)), url('img/banner.jpg');
    background-size: cover;
    background-position: center 40%;
    height: 340px;
    position: relative;
    display: flex;
    flex-direction: column;
}

header.home-header {
    height: 520px;
    background-image: linear-gradient(rgba(18,29,69,0.15), rgba(18,29,69,0.25)), url('img/banner.jpg');
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.55);
    text-align: center;
    padding: 0 20px;
}

.header-content h1 { font-size: 3.6rem; letter-spacing: 1px; margin: 0; line-height: 1.1; }
.header-content p { font-size: 1.2rem; font-weight: 400; margin-top: 8px; max-width: 760px; }

/* Legibilidade: letras brancas sobre a foto ganham fundo escuro com contorno */
header:not(.home-header) .header-content h1,
header:not(.home-header) .header-content p {
    background: rgba(18, 29, 69, 0.78);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(18, 29, 69, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.35);
    paint-order: stroke fill;
}
header:not(.home-header) .header-content h1 { padding: 10px 30px 14px; border-radius: 18px; max-width: 100%; }
header:not(.home-header) .header-content p { padding: 8px 20px; border-radius: 12px; margin-top: 12px; font-weight: 600; -webkit-text-stroke: 0; }
header:not(.home-header) .header-content .titulo-underline { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }

/* Na home, a própria arte do mural já traz o nome — o título fica como "selo" */
.home-header .header-content { justify-content: flex-end; padding-bottom: 40px; }
.home-header .titulo-logo { font-size: 1.1rem; background: var(--azul-escuro); padding: 8px 22px; border-radius: 50px; text-shadow: none; letter-spacing: 3px; text-transform: uppercase; }
.home-header .titulo-logo span:last-child { color: var(--amarelo); }
.home-header .header-content p { background: rgba(18,29,69,0.75); padding: 8px 18px; border-radius: 10px; text-shadow: none; font-size: 1.05rem; }

.titulo-underline { width: 260px; height: 6px; margin-top: 12px; border-radius: 10px; overflow: hidden; }

nav {
    padding: 0 5%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--efeito-vidro);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav-marca { text-decoration: none; display: flex; align-items: baseline; gap: 4px; font-weight: 800; font-size: 1.35rem; line-height: 1; }
.nav-marca .marca-p { color: var(--azul-escuro); }
.nav-marca .marca-v { color: var(--verde); }
.nav-marca small { font-size: 0.92rem; font-weight: 600; color: #777; margin-left: 8px; text-transform: uppercase; letter-spacing: 1px; }

.nav-hamburguer { display: none; background: none; border: none; font-size: 1.8rem; color: var(--azul-escuro); cursor: pointer; padding: 5px 10px; }

.nav-menu { display: flex; list-style: none; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; }

.nav-link {
    color: var(--azul-escuro);
    text-decoration: none;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-link:hover { background: rgba(30, 136, 229, 0.08); color: var(--azul); }
.nav-link.ativo { color: var(--azul); border-bottom-color: var(--amarelo); }
.dropdown-icon { margin-left: 6px; font-size: 0.92rem; transition: transform 0.3s; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 290px;
    box-shadow: var(--sombra-suave);
    display: none;
    list-style: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    border: 1px solid #eee;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #f3f3f3;
    transition: 0.2s;
}
.dropdown-item:hover { background-color: var(--primaria-claro); color: var(--azul-escuro); padding-left: 25px; }

/* ==============================================
   CONTEÚDO PRINCIPAL
   ============================================== */
main { max-width: 1100px; width: 100%; margin: 40px auto; padding: 0 20px; flex: 1; }

section {
    margin-bottom: 40px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(18,29,69,0.04);
    scroll-margin-top: 90px;
}
section.transparente { background: transparent; box-shadow: none; padding: 0; }

.section-title {
    color: var(--azul-escuro);
    margin-bottom: 25px;
    border-left: 6px solid var(--amarelo);
    padding-left: 15px;
    line-height: 1.25;
}

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.section-header .section-title { margin-bottom: 0; }
.texto-intro { font-size: 1.1rem; color: #555; margin-bottom: 30px; }

.conteudo-html { font-size: 1.05rem; color: #444; line-height: 1.8; }
.conteudo-html p { margin-bottom: 18px; }
.conteudo-html h3 { color: var(--azul-escuro); margin: 28px 0 12px; }
.conteudo-html ul, .conteudo-html ol { margin: 0 0 18px 28px; }
.conteudo-html li { margin-bottom: 6px; }
.conteudo-html img { height: auto; border-radius: 8px; }
.conteudo-html table { border-collapse: collapse; width: 100%; margin-bottom: 18px; }
.conteudo-html td, .conteudo-html th { border: 1px solid #ddd; padding: 8px; }

/* Intro da home */
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.intro-destaques { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-destaques div { padding: 16px; border-radius: 12px; font-weight: 700; color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.intro-destaques div:nth-child(1) { background: var(--azul); }
.intro-destaques div:nth-child(2) { background: var(--verde); }
.intro-destaques div:nth-child(3) { background: var(--vermelho); }
.intro-destaques div:nth-child(4) { background: var(--amarelo); color: var(--azul-escuro); }
.intro-destaques div:nth-child(5) { background: var(--laranja); }
.intro-destaques div:nth-child(6) { background: var(--azul-escuro); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { padding: 30px; background: #fff; border-radius: 15px; border: 1px solid #eee; transition: 0.3s; }
.card:hover { border-color: var(--azul); transform: translateY(-3px); }

/* Cartões das intervenções (página institucional) */
.interv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 10px 0 30px; }
.interv-card { background: var(--fundo); border-radius: 12px; padding: 18px 20px; border-top: 4px solid var(--azul); }
.interv-grid .interv-card:nth-child(4n+2) { border-top-color: var(--amarelo); }
.interv-grid .interv-card:nth-child(4n+3) { border-top-color: var(--vermelho); }
.interv-grid .interv-card:nth-child(4n+4) { border-top-color: var(--verde); }
.interv-card h4 { color: var(--azul-escuro); margin-bottom: 6px; font-size: 1.05rem; }
.interv-card p { margin: 0; font-size: 1rem; line-height: 1.55; }

/* ==============================================
   BOTÕES
   ============================================== */
.btn-acao {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--azul-escuro);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 42, 94, 0.25);
    font-size: 1rem;
    text-align: center;
}
.btn-acao:hover { filter: brightness(1.15); transform: translateY(-2px); }
.btn-acao.amarelo { background: var(--amarelo); color: var(--azul-escuro); }
.btn-acao.contorno { background: transparent; color: var(--azul-escuro); border: 2px solid var(--azul-escuro); box-shadow: none; }
.btn-pequeno { padding: 8px 18px; font-size: 0.95rem; }

/* ==============================================
   CARROSSEL DE NOTÍCIAS (igual ao ELEA)
   ============================================== */
.carousel-container { position: relative; width: 100%; display: flex; align-items: center; padding: 0 20px; }
.carousel-track-container { overflow: hidden; width: 100%; padding: 10px 0; }
.carousel-track { display: flex; list-style: none; transition: transform 0.4s ease-in-out; gap: 20px; }
.carousel-slide { min-width: calc(33.333% - 14px); box-sizing: border-box; }

.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); border-color: var(--azul); }
.news-image { height: 180px; background-size: cover; background-position: center; }
.news-image.vazia { background: linear-gradient(135deg, var(--azul-escuro), var(--azul)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.3rem; }
.news-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.92rem; color: #888; margin-bottom: 8px; font-weight: 600; }
.news-content h3 { font-size: 1.15rem; color: var(--azul-escuro); margin-bottom: 10px; line-height: 1.3; }
.news-content p { font-size: 1rem; color: #555; margin-bottom: 15px; flex: 1; }
.read-more { color: var(--azul); text-decoration: none; font-weight: bold; font-size: 1rem; }
.read-more:hover { text-decoration: underline; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--azul-escuro); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s;
}
.carousel-btn:hover { background: var(--azul); }
.prev-btn { left: -10px; }
.next-btn { right: -10px; }

.vazio { padding: 40px; text-align: center; color: #777; background: #fff; border-radius: 12px; border: 1px dashed #ccc; }

/* ==============================================
   MAPA INTERATIVO
   ============================================== */
/* Bloco do mapa: mapa largo (horizontal) + legenda abaixo */
.mapa-bloco { width: 100%; }
.mapa-barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mapa-camadas { display: flex; gap: 6px; }
.mapa-btn { background: #fff; border: 2px solid #d5dbe8; color: var(--azul-escuro); border-radius: 50px; padding: 8px 18px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; }
.mapa-btn:hover { border-color: var(--azul); }
.mapa-btn.ativo { background: var(--amarelo); border-color: var(--amarelo); color: var(--azul-escuro); }
.legenda-reset { background: var(--verde); border-color: var(--verde); color: #fff; }
.legenda-reset:hover { filter: brightness(1.08); border-color: var(--verde); }
.mapa-online { width: 100%; aspect-ratio: 16 / 9; max-height: 74vh; min-height: 380px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(30,136,229,0.18); background: #f2efe9; position: relative; border: 4px solid #fff; outline: 3px solid var(--amarelo); }
.mapa-foco .mapa-online { aspect-ratio: 16 / 8; min-height: 380px; }
.mapa-dica-zoom { font-size: 0.95rem; color: #666; margin: 8px 0 0; }

/* Controles do OpenLayers maiores e na identidade do site */
.mapa-online .ol-zoom { top: 12px; left: 12px; }
.mapa-online .ol-zoom button { width: 42px; height: 42px; font-size: 1.5rem; background: var(--azul); color: #fff; border-radius: 8px; margin: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mapa-online .ol-zoom button:hover { background: var(--azul-escuro); }
.mapa-online .ol-attribution { font-size: 0.75rem; }

.mapa-tooltip { background: var(--amarelo); color: var(--azul-escuro); padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; white-space: nowrap; pointer-events: none; box-shadow: 0 3px 10px rgba(0,0,0,0.3); }
.mapa-balao { position: relative; background: #fff; border-radius: 12px; padding: 16px 18px 14px; min-width: 240px; max-width: 320px; box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.mapa-balao::after { content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }
.balao-fechar { position: absolute; top: 4px; right: 8px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: #888; cursor: pointer; }

/* Legenda (abaixo do mapa) */
.mapa-legenda { background: linear-gradient(90deg, var(--azul) 0 25%, var(--amarelo) 25% 50%, var(--vermelho) 50% 75%, var(--verde) 75%) top / 100% 6px no-repeat, #fff; border: 1px solid #e6e9f0; border-radius: 14px; padding: 24px 22px 18px; margin-top: 18px; overflow: hidden; }
.legenda-titulo { color: var(--azul-escuro); font-size: 1.15rem; margin-bottom: 12px; }
.legenda-fixos { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid #eee; }
.legenda-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
.legenda-grupo h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--azul);  margin: 14px 0 6px; }
.legenda-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--azul-escuro); font-weight: 600; font-size: 0.97rem; line-height: 1.3; transition: background 0.15s; }
a.legenda-item:hover, .legenda-item.ativo { background: color-mix(in srgb, var(--cor, var(--azul)) 14%, #fff); }
.legenda-item.ativo { box-shadow: inset 4px 0 0 var(--cor, var(--azul)); }
.legenda-item.sem-local { opacity: 0.7; }
.leg-num { background: var(--cor); color: #fff; min-width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.leg-pin { width: 24px; height: 32px; flex-shrink: 0; background: no-repeat center / contain url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 48'%3E%3Cpath d='M18 1C8.6 1 1 8.4 1 17.6 1 30 18 47 18 47s17-17 17-29.4C35 8.4 27.4 1 18 1z' fill='%23d00000' stroke='%23fff' stroke-width='2.5'/%3E%3Ccircle cx='18' cy='17.5' r='6.5' fill='%23fff'/%3E%3C/svg%3E"); }
.leg-macro { width: 34px; height: 22px; border: 3px solid #e10600; border-radius: 4px; background: rgba(225,6,0,0.06); flex-shrink: 0; }
.leg-cidade { width: 34px; height: 22px; border: 3px dashed var(--azul); outline: 2px solid var(--amarelo); border-radius: 4px; background: rgba(245,183,0,0.12); flex-shrink: 0; }
.legenda-fixos .legenda-item { padding-left: 0; }
.legenda-dica { font-size: 0.95rem; color: #6b7280; margin-top: 12px; }
.mapa-sem-posicao { font-size: 1rem; color: #555; background: #fff8e1; border: 1px solid #ffe08a; border-radius: 10px; padding: 12px 16px; margin-top: 14px; }

.pop-area { font-family: 'Segoe UI', sans-serif; border-top: 4px solid var(--cor); padding-top: 8px; }
.pop-area strong { display: block; color: var(--azul-escuro); font-size: 1.15rem; padding-right: 34px; }
.pop-area em { display: block; font-style: normal; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; margin-bottom: 4px; }
.pop-area p { margin: 6px 0; color: #444; font-size: 1rem; }
.pop-num { float: right; background: var(--cor); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 22px 0 8px; }
.pop-link { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--azul); text-decoration: none; font-size: 1rem; }

.mapa-dica { font-size: 1rem; color: #666; margin: 12px 0 20px; }

.areas-lista { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.areas-lista a {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    background: #fff; border: 1px solid #e6e9f0; border-left: 5px solid var(--cor); border-radius: 10px;
    text-decoration: none; color: var(--azul-escuro); font-weight: 600; transition: 0.2s;
}
.areas-lista a:hover, .areas-lista a.atual { background: var(--primaria-claro); transform: translateX(3px); }
.area-nome small { display: block; font-weight: 400; color: #888; font-size: 0.92rem; }
.area-num { background: var(--cor); color: #fff; min-width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; }

/* Página da área */
.area-cabecalho { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; flex-wrap: wrap; }
.area-cabecalho .area-num { min-width: 60px; height: 60px; font-size: 1.6rem; }
.area-cabecalho h2 { color: var(--azul-escuro); font-size: 2rem; line-height: 1.2; }
.area-tag { display: inline-block; font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 4px; background: var(--primaria-claro); color: var(--azul-escuro); }
.area-imagem { width: 100%; border-radius: 14px; box-shadow: var(--sombra-suave); margin-bottom: 30px; cursor: zoom-in; }
.area-resumo { font-size: 1.15rem; background: var(--fundo); border-left: 5px solid var(--cor, var(--azul)); padding: 16px 20px; border-radius: 8px; margin-bottom: 25px; }
.area-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }

/* ==============================================
   AGENDA / CALENDÁRIO (igual ao ELEA)
   ============================================== */
.calendar-container {
    position: relative; padding-bottom: 60%; height: 0; overflow: hidden;
    border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); background: #fff; border: 1px solid #eee;
}
.calendar-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 768px) {
    .calendar-container { padding-bottom: 0; height: 500px; }
}

/* ==============================================
   LISTA DE NOTÍCIAS / PAGINAÇÃO / BUSCA
   ============================================== */
.busca-container { background: #fff; padding: 20px; border-radius: 10px; border: 1px solid #e3e7ef; margin-bottom: 30px; display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.busca-container .form-group { flex: 1; min-width: 200px; margin: 0; }
.busca-container input, .busca-container select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }
.busca-container input:focus { border-color: var(--azul); outline: none; }
.btn-buscar { padding: 12px 25px; background: var(--azul-escuro); color: #fff; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1rem; }
.btn-limpar { padding: 12px 20px; background: #eee; color: #555; text-decoration: none; border-radius: 6px; font-weight: bold; border: 1px solid #ccc; }

.noticia-lista { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.noticia-linha { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #eee; display: flex; align-items: center; overflow: hidden; transition: 0.2s; }
.noticia-linha:hover { border-color: #bcd4f5; transform: translateX(4px); }
.noticia-miniatura-container { padding: 20px; }
.noticia-miniatura { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; background: linear-gradient(135deg, var(--azul-escuro), var(--azul)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; }
.noticia-textos { padding: 20px 20px 20px 0; flex: 1; }
.noticia-data { font-size: 0.95rem; color: #888; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.noticia-textos h3 { color: var(--azul-escuro); font-size: 1.25rem; margin: 6px 0 8px; line-height: 1.25; }
.noticia-textos p { color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.noticia-acao-container { padding: 20px 30px; border-left: 1px solid #eee; }

.paginacao { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.paginacao a { padding: 10px 16px; background: #fff; border: 1px solid #ddd; color: var(--azul-escuro); text-decoration: none; border-radius: 6px; font-weight: bold; }
.paginacao a.ativo { background: var(--azul-escuro); color: #fff; border-color: var(--azul-escuro); }

/* Notícia individual */
.noticia-container { max-width: 820px; margin: 0 auto; padding: 40px; background: #fff; border-radius: 15px; box-shadow: var(--sombra-suave); }
.noticia-cabecalho { text-align: center; margin: 20px 0 30px; }
.noticia-cabecalho h1 { color: var(--azul-escuro); font-size: 2.1rem; margin-bottom: 10px; line-height: 1.2; }
.noticia-imagem { width: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; margin-bottom: 30px; cursor: zoom-in; }
.link-voltar { color: var(--azul); text-decoration: none; font-weight: bold; }

/* ==============================================
   GALERIA DE FOTOS + LIGHTBOX
   ============================================== */
.galeria-titulo { margin-top: 50px; border-top: 2px solid #eee; padding-top: 30px; color: var(--azul-escuro); font-size: 1.5rem; text-align: center; margin-bottom: 20px; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.galeria-item { margin: 0; }
.galeria-img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: 0.3s; cursor: zoom-in; display: block; }
.galeria-img:hover { transform: scale(1.03); }
.galeria-item figcaption { font-size: 0.95rem; color: #666; margin-top: 6px; }

.album-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #eee; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: 0.3s; }
.album-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-suave); border-color: var(--azul); }
.album-capa { height: 200px; background-size: cover; background-position: center; background-color: var(--azul-escuro); position: relative; }
.album-qtd { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.92rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.album-info { padding: 18px 20px; flex: 1; }
.album-info h3 { color: var(--azul-escuro); font-size: 1.15rem; margin-bottom: 4px; }
.album-info small { color: #888; font-weight: 600; }
.album-info p { color: #555; font-size: 1rem; margin-top: 8px; }

.lightbox { display: none; position: fixed; z-index: 2000; inset: 0; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; flex-direction: column; }
.lightbox.aberto { display: flex; }
.lightbox-content { max-width: 92%; max-height: 82vh; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); animation: zoomIn 0.25s ease; }
.lightbox-legenda { color: #eee; margin-top: 12px; font-size: 1rem; text-align: center; padding: 0 20px; }
@keyframes zoomIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close { position: absolute; top: 15px; right: 30px; color: #f1f1f1; font-size: 42px; font-weight: bold; cursor: pointer; background: none; border: none; }
.lightbox-prev, .lightbox-next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); padding: 18px; color: #fff; font-size: 28px; background: rgba(0,0,0,0.35); border: none; user-select: none; }
.lightbox-prev { left: 0; border-radius: 0 6px 6px 0; }
.lightbox-next { right: 0; border-radius: 6px 0 0 6px; }

/* ==============================================
   LINKS ÚTEIS
   ============================================== */
.links-grupo { margin-bottom: 40px; }
.links-grupo h3 { color: var(--azul-escuro); margin-bottom: 15px; font-size: 1.3rem; }
.link-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; border: 1px solid #e6e9f0; border-top: 5px solid var(--cor); padding: 24px; transition: 0.3s; }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--sombra-suave); }
.link-card .icone { font-size: 2.4rem; margin-bottom: 10px; }
.link-card h4 { color: var(--azul-escuro); font-size: 1.1rem; margin-bottom: 6px; }
.link-card p { color: #666; font-size: 1rem; flex: 1; margin-bottom: 16px; }
.link-card .telefone { font-size: 1.6rem; font-weight: 800; color: var(--cor); text-decoration: none; display: block; margin-bottom: 12px; }
.link-card .acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==============================================
   JORNAL
   ============================================== */
.jornal-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #eee; display: flex; flex-direction: column; }
.jornal-capa { height: 300px; background-size: cover; background-position: top center; background-color: var(--fundo); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.jornal-info { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.jornal-info h3 { color: var(--azul-escuro); font-size: 1.15rem; }
.jornal-info small { color: #888; font-weight: 600; margin-bottom: 8px; }
.jornal-info p { color: #555; font-size: 1rem; flex: 1; margin-bottom: 14px; }

/* ==============================================
   DÚVIDAS (FAQ + CONTATO)
   ============================================== */
.contato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contato-item { background: var(--fundo); border-radius: 12px; padding: 20px; }
.contato-item .ic { font-size: 1.8rem; }
.contato-item h4 { color: var(--azul-escuro); margin: 6px 0 4px; }
.contato-item p, .contato-item a { color: #555; word-break: break-word; }

.faq details { background: #fff; border: 1px solid #e6e9f0; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 16px 20px; font-weight: 700; color: var(--azul-escuro); cursor: pointer; list-style: none; position: relative; padding-right: 50px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--azul); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid #eee; }
.faq .resposta { padding: 16px 20px; color: #555; }

.form-pv .linha { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-pv .campo { margin-bottom: 16px; }
.form-pv label { display: block; font-weight: 700; color: #444; margin-bottom: 6px; font-size: 1rem; }
.form-pv input, .form-pv select, .form-pv textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; background: #fff; }
.form-pv textarea { min-height: 140px; resize: vertical; }
.form-pv input:focus, .form-pv select:focus, .form-pv textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(30,136,229,0.15); }
.form-pv .hp { position: absolute; left: -9999px; }
.alerta { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.alerta.ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alerta.erro { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ==============================================
   RODAPÉ
   ============================================== */
footer { background-color: var(--azul-escuro); color: #dfe5f5; }
.footer-top-stripe { height: 10px; }
.footer-content { padding: 45px 20px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.footer-content h3 { color: #fff; margin-bottom: 10px; }
.footer-content h4 { color: var(--amarelo); margin-bottom: 10px; }
.footer-content a { color: #fff; }
.footer-links a { display: block; text-decoration: none; margin-bottom: 6px; opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-parceiros { background: #fff; padding: 18px 20px; text-align: center; }
.footer-parceiros img { max-width: 620px; width: 100%; height: auto; }
.footer-bottom { background: var(--azul-escuro-2); padding: 18px; text-align: center; font-size: 0.95rem; }

/* ==============================================
   RESPONSIVO
   ============================================== */
@media (max-width: 960px) {
    .nav-hamburguer { display: block; }
    .nav-menu {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; height: auto; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        max-height: calc(100vh - 70px); overflow-y: auto;
    }
    .nav-menu.aberto { display: flex; }
    .nav-item { flex-direction: column; align-items: stretch; }
    .nav-link { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; }
    .dropdown-menu { position: static; box-shadow: none; border: none; border-radius: 0; background: var(--fundo); min-width: 0; }
    .header-content h1 { font-size: 2.4rem; }
    header:not(.home-header) .header-content h1 { padding: 8px 18px 10px; }
    .intro-grid { grid-template-columns: 1fr; }
    .carousel-slide { min-width: calc(50% - 10px); }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 25px 20px; }
    header.home-header { height: 340px; }
    .noticia-linha { flex-direction: column; align-items: stretch; }
    .noticia-miniatura-container { padding: 20px 20px 0; }
    .noticia-miniatura { width: 100%; height: 180px; }
    .noticia-textos { padding: 15px 20px; }
    .noticia-acao-container { border-left: none; border-top: 1px solid #eee; padding: 15px 20px; }
    .noticia-acao-container .btn-acao { width: 100%; }
    .noticia-container { padding: 25px 18px; }
    .noticia-cabecalho h1 { font-size: 1.6rem; }
    .form-pv .linha { grid-template-columns: 1fr; }
    .mapa-online, .mapa-foco .mapa-online { aspect-ratio: 4 / 3; min-height: 320px; }
    .area-cabecalho h2 { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .carousel-slide { min-width: 100%; }
    .nav-marca small { display: none; }
    .intro-destaques { grid-template-columns: 1fr; }
    .legenda-grupos { grid-template-columns: 1fr; }
    .mapa-btn { padding: 7px 12px; font-size: 0.95rem; }
}

/* Mapa largo: página de mapas e seção do mapa na home */
.secao-larga { width: min(1270px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); }
.pagina-mapa main { max-width: 1310px; }
