/* SEZIONE */

.np-media-carousel{
    padding: 50px 0;
    overflow: hidden;
}

/* HEADER */

.np-media-carousel__header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.np-media-carousel__text h2{
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 10px;
}

.np-media-carousel__text p{
    line-height: 1.6;
}

/* SLIDER */

.np-media-carousel__slider{
    display: flex;
    gap: 20px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: auto;   /* importante */
    scroll-snap-type: none;  /* importante per autoscroll continuo */

    padding-left: 80px;

    scrollbar-width: none;
    -ms-overflow-style: none;

    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.np-media-carousel__slider::-webkit-scrollbar{
    display: none;
}

.np-media-carousel__slider.is-dragging{
    cursor: grabbing;
}

/* SLIDE */

.np-media-carousel__slide{
    flex: 0 0 92%;
    min-width: 92%;
    position: relative;
}

.np-media-carousel__slide img{
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;

    pointer-events: none;
    user-select: none;

    border-radius: 6px;
}

/* NAV */

.np-media-carousel__nav{
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.np-media-carousel__nav button{
    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: 1px solid #333;
    background: #fff;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .2s ease;
}

.np-media-carousel__nav button:hover{
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* RESPONSIVE */

@media (max-width: 991px){

    .np-media-carousel{
        padding: 90px 0;
    }

    .np-media-carousel__header{
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .np-media-carousel__text h2{
        font-size: 34px;
    }

    .np-media-carousel__slider{
        padding-left: 20px;
        gap: 16px;
    }

    .np-media-carousel__slide{
        flex: 0 0 88%;
        min-width: 88%;
    }

    .np-media-carousel__slide img{
        height: 380px;
    }

}