/* ======================================== */
/* Reset Básico e Padrões Globais          */
/* ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ======================================== */
/* Acessibilidade                           */
/* ======================================== */
.pular-conteudo {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.pular-conteudo:focus {
    position: static;
    width: auto;
    height: auto;
    background-color: #ffbf47;
    color: #000;
    padding: 10px;
    font-weight: bold;
}
body.alto-contraste {
    background-color: #000 !important;
    color: #fff !important;
}
body.alto-contraste a {
    color: #FFFF00 !important;
}
body.alto-contraste .header-superior {
    background-color: #000;
    border-bottom: 2px solid #FFFF00;
}

/* ======================================== */
/* Redes Sociais e Widgets Flutuantes       */
/* ======================================== */
.redes-sociais-flutuantes {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}
.redes-sociais-flutuantes .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    color: #fff;
    font-size: 1.2rem;
    transition: left 0.3s ease;
}
.social-icon.instagram { background-color: #E1306C; }
.social-icon.facebook { background-color: #1877F2; }
.social-icon.youtube { background-color: #FF0000; }
.social-icon.whatsapp { background-color: #25D366; }



/* ======================================== */
/* Banner Principal (Página Inicial)        */
/* ======================================== */
.banner-principal {
    width: 85%;
    max-width: 1200px;
    height: 400px;
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}
.banner-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ======================================== */
/* Barra de Pesquisa                        */
/* ======================================== */
.barra-pesquisa {
    background-color: #003366;
    padding: 25px 0;
    position: relative;
}
.form-pesquisa {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    background-color: #fff;
    border-radius: 5px;
    padding: 5px;
}
.form-pesquisa input[type="text"] {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    outline: none;
}
.form-pesquisa button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #003366;
    cursor: pointer;
    padding: 0 15px;
}

/* ======================================== */
/* Seção de Ações Rápidas (Carrossel)       */
/* ======================================== */
.secao-acoes-rapidas {
    padding: 40px 0;
    background-color: #f8f9fa;
}
.carrossel-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carrossel-container::-webkit-scrollbar {
    display: none;
}
.carrossel-wrapper {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}
.acao-item {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid #003366;
}
.acao-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.acao-item i {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}
.acao-item span {
    font-weight: 600;
    line-height: 1.4;
}

/* ======================================== */
/* Seção de Notícias (Página Inicial)        */
/* ======================================== */
.secao-noticias {
    padding: 40px 0;
}
.container-noticias {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 25px;
    align-items: stretch;
}
.noticia-destaque { flex: 1 1 50%; display: flex; }
.noticias-grid {
    flex: 1 1 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
}
.noticia-destaque a, .noticia-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.noticia-destaque a:hover, .noticia-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.noticia-imagem-wrapper { height: 300px; flex-shrink: 0; }
.noticia-imagem-wrapper-sm { height: 150px; flex-shrink: 0; }
.noticia-imagem-wrapper img, .noticia-imagem-wrapper-sm img { width: 100%; height: 100%; object-fit: cover; }
.noticia-conteudo { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.noticia-conteudo-sm { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.noticia-conteudo p { flex-grow: 1; line-height: 1.8; }
.noticia-conteudo-sm h3 { flex-grow: 1; }
.categoria-tag { background-color: #003366; color: #fff; font-size: 0.75rem; font-weight: bold; padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.noticia-destaque h2 { font-size: 1.6rem; margin: 10px 0 20px 0; line-height: 1.2; }
.noticia-item h3 { font-size: 1.1rem; margin: 10px 0; line-height: 1.2; }
.noticia-meta { font-size: 0.75rem; color: #666; margin-top: auto; }
.secao-botao-noticias { text-align: center; padding: 20px 0 40px 0; }
.botao-ver-todas {
    background-color: #003366; color: #fff; padding: 12px 30px;
    font-size: 1rem; font-weight: bold; text-decoration: none;
    border-radius: 5px; transition: background-color 0.3s;
}
.botao-ver-todas:hover { background-color: #0056b3; }

/* ======================================== */
/* Seção de Eventos (Página Inicial)        */
/* ======================================== */
.secao-eventos {
    padding: 50px 0;
    background-color: #f8f9fa;
}
.container-eventos {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}
.secao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}
.secao-header h2 { margin: 0; font-size: 2rem; color: #333; }
.link-mais-eventos { color: #003366; font-weight: bold; text-decoration: none; }
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.evento-card {
    background-color: #fff; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; display: flex; flex-direction: column;
    text-decoration: none; color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.evento-card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.evento-card img { width: 100%; height: 200px; object-fit: cover; }
.evento-card-body { padding: 20px; flex-grow: 1; }
.evento-card-body h3 { margin: 0; font-size: 1.25rem; }
.evento-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px 20px 20px; border-top: 1px solid #f0f0f0;
    margin-top: auto; padding-top: 15px;
}
.evento-data {
    background-color: #003366; color: #fff; padding: 5px 12px;
    border-radius: 5px; font-size: 0.85rem; font-weight: bold;
}
.evento-saiba-mais { color: #003366; font-weight: bold; }

/* ======================================== */
/* Estilos de Páginas de Conteúdo e Listagem */
/* ======================================== */
/* (Esta seção contém estilos para páginas como /noticias, /eventos, etc., que podem ser criadas no futuro) */

/* ======================================== */
/* Regras de Responsividade                 */
/* ======================================== */
@media (max-width: 992px) {
    .container-noticias { flex-direction: column; }
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    /* Regras do cabeçalho que foram removidas daqui agora vivem em cabecalho.css */
}

@media (max-width: 600px) {
    .noticias-grid { grid-template-columns: 1fr; }
}
/* ======================================== */
/* Estilo do Botão "Voltar ao Topo"         */
/* ======================================== */
.btn-topo {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: #003366;
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    opacity: 0; /* Começa invisível */
    visibility: hidden; /* Começa escondido */
    transform: translateY(20px); /* Começa um pouco para baixo */
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-topo.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-topo:hover {
    background-color: #0056b3;
}