/* ============================= */
/* RESET MENU JOOMLA             */
/* ============================= */

/* ============================= 
   TOPO ACESSIBILIDADE
============================= */

.topo-acessibilidade{
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    background: #f1f1f1;
    font-size: 13px;

    padding: 6px 30px;
    border-top: 3px solid #0b8f3c;
}

/* 🔥 REMOVE INTERFERÊNCIA DO JOOMLA */
.topo-acessibilidade p{
    margin: 0;
    display: inline;
}

/* remove margens padrão de módulos */
.topo-acessibilidade .moduletable{
    margin: 0;
}
.moduletable {
    display: block !important;
}
/* =========================
   LADO ESQUERDO (IDIOMAS)
========================= */

.topo-left{
    display: flex;
    align-items: center;
    gap: 10px;
}

.topo-left img{
    width: 18px;
    height: auto;
    display: block;
}

/* BOTÃO CONTRASTE (se usar junto) */

.contraste-btn{
    font-weight: 600;
    color: #004080;
    cursor: pointer;
}

/* =========================
   LADO DIREITO (ACESSO RÁPIDO)
========================= */

.topo-right{
    display: flex;
    align-items: center;
    gap: 12px;

    margin-left: auto; /* 🔥 garante ir pra direita */
}

/* LINKS */

