* {
    font-family: 'Oxygen';
    padding: 0;
    margin: 0;
}

body {
    background-color: black;
    color: white;
}

.hero {
    justify-content: center;
    text-align: center;
    position: relative;
    /* Adicionado para contexto do absolute no foreground */
    min-height: 100vh;
    /* Garante altura total em telas menores */
}

.hero__background,
source {
    width: 100%;
    background-position: center;
    mask-image: linear-gradient(to top, transparent 10%, black 100%);
    min-width: 0;
    /* Removido min-width fixo para responsividade */
}

.hero__foreground {
    display: block;
    position: absolute;
    bottom: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 100px;
    width: 90%;
    /* Limita largura em telas menores */
}

.hero__title {
    font-weight: 100;
    font-size: 60px;
    word-spacing: 5px;
}

.hero__text {
    margin-top: 25px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 7px;
    font-size: 16px;
}

.section {
    justify-content: center;
    text-align: center;
}

.section__title {
    margin-top: 100px;
    font-weight: 100;
    font-size: 35px;
    margin-bottom: 70px;
}

.section__img {
    width: 80%;
    height: 580px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    box-shadow: 0px 10px 40px rgba(0, 47, 85, 0.591);
    margin-bottom: 70px;
}

.section__text {
    max-width: 1030px;
    text-align: center;
    margin: 0 auto;
    padding: 0 15px;
    /* Adicionado padding lateral para telas menores */
}

.section__img-inline {
    display: flex;
    margin-left: 20%;
    width: 17%;
    object-fit: cover;
    object-position: top;
    height: 405px;
    border-radius: 80px 15px;
    box-shadow: 0px 20px 40px rgba(0, 47, 85, 0.591);
}

.section__text-inline {
    max-width: 1100px;
    padding: 20px;
    width: 46.5%;
    font-size: 20px;
    position: absolute;
    left: 40%;
    margin-top: -22%;
    line-height: 27px;
    text-align: justify;

    p {
        margin-top: 30px;
    }
}

.gallery,
.gallery__img-wrapper {
    display: flex;
    position: relative;
    border-radius: 15px;
    width: 300px;
    height: 300px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    gap: 15px;
}

.gallery__img-wrapper:nth-child(1) {
    transform: rotate(-2deg);
}

.gallery__img-wrapper:nth-child(2) {
    margin-top: 30px;
    transform: rotate(2deg);
}

.gallery__img-wrapper:nth-child(3) {
    transform: rotate(-2deg);
}

.gallery__img-wrapper:nth-child(4) {
    margin-top: 30px;
    transform: rotate(2deg);
}

.gallery__img-wrapper:nth-child(1)::before,
.gallery__img-wrapper:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 83%;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg height="100" width="100" xmlns="http://www.w3.org/2000/svg"><circle r="45" cx="50" cy="50" fill="red" /></svg>') no-repeat center center;
    background-size: 26px 26px;
    z-index: 1;
}

.gallery__img-wrapper:nth-child(2)::before,
.gallery__img-wrapper:nth-child(4)::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 10.1%;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg height="100" width="100" xmlns="http://www.w3.org/2000/svg"><circle r="45" cx="50" cy="50" fill="red" /></svg>') no-repeat center center;
    background-size: 26px 26px;
    z-index: 1;
}

.gallery,
.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

footer {
    margin-top: 8%;
    text-align: center;
    margin-bottom: 30px;
}

/* Media Query para Telas Menores (768px) */
@media (max-width: 768px) {
    .hero__title {
        font-size: 40px;
        /* Reduz tamanho da fonte */
        word-spacing: 3px;
    }

    .hero__text {
        font-size: 14px;
        letter-spacing: 5px;
    }

    .hero__foreground {
        bottom: 30%;
        /* Ajusta posição em telas menores */
        width: 90%;
    }

    .section__title {
        font-size: 28px;
        margin-top: 60px;
        margin-bottom: 40px;
    }

    .section__img {
        width: 90%;
        /* Aumenta largura relativa */
        height: 300px;
        /* Reduz altura */
        margin-bottom: 40px;
    }

    .section__text {
        max-width: 90%;
        font-size: 16px;
    }

    .section__img-inline {
        margin-left: 0;
        /* Remove margem fixa */
        width: 80%;
        /* Aumenta para ocupar mais espaço */
        height: 500px;
        object-fit: cover;
        object-position: center 50%;
        /* Reduz altura */
        border-radius: 40px 10px;
        /* Ajusta borda */
        margin: 0 auto;
        /* Centraliza */
    }

    .section__text-inline {
        position: static;
        /* Remove absolute para fluxo normal */
        width: 90%;
        /* Aumenta largura */
        font-size: 16px;
        line-height: 22px;
        padding: 15px;
        margin-top: 20px;
        /* Espaço após a imagem */
    }

    .gallery,
    .gallery__img-wrapper {
        width: 630px;
        /* Reduz tamanho da galeria */
        height: 150px;
        padding: 10px;
        gap: 10px;
    }

    .gallery__img-wrapper:nth-child(2),
    .gallery__img-wrapper:nth-child(4) {
        margin-top: 0;
        /* Remove margem extra em mobile */
    }

    .gallery__img-wrapper:nth-child(1)::before,
    .gallery__img-wrapper:nth-child(3)::before {
        top: 13px;
        left: 77%;
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }

    .gallery__img-wrapper:nth-child(2)::before,
    .gallery__img-wrapper:nth-child(4)::before {
        content: '';
        position: absolute;
        top: 0.8px;
        left: 12.5%;
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
        z-index: 1;
    }
}

/* Media Query para Telas Muito Pequenas (480px) */
@media (max-width: 480px) {
    .hero__title {
        font-size: 30px;
    }

    .hero__text {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .hero__foreground {
        bottom: 25%;
    }

    .section__title {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .section__img {
        width: 95%;
        height: 200px;
    }

    .section__text {
        font-size: 14px;
    }

    .section__img-inline {
        width: 90%;
        height: 200px;
        border-radius: 30px 8px;
    }

    .section__text-inline {
        font-size: 14px;
        line-height: 20px;
    }

    .gallery,
    .gallery__img-wrapper {
        width: 400px;
        height: 100px;
        padding: 5px;
    }

    .gallery__img-wrapper::before {
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }
}