/* ==========================================================================
   RESET & CONFIGURAÇÕES BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER & MENU (Gradiente Azul e links brancos Flexbox)
   ========================================================================== */
.main-header {
    background: linear-gradient(90deg, #001f4d 0%, #003380 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.logo-container {
    padding: 25px 20px;
    text-align: center;
}

.logo-container a {
    display: inline-block;
}

.site-logo {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-nav {
    background-color: #0040a8;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

.main-nav li a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.main-nav li a:hover {
    background-color: #002b70;
}

/* Botão Menu Hambúrguer (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 30px;
    width: 30px;
    height: 20px;
}

.hamburger {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: relative;
    transition: 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #fff;
    left: 0;
    transition: 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ==========================================================================
   DESTAQUES DO TOPO (Scroll Horizontal e Avatares Circulares)
   ========================================================================== */
.destaques-topo-wrapper {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.destaques-topo {
    display: flex;
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.destaques-topo::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.destaque-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: grab;
}

.destaque-item:active {
    cursor: grabbing;
}

.avatar-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0040a8;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Evita arrastar a imagem e atrapalhar o scroll js */
    backface-visibility: hidden;
    transform: translateZ(0);
}

.destaque-item:hover .avatar-circle {
    border-color: #ffcc00; /* Remove a escala (zoom) para eliminar qualquer chance de tremor, usando apenas uma cor visual. */
}

/* ==========================================================================
   GRID PRINCIPAL (3 COLUNAS)
   ========================================================================== */
.main-content {
    display: grid;
    grid-template-columns: 2.2fr 1.5fr 1fr;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 40px;
}

/* COLUNA ESQUERDA (Manchete + Secundárias) */
.coluna-esquerda {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.manchete-principal a {
    display: block;
    transition: opacity 0.2s;
}

.manchete-principal a:hover {
    opacity: 0.9;
}

.manchete-principal h2 {
    font-size: 2.4rem;
    line-height: 1.05;
    color: #b30000;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.manchete-principal p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

.manchete-principal img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.noticias-secundarias {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.noticia-secundaria a {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    transition: box-shadow 0.2s;
}

.noticia-secundaria a:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.noticia-secundaria img {
    width: 140px;
    height: 95px;
    object-fit: cover;
    border-radius: 4px;
}

.secundaria-content h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    color: #111;
}

/* COLUNA CENTRAL (Destaque Vertical Retrato) */
.coluna-central {
    display: flex;
}

.destaque-vertical {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 500px; /* Garante tamanho mesmo sem muito texto */
}

.destaque-vertical a {
    display: block;
    width: 100%;
    height: 100%;
}

.destaque-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.destaque-vertical a:hover img {
    transform: scale(1.03);
}

.vertical-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 40px 20px 20px 20px;
}

.vertical-content h3 {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* COLUNA DIREITA (Sidebar / Banners) */
.coluna-direita {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eaeaea;
}

.aovivo-header {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #e60000;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.dot-red {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #e60000;
    border-radius: 50%;
    margin-right: 10px;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(0.8); }
}

.aovivo-video img, .publicidade img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.ads-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* ==========================================================================
   MEDIA QUERIES (Responsividade)
   ========================================================================== */

/* Tablet (Grid 3 colunas quebra para 2) */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
    .coluna-direita {
        grid-column: span 2;
        flex-direction: row;
    }
    .widget {
        flex: 1;
    }
}

/* Mobile (Quebra flex e Menu Hambúrguer) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
    }
    
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li a {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 20px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }
    
    .coluna-direita {
        grid-column: span 1;
        flex-direction: column;
    }

    .noticia-secundaria a {
        flex-direction: row;
    }
    
    .destaque-vertical {
        min-height: 400px; /* Reduz altura no mobile */
    }
    
    .manchete-principal h2 {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col h3, .footer-bottom p, .footer-col.about p, .footer-col ul, .social-links {
        text-align: center;
        align-items: center;
    }
    .footer-logo {
        margin: 0 auto 15px auto;
        display: block;
    }
}

/* ==========================================================================
   FOOTER COMPLETO COM FUNDO CINZA
   ========================================================================== */
.site-footer {
    background-color: #333333;
    color: #e0e0e0;
    padding: 60px 0 0 0;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #0040a8;
}

.footer-col.about p {
    line-height: 1.6;
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffcc00;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-icon {
    color: #bbb;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ffcc00;
}

.footer-bottom {
    background-color: #1a1a1a;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
