/* SEZIONE FEATURES SLIDER - FJD Trion P2 Vision+ */

.features-slider-sezione {
    background-color: #000;
    width: 100%;
    overflow: hidden;
}

.features-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 50px;
}

/* INTESTAZIONE */
.features-slider-header {
    margin-bottom: 60px;
}

.features-slider-title {
    font-family: Inter, sans-serif;
    font-size: 47px;
    line-height: 55px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 24px;
}

.features-slider-subtitle {
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

/* AREA PRINCIPALE: immagine + slider verticale */
.features-slider-main {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

/* COLONNA IMMAGINE */
.features-slider-image-col {
    flex: 1 1 60%;
    display: flex;
    align-items: center;
    justify-content: start;
    position: relative;
}

.features-slider-image {
    max-width: 100%;
    max-height: 450px;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.4s ease;
    aspect-ratio: 16 / 9;
}

/* COLONNA SLIDER VERTICALE (desktop) */
.features-slider-nav {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.features-slider-item {
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: #666;
    padding: 24px 20px 24px 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: right;
    position: relative;
    transition: color 0.3s ease, font-weight 0.3s ease;
    white-space: nowrap;
}

.features-slider-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -2px;
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); /* traccia sempre visibile */
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.features-slider-item.active {
    color: #fff;
    font-weight: 700;
}

.features-slider-item.active::after {
    background: #fff;
}

.features-slider-item:not(.active):hover {
    color: #bbb;
}

/* DESCRIZIONE BOTTOM */
.features-slider-description {
    margin-top: 50px;
}

.features-slider-desc-text {
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    transition: opacity 0.4s ease;
}

/* ===== RESPONSIVE ===== */

/* Sotto i 1100px */
@media (max-width: 1100px) {

    .features-slider-title {
        font-size: 38px;
        line-height: 48px;
    }

    .features-slider-main {
        gap: 40px;
    }
}

/* Sotto i 899px */
@media (max-width: 899px) {


    .features-slider-title {
        font-size: 32px;
        line-height: 40px;
    }

    .features-slider-main {
        gap: 30px;
    }

    .features-slider-item {
        font-size: 14px;
        padding: 18px 16px 18px 0;
    }
}

/* Sotto i 699px: slider SOPRA l'immagine in ORIZZONTALE */
@media (max-width: 699px) {




    .features-slider-title {
        font-size: 28px;
        line-height: 36px;
    }

    .features-slider-subtitle {
        font-size: 15px;
        line-height: 24px;
    }

    .features-slider-main {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }

    /* Slider diventa orizzontale sopra l'immagine */
    .features-slider-nav {
        order: -1;
        flex-direction: row;
        gap: 0;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .features-slider-nav::-webkit-scrollbar {
        display: none;
    }

    .features-slider-item {
        text-align: center;
        padding: 12px 16px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .features-slider-item::after {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: rgba(255, 255, 255, 0.15); /* traccia sempre visibile anche in orizzontale */
    }

    .features-slider-item.active::after {
        background: #fff;
    }

    .features-slider-image-col {
        min-height: 250px;
    }

    .features-slider-image {
        max-height: 300px;
    }

    .features-slider-description {
        margin-top: 30px;
    }

    .features-slider-desc-text {
        font-size: 14px;
        line-height: 22px;
    }
}

@media (max-width: 499px) {
    .features-slider-title {
        font-size: 24px;
        line-height: 32px;
    }

    .features-slider-item {
        font-size: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 409px) {
    .features-slider-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .features-slider-container {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .features-slider-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}