/* ==================== 1. VARIÁVEIS E RESET BÁSICO ==================== */
:root {
    --primary-color: #1a5784; /* Azul escuro principal */
    --secondary-color: #ffff; /* Dourado/Amarelo para destaque */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #e9ecef;
    --font-family: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Rolagem suave para âncoras */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* ==================== 2. BOTÕES ==================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #153c6e; /* Tom mais escuro */
    color: white;
}

.social ul li a i{
    background:white;
    color: #3960a4;
    padding:7px;
    border-radius:3px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}


/* ==================== 3. HEADER & NAVEGAÇÃO ==================== */

.header-cima {
    background-color: #3960a4;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* position: sticky; */
    top: 0;
    z-index: 1000;
}

.header-cima .nav-principal li {
    margin-left: 10px;
}

.header-container-cima {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 45px;
}

.header-container-cima nav ul li a{
    font-weight: 300;
    color:white;
}

.header {
    background-color: white;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* position: sticky; */
    top: 0;
    z-index: 1000;
    font-size:14px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 45px;
}

.logo img {
    height: auto;
    max-height: 75px;
}

.nav-principal ul {
    display: flex; /* Menu horizontal */
}

.nav-principal li {
    margin-left: 30px;
    position: relative;
}

.nav-principal a {
    color: var(--text-color);
    padding: 10px 0;
    display: block;
    font-weight: bold;
    position: relative;
}

.nav-principal a::after { /* Sublinhado animado */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-out;
}

.nav-principal a:hover::after {
    width: 100%;
}

/* Menu Toggle (Hambúrguer) - Escondido no desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburguer {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Container principal da barra de pesquisa */
.search-box {
    background: #f0f0f0; /* Cor de fundo leve */
    border-radius: 40px; /* Deixa a borda arredondada */
    height: 40px;
    padding: 10px;
    display: flex; /* Permite alinhar o input e o botão */
    align-items: center; /* Alinha verticalmente no centro */
    max-width: 300px; /* Define uma largura máxima para o elemento */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.dropdown{
    z-index:9999;
}

/* Campo de entrada de texto */
.search-txt {
    border: none;
    background: none;
    outline: none; /* Remove a borda de foco padrão */
    padding: 0 10px;
    color: #333; /* Cor do texto digitado */
    font-size: 16px;
    line-height: 40px; /* Altura da linha para centralizar o texto */
    width: 100%; /* Ocupa o máximo de espaço disponível no flex container */
}

/* Botão de pesquisa (a lupa) */
.search-btn {
    color: #555; /* Cor do ícone */
    float: right;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Torna o botão circular */
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s; /* Transição suave para o efeito hover */
    cursor: pointer;
    border: none;
    font-size: 18px;
    padding: 0;
}

/* Efeito ao passar o mouse sobre o botão */
.search-btn:hover {
    background: #007bff; /* Cor de destaque (azul) ao passar o mouse */
    color: white; /* Cor do ícone fica branca */
}

/* Estilo para o placeholder (o texto "Pesquisar...") */
.search-txt::placeholder {
    color: #999;
}


/* ==================== 4. HERO SECTION ==================== */
.hero {
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container dos slides */
.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Cada slide */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Slide ativo */
.slide.active {
    opacity: 1;
}

/* Overlay escuro opcional */
.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    z-index: 1;
}

/* Conteúdo fica acima */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.hero-nav span {
    cursor: pointer;
    font-size: 20px;
    color: white;
    user-select: none;
    background: rgba(0,0,0,0.4);
    padding: 5px 7px;
    border-radius: 50%;
    transition: 0.3s;
}

.hero-nav span:hover {
    background: rgba(0,0,0,0.7);
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.hero-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.hero-dots span.active {
    background: white;
    transform: scale(1.2);
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3em;
    max-width: 800px;
    margin: auto;
}

/* ==================== 5. SERVIÇOS EM DESTAQUE ==================== */
.services-highlight h2, .services-highlight p {
    text-align: center;
    margin-bottom: 30px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-cards .card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-cards .card i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-cards .card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.5em;
}

.service-cards .card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 0;
}
/* ==================== 6. GALERIAS ==================== */

.fotos-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 20px;
}

.fotos-header{
    text-align:center;
}

