/* Implementation Section - Horizontal Layout */
.implementation-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(20, 184, 166, 0.03) 100%); 
    border-radius: 32px;
    border: 3px solid black;
    padding: 64px 48px;
    margin-bottom: 80px;
}

.implementation-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.implementation-header h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.implementation-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Grid principale: 3 colonne (1fr 2fr 1fr) */
.steps-horizontal {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 64px;
}

/* Stile base per tutte le colonne */
.step-horizontal {
    background: #fff;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.step-horizontal:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

/* Fix per tema gradient-vibrant: forza testo scuro su sfondo bianco */
body.theme-gradient-vibrant .step-horizontal h3,
body.theme-gradient-vibrant .step-horizontal .step-desc,
body.theme-gradient-vibrant .step-horizontal .step-list li,
body.theme-gradient-vibrant .step-desc-centered,
body.theme-gradient-vibrant .dev-opt strong,
body.theme-gradient-vibrant .dev-opt span,
body.theme-gradient-vibrant .implementation-cta h3,
body.theme-gradient-vibrant .implementation-cta p {
    color: #1a1a2e;
}

/* Cerchio numero step */
.step-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366F1 0%, #14B8A6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.step-num {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: white;
}

/* Icona grande */
.step-icon-big {
    font-size: 56px;
    margin-bottom: 20px;
}

/* Titolo step */
.step-horizontal h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Badge durata */
.step-time {
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 16px;
}

/* Descrizione */
.step-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Lista items */
.step-list {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    padding: 0;
}

.step-list li {
    padding: 8px 0 8px 24px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-list li:last-child {
    border-bottom: none;
}

.step-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: rgba(20, 184, 166, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-weight: 700;
    font-size: 10px;
}

/* Badge incluso/opzionale */
.step-badge-box {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.step-badge-box.included {
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: var(--secondary-light);
}

.step-badge-box.optional {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
}

/* Development Options */
.dev-options-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    text-align: left;
}

.dev-opt {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.3s ease;
}

.dev-opt:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.dev-opt strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.dev-opt span {
    font-size: 12px;
    color: var(--text-tertiary);
}

.step-note-compact {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--accent);
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 16px;
}

.step-note-compact strong {
    color: var(--accent-light);
    margin-right: 4px;
}

/* ========================================
   COLONNA DOPPIA (Step 2)
   ======================================== */
.step-horizontal.step-double {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
}

/* Numero centrato */
.step-double .step-circle {
    margin: 0 auto 20px;
}

/* Due icone affiancate */
.step-double-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

/* Descrizione centrata unica */
.step-desc-centered {
    text-align: center;
    color: var(--text-secondary);
    /* color: #000000; */
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
}

/* Durata centrata */
.step-double .step-time {
    margin: 0 auto 32px;
}

/* Griglia interna: 2 colonne per i contenuti */
.step-double-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.step-double .step-subsection {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.step-double .step-subsection h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.step-double .step-subsection .step-list {
    margin-bottom: 20px;
}

.step-double .step-subsection .step-badge-box {
    margin-top: auto;
}

/* ========================================
   IMPLEMENTATION CTA
   ======================================== */
.implementation-cta {
    text-align: center;
    /* background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%); */
    background: #ffffff;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
}

.implementation-cta h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.implementation-cta p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1400px) {
    .steps-horizontal {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .step-horizontal {
        min-height: auto;
    }
    
    .step-double-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .implementation-section {
        padding: 40px 24px;
    }
    
    .implementation-header h2 {
        font-size: 32px;
    }
    
    .steps-horizontal {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .step-horizontal {
        padding: 28px 20px;
    }
    
    .step-horizontal.step-double {
        padding: 28px 20px;
    }
    
    .step-double-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .step-double-icons {
        gap: 30px;
    }
    
    .step-icon-big {
        font-size: 48px;
    }
    
    .step-horizontal h3 {
        font-size: 20px;
    }
    
    .implementation-cta {
        padding: 32px 24px;
    }
    
    .implementation-cta h3 {
        font-size: 26px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
