/* =====================================================
   Hero Slider para Elementor — slider.css v1.1
===================================================== */

/* ---- Container ---- */
.hse-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    background: #111;
    user-select: none;
    display: block;     /* garante block mesmo dentro do Elementor */
    box-sizing: border-box;
}

/* ---- Track: mesmo tamanho do slider, sem depender de herança ---- */
.hse-track {
    position: absolute; /* não relativo — não colapsa */
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
}

/* ---- Slide: cobre o track inteiro ---- */
.hse-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    /* transição padrão: fade */
    transition: opacity 700ms ease;
}

.hse-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* ---- Modo SLIDE ---- */
.hse-slider[data-transition="slide"] .hse-slide {
    opacity: 1;
    transform: translateX(100%);
    transition: transform 700ms cubic-bezier(0.77, 0, 0.18, 1);
}

.hse-slider[data-transition="slide"] .hse-slide.is-active {
    transform: translateX(0);
    z-index: 1;
}

.hse-slider[data-transition="slide"] .hse-slide.is-prev {
    transform: translateX(-100%);
    z-index: 0;
}

/* ---- Overlay ---- */
.hse-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* ---- Conteúdo ---- */
.hse-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 48px 6%;
    box-sizing: border-box;
}

/* ---- Badge ---- */
.hse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
}

/* ---- Título ---- */
.hse-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    max-width: 600px;
}

/* ---- Subtítulo ---- */
.hse-subtitle {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    max-width: 520px;
}

/* ---- Botão ---- */
.hse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    color: #000;
    border: none;
    transition: opacity 0.2s, transform 0.2s;
    width: fit-content;
    letter-spacing: 0.02em;
}

.hse-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* ---- Setas ---- */
.hse-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.hse-arrow:hover {
    background: rgba(0,0,0,0.55);
    transform: translateY(-50%) scale(1.08);
}

.hse-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
}

.hse-arrow-prev { left: 20px; }
.hse-arrow-next { right: 20px; }

/* ---- Bolinhas ---- */
.hse-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.hse-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* ---- Animação de entrada do conteúdo ---- */
.hse-slide.is-active .hse-badge,
.hse-slide.is-active .hse-title,
.hse-slide.is-active .hse-subtitle,
.hse-slide.is-active .hse-btn {
    animation: hse-fadeup 0.55s ease both;
}

.hse-slide.is-active .hse-badge    { animation-delay: 0.05s; }
.hse-slide.is-active .hse-title    { animation-delay: 0.12s; }
.hse-slide.is-active .hse-subtitle { animation-delay: 0.22s; }
.hse-slide.is-active .hse-btn      { animation-delay: 0.32s; }

@keyframes hse-fadeup {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
    .hse-content { padding: 32px 5%; gap: 12px; }
    .hse-arrow   { display: none; }
    .hse-title   { font-size: clamp(1.6rem, 7vw, 2.5rem); }
}
