/* ============================================================
   TIMELINE - DESKTOP (ORIZZONTALE)
   ============================================================ */
.products-section {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 40px;
    padding-top: 110px;
}

.timeline-box {
    position: relative;
    width: 95%;
    max-width: 1500px;
    height: 78vh;
    max-height: 780px;
    border-radius: 32px;
    background-color: #000000;
    background-image: url('../reso/img/timeline.png'); /* PNG orizzontale */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 60px rgba(130, 20, 190, 0.4), inset 0 0 30px rgba(130, 20, 190, 0.15);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-box.animate-in {
    opacity: 1;
    transform: scale(1);
}

.right-line {
    position: absolute;
    top: 0;
    right: 50px;
    width: 2px;
    height: 100%;
    background-color: #ffffff;
    z-index: 150;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.right-line.active {
    height: 100%;
}

/* ============================================================
   TIMELINE - MOBILE (VERTICALE)
   ============================================================ */
@media (max-width: 768px) {

    .products-section {
        padding: 0 15px;
        align-items: center;
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .timeline-box {
        width: 100%;
        max-width: 500px;
        height: 85vh;
        max-height: 800px;
        border-radius: 24px;
        background-image: url('../reso/img/timeline-vertical.png'); /* PNG verticale */
        background-size: contain;
        background-position: center;
    }

    .right-line {
        right: 15px;
    }
}