/* ================================
   VARIÁVEIS PADRÃO DO SISTEMA
================================ */

:root {

    /* cores principais */
    --cor-primaria: #0088cc;
    --cor-primaria-hover: #0099cc;

    /* cores de fundo */
    --cor-fundo-box: #fff;
    --cor-fundo-tabs: #f8f8f8;

    /* cores de texto */
    --cor-texto: #111111;
    --cor-texto-branco: #ffffff;

    /* cores de borda */
    --cor-borda: #d8d8d8;
    --cor-borda-grid: #e5e5e5;

    /* scrollbar */
    --cor-scrollbar: #444444;
    --cor-scrollbar-bg: #d9d9d9;

}
.acesso-wrapper {
    padding: 14px;
}

.acesso-box {
    background: var(--cor-fundo-box);
    border-radius: 24px;
    padding: 20px;
}

.acesso-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.banner-wrapper{
    max-width: 1200px;   /* largura do banner */
    margin: 20px auto;   /* centraliza horizontal */
    padding: 0 15px;     /* respiro lateral no mobile */
}

.banner-wrapper .rev_slider{
    border-radius: 15px;
    overflow: hidden;    
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.banner-img{
    width: 100%;
    border-radius: 20px;
    display: block;
}

@media (max-width: 767.98px) {

    .acesso-topo {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap:0;
    }

    .tabs {
        margin-bottom: 0;
    }

    .todos-servicos {
        display: none;
    }
}

/* ================================
   HOVER DO SUBMENU DE NAVEGAÇÃO
================================ */

/* Item da lista no dropdown */
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a {
    position: relative;
    padding-left: 18px;
    color: #444;
    transition: color 0.2s ease, padding-left 0.2s ease, background-color 0.2s ease;
}

/* Barra lateral colorida (pseudo-elemento, começa com largura 0) */
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background-color: var(--cor-primaria);
    border-radius: 0 4px 4px 0;
    transition: width 0.2s ease;
}

/* Hover: expande a barra, muda cor do texto e recua o padding */
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:hover,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:focus {
    background-color: #f0f8ff !important;
    color: var(--cor-primaria) !important;
    padding-left: 26px;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:hover::before,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:focus::before {
    width: 3px;
}

/* Hover via li (usado pelo tema JS) — mantém consistência */
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li:hover > a,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li.open > a {
    background-color: #f0f8ff !important;
    color: var(--cor-primaria) !important;
    padding-left: 26px;
}

#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li:hover > a::before,
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li.open > a::before {
    width: 3px;
}

/* ================================
   BOTÕES CIDADÃOS / SERVIDORES
================================ */

.tabs {
    display: inline-flex;
    background: var(--cor-fundo-tabs);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 18px;	
}

.tabs a{
	border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cor-texto);
}

.tabs a.active {
    background: var(--cor-primaria);
    color: var(--cor-texto-branco);
    border: 1px solid var(--cor-primaria-hover);
}


/* ================================
   LISTA DE SERVIÇOS (MOBILE)
================================ */

.servicos-mobile {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}


/* scrollbar */

.servicos-mobile::-webkit-scrollbar {
    height: 8px;
}
.servicos-mobile::-webkit-scrollbar-track {
    background: var(--cor-scrollbar-bg);
    border-radius: 10px;
}

.servicos-mobile::-webkit-scrollbar-thumb {
    background: var(--cor-scrollbar);
    border-radius: 10px;
}


/* ================================
   ITEM DO SERVIÇO
================================ */

.servico-item {
    min-width: 180px;
    flex: 0 0 auto;
    padding: 18px 16px;
	margin: 5px 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--cor-borda);
	border-radius: 15px;
	text-decoration: none;
    color: inherit;
}

.servico-item i {
    font-size: 32px;
    color: var(--cor-primaria);
}

.servico-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--cor-texto);
    line-height: 1.2;	
}
.servico-item:hover{
	background: var(--cor-fundo-tabs);
	color: var(--cor-primaria);
	text-decoration: none;
}

/* ================================
   DESKTOP
================================ */

