/* =========================================
   RESET E IMPOSTAZIONI BASE
   ========================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Open Sans', sans-serif; 
    color: #333; 
    line-height: 1.6; 
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
}

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 0 20px; 
}

.text-center { 
    text-align: center; 
}

/* =========================================
   COLORI E BOTTONI
   ========================================= */
.bg-light { background-color: #f8f9fa; }
.bg-primary { background-color: #2c3e50; }
.text-white { color: #fff; }

.btn-primary, .btn-submit {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover, .btn-submit:hover { 
    background: #2980b9; 
}

/* =========================================
   HERO SECTION (COPERTINA HEADER)
   ========================================= */
.hero {
    /* Nuova immagine: Studio medico luminoso e moderno, con overlay blu scuro per far leggere bene il testo bianco */
    background: linear-gradient(rgba(44, 62, 80, 0.75), rgba(44, 62, 80, 0.75)), 
                url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: white;
    padding: 120px 20px;
    text-align: center;
}

.hero h1 { 
    font-size: 2.8rem; 
    margin-bottom: 10px; 
}

.hero h2 { 
    font-size: 1.5rem; 
    font-weight: 300; 
    margin-bottom: 20px; 
}

.hero .quote { 
    font-style: italic; 
    margin-bottom: 30px; 
    opacity: 0.9; 
    font-size: 1.1rem;
}

/* =========================================
   SEZIONI GENERICHE E TITOLI
   ========================================= */
.section { padding: 60px 0; }
.section-title { 
    font-size: 2.2rem; 
    color: #2c3e50; 
    text-align: center; 
    margin-bottom: 40px; 
}

/* =========================================
   SEZIONE CHI SONO (CON FIX IMMAGINE)
   ========================================= */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.about-image {
    /* Evita che l'immagine occupi tutto lo schermo su monitor grandi */
    flex: 0 0 auto; 
    width: 100%;
    max-width: 320px; 
    display: flex;
    justify-content: center;
}

.profile-pic {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    object-fit: cover;
}

.about-text {
    flex: 1 1 350px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* =========================================
   AREE DI INTERVENTO (GRIGLIA)
   ========================================= */
.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
}

.grid-list li {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
    font-weight: 600;
}

/* =========================================
   TARIFFE
   ========================================= */
.pricing-table {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.price-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.price-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
}

.price-card .price { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: #3498db; 
    margin-top: 10px; 
}

/* =========================================
   CONTATTI E MODULO
   ========================================= */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form { 
    flex: 1; 
    min-width: 300px; 
}

.contact-info h2 { 
    font-family: 'Open Sans', sans-serif; 
    margin-bottom: 20px; 
}

.contact-info p {
    margin-bottom: 15px;
}

.form-group { 
    margin-bottom: 15px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid #3498db;
}

/* =========================================
   FOOTER
   ========================================= */
footer { 
    background: #1a252f; 
    color: #ccc; 
    padding: 20px 0; 
    font-size: 0.9rem; 
}

/* =========================================
   OTTIMIZZAZIONE MOBILE (SMARTPHONE)
   ========================================= */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        max-width: 250px; 
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}