/* ################################################# Geral ####################################################### */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;  /* Fundo preto */
    color: #fff;  /* Texto branco */
}



/* ################################################# Header ####################################################### */
header {
    background-color: #007bff;
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Alinha o menu à direita */
header nav.d-none.d-md-block {
    margin-left: auto;
}

/* Ajusta o posicionamento dos dropdowns (se necessário) */
.dropdown-menu {
    left: auto !important;
    right: 0;
}

/* Logo */
.logo img {
    height: 70px;
}

/* Menu Desktop */
.navbar-desktop {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-list {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white !important;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0069d9;
    border: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Terceiro nível no desktop */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100% !important;
    background-color: #0056b3;
    z-index: 1001;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    color: white !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Botão Login */

.login-btn {
    padding: 8px 20px;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap; /* Impede quebra de texto */
}

@media (max-width: 767px) { /* Ajuste fino para mobile */
    .login-btn {
        padding: 6px 12px !important;
        font-size: 14px !important;
        margin-left: 0 !important;
    }
    
    /* Ajuste no espaçamento entre os botões */
    .d-flex.gap-3 {
        gap: 10px !important;
    }
}

/* Menu Mobile */
.navbar-toggler {
    background: none;
    border: none;
    padding: 5px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 30px;
    height: 30px;
}

/* ################################################# Navegação Mobile App Style ####################################################### */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1e1e1e;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 1px solid #333;
}

.mobile-nav .nav-item {
    text-align: center;
}

.mobile-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #adb5bd !important;
    padding: 8px !important;
    transition: color 0.3s;
    text-decoration: none;
    font-size: 0.8rem;
}

.mobile-nav .nav-link i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav .nav-link.active {
    color: #007bff !important;
}

.mobile-nav .nav-link:hover {
    color: #fff !important;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .navbar {
        display: none; /* Esconde a navbar tradicional */
    }

    .mobile-nav {
        display: block; /* Mostra a navegação mobile */
    }

    /* Ajusta o padding do container principal para o menu fixo */
    body {
        padding-bottom: 70px;
    }

    /* Ajuste para iPhones com notch */
    @supports (padding: max(0px)) {
        body {
            padding-bottom: max(70px, env(safe-area-inset-bottom));
        }
    }
}


/* Offcanvas Mobile */
/* =============== OFFCANVAS CORRIGIDO =============== */
/* =============== OFFCANVAS CORRETO =============== */
.offcanvas {
    background-color: #007bff !important;
    width: 300px !important;
    overflow: visible !important;
}

/* Remove TODAS as bolinhas e reset completo */
.offcanvas-body ul,
.offcanvas-body li,
.offcanvas-body .navbar-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Itens principais */
.offcanvas-body .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: static !important; /* Fundamental para submenus */
}

/* Links - Todos os níveis */
.offcanvas-body .nav-link,
.offcanvas-body .dropdown-item {
    color: #fff !important;
    padding: 12px 20px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Submenus - Funcionando para 3 níveis */
.offcanvas-body .dropdown-menu {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    border-left: none !important;
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
    margin-top: -1px; /* Remove espaço entre item e submenu */
}

/* Terceiro nível visível */
.offcanvas-body .dropdown-menu .dropdown-menu {
    background-color: #004080 !important;
    left: 0 !important;
    top: 0 !important;
}

/* Estado visível */
.offcanvas-body .dropdown-menu.show {
    display: block !important;
}

/* Hover */
.offcanvas-body .nav-link:hover,
.offcanvas-body .dropdown-item:hover {
    background-color: #0069d9 !important;
}

/* Garante que os dropdowns do Bootstrap funcionem */
.dropdown-toggle::after {
    display: inline-block !important; /* Seta do Bootstrap */
}

/* Ativa o posicionamento correto */
.offcanvas-body .dropdown {
    position: relative !important;
}

/* Corrige a área clicável */
.offcanvas-body .dropdown-toggle {
    cursor: pointer;
    user-select: none;
}



/* Responsivo */
@media (max-width: 991px) {
    .navbar-desktop {
        display: none;
    }

    .login-btn {
        padding: 6px 15px !important;
        font-size: 14px !important;
        margin-left: 15px !important;
    }
}
/* ################################################# Sessão Apresentação ####################################################### */
.welcome-section {
   padding: 50px 0;
    background-color: #1a1a1a !important;  /* Cinza escuro */
}

.welcome-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #007bff;  /* Azul original */
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff !important;  /* Texto branco */
    text-align: justify;
    text-justify: inter-word; /* Melhora a distribuição das palavras */
}

.welcome-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* ################################################# Slider ####################################################### */
.slider-section {
    background-color: #000 !important;  /* Fundo preto */
    padding: 20px 0;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    min-width: 100%;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.slider-description {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7) !important;  /* Overlay mais escuro */
    width: 100%;
    padding: 10px;
    color: #fff;
    text-align: center;
}

