.section-5 {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: start;
}

.section-5>.text-section {
    width: 100vw;
    height: 55vh;
    background-image: url('../public/background-gree-and-white.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    /* Espaço extra para evitar sobreposição ao aumentar zoom */
    padding-bottom: clamp(24px, 6vh, 96px);
}

.section-5>.text-section>.text-container {
    margin-top: 10vh;
}

.section-5>.text-section>.text-container>h1 {
    font-weight: 400;
    font-size: 30px;
    margin-bottom: 2rem;
}

.section-5>.text-section>.text-container>p {
    max-width: 40vw;
    letter-spacing: 1px;
    line-height: 1.6;
}

@media (min-width: 769px) and (max-width: 1000px) {
    .section-5>.text-section>.text-container>p { font-size: 0.95rem; margin-bottom: 5rem; }
}

/* reduzir um pouco o tamanho da fonte do parágrafo para abrir espaço */
@media (min-width: 993px) and (max-width: 1400px) {
    .section-5>.text-section>.text-container>p { font-size: 0.95rem; margin-bottom: 4rem; }
}

.image-container {
    display: flex;
    flex-direction: row;
    margin-top: 1.5rem;
    gap: 2rem;
}

.image-container>.flex-column>img {
    min-width: 25vw !important;
    min-height: 25vh !important;
    max-width: 25vw !important;
    max-height: 25vh !important;
}

.image-container>.flex-column>p {
    font-size: 14px;
    max-width: 20vw;
}

.star {
    position: absolute;
    margin-top: -4rem;
    left: 52%;
    width: 150px;
    /* ajuste conforme o tamanho desejado */
    z-index: -1;
}

.map {
    display: block;
    width: 20vw;
    height: auto;
}

.section-container-whats-uvs-section {
    display: flex;
    max-width: 50vw;
    margin-top: 10vh;
    gap: 10vw;
     min-height: 50vh;
     height: auto;
}

.text>p {
    font-size: 20px;
    max-width: 22vw;
    margin: 0;
    padding: 0;
    /* letter-spacing: 0.5px; */
}

.download-button-green {
    background-color: #8CB838;
    width: 40vw !important;
}

/* medium desktops/tablets landscape */
@media (max-width: 1280px) {
    .section-5>.text-section { height: auto; }
    .section-5>.text-section>.text-container>p { max-width: 70vw; }
    .image-container { margin-top: 1rem; }
    .image-container>.flex-column>img { min-width: 40vw !important; max-width: 40vw !important; height: auto !important; }
    .image-container>.flex-column>p { max-width: 40vw; }
    .section-container-whats-uvs-section { max-width: 80vw; height: auto; gap: 6vw; }
    .map { width: 35vw; }
    .text>p { max-width: 35vw; }
    .download-button-green { width: 60vw !important; }
}

/* tablets portrait and small laptops */
@media (max-width: 992px) {
    .image-container { margin-top: 0; flex-wrap: wrap; gap: 16px; }
}

/* small laptops 993px–1199px: evitar sobreposição do texto com as imagens */
@media (min-width: 993px) and (max-width: 1199px) {
    .section-5>.text-section { height: auto; padding: 40px 0 12px; }
    .section-5>.text-section>.text-container { margin-top: 0; }
    .section-5>.text-section>.text-container>p { max-width: 75vw; }
    .image-container { margin-top: 12px; }
}

/* medium desktops 1200px–1600px: manter respiro entre texto e imagens */
@media (min-width: 1200px) and (max-width: 1600px) {
    .section-5>.text-section { height: auto; padding: 40px 0 12px; }
    .image-container { margin-top: 12px; }
}

/* wide screens with limited height (like 1700x858) */
@media (max-width: 1700px) and (max-height: 900px) {
    .section-5>.text-section { height: auto; }
    .image-container { margin-top: 1rem; }
}

@media (max-width: 1500px) and (max-height: 900px) {
    .image-container { margin-top: 1rem; }
}

@media (max-width: 768px) {
    .section-5>.text-section { height: auto; padding: 40px 0; }
    .section-5>.text-section>.text-container { margin-top: 6vh; padding: 0 16px; }
    .section-5>.text-section>.text-container>h1 { font-size: 24px; }
    .section-5>.text-section>.text-container>p { max-width: 90vw; }

    .image-container { flex-direction: column; margin-top: 0; gap: 12px; }
    .image-container>.flex-column>img { min-width: 90vw !important; max-width: 90vw !important; height: auto !important; }
    .image-container>.flex-column>p { max-width: 90vw; }

    .section-container-whats-uvs-section { max-width: 90vw; height: auto; flex-direction: column; gap: 24px; }
    .map { width: 90vw; }
    .text>p { max-width: 90vw; font-size: 16px; }
    .download-button-green { width: 90vw !important; }
}