@media (min-width: 768px) {    

    .acesso-wrapper {
        max-width: 1200px;
        margin: 30px auto;
    }

    .acesso-box {
        background: #ffffff;
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .servicos-mobile {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        overflow: visible;
    }

    .servico-item {
        min-width: auto;
        border-right: 1px solid var(--cor-borda-grid);
        border-bottom: 1px solid var(--cor-borda-grid);
    }

}

/* ================================
   BLOCO VEREADORES
================================ */

.bloco-parlamentares {
    background: linear-gradient(135deg, #006aaa 0%, var(--cor-primaria) 55%, #00a3e0 100%);
    border-radius: 28px;
    padding: 44px 40px;
    margin: 40px auto;
    max-width: 1280px;
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.25);
}

.parlamentares-topo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.parlamentares-titulo {
    margin: 0;
    color: #ffffff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.parlamentares-linha {
    width: 3px;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    flex-shrink: 0;
}

.parlamentares-subtitulo {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    font-weight: 400;
    max-width: 520px;
    line-height: 1.5;
}

.parlamentares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.card-parlamentar {
    text-decoration: none;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.card-parlamentar:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.card-foto {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.card-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.card-parlamentar:hover .card-foto img {
    transform: scale(1.05);
}

.card-cargo {
    background: #2e2e2e;
    color: #cccccc;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 8px 10px;
    line-height: 1.2;
}

.card-nome {
    background: #ffffff;
    color: #1a1a1a;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 10px;
    line-height: 1.25;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-destaque {
    grid-column: span 2;
    grid-row: span 2;
}

.card-destaque .card-foto {
    aspect-ratio: 3 / 5.1;
}

.card-destaque .card-cargo {
    font-size: 12px;
    letter-spacing: 1.8px;
    padding: 10px 12px;
}

.card-destaque .card-nome {
    font-size: 20px;
    font-weight: 800;
    min-height: 74px;
    padding: 14px 14px;
}

@media (max-width: 1199px) {
    .parlamentares-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-destaque {
        grid-row: auto;
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .bloco-parlamentares {
        padding: 24px 20px;
        border-radius: 20px;
        margin: 24px 12px;
    }

    .parlamentares-titulo {
        font-size: 32px;
    }

    .parlamentares-linha {
        min-height: 32px;
    }

    .parlamentares-subtitulo {
        font-size: 15px;
        max-width: 100%;
    }

    .parlamentares-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-destaque {
        grid-column: span 2;
    }

    .card-nome {
        font-size: 13px;
        min-height: 54px;
    }

    .card-destaque .card-nome {
        font-size: 16px;
        min-height: 60px;
    }
}
/* ================================
   SEÇÃO NOTÍCIAS RECENTES
================================ */

.secao-noticias {
    background: #f4f6f9;
    padding: 60px 0 70px;
}

/* Cabeçalho da seção */
.noticias-topo {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.noticias-titulo {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1;
}

.noticias-subtitulo {
    font-size: 15px;
    color: #777;
    margin: 0;
    font-weight: 400;
}

/* Botão "Ver todas" no topo */
.btn-ver-todas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--cor-primaria);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.30);
}

.btn-ver-todas i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.btn-ver-todas:hover {
    background: #006aaa;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.40);
}

.btn-ver-todas:hover i {
    transform: translateX(4px);
}

/* Grid de cards */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card individual */
.noticia-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.noticia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.13);
}

/* Foto do card */
.noticia-foto {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

.noticia-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.noticia-card:hover .noticia-foto img {
    transform: scale(1.05);
}

/* Badge de data sobreposto à foto */
.noticia-data {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: var(--cor-primaria);
    color: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.noticia-data strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.noticia-data span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Corpo do card */
.noticia-corpo {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Badge de categoria */
.noticia-badge {
    display: inline-block;
    background: #e8f4fb;
    color: var(--cor-primaria);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* Título do artigo */
.noticia-titulo-card {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.noticia-titulo-card a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.noticia-titulo-card a:hover {
    color: var(--cor-primaria);
}

/* Descrição */
.noticia-descricao {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
    margin: 0 0 auto;
    padding-bottom: 18px;
}

/* Link "Saiba mais" */
.noticia-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cor-primaria);
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.noticia-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.noticia-link:hover {
    color: #006aaa;
    text-decoration: none;
}

.noticia-link:hover i {
    transform: translateX(4px);
}

/* Responsivo */
@media (max-width: 991px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .secao-noticias {
        padding: 40px 0 50px;
    }

    .noticias-topo {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 28px;
    }

    .noticias-titulo {
        font-size: 28px;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-ver-todas {
        width: 100%;
        justify-content: center;
    }
}
