/* =========================================================
   URSO 912
   HERO CAROUSEL
   Referência desktop: Figma 1440 × 540
   ========================================================= */


/* =========================================================
   ESTRUTURA PRINCIPAL
   ========================================================= */

.urso912-hero {
    position: relative;

    width: 100%;
    height: 620px;

    overflow: hidden;

    background-color: #000000;

    font-family: "Montserrat", Arial, sans-serif;
}


/* =========================================================
   TRACK E SLIDES
   ========================================================= */

.urso912-hero__track {
    position: relative;

    width: 100%;
    height: 100%;
}

.urso912-hero__slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.65s ease,
        visibility 0.65s ease;

    pointer-events: none;
}

.urso912-hero__slide.is-active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    z-index: 2;
}


/* =========================================================
   MÍDIA
   ========================================================= */

.urso912-hero__media {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.urso912-hero__picture {
    display: block;

    width: 100%;
    height: 100%;
}

.urso912-hero__image,
.urso912-hero__video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.urso912-hero__video {
    position: absolute;
    inset: 0;
}


/* =========================================================
   OVERLAY
   Ajuda na leitura do conteúdo sem descaracterizar a imagem.
   ========================================================= */

.urso912-hero__overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.66) 0%,
            rgba(0, 0, 0, 0.38) 38%,
            rgba(0, 0, 0, 0.08) 68%,
            rgba(0, 0, 0, 0) 100%
        );
}


/* =========================================================
   CONTEÚDO
   Figma:
   margem lateral 80 px
   largura aproximada 540 px
   ========================================================= */

.urso912-hero__inner {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    padding: 72px 80px;

    display: flex;
    align-items: center;

    box-sizing: border-box;
}

.urso912-hero__content {
    width: 540px;
    max-width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 20px;
}


/* =========================================================
   RÓTULO
   ========================================================= */

.urso912-hero__label {
    margin: 0;

    color: #DA0000;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.urso912-hero__title {
    margin: 0;

    max-width: 540px;

    color: #FFFFFF;

    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;

    text-transform: uppercase;
}


/* =========================================================
   TEXTO
   ========================================================= */

.urso912-hero__text {
    margin: 0;

    max-width: 500px;

    color: #FFFFFF;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.urso912-hero__actions {
    display: flex;
    align-items: center;

    gap: 16px;

    flex-wrap: wrap;
}

.urso912-hero__button {
    min-height: 47px;

    padding: 14px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background-color: #FFFFFF;

    color: #000000;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    border: 0;
    border-radius: 0;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.urso912-hero__button--primary {
    color: #DA0000;
}

.urso912-hero__button:hover,
.urso912-hero__button:focus {
    background-color: #DA0000;
    color: #FFFFFF;
}


/* =========================================================
   SETAS
   ========================================================= */

.urso912-hero__arrow {
    position: absolute;
    top: 50%;

    z-index: 5;

    width: 44px;
    height: 44px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;

    background-color: rgba(0, 0, 0, 0.28);
    color: #FFFFFF;

    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.urso912-hero__arrow:hover,
.urso912-hero__arrow:focus {
    background-color: #DA0000;
    border-color: #DA0000;
}

.urso912-hero__arrow--prev {
    left: 24px;
}

.urso912-hero__arrow--next {
    right: 24px;
}


/* =========================================================
   INDICADORES
   ========================================================= */

.urso912-hero__dots {
    position: absolute;

    left: 50%;
    bottom: 22px;

    z-index: 5;

    display: flex;
    align-items: center;

    gap: 8px;

    transform: translateX(-50%);
}

.urso912-hero__dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.55);

    cursor: pointer;

    transition:
        width 0.2s ease,
        border-radius 0.2s ease,
        background-color 0.2s ease;
}

.urso912-hero__dot.is-active {
    width: 26px;

    border-radius: 20px;

    background-color: #DA0000;
}


/* =========================================================
   APENAS UM SLIDE
   ========================================================= */

.urso912-hero.has-single-slide .urso912-hero__arrow,
.urso912-hero.has-single-slide .urso912-hero__dots {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .urso912-hero {
        height: 560px;
    }

    .urso912-hero__inner {
        padding-left: 48px;
        padding-right: 48px;
    }

    .urso912-hero__content {
        width: 500px;
    }

    .urso912-hero__title {
        font-size: 42px;
    }

    .urso912-hero__arrow--prev {
        left: 12px;
    }

    .urso912-hero__arrow--next {
        right: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .urso912-hero {
        height: 620px;
        min-height: 620px;
    }

    .urso912-hero__image,
    .urso912-hero__video {
        object-position: center;
    }

    .urso912-hero__overlay {
        background:
            linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.82) 0%,
                rgba(0, 0, 0, 0.58) 45%,
                rgba(0, 0, 0, 0.20) 100%
            );
    }

    .urso912-hero__inner {
        padding: 48px 24px 68px;

        align-items: flex-end;
    }

    .urso912-hero__content {
        width: 100%;

        gap: 14px;
    }

    .urso912-hero__label {
        font-size: 12px;
    }

    .urso912-hero__title {
        max-width: 100%;

        font-size: 36px;
        line-height: 1.05;
    }

    .urso912-hero__text {
        max-width: 100%;

        font-size: 16px;
        line-height: 1.4;
    }

    .urso912-hero__actions {
        width: 100%;

        gap: 10px;
    }

    .urso912-hero__button {
        width: 100%;

        padding: 13px 18px;

        font-size: 14px;
    }

    .urso912-hero__arrow {
        width: 38px;
        height: 38px;

        font-size: 20px;
    }

    .urso912-hero__arrow--prev {
        left: 10px;
    }

    .urso912-hero__arrow--next {
        right: 10px;
    }

    .urso912-hero__dots {
        bottom: 18px;
    }

}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .urso912-hero__slide,
    .urso912-hero__button,
    .urso912-hero__arrow,
    .urso912-hero__dot {
        transition: none;
    }

}