/* Hero Banner — mobile first */

.hero-banner {
    position: relative;
    width: 100%;
    background-color: #fff;
    overflow: hidden;
}

.hero-banner--empty {
    padding: 24px;
    text-align: center;
    color: #151515;
    font-family: 'proxima-nova', sans-serif;
}

.hero-banner__frame {
    position: relative;
    width: 100%;
}

.hero-banner__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.hero-banner__fill {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
}

.hero-banner__picture,
.hero-banner__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-banner__picture {
    display: block;
}

.hero-banner__video {
    object-fit: cover;
    object-position: center center;
}

.hero-banner__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Padrão mantém o corte centralizado (comportamento anterior). Ajustável
       por imagem via o atributo "Posição vertical" do bloco (inline style) —
       escolher "Topo" evita cobrir rostos que ficam na parte de cima da foto. */
    object-position: center center;
}

.hero-banner--video-fallback .hero-banner__video {
    display: none;
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    display: none;
}

.hero-banner__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    color: #151515;
}

.hero-banner__title {
    margin: 0 0 16px;
    max-width: 640px;
    width: 100%;
    color: #151515;
    line-height: 1.22;
    text-transform: none;
    letter-spacing: normal;
}

.hero-banner__title-main {
    font-family: 'proxima-nova', sans-serif;
    font-weight: 400;
    font-size: 30px;
}

.hero-banner__title-accent {
    font-family: 'LibreBaskerville-Regular', serif;
    font-style: italic;
    font-size: 30px;
}

.hero-banner__description {
    margin: 0 0 24px;
    max-width: 640px;
    width: 100%;
    font-family: 'proxima-nova', sans-serif;
    font-size: 18px;
    line-height: 1.36;
}

.hero-banner__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    background-color: #151515;
    border: 1px solid #151515;
    color: #fff;
    font-family: 'proxima-nova', sans-serif;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    padding: 15px 48px;
}

.hero-banner__cta-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.hero-banner__cta-icon--custom {
    object-fit: contain;
}

.hero-banner__cta:link,
.hero-banner__cta:visited {
    color: #fff;
    text-decoration: none;
}

.hero-banner__cta:hover,
.hero-banner__cta:focus,
.hero-banner__cta:active {
    background-color: transparent;
    border-color: #151515;
    color: #151515;
    text-decoration: none;
}

@media (min-width: 768px) {
    /* Hero height always follows the image's own ratio, capped at 1440x785 */
    .hero-banner__frame {
        position: relative;
        width: 100%;
        aspect-ratio: 1440 / 785;
        max-height: 785px;
        overflow: hidden;
    }

    .hero-banner__media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .hero-banner__overlay {
        display: block;
    }

    /* With a color set: image caps at 1440px and centers, fill shows on the sides.
       Without one: image stays full width and grows normally. */
    .hero-banner--has-fill .hero-banner__fill {
        display: block;
    }

    .hero-banner--has-fill .hero-banner__picture,
    .hero-banner--has-fill .hero-banner__video {
        max-width: 1440px;
        margin: 0 auto;
    }

    .hero-banner__content {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        justify-content: center;
        padding: 40px 48px;
        color: #fff;
    }

    .hero-banner__title {
        flex: 0 0 auto;
        max-width: 720px;
        color: #fff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    .hero-banner__title-main {
        font-size: 48px;
    }

    .hero-banner__title-accent {
        font-size: 56px;
    }

    .hero-banner__description {
        flex: 0 0 auto;
        max-width: 640px;
        font-size: 22px;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    .hero-banner__cta {
        display: inline-flex;
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
        height: 62px;
        min-height: 62px;
        padding: 0 48px;
        background-color: #fff;
        border-color: #fff;
        color: #151515;
    }

    .hero-banner__cta:link,
    .hero-banner__cta:visited {
        color: #151515;
        text-decoration: none;
    }

    .hero-banner__cta:hover,
    .hero-banner__cta:focus,
    .hero-banner__cta:active {
        background-color: #151515;
        border-color: #151515;
        color: #fff;
        text-decoration: none;
    }
}

@media (min-width: 1024px) {
    .hero-banner__content {
        padding: 64px 80px;
    }

    .hero-banner__title-main {
        font-size: 64px;
    }

    .hero-banner__title-accent {
        font-size: 74px;
    }

    .hero-banner__description {
        font-size: 28px;
    }
}
