/**
 * Timeline Addon - Stile Suoni Oltre Confine
 * 
 * Stile identico alla roadmap di Suoni Oltre Confine
 */

/* Container principale */
.timeline-container {
    position: relative;
    /* max-width: 56rem; */ /* max-w-4xl */
    margin: 0 auto;
    /* padding: 0 1.5rem; */
}

/* Linea verticale */
.timeline-line {
    display: block;
    position: absolute;
    left: 32px; /* metà del cerchio da 64px */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #edeef1;
    z-index: 0;
}

/* Singolo elemento della timeline */
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem !important; /* mb-16 */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Layout interno dell'elemento */
.timeline-item-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
	border-bottom: 1px solid #17110e2b;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .timeline-item-inner {
        flex-direction: row;
    }
}

/* Wrapper del cerchio anno */
.timeline-year-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .timeline-year-wrapper {
        margin-bottom: 0;
    }
}

/* Cerchio con anno */
.timeline-year-circle {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10;
    position: relative;
    transition: all 0.5s ease;
    background-color: #e5e7eb; /* gray-200 */
    color: #374151; /* gray-700 */
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .timeline-year-circle {
        width: 64px;
        height: 64px;
        font-size: 1rem;
    }
}

/* Stato attivo del cerchio */
.timeline-item.active .timeline-year-circle {
    background-color: #7A1B54;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Immagine nel cerchio */
.timeline-circle-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* Contenuto testuale */
.timeline-content {
    flex: 1;
    width: 100%;
    transition: all 0.5s ease;
    opacity: 0.4;
}

@media (min-width: 768px) {
    .timeline-content {
        margin-left: 2rem; /* ml-8 */
        transform: translateX(-0.5rem);
    }
}

/* Stato attivo del contenuto */
.timeline-item.active .timeline-content {
    opacity: 1;
    transform: translateX(0);
}

/* Titolo */
.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.3;
    text-align: left;
}

@media (min-width: 768px) {
    .timeline-title {
        font-size: 1.875rem; /* text-3xl */
    }
}

/* Descrizione */
.timeline-description {
    color: #17110E; 
    margin-bottom: 0 !important;
    font-size: 1rem;
    line-height: 1.75;
    text-align: left;
}

@media (min-width: 768px) {
    .timeline-description {
        font-size: 1.125rem; /* text-lg */
    }
}

@media (min-width: 1280px) {
    .timeline-description {
        font-size: 17px; /* text-xl */
    }
}

/* Lista achievements */
.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Singolo achievement */
.timeline-achievement {
    display: flex;
    align-items: center;
    color: #374151; /* gray-700 */
    text-align: left;
}

/* Bullet achievement */
.timeline-achievement-bullet {
    width: 8px;
    height: 8px;
    background-color: #9ca3af; /* gray-400 */
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Testo achievement */
.timeline-achievement-text {
    font-size: 1rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .timeline-achievement-text {
        font-size: 1.125rem; /* text-lg */
    }


}
@media(max-width:768px){
    .timeline-line {
        left: 0px!important; /* metà del cerchio da 64px */
    }
    .timeline-item{
        padding-left:20px;
    }
}
@media (min-width: 1280px) {
    .timeline-achievement-text {
        font-size: 1.25rem; /* text-xl */
    }
}

/* Animazione di transizione */
.timeline-item .timeline-content {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item .timeline-year-circle {
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

/* Fix per l'editor Elementor */
.elementor-editor-active .timeline-item .timeline-content {
    opacity: 1;
    transform: translateX(0);
}
