/* servizi.css - Versione definitiva con responsive completo */

/* servizi.css - Layout Moderno e Responsive */
:root {
    --primary-color: #e31e24; /* Rosso officina */
    --secondary-color: #333;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --text-dark: #222;
    --transition: all 0.3s ease;
}

/* Container Generale */
.container-fluid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ==================== SEZIONE STEPS (1, 2, 3) ==================== */
.steps { padding: 40px 0; }
.steps h2 { text-align: center; margin-bottom: 40px; color: var(--secondary-color); }

.step {
    display: flex;
    flex-wrap: wrap; /* Fondamentale per mobile */
    background: #fff;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.step:nth-child(even) { flex-direction: row-reverse; }

.step-image { flex: 1 1 50%; min-width: 300px; }
.step-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 300px; }

.step-content { flex: 1 1 50%; padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }

.text-box { background: #dbdedb; padding: 20px; border-radius: 6px; }
.highlight-box { background: #b4fbfa; } /* Per Gestione Sinistri */

.btn-action { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 10px 20px; 
    background: var(--primary-color); 
    color: #fff; 
    text-decoration: none; 
    border-radius: 4px;
    font-weight: bold;
}

/* ==================== GRIGLIA SERVIZI ==================== */
.services-page { background: var(--bg-light); padding: 50px 20px; border-radius: 15px; }
.services-intro { text-align: center; margin-bottom: 40px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 35px; color: var(--primary-color); margin-bottom: 15px; }

.btn-link { color: var(--primary-color); text-decoration: none; font-weight: bold; font-size: 14px; }

/* ==================== EXTRA E BANNER ==================== */
.extra-services { margin-top: 40px; background: #222; color: #fff; padding: 30px; border-radius: 10px; }
.extra-services ul { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    list-style: none; padding: 0; margin-top: 20px; 
}

.emergency-banner {
    margin-top: 40px;
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-emergency {
    background: white;
    color: var(--primary-color);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==================== MEDIA QUERIES (MOBILE) ==================== */
@media (max-width: 768px) {
    .step { flex-direction: column !important; } /* Forza la colonna singola */
    .step-image, .step-content { flex: 1 1 100%; }
    .step-content { padding: 25px; }
    .step-image img { min-height: 200px; }
    
    .emergency-banner { flex-direction: column; text-align: center; }
    .btn-emergency { width: 100%; text-align: center; }
    
    .services-intro h2 { font-size: 28px; }
}