/* Reset e Font di base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f4f7f6; }

/* Barra di Navigazione */
header { background: #2c3e50; color: #fff; padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; }
nav .logo { font-size: 1.5rem; font-weight: bold; color: #3498db; }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 20px; }
nav ul li a { color: #fff; text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav ul li a:hover { color: #3498db; }

/* Sezione Principale (Hero) */
.hero { background: linear-gradient(135deg, #1abc9c, #2c3e50); color: white; padding: 80px 20px; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 25px auto; opacity: 0.9; }

/* Contenitore Contenuti */
.container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 30px; font-size: 2rem; color: #2c3e50; }

/* Griglia delle Funzionalità / Galleria */
.grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.card { flex: 1 1 calc(33.333% - 20px); background: white; padding: 25px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-top: 4px solid #3498db; transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 10px; color: #2c3e50; }

/* Piè di pagina (Footer) */
footer { background: #2c3e50; color: white; text-align: center; padding: 20px; margin-top: 40px; font-size: 0.9rem; }

/* Ottimizzazione per Smartphone */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 10px; }
    nav ul { margin-top: 10px; }
    .hero h1 { font-size: 2rem; }
    .card { flex: 1 1 100%; }
}

