/* Estilos Gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Cabeçalho */
.header {
    background: #000; /* Cor preta para o cabeçalho */
    color: #fff;
    padding: 10px 0;
    border-bottom: #77aaff 3px solid;
    text-align: center;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas pequenas */
}

.header .logo {
    height: 80px; /* Brasão um pouco maior */
    margin-right: 15px;
    max-width: 100%; /* Garante que o logo não ultrapasse o contêiner em telas pequenas */
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    text-align: center; /* Centraliza o título em telas pequenas */
}

/* Menu de Navegação */
.navbar {
    background: #555;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permite que os itens do menu quebrem a linha */
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
    display: block; /* Garante que o link ocupe todo o espaço do li */
}

.nav-list a:hover {
    color: #77aaff;
}

/* Seção de Destaque (Hero) */
.hero-section {
    background: url('../images/fundo_familia_estrada.jpg') no-repeat center center/cover;
    height: 400px; /* Altura da imagem de fundo */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 20px; /* Adiciona padding para o texto não colar nas bordas */
    box-sizing: border-box; /* Inclui padding na altura */
}

.hero-content h2 {
    font-size: 3.5em;
    margin: 0;
}

/* Seções Gerais */
.section {
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    margin-bottom: 20px;
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
}

.section ul {
    list-style: none;
    padding: 0;
}

.section ul li {
    background: #eee;
    margin-bottom: 10px;
    padding: 10px;
    border-left: #77aaff 5px solid;
}

/* Últimas Notícias */
.section article {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section article h3 {
    color: #444;
    margin-top: 0;
}

.section article a {
    color: #77aaff;
    text-decoration: none;
    font-weight: bold;
}

/* Rodapé */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* ========================================= */
/* Media Queries para Responsividade */
/* ========================================= */

@media (max-width: 768px) {
    .container {
        width: 95%; /* Aumenta a largura do contêiner em telas menores */
        padding: 10px 0;
    }

    /* Cabeçalho */
    .header .container {
        flex-direction: column; /* Empilha o logo e o título */
    }

    .header .logo {
        margin-right: 0;
        margin-bottom: 10px; /* Espaço entre o logo e o título */
        height: 70px; /* Reduz um pouco o tamanho do brasão em mobile */
    }

    .header h1 {
        font-size: 1.8em; /* Diminui o tamanho do título */
    }

    /* Menu de Navegação */
    .nav-list {
        flex-direction: column; /* Empilha os itens do menu verticalmente */
        align-items: center; /* Centraliza os itens do menu */
    }

    .nav-list li {
        margin: 5px 0; /* Espaço entre os itens do menu */
        width: 100%; /* Ocupa a largura total */
    }

    .nav-list a {
        padding: 10px 0; /* Aumenta a área clicável */
    }

    /* Seção de Destaque (Hero) */
    .hero-section {
        height: 300px; /* Reduz a altura da seção hero */
    }

    .hero-content h2 {
        font-size: 2.5em; /* Reduz o tamanho da fonte */
    }

    /* Seções Gerais */
    .section h2 {
        font-size: 1.8em; /* Reduz o tamanho dos títulos de seção */
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }

    .hero-content h2 {
        font-size: 2em;
    }
}