/* ============================================================
   ESTIMO-INFORMATICO.IT - STILE DEFINITIVO OTTIMIZZATO
   ============================================================ */
:root {
    --primary: #2d5a27;    /* Verde Foresta/Istituzionale */
    --primary-light: #4ade80; 
    --dark: #1e293b;       /* Blu notte profondo per migliore leggibilità */
    --light: #f4f7f6;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Roboto', 'Arial', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background: var(--light); 
}

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 0 20px; 
}

/* HEADER & NAV */
header { 
    background: var(--dark); 
    color: var(--white); 
    padding: 20px 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.6rem; font-weight: bold; text-transform: uppercase; }
.logo span { color: var(--primary-light); }

nav ul { display: flex; list-style: none; align-items: center; }
nav ul li a { 
    color: var(--white) !important; /* Forza il bianco nel menu */
    text-decoration: none; 
    padding: 10px 15px; 
    transition: 0.3s; 
    font-weight: 400;
}
nav ul li a:hover { color: var(--primary-light) !important; }

.btn-contact { 
    background: var(--primary-light); 
    color: var(--dark) !important; 
    border-radius: 5px; 
    font-weight: bold; 
    margin-left: 15px;
}

/* HERO SECTION */
.hero { 
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('https://unsplash.com');
    background-size: cover;
    background-position: center;
    color: var(--white) !important; /* Forza il testo della hero in bianco */
    padding: 100px 0;
    text-align: center;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    line-height: 1.2; 
    color: var(--white) !important; 
}

.hero p { 
    font-size: 1.2rem; 
    max-width: 800px; 
    margin: 0 auto 30px; 
    color: #cbd5e0 !important; /* Grigio chiarissimo per il sottotitolo */
}

.cta { 
    display: inline-block; 
    background: var(--primary-light); 
    color: var(--dark) !important; 
    padding: 15px 35px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
    transition: 0.3s;
}

.cta:hover {
    background: #3ce673;
    transform: translateY(-2px);
}

/* GRIGLIA SERVIZI */
.section-title { text-align: center; margin: 60px 0 40px; font-size: 2.2rem; color: var(--dark); }

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-bottom: 60px; 
}

.card { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    text-align: center; 
    border-top: 4px solid var(--primary);
}

.icon { font-size: 3rem; margin-bottom: 20px; display: block; }

/* PAGINE INTERNE */
.content-section { padding: 80px 0; min-height: 60vh; }
.content-section h1 { color: var(--dark); margin-bottom: 30px; }
.lead { font-size: 1.3rem; margin-bottom: 40px; color: #555; }

/* FOOTER */
footer { 
    background: var(--dark); 
    color: #999; 
    padding: 40px 0; 
    text-align: center; 
    margin-top: 60px; 
}
