:root {
    --vermelho: #6d1217;
    --preto: #0e192d;
    --branco: #ffffff;
    --destaque: #d9232d;
    --transparencia: rgba(0, 0, 0, 0.85);
    --cinza-claro: #f4f4f4;
    --sombra: rgba(0, 0, 0, 0.1);
    --sombra-forte: rgba(0, 0, 0, 0.15);
    --dourado: #ffd392;
    --cinza-suave: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* BARRA DE SCROLL PERSONALIZADA */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--vermelho);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--destaque);
}

body {
    background-color: var(--cinza-claro);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: transparent;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    color: var(--branco);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Estilo da Lista do Menu */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a,
.nav-links button {
    color: var(--branco);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links button:hover {
    color: var(--destaque);
}

.dropdown-arrow {
    font-size: 0.8em;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--branco);
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
    list-style: none;
    z-index: 1000;
}

.dropdown-content li a {
    color: #333;
    padding: 12px 20px;
    display: block;
    text-transform: none;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown-content li a:hover {
    background-color: #f8f8f8;
    color: var(--vermelho);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--branco);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.btn-donate {
    background: var(--vermelho);
    color: var(--branco);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-donate:hover {
    background: var(--destaque);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 35, 45, 0.3);
}

.hero {
    background: url('https://admret.neocities.org/imagens/lendoabiblia.jpg') center/cover;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--branco);
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(14, 25, 45, 0.85), 
        rgba(14, 25, 45, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 20px;
}

.cross-icon { 
    font-size: 45px; 
    margin-bottom: 20px; 
    color: var(--dourado);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.subtitle {
    color: var(--destaque);
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--vermelho);
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    border: 2px solid var(--vermelho);
}

.btn-primary:hover {
    background: var(--branco);
    color: var(--vermelho);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    border: 2px solid var(--branco);
    color: white;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    background: transparent;
}

.btn-secondary:hover {
    background: var(--destaque);
    border-color: var(--destaque);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* TÍTULOS DAS SEÇÕES */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--vermelho);
    margin-bottom: 50px;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--dourado);
    margin: 15px auto;
    border-radius: 2px;
}

/* SEÇÃO "QUEM SOMOS" - CARROSSEL COM SETAS NAS LATERAIS */
.quem-somos {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.carrossel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.carrossel-artigos {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    margin: 40px 0;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--vermelho) #f1f1f1;
    scroll-behavior: smooth;
}

.carrossel-artigos::-webkit-scrollbar {
    height: 8px;
}

.carrossel-artigos::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.carrossel-artigos::-webkit-scrollbar-thumb {
    background: var(--vermelho);
    border-radius: 10px;
}

