/* Swiper v9 */

.swiper {
    width: 100vw;
    height: 100vh;
    padding: 0 8.3333vw;
    max-height: 600px;
    overflow: hidden;
    /* preview 1/12 ai lati */
}


/* Fai sì che lo slider occupi sempre 100% del viewport */

#slider {
    position: relative;
    width: 100vw !important;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
    cursor: none;
}

.swiper-slide-next .slide-img,
.swiper-slide-prev .slide-img {
    opacity: 0.4;
    transform: scale(0.98);
}

.swiper-slide-active .slide-img {
    opacity: 1;
    transform: scale(1);
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex: 0 0 83.3333vw;
    /* slide 10/12 */
    margin: 0 1vw;
    display: flex;
}

.slide-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide-img {
    flex: 9.8;
    transition: 0.2s;
}

.slide-img:hover {
    border-radius: 16px;
}

.slide-text {
    flex: 0.2;
    display: none;
    align-items: center;
    justify-content: left;
    color: #232120;
    font-size: 1.2rem;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.swiper-slide-active .slide-text {
    display: flex;
}


/* custom cursor */

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    background: #232120;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 999;
}

#custom-cursor.visible {
    opacity: 1;
}

#custom-cursor.view:before {
    content: "VIEW";
    font-size: .9rem;
}

#custom-cursor.left:before {
    content: "◂";
    font-size: 2rem;
}

#custom-cursor.right:before {
    content: "▸";
    font-size: 2rem;
}


/* MOBILE FIX: testo sotto immagine e slider height auto */


/* MOBILE: forza aspect‐ratio e altezza */

@media (max-width: 768px) {
    .swiper {
        height: auto !important;
    }
    .slide-inner {
        flex-direction: column !important;
        height: auto !important;
    }
    .slide-img {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
    }
    .slide-text {
        display: flex !important;
        order: 2 !important;
        width: 100% !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
}