/* static/css/method.css */

.method-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    color: #e0e0e0;
}

.method-header {
    text-align: center;
    margin-bottom: 5rem;
}

.method-header h1 {
    color: #ff007f;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.method-header p {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-weight: 300;
}

/* --- TIMELINE DESIGN (DESKTOP) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: rgba(255, 0, 127, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.timeline-step {
    position: relative;
    margin-bottom: 4rem; 
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 18px; 
    left: -35px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #121212;
    border: 3px solid #ff007f;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.8);
    z-index: 2;
}

.step-number {
    display: block; 
    position: relative; 
    top: 0; 
    left: -20px; 
    font-size: 4.5rem; 
    font-weight: 600;
    color: #ff007f;
    opacity: 0.15; 
    font-family: 'Playfair Display', serif;
    z-index: 1; 
    margin-bottom: 1rem; 
    line-height: 1; 
}

/* BOX: Bordo fisso rosa delicato + ombra di base */
.step-content {
    background: rgba(20, 20, 20, 0.6);
    padding: 2.5rem; 
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 127, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* HOVER: Il bordo si accende, l'ombra si fa profonda e la box si muove */
.step-content:hover {
    transform: translateX(10px);
    border-color: rgba(255, 0, 127, 1); 
    box-shadow: -5px 5px 25px rgba(255, 0, 127, 0.15), -5px 10px 20px rgba(0, 0, 0, 0.6); 
}

.step-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 2;
}

.step-content p {
    line-height: 1.8;
    color: #cccccc;
    position: relative;
    z-index: 2;
}

/* =========================================
   RESPONSIVE PER SMARTPHONE
   ========================================= */
@media (max-width: 768px) {
    .method-container {
        padding: 2rem 1rem;
    }

    /* NUOVO: Pareggio delle dimensioni del Titolo con contact.css */
    .method-header {
        margin-bottom: 2rem;
    }

    .method-header h1 {
        font-size: 2.2rem;
    }

    .method-header p {
        font-size: 1rem;
    }
    /* Fine Pareggio Titolo */

    .timeline {
        padding-left: 2rem; 
    }

    .timeline-step {
        margin-bottom: 3.5rem; 
    }

    .timeline-step::before {
        left: -33px;
        width: 12px;
        height: 12px;
        top: 15px; 
    }

    .step-number {
        font-size: 4rem; 
        margin-bottom: 1rem; 
        left: -15px;
    }

    .step-content {
        padding: 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1.25rem; 
    }
    
    .step-content p {
        font-size: 0.95rem; 
        line-height: 1.6;
    }
}