/* BannerCarousel.css */

/* ── Container ── */
.container {
    width: 100%;
    background-color: #f4f4f6;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* ── Wrapper ── */
.bannerWrapper {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 580px;
    margin: 0 auto;
    overflow: hidden;
    background: #111;
}

/* ── Vídeo ── */
.video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Overlay de texto ── */
.textOverlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 52%;
    height: 100%;
    padding: 0 3rem 0 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

/* Gradiente branco para garantir legibilidade sobre o vídeo */
.textOverlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.88) 55%,
        rgba(255, 255, 255, 0.0) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* ── Eyebrow ── */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #BB0606;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

/* ── Título ── */
.title {
    font-size: 2.6rem;
    color: #111;
    margin: 0 0 1rem;
    line-height: 1.15;
    font-weight: 800;
    font-family: 'Roboto', Arial, sans-serif;
}

.title em {
    color: #BB0606;
    font-style: normal;
}

/* ── Subtítulo ── */
.subtitle {
    font-size: 1rem;
    color: #444;
    margin: 0 0 1.4rem;
    line-height: 1.55;
    max-width: 90%;
}

/* ── Tags / Selos ── */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.75rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(187, 6, 6, 0.07);
    color: #BB0606;
    border: 1px solid rgba(187, 6, 6, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.hero-tag i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ── CTAs ── */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    font-family: 'Roboto', Arial, sans-serif;
}

.btn-hero-primary {
    background-color: #BB0606;
    color: #fff;
    border: 2px solid #BB0606;
}

.btn-hero-primary:hover {
    background-color: #9a0505;
    border-color: #9a0505;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(187, 6, 6, 0.35);
}

.btn-hero-outline {
    background-color: transparent;
    color: #BB0606;
    border: 2px solid #BB0606;
}

.btn-hero-outline:hover {
    background-color: #BB0606;
    color: #fff;
    transform: translateY(-2px);
}

/* Alias para compatibilidade com código antigo */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.75rem;
    background-color: #BB0606;
    border: 2px solid #BB0606;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #9a0505;
    border-color: #9a0505;
    transform: translateY(-2px);
}

/* ── Mobile ── */
@media (max-width: 1024px) {
    .textOverlay {
        width: 60%;
        padding: 0 2rem 0 3rem;
    }

    .title { font-size: 2.1rem; }
}

/* ── Mobile: vídeo em proporção natural + texto sobreposto 20% no final ── */
@media (max-width: 768px) {
    .container { background: transparent; padding: 0; }   /* remove background cinza que vazava nas bordas */

    .bannerWrapper {
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: transparent;       /* SEM branco — eliminava bordas */
        overflow: visible;
        position: relative;
        margin: 0;
        padding: 0;
        max-width: none;
    }

    /* Vídeo: 100% width, altura natural — SEM letterboxes
       Sem object-fit, sem max-height, sem background. */
    .video {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    /* Texto sobe BASTANTE — cobre ~40% do vídeo para a descrição inteira
       (eyebrow + título + texto + tags + CTAs) já aparecer na primeira dobra
       da viewport mobile, sem precisar rolar. */
    .textOverlay {
        position: relative;
        z-index: 2;
        width: 100%;
        height: auto;
        margin-top: -55vw;             /* sobe bem mais — descrição inteira no topo */
        padding: 2.5rem 1.25rem 2rem;
        background: #fff;
        border-top-left-radius: 26px;
        border-top-right-radius: 26px;
        box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.12);
        gap: 0;
    }

    /* Remove o gradient — não é mais necessário pois texto está em fundo branco */
    .textOverlay::before { display: none; }

    .hero-eyebrow { font-size: 0.65rem; margin-bottom: 0.6rem; }

    .title {
        font-size: 1.55rem;
        margin-bottom: 0.7rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-tags {
        gap: 6px;
        margin-bottom: 1.1rem;
    }

    .hero-tag {
        font-size: 0.65rem;
        padding: 4px 9px;
    }

    .hero-actions { gap: 8px; }

    .btn-hero {
        padding: 0.65rem 1.25rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    /* mantém height: auto — vídeo cresce/encolhe na proporção natural */
    .title { font-size: 1.35rem; }
    .hero-tags { gap: 4px; }
    .hero-tag { padding: 3px 7px; font-size: 0.6rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-hero { width: 100%; justify-content: center; }
}
