/* RESET PADRÃO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7f9f6;
    color: #222;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* FLEXBOX HEADER */
header {
    background-color: #1b4332;
    color: #fff;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-bottom: 5px solid #d4af37;
    width: 100%;
}

header h1 {
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.2;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
    font-size: 0.95rem;
    text-align: center;
}

nav a:hover, nav a.active {
    background-color: #d4af37;
    color: #1b4332;
}

/* IMAGEM RESPONSIVA APÓS CABEÇALHO */
.imagem-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #e5e5e5;
    padding: 10px;
}

.imagem-banner img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 6px;
}

/* FLEXBOX CONTEÚDO PRINCIPAL */
main {
    flex: 1;
    padding: 30px 15px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
    border-left: 6px solid #2d6a4f;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

section h2 {
    color: #1b4332;
    font-size: 1.4rem;
}

section p {
    line-height: 1.6;
    font-size: 1rem;
}

footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 20px 15px;
    font-size: 0.85rem;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* REGRAS DE MEDIA QUERY PARA CELULARES (ABAIXO DE 600PX) */
@media (max-width: 600px) {
    header { padding: 15px 10px; }
    header h1 { font-size: 1.4rem; }
    nav { flex-direction: column; gap: 8px; }
    nav a { width: 100%; background-color: rgba(255, 255, 255, 0.08); }
    main { padding: 20px 10px; gap: 15px; }
    section { padding: 15px; border-left-width: 4px; }
}