.fotos-card{
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    max-width: 220px;
    margin: 0 auto;
}

.fotos-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.fotos-image{
    height: 220px;
    overflow: hidden;
}

.fotos-image img{
    width: 100%;
    height: 100%;
    transition: 0.4s;
}

.fotos-card:hover .fotos-image img{
    transform: scale(1.05);
}

.fotos-content{
    padding: 16px;
    text-align: center;
}

.fotos-cargo{
    display: inline-block;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    letter-spacing: .5px;
}

.fotos-content h3{
    font-size: 18px;
    color: #1e293b;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
}

@media(max-width:768px){

    .fotos-grid{
        grid-template-columns: repeat(2,1fr);
        gap: 15px;
    }

    .fotos-card{
        max-width: 100%;
    }

    .fotos-image{
        height: 180px;
    }

    .fotos-content h3{
        font-size: 16px;
    }
}

/* ==================== 6. NOTÍCIAS E EVENTOS ==================== */
.news-events h2, .news-events p {
    text-align: center;
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content span {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-content p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
}

.news-content .read-more {
    color: var(--primary-color);
    font-weight: bold;
}

.news-content .read-more i {
    margin-left: 5px;
    transition: margin-left 0.2s ease;
}

.news-content .read-more:hover i {
    margin-left: 10px;
}

/* ==================== 7. SEÇÃO TRANSPARÊNCIA ==================== */
.transparency {
    background-color: var(--dark-bg);
}

.transparency h2, .transparency p {
    text-align: center;
    margin-bottom: 30px;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.transparency-card {
    background-color: white;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.transparency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.transparency-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.transparency-card h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
}

.transparency-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0;
}


/* ==================== 8. FALE CONOSCO / UTILIDADE PÚBLICA ==================== */
.contact-info h2 {
    text-align: center;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card p {
    margin-bottom: 10px;
    color: #555;
}

.contact-card i {
    margin-right: 8px;
    color: var(--primary-color);
}

.contact-card .social-links a {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.contact-card .social-links a:hover {
    color: var(--secondary-color);
}

.link-map {
    margin-top: 15px;
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== 9. FOOTER ==================== */
.footer {
    background-color: #1a5784; /* Azul mais escuro que o primário */
    color: white;
    padding: 50px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1em;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-col.logo-col img {
    max-height: 40px;
    margin-bottom: 15px;
}

.footer-col.logo-col p {
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.footer-col .social-links a {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-col .social-links a:hover {
    color: var(--secondary-color);
}

.footer .container > p { /* Texto de copyright final */
    text-align: center;
    color: rgba(255,255,255,0.6);
    margin-top: 20px;
}


/* ==================== 10. RESPONSIVIDADE (MOBILE) ==================== */
@media (max-width: 992px) {

    .header-container-cima {
        display:flex;
        flex-direction:column;
    }

    .header-container-cima .nav-principal{
        display:flex;
        justify-content:center;
    }

    .header-container{
        display:flex;
        justify-content:space-between
    }

    .header .header-container {
        padding: 10px 20px;
    }

    .header-container{
        display:flex;
        justify-content:space-between;
    }

    .logo img {
        max-height: 75px;
    }

    .logo{
        width:95%;
    }

    .header .nav-principal ul {
        display: none; /* Esconde o menu principal no mobile */
        flex-direction: column;
        position: absolute;
        top: 180px; /* Ajuste para ficar abaixo do header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 999;
        padding-bottom: 10px;
    }
    .header .nav-principal.active ul {
        display: flex; /* Mostra quando 'active' */
    }
    .header .nav-principal li {
        margin: 0;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .header .nav-principal a {
        padding: 15px 0;
    }
    .header .menu-toggle {
        display: block; /* Mostra o botão hambúrguer */
        background:#3960a4;
    }
    
    /* Animação do hambúrguer para X */
    .header .menu-toggle.active .hamburguer:nth-child(2) {
        opacity: 0;
    }
    .header .menu-toggle.active .hamburguer:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .header .menu-toggle.active .hamburguer:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .header .hero-content h1 {
        font-size: 2.5em;
    }
    .header .hero-content p {
        font-size: 1.1em;
    }
    .section-padding {
        padding: 60px 0;
    }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .service-cards, .news-grid, .transparency-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    .footer-col {
        text-align: center;
    }
    .footer-col.logo-col img {
        margin: 0 auto 15px;
    }
    .footer-col .social-links {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .news-card img {
        height: 180px;
    }
    .news-content h3 {
        font-size: 1.2em;
    }
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9999;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.popup-box img {
    width: 500px;
    height: 500px;
    border-radius: 10px;
}

/* Botão fechar */
.popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: black;
    font-size: 25px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
}

/* animação leve */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Estilização do Carrossel de Notícias (Swiper)
   ========================================================================== */

#noticias {
    position: relative;
    padding: 2rem 0;
    max-width: 1160px; /* Altere o tamanho máximo conforme seu layout */
    margin: 0 auto;
}

/* Customização dos Cards (Slides) */
#noticias .swiper-slide {
    position: relative;
    height: 350px; /* Altura ideal baseada no seu print */
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito de zoom sutil ao passar o mouse */
#noticias .swiper-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Link ocupando todo o card */
#noticias .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Camada escura integrada (Garante leitura do texto branco) */
#noticias .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Container do Texto */
#noticias .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Título da Notícia */
#noticias .slide-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Data da Notícia */
#noticias .slide-date {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

/* Customização dos Botões Próximo/Anterior (Azuis e Redondos) */
#noticias .swiper-button-next,
#noticias .swiper-button-prev {
    background-color: #1a5784; /* Sua cor principal */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#noticias .swiper-button-next:hover,
#noticias .swiper-button-prev:hover {
    background-color: #2744aa; /* Sua cor secundária */
    transform: scale(1.1);
}

/* Diminui o tamanho da seta interna do Swiper */
#noticias .swiper-button-next::after,
#noticias .swiper-button-prev::after {
    font-size: 1.1rem !important;
    font-weight: bold;
}

/* ==========================================================================
   Galeria de Cartilhas e Publicações (CRT-ES)
   ========================================================================== */

/* Container Principal: Organiza em colunas inteligentes */
.cartilhas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Individual da Cartilha */
.cartilhas .cartilha {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid #f1f5f9;
}

/* Link que envolve a imagem */
.cartilhas .cartilha a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Estilização da Capa da Cartilha */
.cartilhas .cartilha img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9; /* Modo paisagem (horizontal/deitada) */
    border-radius: 8px;
    display: block;
    transition: transform 0.4s ease;
}

/* Efeito Hover Premium (Simula elevação de um livro real) */
.cartilhas .cartilha:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(26, 87, 132, 0.15); /* Sombra suave usando sua cor principal */
    border-color: rgba(39, 68, 170, 0.2); /* Borda sutil com sua cor secundária */
}

/* Sutil zoom na imagem ao passar o mouse */
.cartilhas .cartilha:hover img {
    transform: scale(1.02);
}

/* Linha decorativa opcional indicando que é clicável (Efeito visual de brilho) */
.cartilhas .cartilha::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 12px;
    box-shadow: inset 0 0 0 2px transparent;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cartilhas .cartilha:hover::after {
    box-shadow: inset 0 0 0 2px #2744aa; /* Brilho interno com a cor secundária */
    opacity: 0.4;
}

/* Ajuste fino para telas menores (Celulares) */
@media (max-width: 480px) {
    .cartilhas {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
        padding: 1rem;
    }
    .cartilhas .cartilha {
        padding: 0.5rem;
    }
}

/* Acessibilidade (exemplo) */
/* .accessibility-bar { ... } */

/* ==========================================================================
   SEÇÃO: TABELA DE PREÇOS 2026 (SINCETI)
   ========================================================================== */

:root {
    --pricing-primary: #03367B;
    --pricing-primary-light: #eef5fc;
    --pricing-text: #2c3e50;
    --pricing-muted: #64778d;
    --pricing-bg-light: #f8fafc;
    --pricing-border: #e6ecf0;
    --pricing-success: #16a34a;
    --pricing-success-bg: #f0fdf4;
    --pricing-warning: #ca8a04;
    --pricing-warning-bg: #fefcbf;
}

/* Container da seção */
.pricing-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pricing-text);
    line-height: 1.5;
}

.pricing-section .header-container {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-section .titleMain {
    color: var(--pricing-primary);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-section .subtitle {
    color: var(--pricing-muted);
    font-size: 1.1rem;
    margin: 0;
}

.pricing-section .section-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid var(--pricing-border);
}

.pricing-section .section-title {
    color: var(--pricing-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pricing-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Responsivo para Pessoa Física */
.pricing-section .grid-pf {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 850px) {
    .pricing-section .grid-pf {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-section .table-responsive {
    width: 100%;
    overflow-x: auto;
}

.pricing-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: left;
}

.pricing-section th {
    background-color: var(--pricing-bg-light);
    color: var(--pricing-primary);
    font-weight: 600;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-bottom: 2px solid #d2dbe3;
    text-transform: uppercase;
}

.pricing-section td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pricing-border);
    font-size: 0.95rem;
}

.pricing-section tr:nth-child(even) td {
    background-color: #fafbfc;
}

.pricing-section .text-right {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-section .highlight-row td {
    background-color: var(--pricing-primary-light) !important;
    font-weight: 700;
    color: var(--pricing-primary);
}

/* Boxes de Informação e Alertas */
.pricing-section .info-box {
    background-color: var(--pricing-bg-light);
    border-left: 4px solid var(--pricing-primary);
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #475569;
    border-radius: 0 8px 8px 0;
}

.pricing-section .benefits-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .pricing-section .benefits-container {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-section .benefit-card {
    background-color: var(--pricing-success-bg);
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--pricing-success);
    padding: 16px;
    border-radius: 0 8px 8px 0;
}

.pricing-section .benefit-card.warning {
    background-color: var(--pricing-warning-bg);
    border-color: #fef08a;
    border-left-color: var(--pricing-warning);
}

.pricing-section .benefit-title {
    color: #14532d;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.pricing-section .benefit-card.warning .benefit-title {
    color: #713f12;
}

.pricing-section .benefit-desc {
    color: #166534;
    font-size: 0.9rem;
}

.pricing-section .benefit-card.warning .benefit-desc {
    color: #854d0e;
}

.pricing-section ul {
    margin: 0;
    padding-left: 20px;
}

.pricing-section li {
    margin-bottom: 8px;
    color: #334155;
}

/* ==========================================================================
   SEÇÃO: ITENS DA TRANSPARÊNCIA / LINKS ÚTEIS
   ========================================================================== */

:root {
    --transp-primary: #03367B;
    --transp-hover-bg: #f8fafc;
    --transp-border: #e2e8f0;
    --transp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --transp-shadow-hover: 0 10px 15px -3px rgba(3, 54, 123, 0.1), 0 4px 6px -4px rgba(3, 54, 123, 0.1);
}

/* Container Principal */
.transparencia-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Grid Responsivo (Se adapta de 1 a 3 colunas dependendo da tela) */
.transparencia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* Card de Link Individual */
.transparencia-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--transp-border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    box-shadow: var(--transp-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efeito Hover nos Cards */
.transparencia-item:hover {
    transform: translateY(-4px);
    border-color: var(--transp-primary);
    box-shadow: var(--transp-shadow-hover);
    background-color: var(--transp-hover-bg);
}

/* Container da Imagem/Banner interna do card */
.transparencia-img-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: #fafafa;
    overflow: hidden;
}

.transparencia-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.transparencia-item:hover img {
    transform: scale(1.05);
}

/* Texto descritivo opcional abaixo da imagem (Melhora SEO e Acessibilidade) */
.transparencia-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.transparencia-item:hover .transparencia-title {
    color: var(--transp-primary);
}

/* Indicador visual discreto no topo de cada card */
.transparencia-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.transparencia-item:hover::before {
    background-color: var(--transp-primary);
}

/* ==========================================================================
   SEÇÃO: COMO CHEGAR / CONTATOS (CRT-ES)
   ========================================================================== */

:root {
    --reach-primary: #03367B;
    --reach-text: #2c3e50;
    --reach-muted: #64778d;
    --reach-bg-card: #ffffff;
    --reach-border: #e2e8f0;
    --reach-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --reach-whatsapp: #25d366;
}

/* Container Principal */
.reach-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--reach-text);
    line-height: 1.6;
}

.reach-section .titleMain {
    color: var(--reach-primary);
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reach-section .divider {
    border: 0;
    height: 3px;
    background-color: var(--reach-primary);
    width: 60px;
    margin: 0 auto 40px auto;
    border-radius: 2px;
}

/* Grid de Informações */
.reach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Cards Individuais */
.reach-card {
    background: var(--reach-bg-card);
    border: 1px solid var(--reach-border);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--reach-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Ícones dos Cards */
.reach-card .icon-wrapper {
    font-size: 1.8rem;
    color: var(--reach-primary);
    margin-bottom: 15px;
    display: inline-block;
}

.reach-card h5 {
    color: var(--reach-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reach-card p {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    color: #475569;
}

.reach-card p:last-child {
    margin-bottom: 0;
}

/* Lista de Contatos Específica */
.reach-contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
}

.reach-contacts-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--reach-border);
    color: #475569;
}

.reach-contacts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reach-contacts-list a {
    color: var(--reach-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.reach-contacts-list a:hover {
    text-decoration: underline;
}

/* Links em Destaque (WhatsApp) */
.reach-contacts-list .whatsapp-link {
    color: var(--reach-whatsapp);
}
.reach-contacts-list .whatsapp-link:hover {
    color: #128c7e;
}

.reach-contacts-list .highlight-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--reach-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

/* Container do Mapa */
.reach-map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--reach-shadow);
    border: 1px solid var(--reach-border);
    line-height: 0; /* Remove espaços fantasmas abaixo do iframe */
}

.reach-map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

@media (max-width: 600px) {
    .reach-card {
        text-align: left;
    }
    .reach-card .icon-wrapper {
        margin-bottom: 10px;
    }
    .reach-contacts-list li {
        text-align: left;
    }
}

/* ==========================================================================
   MODAL FLIPBOOK 3D
   ========================================================================== */
.flipbook-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.flipbook-overlay.active {
    opacity: 1;
    visibility: visible;
}

.flipbook-modal {
    background: #f5f5f5;
    border-radius: 12px;
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    max-height: 850px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.flipbook-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 32px;
    color: #555;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
.flipbook-close:hover {
    color: #c0392b;
}

.flipbook-titulo {
    padding: 16px 24px 8px;
    margin: 0;
    font-size: 1.2rem;
    color: #1a5784;
    text-align: center;
    flex-shrink: 0;
}

.flipbook-container {
    flex: 1;
    position: relative;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    background: #e8e8e8;
}

/* Book wrapper simulating a 3D open book */
.flipbook-book {
    position: relative;
    width: 85%;
    height: 90%;
    display: flex;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Left page */
.flipbook-page-left {
    flex: 1;
    height: 100%;
    background: #fff;
    border-radius: 4px 0 0 4px;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transform-origin: right center;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}
.flipbook-page-left canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Right page */
.flipbook-page-right {
    flex: 1;
    height: 100%;
    background: #fff;
    border-radius: 0 4px 4px 0;
    box-shadow: inset 5px 0 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
}
.flipbook-page-right canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Flipping animation classes */
.flipbook-page-left.flipping {
    transform: rotateY(-90deg);
}
.flipbook-page-right.flipping {
    transform: rotateY(90deg);
}

/* Page number overlay */
.flipbook-page-num {
    position: absolute;
    bottom: 8px;
    font-size: 11px;
    color: #999;
    font-family: Arial, sans-serif;
}
.flipbook-page-num.left {
    left: 12px;
}
.flipbook-page-num.right {
    right: 12px;
}

/* Controls */
.flipbook-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}
.flipbook-btn {
    background: #1a5784;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, opacity 0.2s;
}
.flipbook-btn:hover:not(:disabled) {
    background: #153c6e;
}
.flipbook-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.flipbook-info {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

/* Loading spinner */
.flipbook-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #1a5784;
    font-weight: 600;
    display: none;
    z-index: 5;
    background: rgba(245,245,245,0.9);
    padding: 20px 40px;
    border-radius: 8px;
}
.flipbook-loading.show {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .flipbook-modal {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .flipbook-book {
        width: 95%;
        height: 85%;
    }
    .flipbook-controls {
        gap: 10px;
        padding: 12px 16px;
    }
    .flipbook-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}
