/* ==========================================================================
   1. RESET & ESTILOS GERAIS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. BARRA SUPERIOR (TOP BAR)
   ========================================================================== */
.top-bar {
    background-color: #1a1a1a;
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact a {
    color: #ccc;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.2s;
}

.top-contact a:hover {
    color: #c8102e;
}

.top-contact i {
    margin-right: 6px;
    color: #c8102e;
}

.top-social a {
    color: #ccc;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.top-social a:hover {
    color: #c8102e;
}

/* ==========================================================================
   3. CABEÇALHO PRINCIPAL E NAV
   ========================================================================== */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logomarca em Imagem */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Menu de Navegação */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 10px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c8102e;
}

/* Submenu / Dropdown */
.dropdown {
    position: relative;
}

.dropdown > a i {
    font-size: 0.75rem;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0 !important;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

/* Botão de Destaque no Header */
.btn-contact-header {
    background-color: #c8102e;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    transition: background-color 0.2s !important;
}

.btn-contact-header:hover {
    background-color: #900b20 !important;
}

/* ==========================================================================
   4. SEÇÃO DE NOTÍCIAS (HOME)
   ========================================================================== */
main.container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #c8102e;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-category {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #c8102e;
    background-color: #fce8ea;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.35;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #c8102e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-read-more:hover {
    color: #8a0b1f;
}

.btn-read-more span {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.btn-read-more:hover span {
    transform: translateX(4px);
}

.more-news-container {
    text-align: center;
    margin-top: 40px;
}

.btn-more-news {
    display: inline-block;
    padding: 12px 30px;
    background-color: #c8102e;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-more-news:hover {
    background-color: #900b20;
}

/* ==========================================================================
   5. ALERTAS E UTILITÁRIOS
   ========================================================================== */
.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   6. RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .top-contact a {
        margin-right: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .logo-img {
        height: 40px;
    }
}

/* ==========================================================================
   7. SEÇÃO DE CONTATO / CAPTURA (PRÉ-FOOTER)
   ========================================================================== */
.newsletter-section {
    background-color: #f1f3f5;
    padding: 60px 0;
    border-top: 1px solid #e9ecef;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #c8102e;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #c8102e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #900b20;
}

/* ==========================================================================
   8. RODAPÉ PRINCIPAL (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: #111111;
    color: #a0a0a0;
    padding-top: 60px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #222222;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: #c8102e;
}

/* Links do Menu */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Contato */
.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-list i {
    color: #c8102e;
}

.footer-contact-list a {
    color: #a0a0a0;
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

/* Redes Sociais em Lista */
.footer-social-list {
    list-style: none;
}

.footer-social-list li {
    margin-bottom: 10px;
}

.footer-social-list a {
    color: #a0a0a0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.footer-social-list a:hover {
    color: #c8102e;
}

/* Copyright */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
}

/* Responsivo para Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}