:root {
    --primary: #1a365d;
    --secondary: #2c5282;
    --accent: #ffd700;
    --bg: #f8fafc;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg);
    color: #334155;
    line-height: 1.6;
}

.navbar {
    background: var(--primary);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; color: white; }
.logo-area img { height: 50px; background: white; padding: 2px; border-radius: 4px; }
.logo-title { font-weight: bold; font-size: 1.1rem; line-height: 1.1; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.8)), url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=1470&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 25px; }

.container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.section-title { text-align: center; color: var(--primary); margin-bottom: 30px; font-size: 2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-bottom: 4px solid var(--accent); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }

.servizi-header { background: var(--primary); color: white; padding: 15px; border-radius: 8px; margin: 40px 0 20px; text-align: center; }
.service-list { list-style: none; margin-top: 15px; }
.service-list li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; }
.service-list li::before { content: "✓"; color: #10b981; font-weight: bold; margin-right: 10px; }

.form-box { background: white; padding: 40px; border-radius: 15px; max-width: 600px; margin: 0 auto; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
input, select, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; }
button { width: 100%; background: var(--primary); color: white; border: none; padding: 15px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }
button:hover { background: var(--secondary); }

footer { background: var(--primary); color: white; text-align: center; padding: 40px 5%; margin-top: 60px; }

@media (max-width: 768px) { .nav-links { display: none; } .hero h1 { font-size: 1.8rem; } }