@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
.galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto; /* Margem superior ajustada */
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center; /* Adiciona text-align: center */
}
.galeria h1 {
    width: 100%; /* Garante que o título ocupe a largura total da galeria */
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.6em;
    font-weight: bold;
    color: #6e8646;
    line-height: 1.3em;
    font-family: Poppins;
    
}

.galeria .imagem {
    flex: 1 1 calc(25% - 20px);
    max-width: 300px;
}

.galeria .imagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.galeria .imagem img:hover {
    transform: scale(1.05);
}

/* Media Queries combinadas e com unidades relativas */
@media (min-width: 1025px){  /* Para telas maiores que 1024px */
    .galeria {
        justify-content: space-evenly;
    }
    #newsllater .form {
        width: 100%; /* O formulário ocupa toda a largura em telas menores */
        margin: 30px;
    }
}
@media (max-width: 1024px) {
    .galeria .imagem {
        flex: 1 1 calc(50% - 10px); /* Imagens ocupam 50% em telas menores */
    }
    .galeria h1 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    #newsllater {
        flex-wrap: wrap;
        height: auto;
        padding: 20px;
        gap: 15px;
    }
    #newsllater .form {
        width: 100%; /* O formulário ocupa toda a largura em telas menores */
        margin-top: 20px;
    }

}

@media (max-width: 480px) {
    .galeria .imagem {
        flex: 1 1 100%; /* Imagens ocupam 100% em telas muito pequenas */
    }
    .galeria h1 {
        font-size: 1.7em;
        margin-bottom: 20px;
    }
    #newsllater {
        flex-direction: column;
        text-align: center;
    }
}

#newsllater {
    width: 100%;
    height: 150px;
    background-color: #f1d1a0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    box-sizing: border-box;
    gap: 20px;
}

#newsllater h4,
#newsllater p {
    margin: 0;
}

#newsllater .form {
    display: flex;
    width: 40%;
}

#newsllater button {
    background-color: #7a3a06;
    color: #fff;
    border-radius: 5px;
    width: 100px;
    border: none;
    cursor: pointer;
}

#newsllater button:hover {
    background-color: #a5500a;
}

#newsllater input {
    height: 3.125rem;
    padding: 0 1.25em;
    font-size: 14px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

/* ===================================
   NEWSLETTER - Novo Estilo
   =================================== */
#newsletter {
    width: 100%;
    min-height: 150px;
    background-color: #f1d1a0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px;
    box-sizing: border-box;
    gap: 20px;
}

#newsletter h4,
#newsletter p {
    margin: 0;
}

#newttext h4 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

#newttext p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

#newttext span {
    color: #7a3a06;
    font-weight: 600;
}

#newsletter .form {
    display: flex;
    width: 40%;
    max-width: 500px;
    align-items: stretch;
}

#newsletter input {
    height: 3.125rem;
    padding: 0 1.25em;
    font-size: 14px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    outline: none;
    flex: 1;
}

#newsletter button {
    background-color: #7a3a06 !important;
    color: #fff !important;
    border-radius: 0 5px 5px 0 !important;
    min-width: 120px !important;
    height: 3.125rem !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 0 20px !important;
    transition: background-color 0.3s ease;
    white-space: nowrap !important;
}

#newsletter button:hover {
    background-color: #a5500a !important;
}

/* Ajuste específico para mobile: formulário abaixo do texto e ocupando toda a largura */
@media (max-width: 480px) {
    #newsllater {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        height: auto;
    }

    #newsllater .form {
        width: 100%;
        margin-top: 10px;
    }

    #newsletter {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    #newsletter .form {
        width: 100%;
    }

    #newttext h4 {
        font-size: 18px;
    }

    #newttext p {
        font-size: 14px;
    }
}