.st-timeline-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    color: #fff;
}

/* -------- LINEA + PALLINI -------- */

.st-timeline-line {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;      
    padding: 0 40px;
    height: 80px;             
    margin-bottom: 40px;
}

.st-timeline-line::before {
    content: "";
    position: absolute;
    left: 40px;
    right: 40px;
    top: 50%;                 
    transform: translateY(-50%);
    height: 2px;
    background: #ffffff33;
}

.st-timeline-point-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.st-timeline-point {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ffffffaa;
    margin: 0;               
}

.st-timeline-point-main {
    background: #ffffff;
}

/* Data sopra il pallino */
.st-timeline-label {
    position: absolute;
    bottom: 100%;            
    left: 50%;
    transform: translate(-50%, -8px); 
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid white;
    padding: 5px 20px;
    border-radius: 300px;
}

.st-timeline-label-center {
    opacity: 0;
    pointer-events: none;
}

/* -------- SLIDER + FRECCE -------- */

.st-timeline-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
}

.st-timeline-nav {
    border: none;
    background: #ffffff11;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding: 15px;
    background-color: #ffffff;
}

.st-timeline-nav svg{
    height: 40px;
    width: 40px;
    fill: #23201B;
}

.st-timeline-nav:hover {
    background: #E9511D;
    transform: scale(1.05);
}

.st-timeline-nav:focus{
    background: #E9511D;
    transform: scale(1.05);
}

.st-timeline-nav:hover  svg{
    height: 40px;
    width: 40px;
    fill: #ffffff;
}

.st-timeline-nav:focus  svg{
    height: 40px;
    width: 40px;
    fill: #ffffff;
}

/* Contenitore card */
.st-timeline-items {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    align-items: center;
}

.st-timeline-items::-webkit-scrollbar {
    display: none;
}


/* -------- CARD / TEMPLATE -------- */

/* Desktop: 2 card visibili */
.st-timeline-card {
    flex: 0 0 calc(50% - 20px);
    min-width: 0;
    background: #f5f5f5;
    border-radius: 16px;
    padding: 0;
    color: #000;
    scroll-snap-align: start;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    overflow: hidden;
    align-items: center;
}

/* Placeholder quando non c'è template */
.st-timeline-card-placeholder {
    padding: 30px;
    font-size: 14px;
    text-align: center;
}

/* Tablet/Mobile: 1 card a vista */
@media (max-width: 1600px) {
    .st-timeline-slider {
        padding: 0 0px;
    }

    .st-timeline-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .st-timeline-line {
        padding: 0 21px;
    }

    .st-timeline-line::before {
        left: 20px;
        right: 20px;
    }

    .st-timeline-slider {
        gap: 10px;
    }

    .st-timeline-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .st-timeline-nav{
        padding: 13px;
    }

    .st-timeline-wrapper{
        padding: 40px 12px;
    }
}
