/* Container principale di Swiper */
.st-swiper-scroll-widget .swiper-container {
    width: 100vw;
    height: 100vh;
}

/* Prima era .swiper-slide */
.st-swiper-scroll-widget .swiper-slide {
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    background: #222;
}

/* Assicura che il contenuto all'interno delle slide sia responsive */
.st-swiper-scroll-widget  .swiper-slide > div {
    width: 100%;
    height: 100%;
}

/* Rimuove margini/padding indesiderati */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.st-swiper-scroll-widget .custom-timeline {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.st-swiper-scroll-widget .bar-container {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.st-swiper-scroll-widget .bar-line {
    width: 1px !important; /* 🔥 Linee più sottili */
    height: 10px;
    background-color: #e35205 !important;
    transition: height 0.3s ease-in-out;
}

/* Aumenta l'altezza delle linee al passaggio del mouse */
.st-swiper-scroll-widget .bar-container:hover .bar-line {
    height: 30px;
}

/* Linea attiva quando una sezione è in focus */
.st-swiper-scroll-widget .bar-line.active {
    height: 40px;
    background-color: #E35205;
}

.st-swiper-scroll-widget .bar-label {
	height: 200px;
	margin-bottom: -160px;
	width: 100px;
	text-align: center;
    color: #23201B !important;
    font-family: "Darker Grotesque", serif;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.st-swiper-scroll-widget .bar-label.active{
    color: #23201B !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Modalità Desktop (default) */
.st-swiper-scroll-widget .custom-timeline {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.st-swiper-scroll-widget .swiper-button-next::after,
.st-swiper-scroll-widget .swiper-button-prev::after {
    content: '';  
}

.st-swiper-scroll-widget .swiper-button-next,
.st-swiper-scroll-widget .swiper-button-prev {
    background: none;    
    width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: "Darker Grotesque", serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.st-swiper-scroll-widget .swiper-button-next svg path,
.st-swiper-scroll-widget .swiper-button-prev svg path {
    fill: #23201B;
    transition: fill .3s ease;
}

.st-swiper-scroll-widget .swiper-button-next:hover svg path,
.st-swiper-scroll-widget .swiper-button-prev:hover svg path {
    fill: #23201B;
}

.custom-arrow {
    display: flex;
    align-items: center;
    gap: 10px; 
}

.swiper-button-next .arrow-label {
    order: 0; 
}

.swiper-button-next svg {
    order: 1;
}

.swiper-button-prev svg {
    order: 0;
}

.swiper-button-prev .arrow-label {
    order: 1;
}

.arrow-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    pointer-events: none;
    color: #23201B;
}

/* Modalità Mobile (Verticale) */
@media (max-width: 1024px) {
	
    html, body {
        overflow-y: auto !important; /* 🔥 Scroll attivo */
        height: auto !important;
    }

    .st-swiper-scroll-widget .swiper-container {
        height: auto !important;
    }

    .st-swiper-scroll-widget .swiper-wrapper {
        flex-direction: column;
        height: auto !important;
    }

    .st-swiper-scroll-widget .swiper-slide {
        width: 100vw !important;
        height: auto !important;
        min-height: 100vh;
        touch-action: auto !important; /* 🔥 Permette il tocco su tutto lo schermo */
    }
	
    .st-swiper-scroll-widget .custom-timeline {
        left: 0px; /* Posiziona la timeline a sinistra */
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 50px;
        height: 80vh; /* Altezza dinamica */
        flex-direction: column;
        align-items: center;
    }

    .st-swiper-scroll-widget .bar-container {
        flex-direction: column;
        height: 100%;
        width: 10px;
        justify-content: space-between; /* 🔥 Distribuisce le linee in modo uniforme */
    }

    .st-swiper-scroll-widget .bar-line {
        width: 3px !important; /* 🔥 Migliora visibilità */
        height: 1px !important;
		
    }

    .st-swiper-scroll-widget .bar-label {
        position: absolute;
        left: 30px !important; 
        transform: translateY(-50%);
        font-size: 14px;
        text-align: left;
        white-space: nowrap;
		height: 0px;
		margin-top: -12px;
    }
	
	.st-swiper-scroll-widget .bar-line.active {
    height: 40px;
    background-color: #E35205;
}
}