/* SLIDER NEWS */
.page-content {
overflow-x: hidden;

}

.id-news-carosello {
    margin-bottom: 80px !important;
}


.id-news-carosello .elementor-swiper-button svg {
    border: 1px solid #005f85;
    border-radius: 50%;
    position: absolute;
    bottom: -60px;
    transform: translateX(-50%);
    height: 50px !important;
    width: 50px !important;
    transition: .2s ease;
}

.id-news-carosello .elementor-swiper-button:hover .st0 {
fill: white !important;
}


.id-news-carosello .elementor-swiper-button:hover svg .cls-1 {
    fill: white;
}

.id-news-carosello .elementor-swiper-button:hover svg {
    background-color: #005f85;
	color: white;
}

.id-news-carosello .elementor-swiper-button-next {
    right: calc(50% - 30px) !important;
    bottom: 0;
    transform: translateX(-50%) !important;
}

.id-news-carosello .elementor-swiper-button-next svg {
    padding: 14px 3px 14px 9px;
}

.id-news-carosello .elementor-swiper-button-prev {
    left: calc(50% - 30px) !important;
    bottom: 0;
    transform: translateX(-50%) !important;
}

.id-news-carosello .elementor-swiper-button-prev svg {
    padding: 14px 9px 14px 3px;
}

.id-news-carosello-little .elementor-swiper-button-prev {
    left: calc(50% - 30px) !important;
}

.id-news-carosello-little .elementor-swiper-button-next {
    right: calc(50% - 30px) !important;
}

/* TIMELINE */

#id-timeline-lonati {
    padding: 2%;
}

#id-timeline-lonati .timeline-container {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

#id-timeline-lonati .timeline {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#id-timeline-lonati .timeline-track {
    display: flex;
    position: relative;
    padding: 20px 0;
    --year-width: 150px;
    width: fit-content;
}

@media screen and (min-width: 768px) {
    #id-timeline-lonati .timeline-track {
        --year-width: 190px;
    }
}

@media screen and (min-width: 1024px) {
    #id-timeline-lonati .timeline-track {
        --year-width: 220px;
    }
}

/* The horizontal line, now correctly positioned */
#id-timeline-lonati .timeline-track::before {
    content: '';
    position: absolute;
    /* KEY FIX #1: The new, calculated value for perfect vertical alignment */
    top: 96px;
    height: 2px;
    background-color: #005f85;
    z-index: 1;
    left: calc(var(--year-width) / 2);
    width: calc(100% - var(--year-width));
}

@media screen and (min-width: 768px) {
    #id-timeline-lonati .timeline-track::before {
        top: 107px;
    }
}

@media screen and (min-width: 1024px) {
    #id-timeline-lonati .timeline-track::before {
        top: 115px;
    }
}

#id-timeline-lonati .timeline-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: var(--year-width);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

#id-timeline-lonati .timeline-year span:first-child {
    font-size: 3.8em;
    font-family: "Dosis", Sans-serif;
    font-weight: 500;
    color: #b0b8c3;
    transition: all 0.4s ease;
    /* KEY FIX #2: Make the text height predictable for accurate calculation */
    line-height: 1;
}

@media screen and (min-width: 768px) {
    #id-timeline-lonati .timeline-year span:first-child {
        font-size: 4.5em;
    }
}

@media screen and (min-width: 1024px) {
    #id-timeline-lonati .timeline-year span:first-child {
        font-size: 5em;
    }
}

#id-timeline-lonati .timeline-year span.dot {
    display: block;
    width: 12px;
    height: 12px;
    background-color: #005f85;
    border-radius: 50%;
    margin-top: 10px;
    transition: all 0.4s ease;
}

/* --- Active State Styling --- */
#id-timeline-lonati .timeline-year.active span:first-child {
    color: #000;
}

#id-timeline-lonati .timeline-year.active span.dot {
    background-color: #005f85;
    transform: scale(1.5);
}

/* --- Content & Navigation --- */
#id-timeline-lonati .timeline-content {
    margin-top: 28px;
    color: #333;
    min-height: 80px;
    line-height: 1.6;
    font-size: 1rem;
    font-family: "Dosis", Sans-serif;
    font-weight: 400;

    p {
        margin-bottom: 0;
    }
}

#id-timeline-lonati .timeline-nav {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#id-timeline-lonati #timeline-prev,
#id-timeline-lonati #timeline-next {
    background-size: 31%;
    background-repeat: no-repeat;
    border: 1px solid #005f85;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
}

#id-timeline-lonati #timeline-prev {
    background-image: url(../assets/img/arrow-left.svg);
    background-position: 40% center;
}

#id-timeline-lonati #timeline-next {
    background-image: url(../assets/img/arrow-right.svg);
    background-position: 60% center;
}

#id-timeline-lonati #timeline-prev:hover,
#id-timeline-lonati #timeline-next:hover,
#id-timeline-lonati #timeline-prev:focus,
#id-timeline-lonati #timeline-next:focus {
    background-color: #005f85;
}

#id-timeline-lonati #timeline-prev:hover,
#id-timeline-lonati #timeline-prev:focus {
    background-image: url(../assets/img/arrow-left-white.svg);
}

#id-timeline-lonati #timeline-next:hover,
#id-timeline-lonati #timeline-next:focus {
    background-image: url(../assets/img/arrow-right-white.svg);
}

#id-timeline-lonati #timeline-prev:disabled,
#id-timeline-lonati #timeline-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e9ecef;
    border-color: #ccc;
    color: #6c757d;
}

#id-timeline-lonati #timeline-prev:disabled:hover {
    background-image: url(../assets/img/arrow-left.svg);
}

#id-timeline-lonati #timeline-next:disabled:hover {
    background-image: url(../assets/img/arrow-right.svg);
}

@media screen and (min-width: 768px) {
    #id-timeline-lonati .timeline-content {
        max-width: 80%;
        margin-left: 20px;
    }
    
    #id-timeline-lonati .timeline-nav {
        margin-left: 20px;
    }
}

@media screen and (min-width: 1024px) {
    #id-timeline-lonati .timeline-content {
        max-width: 75%;
        margin-left: 24px;
    }
    
    #id-timeline-lonati .timeline-nav {
        margin-left: 24px;
        margin-top: 0;
    }
}

@media screen and (min-width: 1600px) {
    #id-timeline-lonati .timeline-content {
        max-width: 50%;
        margin-top: 34px;
        margin-top: 20px;
    }
}