 /* Reset básico para garantir consistência entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: white;
    background-color: #f4f4f4;
}

/* Cabeçalho */
header {
    background-color: #005a35;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}
header .logo img {
    max-width: 150px;
    height: auto;
}

/* Estilo para o menu de navegação */
.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; 
}
.navbar li {
    margin: 0 15px;
}
.navbar a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

/* Efeito de hover para os links */
.navbar a:hover {
    color: #ffcc00;
}

/* Menu responsivo */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* Estilo para a seção hero */
.hero {
    background-image: url('imagens/fundo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.cta-button {
    background-color: #ffcc00;
    color: black;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cta-button:hover {
    background-color: #e6b800;
}

/* Estilo para as seções */
.section {
    padding: 40px;
    margin: 20px 0;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.section-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.section .text {
    max-width: 50%;
    padding-right: 20px;
}
.section .image {
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #005a35;
}
.section p {
    font-size: 1.1rem;
    color: #333;
}
.section .image img {
    width: 70%; 
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-left: auto;  
    margin-right: 0;    
}
.section .text p {
    margin-bottom: 20px;
}
.cta-button {
    margin-top: 20px;
}

/* Estilo para o rodapé */
footer {
    background-color: #005a35;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
}

/* Responsividade */
/* A partir de 700px */
@media screen and (max-width: 700px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    .hero .image {
        display: none;
    }
    .section-content {
        display: block;
        text-align: center;
    }
    .section .image {
        display: none;
    }
    .section .text {
        max-width: 100%;
    }
}

/* Menu em telas menores */
@media screen and (max-width: 950px) {
    .navbar {
        display: flex;
        flex-direction: column;
        background-color: #005a35;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        text-align: center;
        z-index: 100;
        overflow: hidden;
        height: 0; 
        transition: height 0.3s ease-in-out, background-color 0.3s ease; 
    }
    .navbar ul {
        flex-direction: column;
        opacity: 0; 
        transition: opacity 0.3s ease-in-out; 
    }
    .navbar li {
        margin: 10px 0;
    }
    .menu-toggle {
        display: flex;
    }
    /* Cor mais clara quando o menu é aberto */
    .navbar.active {
        height: 300px; 
        background-color: #007b4f; 
    }
    .navbar.active ul {
        opacity: 1; 
    }
}

/* Responsividade para telas menores que 870px */
@media screen and (max-width: 870px) {
    .section .image img {
        width: 80%; 
        height: auto;
        border-radius: 8px;
        object-fit: cover;
        margin-left: auto;  
        margin-right: 0;   
    } 
}
