/* ==========================================================================
   Step Cards — stile allineato al prototipo (sezione IL METODO TLS)
   Layout via utility Bootstrap inline nel template (bg-dark, text-white-50,
   text-info = teal accent #119199, grid row/col).
   ========================================================================== */

/* --- Heading --- */


.step-cards .eyebrow {
    font-family: "League Spartan", sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
}

.step-cards__intro {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
}

/* --- Timeline (prototipo .timeline-container) --- */
.step-cards__timeline {
    position: relative;
    margin-top: 4.5rem;
}

.step-cards__col {
    position: relative;
}

/* connettore orizzontale tra le colonne (solo desktop) */
@media (min-width: 992px) {
    .step-cards__col:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 24px;
        left: 50%;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        z-index: 1;
    }
}

/* --- Step (prototipo .timeline-step) --- */
.step-cards__step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.step-cards__node-wrap {
    position: relative;
    margin-bottom: 1.5rem;
    background: #0a0a0a;
    padding: 0 8px;
    z-index: 2;
}

.step-cards__node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0a0a0a;
    border: 1px solid var(--bs-info);
    color: var(--bs-info);
    font-family: "League Spartan", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-cards__step:hover .step-cards__node {
    background: var(--bs-info);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(17, 145, 153, 0.4);
}

/* --- Card contenuto (prototipo .timeline-content) --- */
.step-cards__content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 1.75rem 1.25rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.step-cards__step:hover .step-cards__content {
    border-color: var(--bs-info);
    background: rgba(255, 255, 255, 0.05);
}

.step-cards__content h3 {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.step-cards__content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    line-height: 1.55;
    margin: 0;
}

/* --- CTA centrale --- */
.step-cards__cta-text {
    font-size: 0.95rem;
}

.step-cards .btn-cta {
    padding: 16px 28px;
    font-family: "League Spartan", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    border-radius: 4px;
}

/* il .btn-primary del tema è nero: qui il prototipo vuole il teal accent */
.step-cards .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #0c777d;
    --bs-btn-hover-border-color: #0c777d;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #0c777d;
    --bs-btn-active-border-color: #0c777d;
}

/* ==========================================================================
   Responsive: timeline verticale con connettore laterale (prototipo)
   ========================================================================== */

@media (max-width: 991.98px) {
    .step-cards__step {
        position: relative;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .step-cards__col:last-child .step-cards__step {
        margin-bottom: 0;
    }

    /* connettore verticale tra gli step */
    .step-cards__col:not(:last-child) .step-cards__step::after {
        content: "";
        position: absolute;
        top: 24px;
        bottom: -1.5rem;
        left: 24px;
        width: 1px;
        background: rgba(255, 255, 255, 0.2);
        z-index: 1;
    }

    .step-cards__node-wrap {
        margin-bottom: 0;
        margin-right: 1.25rem;
        padding: 0;
        flex-shrink: 0;
    }

    .step-cards__timeline {
        margin-top: 2.5rem;
    }
}