.slider-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-navigation button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    pointer-events: auto;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
}

/* ################################################# Notícias ####################################################### */
/* ===================== NOVO ESTILO PARA NOTÍCIAS ===================== */
/* ################################################# Notícias ####################################################### */
.noticias-section {
    padding: 60px 0;
    background: #1a1a1a;
}

.section-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

.noticias-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Ajuste para o container de imagens */
.noticia-image-wrapper {
    position: relative;
    padding-top: 75%; /* Proporção 4:3 (600/800 = 0.75 ou 75%) */
    overflow: hidden;
    background: #1a1a1a; /* Cor de fundo para espaços vazios */
}

.noticia-image-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mudança de 'cover' para 'contain' */
    transition: transform 0.5s ease;
}

.noticia-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Ajuste para o card */
.noticia-card {
    background: #262626;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Ajuste este valor conforme necessário */
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Ajuste do efeito hover */
.noticia-card:hover .noticia-image-wrapper img {
    transform: translate(-50%, -50%) scale(1.05);
}

.noticia-content {
    padding: 20px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.noticia-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s ease;
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: auto;
}

.noticia-date, .noticia-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.noticia-date i, .noticia-time i {
    color: #007bff;
    font-size: 0.8rem;
}

.ver-todas-wrapper {
    text-align: center;
    margin-top: 40px;
}

.ver-todas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #007bff;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ver-todas:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .noticias-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .noticia-content h3 {
        font-size: 1.1rem;
    }

    .noticia-image-wrapper {
        padding-top: 75%; /* Mantém a proporção em telas menores */
    }
    
    .noticia-card {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .noticia-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Ajuste opcional para garantir que as imagens não fiquem muito pequenas */
@media (min-width: 992px) {
    .noticias-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Ajuste para links */
.noticia-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.noticia-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Responsividade */
@media (max-width: 768px) {
    .noticias-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .noticia-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .noticia-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ################################################# Footer ####################################################### */
.site-footer {
    background-color: #1c1c1c;
    color: #fff;
    padding: 30px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    flex: 1;
    margin: 10px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #007bff;
}

.footer-right h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-right p {
    margin: 5px 0;
}

.footer-social {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 10px 0;
}

.footer-social li a img {
    width: 30px;
    height: 30px;
}

/* ===================== BANNER DE COOKIES ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    padding: 20px;
    color: white;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    padding: 0 15px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

#accept-cookies {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

#accept-cookies:hover {
    background: #0056b3;
    border-color: #0056b3;
}

#reject-cookies {
    background: transparent;
    color: #ccc;
    border: 2px solid #666;
}

#reject-cookies:hover {
    background: rgba(255,255,255,0.1);
    border-color: #888;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 15px;
    }
}
/* --- Ajustes para Webview INIC --- */

/* 1. Esconder o menu mobile duplicado (o .mobile-nav do style.css) */
@media (max-width: 768px) { /* Aplica apenas em telas mobile */
    .mobile-nav {
        display: none !important; /* Esconde o menu .mobile-nav */
    }
    
    /* Garante que o menu correto (.bottom-nav do header) seja exibido */
    .bottom-nav {
        display: flex !important; /* Garante a exibição, caso esteja escondido por outra regra */
    }
    
    /* Ajusta o padding do body para o menu que será mantido (.bottom-nav) */
    /* Verifique a altura exata do .bottom-nav e ajuste o valor se necessário */
    body {
        padding-bottom: 60px !important; /* Ajuste conforme a altura do .bottom-nav */
    }
    
    /* Ajuste para iPhones com notch (se necessário, ajuste o valor) */
    @supports (padding: max(0px)) {
        body {
            padding-bottom: max(60px, env(safe-area-inset-bottom)) !important;
        }
    }
}

/* 2. Remover espaço em branco acima do cabeçalho principal */
header.main-header {
    margin-top: 0 !important; 
}

/* 3. Tentativa adicional de forçar a barra de idiomas a ficar fixa (caso GTranslate interfira) */
/*    Isso pode ou não resolver o problema das bandeiras flutuando. */
/*    A inspeção no ambiente real ainda é recomendada se o problema persistir. */
.language-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1035 !important; /* Garante que fique acima de outros elementos */
}

/* Garante que o body tenha o padding correto para a barra de idiomas */
body {
    padding-top: 40px !important; /* Desktop */
}
@media (max-width: 767px) {
    body {
        padding-top: 35px !important; /* Mobile */
    }
}

/* Esconder elementos do Google Translate que podem causar problemas */
body > .skiptranslate {
    display: none !important;
}
iframe.goog-te-menu-frame { 
    display: none !important; 
}
.goog-te-gadget-simple {
    border: none !important;
    background-color: transparent !important;
}

/* Ajuste fino no container do GTranslate dentro da barra */
.language-bar .container {
    padding-right: 10px; /* Pequeno ajuste de espaçamento se necessário */
}


