
.box-x {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* borda arredondada geral da box */
}

.x-wrap {
    position: relative;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    height: auto; /* altura fixa para os itens ficarem alinhados */
}
.x-wrap::-webkit-scrollbar {
    display: none;
}

.x-item {
    position: relative;
    flex: 0 0 auto;
    width: 320px;
    height: 185px; /* igual à altura da x-wrap */
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
}

@media (max-width: 790px){
    .x-item{
        width: 290px !important;
        height: 170px !important;
    }

    .separador{
        display: none;
    }
}

/* Gradiente escuro de baixo para cima */
.x-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #151515, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Texto por cima da imagem */
.x-item span {
    position: absolute;
    bottom: 13px;
    left: 13px;
    width: 95%;
    color: white;
    z-index: 2;
    font-weight: bold;
    font-size: medium;
}

.x-item img {
    width: 100%;
    height: 100%; /* garante altura total do card */
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.arrow img {
    width: 35px;
    height: 35px;
    filter: invert(1);
}

.arrow.left {
    left: 5px;
    display: none;
}

.arrow.right {
    right: 5px;
}

/* Responsividade */
@media (max-width: 790px) {
    .x-item {
        width: 300px;
    }

    .arrow {
        display: none;
    }

    .x-item span {
        font-size: medium;
    }
}

.separador{
    width: 100%;
    height: 1px;
    background: #ffffff1a;
    margin-top: 25px;
}
