html, body {
    overflow: auto;
    font-family: "Montserrat", sans-serif;
}

.container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 40px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.container > div {
    flex: 1; 
    min-width: 320px; 
    max-width: 650px; 
}
.banner-laboratorios {
    background-color: #027BDF; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px 50px 80px;
    position: relative;
    color: #FFFFFF;
    margin-bottom: 40px;
}

.banner-content {
    max-width: 55%;
    z-index: 2;
    padding-top: 20px;
}

.banner-title {
    font-family: 'Karantina', 'Impact', 'Arial Black', sans-serif; 
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.banner-title .destaque {
    color: #02185E; 
}

.banner-text {
    font-size: 27px;
    line-height: 1.3;
    font-weight: 650;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

.banner-image {
    position: relative;
    z-index: 3;
}

.banner-image img {
    max-width: 400px;
    margin-bottom: -100px; 
}

.google-maps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.google-maps iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border-radius: 8px;
}

.mapa-embed {
    max-width: 95%;
    margin: auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.section-header::after {
    content: "";
    display: block;
    width: 250px;        
    height: 6px;           
    background-color: #027BDF;
    border-radius: 3px;
    margin-top: 8px;
}

.mapa-container {
    display: flex;
    width: 100%;
    justify-content: center;
}

.mapa {
    max-width: 100%;
    height: auto;
    margin-bottom: 10%;
  }

  #modal {
    display: none; /* importante: escondido inicialmente */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 100000000;
    cursor: zoom-out;
  }
  
  #modal img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid #fff;
    box-shadow: 0 0 20px #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centraliza sem precisar de flex */
    transition: transform 0.3s ease-in-out;
  }

@media (max-width: 992px) {
    .banner-laboratorios {
        padding: 20px 40px 0 40px;
        gap: 30px;
        align-items: center;
    }

    .banner-content {
        max-width: 60%; 
        padding-top: 0;
    }

    .banner-image img {
        margin-bottom: -60px;
        max-width: 300px;
    }

    .banner-title {
        font-size: 3rem;
    }

    .banner-text {
        font-size: 1.1rem;
    }

    .container {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .banner-laboratorios {
        padding: 20px 20px 0 20px;
        gap: 15px;
    }

    .banner-image img {
        max-width: 150px; 
        margin-bottom: 0px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .google-maps iframe {
        height: 350px;
    }

    .banner-text {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
}