/* Reset Moderno */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vermelho: #DC2626;
    --vermelho-escuro: #B91C1C;
    --vermelho-claro: #EF4444;
    --branco: #FFFFFF;
    --cinza-claro: #F8FAFC;
    --cinza: #E2E8F0;
    --cinza-escuro: #64748B;
    --preto: #1E293B;
    --sombra: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --sombra-grande: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--preto);
    background: var(--cinza-claro);
    overflow-x: hidden;
    padding-top: 70px; /* Ajuste conforme a altura do seu player */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
/* Header CORRIGIDO */
.header-jornal {
    background: var(--branco);
    box-shadow: var(--sombra);
    position: relative; /* Mude isto */
    width: 100%;
    z-index: 1000;
}

.header-top {
    background: var(--vermelho);
    color: var(--branco);
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.header-info {
    display: flex;
    gap: 20px;
}

.header-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main {
    padding: 15px 0;
    position: relative; 
}

.logo-area {
    text-align: center;
}

.logo-img {
    max-width: 750px;
    max-height: 200px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--vermelho);
    margin-bottom: 5px;
}

.slogan {
    color: var(--cinza-escuro);
    font-size: 16px;
}
/* Botão Admin */
.admin-btn {
    background: var(--branco);
    color: var(--vermelho);
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.admin-btn:hover {
    background: var(--cinza-claro);
}

/* Barra de Busca */
.header-direita {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.busca-topo {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.busca-input {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--cinza);
    border-radius: 20px;
    font-size: 0.85rem;
    width: 180px;
    background: var(--branco);
}

.btn-busca {
    background: var(--branco);
    color: var(--vermelho);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-busca:hover {
    background: var(--cinza-claro);
}

/* Carrossel */
.carrossel-destaques {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
}

.slide-destaque {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide-destaque.ativo {
    opacity: 1;
}

.slide-destaque img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-destaque {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(220, 38, 38, 0.9));
    color: var(--branco);
    padding: 30px;
}

.overlay-destaque h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.overlay-destaque p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-leia-mais {
    background: var(--branco);
    color: var(--vermelho);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-leia-mais:hover {
    background: var(--cinza-claro);
}

/* Layout Principal */
.layout-principal {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin: 30px 0;
}

/* Coluna de Notícias */
.coluna-noticias h2 {
    color: var(--vermelho);
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--vermelho);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================= */
/* LAYOUT DO INDEX.PHP - CORREÇÕES */
/* ============================================= */

/* Layout para duas notícias grandes no topo */
.layout-duas-grandes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Layout grid para 4 notícias */
.layout-grid-noticias {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Layout em lista para notícias restantes */
.layout-lista-noticias {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Notícia Card Grande (para layout-duas-grandes) */
.noticia-card.grande {
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s;
    height: 100%;
}

.noticia-card.grande:hover {
    transform: translateY(-5px);
}

.noticia-card.grande .noticia-imagem {
    height: 200px;
    overflow: hidden;
}

.noticia-card.grande .noticia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.noticia-card.grande .noticia-conteudo {
    padding: 20px;
}

.noticia-card.grande h3 {
    font-size: 18px;
    color: var(--preto);
    margin-bottom: 12px;
    line-height: 1.4;
}

.noticia-card.grande .resumo {
    color: var(--cinza-escuro);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Notícia Card Padrão (para layout-grid-noticias) */
.noticia-card {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s;
}

.noticia-card:hover {
    transform: translateY(-3px);
}

.noticia-card .noticia-imagem {
    height: 160px;
    overflow: hidden;
}

.noticia-card .noticia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.noticia-card .noticia-conteudo {
    padding: 15px;
}

.noticia-card h3 {
    font-size: 16px;
    color: var(--preto);
    margin-bottom: 10px;
    line-height: 1.3;
}

.noticia-card .resumo {
    color: var(--cinza-escuro);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

/* Notícia em Lista (para layout-lista-noticias) */
.noticia-lista {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s;
}

.noticia-lista:hover {
    transform: translateY(-2px);
}

.noticia-lista .noticia-link {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    text-decoration: none !important;
}

.noticia-lista .noticia-imagem-lista {
    height: 100px;
    overflow: hidden;
}

.noticia-lista .noticia-imagem-lista img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.noticia-lista:hover .noticia-imagem-lista img {
    transform: scale(1.05);
}

.noticia-lista .noticia-conteudo-lista {
    padding: 15px 15px 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noticia-lista h3 {
    font-size: 16px;
    color: var(--preto);
    margin-bottom: 8px;
    line-height: 1.3;
}

.noticia-lista .resumo {
    color: var(--cinza-escuro);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

/* Meta informações das notícias */
.noticia-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--branco);
}

.noticia-meta .categoria {
    background: var(--vermelho);
    color: var(--branco);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.noticia-meta .data {
    font-weight: 500;
}

.noticia-meta .visualizacoes {
    font-weight: 500;
}

/* Sem notícias */
.sem-noticias {
    text-align: center;
    padding: 40px 20px;
    background: var(--branco);
    border-radius: 10px;
    box-shadow: var(--sombra);
}

.sem-noticias h3 {
    color: var(--vermelho);
    margin-bottom: 10px;
    font-size: 20px;
}

.sem-noticias p {
    color: var(--cinza-escuro);
}

/* ============================================= */
/* REMOVER SUBLINHADO DE TODOS OS LINKS DE NOTÍCIAS */
/* ============================================= */

.noticia-link {
    text-decoration: none !important;
}

.noticia-link h3 {
    color: var(--preto);
    text-decoration: none !important;
}

.noticia-link:hover h3 {
    color: var(--vermelho);
    text-decoration: none !important;
}

/* ============================================= */
/* LAYOUT PARA 3 NOTÍCIAS GRANDES IGUAIS */
/* ============================================= */

.layout-tres-grandes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.noticia-card.grande-igual {
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.noticia-card.grande-igual:hover {
    transform: translateY(-5px);
}

.noticia-card.grande-igual .noticia-imagem {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.noticia-card.grande-igual .noticia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.noticia-card.grande-igual:hover .noticia-imagem img {
    transform: scale(1.05);
}

.noticia-card.grande-igual .noticia-conteudo {
    padding: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noticia-card.grande-igual h3 {
    font-size: 16px;
    color: var(--preto);
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* Layout Categoria Grid */
.layout-categoria-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.categoria-secundarias {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.categoria-principal .noticia-card.grande {
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s;
    height: 100%;
}

.categoria-principal .noticia-card.grande:hover {
    transform: translateY(-5px);
}

.categoria-principal .noticia-imagem {
    height: 200px;
    overflow: hidden;
}

.categoria-principal .noticia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categoria-principal .noticia-conteudo {
    padding: 20px;
}

.categoria-principal h3 {
    font-size: 20px;
    color: var(--preto);
    margin-bottom: 12px;
    line-height: 1.3;
}

.categoria-principal .resumo {
    color: var(--cinza-escuro);
    margin-bottom: 15px;
    line-height: 1.5;
}

.categoria-principal .meta-noticia {
    color: var(--cinza-escuro);
    font-size: 14px;
    display: flex;
    gap: 15px;
}

.categoria-section {
    margin: 40px 0;
}

.categoria-section h2 {
    color: var(--vermelho);
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--vermelho);
    padding-bottom: 8px;
}

/* Notícias Padrão (RESTANTE) - SEM SUBLINHADO */
.noticia-card.padrao {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sombra);
    margin-bottom: 20px;
    transition: transform 0.3s;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

.noticia-card.padrao:hover {
    transform: translateY(-3px);
}

.noticia-card.padrao .noticia-imagem {
    height: 150px;
    overflow: hidden;
}

.noticia-card.padrao .noticia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-card.padrao .noticia-conteudo {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noticia-card.padrao h3 {
    font-size: 18px;
    color: var(--preto);
    margin-bottom: 10px;
    line-height: 1.3;
}

.noticia-card.padrao .resumo {
    color: var(--cinza-escuro);
    margin-bottom: 12px;
    line-height: 1.5;
}

.noticia-card.padrao .meta-noticia {
    color: var(--cinza-escuro);
    font-size: 14px;
    display: flex;
    gap: 15px;
}

/* Sidebar MENOR (300px) */
.sidebar {
    background: var(--branco);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--sombra);
    width: 300px;
    max-width: 300px;
    min-width: 300px;
}

.sidebar h3 {
    color: var(--vermelho);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Anúncios */
.anuncio-lateral {
    background: linear-gradient(135deg, var(--vermelho), var(--vermelho-escuro));
    color: var(--branco);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: var(--sombra);
}

.anuncio-lateral h4 {
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Lista Mais Lidas */
.lista-mais-lidas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.item-mais-lida {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--cinza-claro);
    border-radius: 6px;
    transition: all 0.3s;
}

.item-mais-lida:hover {
    background: var(--cinza);
}

.item-mais-lida .numero {
    font-weight: 700;
    color: var(--vermelho);
    min-width: 20px;
}

.item-mais-lida a {
    color: var(--preto);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.item-mais-lida a:hover {
    color: var(--vermelho);
}

/* Newsletter */
.form-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0 20px 0;
}

.form-newsletter input {
    padding: 10px;
    border: 2px solid var(--cinza);
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.form-newsletter input:focus {
    outline: none;
    border-color: var(--vermelho);
}

.form-newsletter button {
    background: var(--vermelho);
    color: var(--branco);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-newsletter button:hover {
    background: var(--vermelho-escuro);
}

/* Redes Sociais */
.redes-sociais {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-social {
    background: var(--cinza-claro);
    color: var(--preto);
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--cinza);
}

.btn-social:hover {
    background: var(--cinza);
}

/* ============================================= */
/* FOOTER COM ÍCONES - ATUALIZADO */
/* ============================================= */

.footer {
    background: var(--preto);
    color: var(--branco);
    padding: 40px 0 25px;
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--vermelho-claro);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--cinza-escuro);
    color: var(--cinza-escuro);
    font-size: 14px;
}

/* Banners */
.banner-topo-section,
.banner-meio-section,
.banner-sidebarfixo-section,
.banner-sidebar-section,
.banner-rodape-section {
    margin: 20px 0;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--vermelho);
    cursor: pointer;
    padding: 10px;
}

.menu-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--vermelho);
    color: var(--branco);
    font-weight: 600;
}

.menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--branco);
    cursor: pointer;
    padding: 5px;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ============================================= */
/* CORREÇÃO DAS IMAGENS ACHATADAS NO MOBILE */
/* ============================================= */

@media (max-width: 768px) {
    /* CORREÇÃO CRÍTICA: Imagens no layout de 3 colunas */
    .layout-tres-grandes .noticia-card.grande-igual .noticia-imagem {
        height: 180px !important;
        min-height: 180px;
    }
    
    .layout-tres-grandes .noticia-card.grande-igual .noticia-imagem img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Garantir que os cards tenham altura consistente */
    .layout-tres-grandes .noticia-card.grande-igual {
        min-height: 280px;
        display: flex;
        flex-direction: column;
    }
    
    .layout-tres-grandes .noticia-conteudo {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px !important;
    }
    
    .layout-tres-grandes h3 {
        text-align: center;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {
    .layout-tres-grandes .noticia-card.grande-igual .noticia-imagem {
        height: 160px !important;
        min-height: 160px;
    }
    
    .layout-tres-grandes .noticia-card.grande-igual {
        min-height: 260px;
    }
}

/* CORREÇÃO ESPECÍFICA PARA FIREFOX MOBILE */
@-moz-document url-prefix() {
    @media (max-width: 768px) {
        .layout-tres-grandes .noticia-card.grande-igual .noticia-imagem {
            position: relative;
        }
        
        .layout-tres-grandes .noticia-card.grande-igual .noticia-imagem img {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
    }
}

/* ============================================= */
/* RESPONSIVIDADE COMPLETA */
/* ============================================= */

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .layout-principal {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .layout-tres-grandes {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .layout-duas-grandes {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .layout-grid-noticias {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .layout-categoria-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .carrossel-destaques {
        height: 400px;
    }
    
    .overlay-destaque h2 {
        font-size: 28px;
    }
    
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }
    
    .noticia-card.grande .noticia-imagem {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-info {
        gap: 15px;
    }
    
    .logo-img {
        max-width: 200px;
        max-height: 60px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-mobile-header {
        display: flex;
    }
    
    .menu-principal {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--branco);
        box-shadow: var(--sombra-grande);
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .menu-principal.active {
        left: 0;
    }
    
    .menu-principal ul {
        flex-direction: column;
        padding: 0;
    }
    
    .menu-principal a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--cinza);
    }
    
    .carrossel-destaques {
        height: 300px;
    }
    
    .overlay-destaque {
        padding: 20px;
    }
    
    .overlay-destaque h2 {
        font-size: 24px;
    }
    
    .overlay-destaque p {
        font-size: 16px;
    }
    
    .layout-tres-grandes {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .noticia-card.padrao {
        grid-template-columns: 150px 1fr;
        gap: 15px;
    }
    
    .noticia-lista .noticia-link {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }
    
    .noticia-lista .noticia-conteudo-lista {
        padding: 12px 12px 12px 0;
    }
    
    .noticia-card.grande h3,
    .noticia-card h3,
    .noticia-lista h3 {
        font-size: 15px;
    }
    
    .noticia-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-info span {
        font-size: 12px;
    }
    
    .logo-img {
        max-width: 150px;
        max-height: 50px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .slogan {
        font-size: 14px;
    }
    
    .carrossel-destaques {
        height: 250px;
    }
    
    .overlay-destaque h2 {
        font-size: 20px;
    }
    
    .layout-tres-grandes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .noticia-card.grande-igual .noticia-imagem {
        height: 140px;
    }
    
    .noticia-card.grande-igual h3 {
        font-size: 15px;
    }
    
    .noticia-card.padrao {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .noticia-card.padrao .noticia-imagem {
        height: 180px;
    }
    
    .noticia-lista .noticia-link {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .noticia-lista .noticia-imagem-lista {
        height: 150px;
    }
    
    .noticia-lista .noticia-conteudo-lista {
        padding: 15px;
    }
    
    .noticia-card.grande .noticia-conteudo,
    .noticia-card .noticia-conteudo {
        padding: 12px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .footer {
        padding: 30px 0 20px;
    }
}

/* ============================================= */
/* CORREÇÕES SUPER ESPECÍFICAS FIREFOX */
/* ============================================= */

@-moz-document url-prefix() {
    /* CORREÇÃO URGENTE: Layout principal */
    .layout-principal {
        display: grid !important;
        grid-template-columns: 1fr 300px !important;
        gap: 20px !important;
        align-items: start !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* CORREÇÃO: Coluna de notícias */
    .coluna-noticias {
        min-width: 0 !important;
        width: 100% !important;
        grid-column: 1 !important;
    }
    
    /* CORREÇÃO CRÍTICA: Sidebar */
    .sidebar {
        position: sticky !important;
        top: 20px !important;
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
        height: auto !important;
        grid-column: 2 !important;
        align-self: start !important;
        background: var(--branco) !important;
        padding: 15px !important;
        border-radius: 8px !important;
        box-shadow: var(--sombra) !important;
    }
    
    /* CORREÇÃO: Grid de 3 notícias */
    .layout-tres-grandes {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* CORREÇÃO: Cards de notícias */
    .noticia-card.grande-igual {
        min-width: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .noticia-card.grande-igual .noticia-conteudo {
        min-width: 0 !important;
        flex: 1 !important;
    }
    
    /* CORREÇÃO RESPONSIVA */
    @media (max-width: 1024px) {
        .layout-principal {
            grid-template-columns: 1fr !important;
        }
        
        .coluna-noticias,
        .sidebar {
            grid-column: 1 !important;
            width: 100% !important;
            min-width: auto !important;
            max-width: 100% !important;
        }
        
        .sidebar {
            position: static !important;
            order: 2 !important;
        }
        
        .layout-tres-grandes {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }
    
    @media (max-width: 768px) {
        .layout-tres-grandes {
            grid-template-columns: 1fr !important;
        }
    }
}

/* ============================================= */
/* CORREÇÃO ALTERNATIVA FIREFOX - MÉTODO 2 */
/* ============================================= */

@-moz-document url-prefix() {
    /* FORÇAR LAYOUT CORRETO */
    body .layout-principal {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        grid-template-rows: auto !important;
        gap: 20px !important;
        align-items: start !important;
    }
    
    body .coluna-noticias {
        grid-column: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    body .sidebar {
        grid-column: 2 !important;
        position: -moz-sticky !important;
        position: sticky !important;
        top: 20px !important;
        width: 300px !important;
        height: fit-content !important;
    }
    
    body .layout-tres-grandes {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        min-width: 0 !important;
    }
}

/* ============================================= */
/* CORREÇÕES MOBILE COMPLETAS - TODOS NAVEGADORES */
/* ============================================= */

@media (max-width: 768px) {
    /* HEADER TOP - LINHA ÚNICA COMPACTA */
    .header-top {
        padding: 4px 0 !important;
        min-height: auto !important;
    }
    
    .header-top .container {
        padding: 0 10px !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        height: 25px !important;
    }
    
    /* ESCONDER ELEMENTOS DESNECESSÁRIOS NO MOBILE */
    .busca-topo,
    .admin-btn,
    .header-info span:nth-child(2) /* Cidade */ {
        display: none !important;
    }
    
    /* INFO EM LINHA ÚNICA */
    .header-info {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header-info span {
        font-size: 11px !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    
    /* REDUZIR LOGO NO MOBILE */
    .logo-img {
        max-width: 200px !important;
        max-height: 60px !important;
    }
    
    .logo {
        font-size: 20px !important;
    }
    
    .slogan {
        font-size: 12px !important;
    }
    
    .header-main {
        padding: 10px 0 !important;
    }
    
    /* MENU MOBILE */
    .menu-principal {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--branco);
        box-shadow: var(--sombra-grande);
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .menu-principal.active {
        left: 0;
    }
    
    .menu-principal ul {
        flex-direction: column;
        padding: 0;
    }
    
    .menu-principal a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--cinza);
    }
    
    .menu-toggle {
        display: block;
        background: var(--vermelho);
        color: var(--branco);
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        margin: 10px auto;
    }
    
    /* CARROSSEL MOBILE */
    .carrossel-destaques {
        height: 300px;
    }
    
    .overlay-destaque {
        padding: 20px;
    }
    
    .overlay-destaque h2 {
        font-size: 20px;
    }
    
    .overlay-destaque p {
        font-size: 14px;
    }
    
    .btn-leia-mais {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* NOTÍCIAS MOBILE */
    .layout-principal {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .layout-tres-grandes {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .layout-duas-grandes {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        order: 2;
    }
    
    .noticia-card.grande-igual {
        min-height: auto !important;
    }
    
    .noticia-card.grande-igual .noticia-imagem {
        height: 150px !important;
    }
    
    /* FOOTER MOBILE */
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ============================================= */
/* MOBILE PEQUENO - ATÉ 480px */
/* ============================================= */

@media (max-width: 480px) {
    .header-top .container {
        gap: 10px !important;
        height: 22px !important;
    }
    
    .header-info {
        gap: 10px !important;
    }
    
    .header-info span {
        font-size: 10px !important;
    }
    
    .logo-img {
        max-width: 150px !important;
        max-height: 40px !important;
    }
    
    .logo {
        font-size: 18px !important;
    }
    
    .header-main {
        padding: 8px 0 !important;
    }
    
    .carrossel-destaques {
        height: 250px;
    }
    
    .overlay-destaque h2 {
        font-size: 18px;
    }
    
    .noticia-card.grande-igual .noticia-imagem {
        height: 120px !important;
    }
    
    .footer-links {
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ============================================= */
/* MOBILE MUITO PEQUENO - ATÉ 360px */
/* ============================================= */

@media (max-width: 360px) {
    .header-top .container {
        gap: 8px !important;
        height: 20px !important;
    }
    
    .header-info {
        gap: 8px !important;
    }
    
    .header-info span {
        font-size: 9px !important;
    }
    
    .logo-img {
        max-width: 130px !important;
        max-height: 35px !important;
    }
    
    .carrossel-destaques {
        height: 220px;
    }
    
    .overlay-destaque {
        padding: 15px;
    }
    
    .overlay-destaque h2 {
        font-size: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================= */
/* CORREÇÕES ESPECÍFICAS FIREFOX MOBILE */
/* ============================================= */

@-moz-document url-prefix() {
    @media (max-width: 768px) {
        .header-top {
            padding: 3px 0 !important;
        }
        
        .header-top .container {
            height: 24px !important;
            padding: 0 8px !important;
        }
        
        .header-info span {
            font-size: 10px !important;
        }
        
        .carrossel-destaques {
            height: 280px !important;
        }
        
        .layout-tres-grandes {
            gap: 12px !important;
        }
        
        .noticia-card.grande-igual .noticia-imagem {
            height: 140px !important;
        }
    }
    
    @media (max-width: 480px) {
        .header-top .container {
            height: 20px !important;
        }
        
        .header-info span {
            font-size: 9px !important;
        }
        
        .carrossel-destaques {
            height: 230px !important;
        }
        
        .noticia-card.grande-igual .noticia-imagem {
            height: 110px !important;
        }
    }
    
    @media (max-width: 360px) {
        .header-top .container {
            height: 18px !important;
        }
        
        .header-info span {
            font-size: 8px !important;
        }
        
        .carrossel-destaques {
            height: 200px !important;
        }
    }
}

/* ============================================= */
/* CORREÇÕES GERAIS PARA TODOS NAVEGADORES */
/* ============================================= */

/* Garantir que todos os links da sidebar não tenham sublinhado */
.sidebar a,
.item-mais-lida a,
.redes-sociais a,
.btn-social {
    text-decoration: none !important;
}

.sidebar a:hover,
.item-mais-lida a:hover,
.redes-sociais a:hover,
.btn-social:hover {
    text-decoration: none !important;
    color: var(--vermelho) !important;
}

/* Garantir que os blocos de categoria apareçam */
.categoria-section {
    width: 100%;
    margin-bottom: 30px;
}

.categoria-section h2 {
    color: var(--vermelho);
    margin-bottom: 20px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================= */
/* CORREÇÕES URGENTES FIREFOX MOBILE - LAYOUT QUEBRADO */
/* ============================================= */

@-moz-document url-prefix() {
    @media (max-width: 768px) {
        /* CORREÇÃO CRÍTICA: Layout principal no mobile Firefox */
        .layout-principal {
            display: flex !important;
            flex-direction: column !important;
            gap: 20px !important;
            width: 100% !important;
        }
        
        /* CORREÇÃO: Coluna de notícias */
        .coluna-noticias {
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            order: 1 !important;
        }
        
        /* CORREÇÃO URGENTE: Sidebar no mobile Firefox */
        .sidebar {
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
            position: static !important;
            order: 2 !important;
            margin-top: 0 !important;
            margin-bottom: 20px !important;
            display: block !important;
            height: auto !important;
            max-height: none !important;
            /* Garantir que seja visível */
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        /* CORREÇÃO: Grid de notícias */
        .layout-tres-grandes {
            display: flex !important;
            flex-direction: column !important;
            gap: 15px !important;
            width: 100% !important;
        }
        
        /* CORREÇÃO: Cards de notícias */
        .noticia-card.grande-igual {
            width: 100% !important;
            min-width: 100% !important;
            margin-bottom: 0 !important;
        }
        
        /* CORREÇÃO: Container principal */
        .container {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 15px !important;
            overflow-x: hidden !important;
        }
        
        /* CORREÇÃO: Garantir que não haja overflow horizontal */
        body {
            overflow-x: hidden !important;
            width: 100% !important;
        }
        
        /* CORREÇÃO: Seções de categoria */
        .categoria-section {
            width: 100% !important;
            min-width: 100% !important;
            margin-bottom: 25px !important;
        }
    }
    
    @media (max-width: 480px) {
        .layout-principal {
            gap: 15px !important;
        }
        
        .sidebar {
            margin-bottom: 15px !important;
            padding: 12px !important;
        }
        
        .layout-tres-grandes {
            gap: 12px !important;
        }
        
        .container {
            padding: 0 10px !important;
        }
    }
    
    @media (max-width: 360px) {
        .layout-principal {
            gap: 12px !important;
        }
        
        .sidebar {
            padding: 10px !important;
            margin-bottom: 12px !important;
        }
        
        .layout-tres-grandes {
            gap: 10px !important;
        }
        
        .container {
            padding: 0 8px !important;
        }
    }
}

/* ============================================= */
/* CORREÇÃO ALTERNATIVA - MÉTODO AGGRESSIVO FIREFOX MOBILE */
/* ============================================= */

@-moz-document url-prefix() {
    @media (max-width: 768px) {
        /* RESET COMPLETO DO LAYOUT NO FIREFOX MOBILE */
        body .layout-principal {
            display: block !important;
            width: 100% !important;
        }
        
        body .coluna-noticias {
            display: block !important;
            width: 100% !important;
            float: none !important;
        }
        
        body .sidebar {
            display: block !important;
            width: 100% !important;
            float: none !important;
            clear: both !important;
            margin: 20px 0 !important;
            position: relative !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
        }
        
        /* GARANTIR que as notícias fiquem em coluna única */
        body .layout-tres-grandes {
            display: block !important;
            width: 100% !important;
        }
        
        body .noticia-card.grande-igual {
            display: block !important;
            width: 100% !important;
            margin-bottom: 15px !important;
            float: none !important;
        }
        
        /* CORREÇÃO DE CONTAINER */
        body .container {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 15px !important;
            box-sizing: border-box !important;
        }
    }
}

/* ============================================= */
/* CORREÇÃO FINAL - GARANTIR LAYOUT MOBILE CORRETO */
/* ============================================= */

@media (max-width: 768px) {
    /* FORÇAR LAYOUT CORRETO EM TODOS NAVEGADORES MOBILE */
    .layout-principal {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .coluna-noticias {
        order: 1 !important;
        width: 100% !important;
    }
    
    .sidebar {
        order: 2 !important;
        width: 100% !important;
        position: static !important;
        margin: 20px 0 !important;
    }
    
    .layout-tres-grandes {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .noticia-card.grande-igual {
        width: 100% !important;
    }
}

/* CORREÇÃO ESPECÍFICA FIREFOX PARA GARANTIR */
@-moz-document url-prefix() {
    @media (max-width: 768px) {
        .layout-principal,
        .coluna-noticias,
        .sidebar,
        .layout-tres-grandes,
        .noticia-card.grande-igual {
            display: block !important;
            float: none !important;
            width: 100% !important;
        }
        
        .noticia-card.grande-igual {
            margin-bottom: 15px !important;
        }
    }
}

/* ============================================= */
/* ESTILOS DA ENQUETE */
/* ============================================= */

.enquete-section {
    margin-bottom: 25px;
}

.enquete-box {
    background: var(--branco);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--sombra);
    border-left: 4px solid var(--vermelho);
}

.enquete-box h4 {
    color: var(--preto);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.enquete-opcao {
    margin-bottom: 10px;
    padding: 8px;
    background: var(--cinza-claro);
    border-radius: 5px;
    transition: background 0.3s;
}

.enquete-opcao:hover {
    background: var(--cinza);
}

.enquete-opcao label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.enquete-opcao input[type="radio"] {
    margin: 0;
}

.btn-enquete {
    background: var(--vermelho);
    color: var(--branco);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
}

.btn-enquete:hover {
    background: var(--vermelho-escuro);
}

.enquete-resultados {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--cinza);
}

.enquete-resultados h5 {
    color: var(--preto);
    margin-bottom: 10px;
    font-size: 14px;
}

.resultado-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.opcao-texto {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.barra-container {
    flex: 2;
    background: var(--cinza);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.barra-votos {
    background: var(--vermelho);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.percentual {
    font-weight: 600;
    color: var(--vermelho);
    min-width: 40px;
    text-align: right;
}

.total-votos {
    text-align: center;
    font-size: 12px;
    color: var(--cinza-escuro);
    margin-top: 10px;
    font-style: italic;
}

/* ============================================= */
/* ESTILOS COMPLETOS DO MENU - CORREÇÃO DEFINITIVA */
/* ============================================= */

/* Container do Menu */
.menu-container {
    background: var(--branco);
    border-bottom: 2px solid var(--vermelho);
    position: relative;
    width: 100%;
}

/* Menu Principal */
.menu-principal {
    width: 100%;
}

.menu-principal ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.menu-principal li {
    margin: 0;
    position: relative;
}

.menu-principal > ul > li > a {
    padding: 1rem 1.2rem;
    display: block;
    text-decoration: none;
    color: var(--preto);
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.menu-principal > ul > li > a:hover {
    background: var(--cinza-claro);
    color: var(--vermelho);
    border-bottom-color: var(--vermelho);
}

/* ===== DROPDOWN - DESKTOP ===== */
@media (min-width: 769px) {
    .dropdown {
        position: relative;
    }
    
    /* CORREÇÃO DEFINITIVA CHROME: Link totalmente não-clicável */
    .dropdown > a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: default;
        pointer-events: none !important;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    /* CORREÇÃO EXTRA: Overlay invisível para capturar clique */
    .dropdown::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 5;
        cursor: pointer;
        background: transparent;
    }
    
    /* CORREÇÃO: Container do dropdown é clicável */
    .dropdown {
        cursor: pointer;
    }
    
    /* Seta do dropdown */
    .dropdown-arrow {
        font-size: 0.8em;
        transition: transform 0.3s;
        pointer-events: none;
    }
    
    /* Menu dropdown */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 200px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        list-style: none;
        margin: 0;
        padding: 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    /* Dropdown visível com clique */
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Dropdown visível com hover (adicional) */
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Animação da seta */
    .dropdown.active .dropdown-arrow,
    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Itens do dropdown */
    .dropdown-menu li {
        margin: 0;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1.2rem;
        display: block;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.2s;
        pointer-events: auto;
        cursor: pointer;
    }
    
    .dropdown-menu a:hover {
        background: #f8f9fa;
        color: var(--vermelho);
    }
    
    .dropdown-menu li:last-child a {
        border-bottom: none;
    }
    
    /* Feedback visual para hover no dropdown */
    .dropdown:hover > a {
        background: var(--cinza-claro);
        color: var(--vermelho);
        border-bottom-color: var(--vermelho);
    }
}

/* ===== MOBILE - CORREÇÃO COMPLETA ===== */
@media (max-width: 768px) {
    .menu-container {
        position: relative;
    }
    
    /* Botão toggle mobile */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        background: var(--vermelho);
        color: white;
        border: none;
        font-size: 1.5rem;
        padding: 0.5rem 0.8rem;
        border-radius: 5px;
        z-index: 1002;
        cursor: pointer;
    }
    
    /* Menu principal mobile */
    .menu-principal {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .menu-principal.active {
        left: 0;
    }
    
    .menu-principal ul {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }
    
    /* CORREÇÃO: MAIS ESPAÇAMENTO ENTRE CATEGORIAS NO MOBILE */
    .menu-principal > ul > li > a {
        padding: 1.3rem 1.8rem !important;
        border-bottom: 1px solid #f0f0f0;
        pointer-events: auto;
        cursor: pointer;
        font-size: 16px;
        min-height: 60px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        text-decoration: none !important;
    }
    
    /* CORREÇÃO: REMOVER SUBLINHADO MOBILE */
    .menu-principal a,
    .menu-principal a:hover,
    .menu-principal a:focus,
    .menu-principal a:active,
    .dropdown-menu a,
    .dropdown-menu a:hover,
    .dropdown-menu a:focus,
    .dropdown-menu a:active,
    .menu-principal > ul > li > a,
    .menu-principal > ul > li > a:hover,
    .menu-principal > ul > li > a:focus {
        text-decoration: none !important;
    }
    
    /* CORREÇÃO: MAIS ESPAÇAMENTO ENTRE SUBCATEGORIAS NO MOBILE */
    .dropdown-menu {
        display: block !important;
        position: static !important;
        box-shadow: none !important;
        background: var(--cinza-claro) !important;
        border: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        min-width: auto !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
    }
    
    .dropdown-menu li {
        margin: 0 !important;
    }
    
    .dropdown-menu a {
        padding: 1.1rem 3rem !important;
        border-bottom: 1px solid var(--cinza) !important;
        color: var(--preto) !important;
        font-size: 15px !important;
        background: var(--cinza-claro) !important;
        min-height: 55px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        text-decoration: none !important;
    }
    
    .dropdown-menu a:hover {
        background: var(--cinza) !important;
        color: var(--vermelho) !important;
        text-decoration: none !important;
    }
    
    /* Separador visual entre subcategorias */
    .dropdown-menu li:not(:last-child) a {
        border-bottom: 1px solid var(--cinza) !important;
    }
    
    /* Seta no mobile */
    .dropdown-arrow {
        display: inline-block !important;
        margin-left: auto;
        transition: transform 0.3s;
        font-size: 1.1em;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Destaque para categoria ativa no mobile */
    .dropdown.active > a {
        background: var(--vermelho) !important;
        color: var(--branco) !important;
        font-weight: 600;
    }
    
    .dropdown.active > a .dropdown-arrow {
        color: var(--branco);
    }
    
    /* CORREÇÃO MOBILE: Link clicável no mobile */
    .dropdown > a {
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Header mobile */
    .menu-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.3rem 1.8rem;
        border-bottom: 2px solid var(--vermelho);
        background: var(--branco);
        font-weight: 700;
        font-size: 18px;
    }
    
    .menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s;
    }
    
    .menu-close:hover {
        background: var(--cinza-claro);
    }
}

/* ===== MOBILE PEQUENO (até 480px) ===== */
@media (max-width: 480px) {
    .menu-principal {
        width: 100% !important;
        left: -100%;
    }
    
    .menu-principal.active {
        left: 0;
    }
    
    .menu-principal > ul > li > a {
        padding: 1.2rem 1.5rem !important;
        min-height: 55px;
        font-size: 15px;
    }
    
    .dropdown-menu a {
        padding: 1rem 2.5rem !important;
        min-height: 50px;
        font-size: 14px;
    }
    
    .menu-mobile-header {
        padding: 1.2rem 1.5rem;
        font-size: 17px;
    }
    
    .menu-toggle {
        top: 12px;
        right: 12px;
        padding: 0.4rem 0.7rem;
        font-size: 1.3rem;
    }
}

/* ===== MOBILE MUITO PEQUENO (até 360px) ===== */
@media (max-width: 360px) {
    .menu-principal > ul > li > a {
        padding: 1.1rem 1.3rem !important;
        min-height: 50px;
        font-size: 14px;
    }
    
    .dropdown-menu a {
        padding: 0.9rem 2.2rem !important;
        min-height: 45px;
        font-size: 13.5px;
    }
    
    .menu-mobile-header {
        padding: 1.1rem 1.3rem;
        font-size: 16px;
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    .menu-overlay {
        display: none !important;
    }
    
    .menu-mobile-header {
        display: none !important;
    }
    
    /* CORREÇÃO: Remover overlay do desktop */
    .dropdown::before {
        display: none;
    }
}

/* ===== ESTADOS ATIVOS ===== */
.menu-principal > ul > li > a:active,
.menu-principal > ul > li > a:focus {
    outline: none;
    background: var(--cinza-claro);
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    .menu-principal,
    .dropdown-menu,
    .dropdown-arrow,
    .menu-principal > ul > li > a,
    .dropdown-menu a {
        transition: none;
    }
}

/* ===== ANIMAÇÕES SUAVES ===== */
.menu-principal,
.dropdown-menu,
.dropdown-arrow,
.menu-principal > ul > li > a,
.dropdown-menu a {
    transition: all 0.3s ease;
}

/* ===== MELHORIAS VISUAIS ===== */
.menu-principal > ul > li > a {
    position: relative;
    overflow: hidden;
}

.menu-principal > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--vermelho);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-principal > ul > li > a:hover::after,
.menu-principal > ul > li > a:focus::after {
    width: 80%;
}

/* ===== CORREÇÃO FIREFOX MOBILE ===== */
@-moz-document url-prefix() {
    @media (max-width: 768px) {
        .menu-principal > ul > li > a {
            padding: 1.4rem 1.8rem !important;
        }
        
        .dropdown-menu a {
            padding: 1.2rem 3rem !important;
        }
    }
    
    @media (min-width: 769px) {
        /* CORREÇÃO FIREFOX DESKTOP */
        .dropdown > a {
            pointer-events: none !important;
        }
    }
}

/* ===== CORREÇÃO CHROME DESKTOP ESPECÍFICA ===== */
@media (min-width: 769px) {
    /* Forçar Chrome a respeitar pointer-events */
    .dropdown > a {
        -webkit-user-drag: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Backup: se ainda não funcionar, usar esta correção mais agressiva */
    .dropdown > a[href] {
        pointer-events: none !important;
    }
}