.cartao-artigo {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    background: var(--branco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.cartao-artigo:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.imagem-artigo {
    height: 200px;
    overflow: hidden;
}

.imagem-artigo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cartao-artigo:hover .imagem-artigo img {
    transform: scale(1.05);
}

.conteudo-artigo {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conteudo-artigo h3 {
    color: var(--preto);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.descricao-artigo {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.btn-saiba-mais {
    display: inline-block;
    background: var(--vermelho);
    color: var(--branco);
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--vermelho);
    margin: 0 auto;
}

.btn-saiba-mais:hover {
    background: transparent;
    color: var(--vermelho);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(109, 18, 23, 0.2);
}

/* SETAS DO CARROSSEL NAS LATERAIS */
.carrossel-anterior,
.carrossel-proximo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--vermelho);
    background: var(--branco);
    color: var(--vermelho);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carrossel-anterior {
    left: 0;
}

.carrossel-proximo {
    right: 0;
}

.carrossel-anterior:hover,
.carrossel-proximo:hover {
    background: var(--vermelho);
    color: var(--branco);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(109, 18, 23, 0.3);
}

.carrossel-anterior:disabled,
.carrossel-proximo:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* SEÇÃO "CAUSAS APOIADAS" */
.causas-apoiadas {
    padding: 80px 0;
    background: linear-gradient(to bottom, #0e192d, #0a1221); /* O azul escuro do Hero */
    color: var(--branco);
}

/* Ajuste do título da seção para fundo escuro */
.causas-apoiadas .section-title {
    color: var(--branco);
}

.grid-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.logo-causa {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

/* Removendo o container branco e fundo das imagens */
.logo-item {
    background: transparent; /* Remove o fundo cinza/branco */
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.05); /* Borda quase invisível */
    transition: all 0.3s ease;
    box-shadow: none; /* Remove a sombra antiga */
}

/* Efeito ao passar o mouse: Borda dourada ou vermelha */
.logo-causa:hover .logo-item {
    border-color: var(--dourado);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Estilo das imagens (Logos) sem o container quadrado */
.logo-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 0px;
    padding: 0;
    background: transparent; /* Garante que não haja fundo na foto */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); /* Dá profundidade ao logo */
}

/* Cores dos textos nas Causas */
.logo-item h3 {
    color: var(--dourado); /* Título em Dourado para destacar no escuro */
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.descricao-causa {
    color: rgba(255, 255, 255, 0.8); /* Branco levemente transparente para leitura */
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Destaque em vermelho em partes específicas (opcional) */
.logo-causa:hover .descricao-causa {
    color: var(--branco);
}

/* SEÇÃO "LOCALIZAÇÃO E CALENDÁRIO" REORGANIZADA */
.localizacao-evento {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.layout-duas-colunas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: stretch; /* Garante que as colunas se alinhem pelo topo */
}

/* AJUSTE DOS TÍTULOS PARA CENTRALIZAR NAS COLUNAS */
.coluna-mapa .section-title, 
.coluna-calendario .section-title {
    margin-top: 0; /* Remove espaço que causava o degrau */
    margin-bottom: 25px;
    text-align: center; /* Centraliza o texto */
    font-size: 2rem;
}

.coluna-mapa .section-title::after,
.coluna-calendario .section-title::after {
    margin: 15px auto; /* Centraliza a barrinha dourada abaixo do título */
}

/* COLUNA MAPA COM TIMER ABAIXO */
.coluna-mapa {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mapa-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--sombra-forte);
    background: var(--branco);
    height: 350px;
    margin-top: -30px;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* COLUNA CALENDÁRIO - ALINHAMENTO COM MAPA */

/* COLUNA CALENDÁRIO */
.coluna-calendario {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: stretch;
    margin-top: 0 !important;   
    padding-top: 0 !important;  
}

.tabela-agenda-container {
    background: var(--branco);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;  
    min-height: 440px;
    display: flex;
    flex-direction: column;
}

.tabela-agenda {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px; /* Adiciona um pequeno espaço entre as linhas para o efeito arredondado */
    background: var(--branco);
    flex-grow: 1;
}

/* FUNDO VERMELHO E ARREDONDADO PARA OS HORÁRIOS (TH) */
.tabela-agenda th {
    background-color: var(--vermelho);
    color: #ffffff; /* Letras Brancas */
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

/* Arredonda as pontas do cabeçalho */
.tabela-agenda th:first-child { border-radius: 10px 0 0 10px; }
.tabela-agenda th:last-child { border-radius: 0 10px 10px 0; }

/* FUNDO VERMELHO PARA OS DIAS DA SEMANA */
.tabela-agenda .dia-semana {
    background-color: var(--vermelho);
    color: #ffffff !important; /* Letras Brancas */
    font-weight: 600;
    text-align: left;
    padding-left: 20px;
    border-radius: 10px 0 0 10px; /* Arredonda o lado esquerdo do dia */
}

.tabela-agenda td {
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    color: var(--preto);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* REMOÇÃO DO AMARELADO E ESTILO PARA EVENTOS */
.tabela-agenda td:not(.dia-semana):not(:empty) {
    background-color: #f8f9fa; /* Cinza bem claro, sem amarelado */
    border-radius: 0; 
    color: var(--preto);
    font-weight: 600;
}

/* Garante arredondamento no final da linha para células com evento */
.tabela-agenda td:last-child {
    border-radius: 0 10px 10px 0;
}

/* AJUSTE DO DIA ATUAL PARA BRANCO (já que o fundo é vermelho) */
.tabela-agenda .dia-atual .dia-semana {
    background-color: #a3161b; /* Um tom de vermelho levemente diferente para o dia atual */
    color: #ffffff !important;
}

.tabela-agenda .dia-atual .dia-semana::after {
    content: '•';
    color: #ffffff; /* Pontinho branco para combinar */
    margin-left: 8px;
}

/* OBSERVAÇÕES SEM AMARELADO */
.observacoes-content {
    padding: 20px 0 0 0;
    text-align: left;
}

.observacoes-content h4 {
    color: var(--preto);
    font-size: 1rem;
    font-weight: 700;
}

.observacoes-lista li {
    padding: 6px 0 6px 20px;
    color: #444; /* Cinza escuro para melhor leitura */
    font-size: 0.85rem;
}

.observacoes-lista li::before {
    color: var(--vermelho); /* Mantém apenas a bolinha em vermelho */
}
/* TIMER - ESTILO MINIMALISTA */

.timer-container {
    background: var(--branco);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.timer-container h3 {
    color: var(--preto);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    margin-top: 30px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.timer-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--vermelho);
    line-height: 1;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 70px;
    text-align: center;
}

.timer-label {
    font-size: 0.75rem;
    color: var(--preto);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-separator {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--preto);
    margin-bottom: 20px;
    margin-top: 10px;
}

.evento-info {
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.evento-info p {
    color: var(--preto);
    font-size: 0.95rem;
    line-height: 1.4;
}

.evento-info strong {
    color: var(--vermelho);
}

/* FOOTER */
footer {
    background: var(--vermelho);
    color: var(--branco);
    padding: 3rem 0 1rem;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--dourado);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--dourado);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a {
    color: var(--branco);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--dourado);
    padding-left: 5px;
}

.footer-section i {
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--branco);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--branco);
    color: var(--vermelho);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--branco);
    opacity: 0.8;
    font-size: 0.9rem;
}

.copyright p:first-child {
    margin-bottom: 10px;
}

/* BOTÃO VOLTAR AO TOPO */
#backToTop, 
.accessibility-toggle, 
.lang-switcher {
    position: fixed;
    right: 30px; /* Alinhados à direita */
    background: var(--vermelho);
    color: var(--branco);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex; /* Flex para centralizar ícones/texto */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none; /* Remove sublinhado do link ENG */
}

/* POSICIONAMENTO VERTICAL (EMPILHAMENTO) */

/* Botão de Voltar ao Topo (Base) */
#backToTop {
    bottom: 30px;
    display: none; /* Mantém o JS controlando a visibilidade */
}

/* Seletor de Idioma (Meio) */
.lang-switcher {
    bottom: 90px; /* 30px base + 50px do botão + 10px de gap */
}

.lang-text {
    font-size: 12px;
    font-weight: bold;
}

/* Botão de Acessibilidade (Topo) */
.accessibility-toggle {
    bottom: 150px; /* 90px + 50px do botão + 10px de gap */
}

/* EFEITOS DE HOVER PARA TODOS */
#backToTop:hover, 
.accessibility-toggle:hover, 
.lang-switcher:hover {
    background: var(--destaque);
    color: var(--branco); /* Garante que o texto ENG continue branco */
    transform: translateY(-5px);
}

/* ANIMAÇÕES */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quem-somos,
.causas-apoiadas,
.localizacao-evento {
    animation: slideIn 0.6s ease-out;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ACESSIBILIDADE */
.calendar-day:focus,
.btn-saiba-mais:focus,
.logo-causa:focus,
.carrossel-anterior:focus,
.carrossel-proximo:focus {
    outline: 3px solid var(--destaque);
    outline-offset: 2px;
}

/* RESPONSIVIDADE CORRIGIDA */

/* Ajuste global preventivo */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .description { font-size: 1.1rem; }
    
    .cartao-artigo {
        flex: 0 0 calc(50% - 20px);
        min-width: 280px;
    }
    
    .timer-value {
        font-size: 1.8rem;
        width: 60px;
    }
    
    .tabela-agenda-container {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    /* MENU MOBILE */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--preto);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        z-index: 1000;
        width: 100%;
    }
    
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    
    .nav-right {
        margin-left: auto;
        margin-right: 15px;
    }
    
    /* HERO */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero h1 { font-size: 2.2rem; }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* CARROSSEL */
    .carrossel-wrapper {
        padding: 0 20px;
    }
    
    .carrossel-artigos {
        gap: 15px;
        padding-bottom: 20px;
    }
    
    .cartao-artigo {
        flex: 0 0 85%;
        min-width: 260px;
    }
    
    /* LAYOUT DUAS COLUNAS */
    .layout-duas-colunas {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mapa-container {
        height: 250px;
        margin-top: 0;
    }
    
    /* TABELA DE AGENDA */
    .tabela-agenda-container {
        padding: 15px;
        overflow-x: auto;
    }
    
    .tabela-agenda {
        min-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .description { font-size: 0.95rem; }
    .section-title { font-size: 1.8rem; }
    
    .grid-logos {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .logo-item img {
        width: 150px;
        height: 150px;
    }
    
    .timer-display {
        gap: 8px;
        justify-content: center;
    }
    
    .timer-value {
        font-size: 1.2rem;
        width: 45px;
        padding: 8px 4px;
    }
    
    .timer-unit { min-width: 45px; }

    #backToTop, .accessibility-toggle, .lang-switcher {
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* AJUSTE PARA ELIMINAR O CORTE LATERAL */

@media (max-width: 768px) {
    /* 1. Remove margens negativas que "puxam" o mapa para fora */
    .mapa-container {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        height: 250px;
    }

    /* 2. Garante que as colunas ocupem a largura total sem transbordar */
    .layout-duas-colunas {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
        padding: 0; /* Remove paddings que podem somar na largura */
    }

    /* 3. Ajuste do Timer para não quebrar a linha nem vazar */
    .timer-display {
        display: flex;
        justify-content: center;
        gap: 5px; /* Reduz espaço entre os números */
        flex-wrap: nowrap; /* Impede que os círculos pulem linha */
    }

    .timer-unit {
        min-width: 60px; /* Tamanho fixo menor para caber em telas 320px */
    }

    .timer-value {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 4. Ajuste da Tabela (O item que mais corta) */
    .tabela-agenda-container {
        width: 100%;
        padding: 10px;
        overflow-x: auto; /* Permite deslizar a tabela se ela for maior que a tela */
        -webkit-overflow-scrolling: touch;
    }

    .tabela-agenda {
        min-width: 450px; /* Mantém a estrutura da tabela legível ao rolar */
    }

    /* 5. Trava de segurança no container principal */
    .container {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 auto !important;
        overflow: hidden; /* Corta o que sobrar para não criar scroll lateral */
    }
}

/* Ajuste extra para telas muito pequenas (iPhone SE, etc) */
@media (max-width: 380px) {
    .timer-value {
        width: 45px;
        font-size: 1rem;
    }
    .timer-unit {
        min-width: 50px;
    }
}