/*
|--------------------------------------------------------------------------
| F05.2.5 — Posicionamento definitivo da imagem do Hero
|--------------------------------------------------------------------------
|
| A imagem deve preencher integralmente o card arredondado à direita.
| O <picture> recebe dimensões reais e o <img> é posicionado sobre toda
| a área útil do componente, independentemente das regras antigas.
|
*/

.premium-hero__media {
    position: relative;
    min-width: 0;
}

.premium-hero__photo {
    position: absolute !important;
    inset: 18px 10px 38px 56px !important;
    display: block;
    min-width: 0;
    min-height: 0 !important;
    overflow: hidden;
    aspect-ratio: auto !important;
    border-radius: 34px;
    background:
        radial-gradient(
            circle at 25% 15%,
            rgba(0, 191, 166, 0.13),
            transparent 35%
        ),
        linear-gradient(180deg, #edf7fb, #9caabd);
    box-shadow: 0 34px 90px rgba(7, 35, 67, 0.22);
}

.premium-hero__photo > picture {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.premium-hero__photo > picture > source {
    display: none;
}

.premium-hero__photo > picture > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center 28% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    image-rendering: auto;
}

.premium-hero__photo::before {
    z-index: 0 !important;
}

.premium-hero__photo::after {
    z-index: 2 !important;
    pointer-events: none;
}

.premium-hero__photo-caption {
    z-index: 3 !important;
}

.human-proof {
    z-index: 5 !important;
}

/*
|--------------------------------------------------------------------------
| Notebook e tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) {
    .premium-hero__photo {
        inset: 20px 0 35px 25px !important;
    }
}

@media (max-width: 920px) {
    .premium-hero__media {
        width: min(100%, 690px);
        min-height: 540px;
        margin-inline: auto;
    }

    .premium-hero__photo {
        inset: 35px 6% 25px !important;
    }

    .premium-hero__photo > picture > img {
        object-position: center 24% !important;
    }
}

/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {
    .premium-hero__media {
        min-height: 470px;
    }

    .premium-hero__photo {
        inset: 35px 0 18px !important;
        border-radius: 25px;
    }

    .premium-hero__photo > picture > img {
        object-position: center 20% !important;
    }
}

@media (max-width: 420px) {
    .premium-hero__media {
        min-height: 420px;
    }

    .premium-hero__photo {
        inset: 42px 0 10px !important;
    }
}