.topo-right a{
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

/* NUMERINHO */

.topo-right span{
    background: #0b8f3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 4px;
}

/* HOVER */

.topo-right a:hover{
    text-decoration: underline;
}

/* =========================
   MOBILE
========================= */

/* 🔥 opção 1: esconder tudo */
@media (max-width:600px){

    .topo-right{
        display: none; /* 🔥 esconde acessibilidade */
    }

    .topo-acessibilidade{
        justify-content: flex-start; /* 🔥 mantém à esquerda */
    }

}

/* 🔥 opção 2 (se quiser depois):
   mostrar mas quebrar linha

@media (max-width:600px){

    .topo-acessibilidade{
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 12px;
    }

    .topo-left,
    .topo-right{
        width: 100%;
        flex-wrap: wrap;
    }

}
*/
/* ============================= */
/* HEADER PRINCIPAL              */
/* ============================= */

.header-principal{
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "logo selo social busca";
    align-items: center;
    gap: 15px;
}

/* ÁREAS */

.header-logo{ grid-area: logo; }
.header-selo{ grid-area: selo; text-align: center; }
.header-social{ grid-area: social; }
.header-busca{ grid-area: busca; }

/* ============================= */
/* IMAGENS                       */
/* ============================= */

.logo img {
    width: 300px;
    height: 158px;
    object-fit: contain; /* mantém proporção sem cortar */
}

.header-selo img{
    max-width: 150px;
    height: auto;
}

/* ============================= */
/* REDES SOCIAIS                */
/* ============================= */

.header-social{
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-social ul{
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.img-soc{
    width: 26px;
    height: auto;
    display: block;
}

.img-esic{
    width: 80px;
}

.header-social a{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================= */ 
/* BUSCA (CORRIGIDO DE VERDADE) */
/* ============================= */

.header-busca{
    display: flex;
    justify-content: center;
    width: 100%;
}

/* remove label duplicado */
.header-busca label{
    display: none !important;
}

/* 🔥 AQUI ESTÁ A CORREÇÃO */
.header-busca form{
    display: flex; /* 🔥 ESSENCIAL */
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* INPUT */

.header-busca input{
    border: none;
    padding: 8px;
    outline: none;
    width: 200px;
    min-width: 0; /* 🔥 evita quebra */
}

/* placeholder */

.header-busca input::placeholder{
    color: #999;
    font-size: 13px;
}

/* BOTÃO */

.header-busca button{
    background: #0b8f3c;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;

    font-size: 0; /* esconde texto */
    width: 40px;
    flex-shrink: 0; /* 🔥 impede encolher */
}

/* ícone */

.header-busca button::before{
    content: "🔍";
    font-size: 16px;
}

/* hover */

.header-busca button:hover{
    background: #087530;
}

/* ============================= */
/* MOBILE                        */
/* ============================= */

@media (max-width:768px){

    .header-principal{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    /* 🔥 força quebra (Joomla interfere) */
    .header-principal > div,
    .header-principal .moduletable{
        width: 100% !important;
        display: block !important;
        text-align: center;
    }

    /* esconder no mobile */
.header-selo,
    .header-social{
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

}

    /* logo */
    .header-logo img{
        max-width: 400px;
    }


.menu-principal,
.menu-principal ul,
.menu-principal li{
margin:0;
padding:0;
list-style:none;
}

/* ============================= */
/* CONTAINER MENU                */
/* ============================= */

.menu-principal{
background:#0b5d2a !important;
width:100%;
display:block;
}

/* ============================= */
/* LISTA DO MENU                 */
/* ============================= */

.menu-principal ul{
display:flex !important;
flex-direction:row !important;
flex-wrap:wrap;
align-items:center;
gap:25px;
padding:12px 20px;
}

/* ============================= */
/* ITEM DO MENU                  */
/* ============================= */

.menu-principal ul li{
display:inline-block !important;
}

/* ============================= */
/* LINKS DO MENU                 */
/* ============================= */

.menu-principal ul li a{
display:block;
color:#ffffff !important;
font-weight:600;
text-decoration:none;
padding:8px 14px;
font-family:Arial, Helvetica, sans-serif;
}

/* ============================= */
/* HOVER                         */
/* ============================= */

.menu-principal ul li a:hover{
background:#08451f;
border-radius:4px;
}

/* ============================= */
/* SUBMENU (se existir)          */
/* ============================= */

.menu-principal ul li ul{
display:none;
position:absolute;
background:#0b5d2a;
flex-direction:column;
padding:10px;
}

.menu-principal ul li:hover ul{
display:block;
}

/* ============================= */
/* RESPONSIVO                    */
/* ============================= */

@media(max-width:900px){

.menu-principal ul{
flex-direction:column;
align-items:flex-start;
}

}
/* =========================
   RODAPÉ PREFEITURA
========================= */

.footer{
background:#0b8f3c;
color:#fff;
padding:40px 0;
}

.menu-principal ul.menu {
    display: flex;
    justify-content: center;
}
.menu-principal ul.nav {
    display: flex;
    justify-content: center;
}
.menu-principal ul.menu li a {
    position: relative;
}

.menu-principal ul.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.menu-principal ul.menu li a:hover::after {
    width: 100%;
}
/* container dos módulos */

.footer-modulos{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:40px;
max-width:1200px;
margin:auto;
padding:0 20px;
}

/* títulos dos módulos */

.footer-modulos .module-title,
.footer-modulos .moduletitle,
.footer-modulos h3{
display:block;
color:#ffffff;
font-size:22px;
font-weight:600;
margin-bottom:15px;
}

/* links */

.footer-modulos a{
color:#ffffff;
text-decoration:none;
display:block;
margin-bottom:6px;
font-size:15px;
}

.footer-modulos a:hover{
text-decoration:underline;
}

/* textos */

.footer-modulos p{
margin:0;
color:#ffffff;
line-height:1.6;
font-size:15px;
}

/* =========================
   COPYRIGHT
========================= */

.footer-copy{
background:#0b8f3c;
color:#fff;
text-align:center;
padding:15px 0 25px 0;
}

.footer-copy hr{
border:none;
border-top:1px solid rgba(255,255,255,0.4);
width:90%;
margin:0 auto 15px auto;
}

.footer-copy p{
margin:0;
font-size:14px;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width:900px){

.footer-modulos{
grid-template-columns:1fr 1fr;
}

}

@media (max-width:600px){

.footer-modulos{
grid-template-columns:1fr;
}

}

.copy-container{
font-size:14px;
opacity:0.9;
}
/* =========================
   HOME GRID (DESKTOP)
========================= */

.home-blocos{
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    grid-template-areas:
        "left center right"
        "left banner banner";
    gap: 20px;

    max-width: 1200px;
    margin: auto;
    padding: 20px;
    align-items: start;
}

/* ÁREAS */

.home-left{ grid-area: left; }
.home-center{ grid-area: center; }
.home-right{ grid-area: right; }
.home-banner{ grid-area: banner; }


/* =========================
   COLUNA ESQUERDA
========================= */

.home-left{
    background: #f5f5f5;
    border: 1px solid #ddd;
}

/* título */

.home-left .module-title,
.home-left h3{
    background: #e9e9e9;
    color: #0b8f3c;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 15px;
    margin: 0;
    border-bottom: 1px solid #d9d9d9;
}

/* lista */

.home-left ul{
    list-style: none;
    padding: 10px 15px;
    margin: 0;
}

.home-left ul li{
    border-bottom: 1px solid #e5e5e5;
    padding: 6px 0;
}

.home-left ul li:last-child{
    border-bottom: none;
}

.home-left ul li a{
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.home-left ul li a:hover{
    color: #0b8f3c;
    text-decoration: underline;
}


/* =========================
   COLUNA DIREITA (NOTÍCIAS)
========================= */

.home-right{
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 15px;
}

/* título */

.home-right .module-title,
.home-right h3{
    color: #0b8f3c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* lista */

.home-right ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-right ul li{
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

.home-right ul li:last-child{
    border-bottom: none;
}

/* data */

.home-right .data{
    color: #0b8f3c;
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 3px;
}

/* link */

.home-right ul li a{
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.home-right ul li a:hover{
    color: #0b8f3c;
    text-decoration: underline;
}

/* botão */

.home-right .veja-mais{
    display: inline-block;
    margin-top: 15px;
    background: #0b8f3c;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.home-right .veja-mais:hover{
    background: #087530;
}


/* =========================
   SLIDER (COMPLETO E CORRIGIDO)
========================= */

.slider{
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 350px; /* desktop */
    overflow: hidden;
}

/* SLIDES */

.slide{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .6s ease;
}

.slide.active{
    opacity: 1;
    z-index: 2;
}

/* IMAGEM */

.slider .slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BOTÕES */

.prev,
.next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 22px;
    z-index: 5;
}

.prev{ left: 10px; }
.next{ right: 10px; }

.prev:hover,
.next:hover{
    background: #000;
}

/* =========================
   MOBILE (CORRIGIDO)
========================= */

@media (max-width:768px){

    /* 🔥 remove trava do container pai */
    .home-center{
        height: auto !important;
        overflow: visible !important;
    }

    /* slider mobile */
    .slider{
        display: block;
        height: 180px;
    }

    .slide{
        height: 100%;
        opacity: 1 !important; /* 🔥 força aparecer */
        position: relative;    /* 🔥 tira do absoluto */
    }

    .slider .slide img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}
@media (max-width:768px){

    .slide{
        opacity: 1 !important; /* 🔥 força aparecer */
        position: relative;    /* 🔥 tira do absoluto */
    }

}

/* =========================
   BANNER HOME
========================= */

.home-banner{
    width: 100%;
    margin-top: 5px;
}

.img-anuncios{
    width: 100%;
    height: auto;
    display: block;
}


/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    .home-blocos{
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    /* ORDEM */
    .home-center{ order: 1; } /* slide */
    .home-right{ order: 2; }  /* notícias */
    .home-banner{ order: 3; } /* banner */

    /* ESCONDE */
    .home-left{
        display: none;
    }

    /* AJUSTES */

    .home-center img,
    .home-banner img{
        width: 100%;
        height: auto;
    }

}

/* =========================
   GUIA DE SERVIÇOS (FIX)
========================= */

.guia-servicos{
    background: #dfe8e3;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-sizing: border-box; /* 🔥 evita estourar */
}

/* TÍTULO */

.guia-servicos h2{
    background: #0b8f3c;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin: -20px -20px 20px -20px;
    font-size: 18px;
    letter-spacing: 1px;
}

/* GRID */

.servicos-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    text-align: center;
}

/* ITEM */

.servicos-grid a{
    text-decoration: none;
    color: #0b8f3c;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    padding: 10px;
}

/* ÍCONES */

.servicos-grid img{
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* TEXTO */

.servicos-grid span{
    line-height: 1.3;
}

/* HOVER */

.servicos-grid a:hover{
    transform: translateY(-5px);
    color: #087530;
}

/* =========================
   RESPONSIVO
========================= */

/* TABLET */
@media (max-width:1000px){
    .servicos-grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

/* MOBILE */
@media (max-width:600px){
    .servicos-grid{
        grid-template-columns: repeat(2, 1fr); /* 🔥 2 por linha */
        gap: 12px;
    }

    .servicos-grid img{
        max-width: 50px; /* 🔥 reduz ícone */
    }

    .servicos-grid span{
        font-size: 13px;
    }
}

/* GRID DO BANNER + REDES + CLIMA */

.home-banner-grid{
display:grid;
grid-template-columns: 1fr 1fr 320px;
gap:20px;
align-items:start;
}

.home-banner-grid > div{
border-radius:8px;
overflow:hidden;
}

.home-banner-grid > div{
border-radius:8px;
overflow:hidden;
}

/* TODOS OS ITENS COM MESMA ALTURA */
.home-banner-grid > div{
height:100%;
}

.banner-item.clima{
background:#f5f5f5;
padding:15px;
border-radius:8px;
height:100%;
display:flex;
flex-direction:column;
justify-content:center;
}
@media (max-width:768px){

    .home-banner-grid{
        display: grid;
        grid-template-columns: 1fr; /* 🔥 tudo em coluna */
        gap: 15px;
    }

    /* garante largura total */
    .home-banner-grid > div{
        width: 100%;
        height: auto; /* 🔥 remove altura travada */
    }

    /* clima ajustado */
    .banner-item.clima{
        padding: 15px;
        height: auto;
    }

}
.banner-item a {
  display: inline-block;
}

.banner-item a:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}
.img-redes {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s;
  cursor: pointer; /* IMPORTANTE */
}

.img-redes:hover {
  transform: scale(1.08);
  opacity: 0.85;
}

#btn-topo{
position:fixed !important;
bottom:30px !important;
right:30px !important;
left:auto !important; /* 👈 mata alinhamento à esquerda */

box-shadow:0 4px 10px rgba(0,0,0,0.2);

z-index:99999;

width:45px;
height:45px;
border:none;
border-radius:50%;

background:#0b8f3c;
color:#fff;
font-size:22px;
cursor:pointer;

display:flex;
align-items:center;
justify-content:center;

opacity:0;
visibility:hidden;
transform:translateY(20px);
transition:all .3s ease;
}

#btn-topo.show{
opacity:1;
visibility:visible;
transform:translateY(0);
}

#btn-topo:hover{
background:#087530;
transform:translateY(-4px) scale(1.05);
box-shadow:0 8px 20px rgba(0,0,0,0.3);
}
/* =========================
   MENU NORMAL (DESKTOP)
========================= */

.menu-principal{
display:block; /* 🔥 garante que aparece */
width:100%;
}

.menu-principal ul{
display:flex;
gap:20px;
list-style:none;
margin:0;
padding:10px 20px;
background:#0b5d2a;
}

.menu-principal ul li a{
color:#fff;
text-decoration:none;
font-weight:600;
}

/* =========================
   BOTÃO HAMBURGUER
========================= */

.menu-mobile-btn{
display:none;
font-size:26px;
background:#0b5d2a;
color:#fff;
padding:8px 12px;
cursor:pointer;
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

/* MOSTRA BOTÃO */
.menu-mobile-btn{
display:block;
}

/* ESCONDE MENU NO MOBILE */
.menu-principal{
display:none;
}

/* QUANDO ABRE */
.menu-principal.active{
display:block;
}

/* MENU VERTICAL */
.menu-principal ul{
flex-direction:column;
gap:0;
}

.menu-principal ul li{
border-bottom:1px solid rgba(255,255,255,0.2);
}

.menu-principal ul li a{
display:block;
padding:12px;
}

}
@media (min-width:769px){
.menu-principal{
display:block !important;
}
}
/* HERO / PAISAGEM */
.hero-paisagem img{
    width: 100%;
    height: auto;
    display: block;
}

/* REMOVE ESPAÇO DO <p> */
.hero-paisagem p{
    margin: 0;
}
@media (max-width:768px){

    .hero-paisagem img{
        width: 100%;
        height: auto;
    }

}

/* DESKTOP */
.menu-imagens{
    display: flex;
    justify-content: center; /* 🔥 centraliza */
    gap: 10px;
}

/* mantém tamanho original */
.menu-imagens img{
    width: 159px;
    height: 60px;
}


/* MOBILE */
@media (max-width:768px){

    .menu-imagens img{
        width: 100%;       /* ocupa a coluna */
        max-width: 159px;  /* 🔥 não passa do tamanho original */
        height: auto;      /* mantém proporção */
    }

}

/* =========================
   AJUSTE GLOBAL ARTIGOS
========================= */

/* fundo leve da página */
body.com-content {
    background: #f5f5f5;
}

/* container principal do artigo */

.com-content .item-page,
.com-content .blog {
    max-width: 900px !important;

    /* ▲ MAIS PERTO DO TOPO */
    margin: 10px auto 60px auto !important;

    /* ◄ ► MAIS RESPIRO LATERAL */
    padding: 30px 60px !important;

    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    margin-top: 10px;
    margin-bottom: 60px;
}


/* remove limitação do container do template */
.container.conteudo-default {
    max-width: 100% !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
}

/* respiro lateral geral */
.com-content {
    padding-left: 50px !important;
    padding-right: 50px !important;
}

/* texto */
.com-content p {
    text-align: justify;
    line-height: 1.7;
    color: #333;
}

/* títulos */
.com-content h1 {
    margin-bottom: 50px;
    color: #1a2b3c;
}

.com-content h2 {
    margin-top: 25px;
    color: #1a2b3c;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .com-content .item-page,
    .com-content .blog {
        margin: 10px auto 40px auto !important;
        padding: 20px 15px !important;
    }

    .com-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

}

.topo-left {
    display: flex;
    align-items: center;
}

.contraste-btn {
    cursor: pointer;
    padding: 5px 10px;
    background: #eee;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.3s;
}

.contraste-btn:hover {
    background: #ccc;
}
.mapa-menus ul {
  list-style: none;
  padding: 0;
}

.mapa-menus ul li {
  margin: 8px 0;
}

.mapa-menus ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
}

.mapa-menus ul li a:hover {
  color: #007bff;
}
