/* --- Variabili e Reset --- */
:root {
    --primary: #0ea5e9; /* Azzurro tecnologico */
    --primary-dark: #0284c7;
    --secondary: #0f172a; /* Blu scuro professionale */
    --text: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- Header --- */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: 800;
    display: inline;
}

.logo span { color: var(--primary); }
.logo-sub { font-size: 0.9rem; color: var(--text-light); font-weight: 600; margin-left: 5px; }

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--secondary);
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: background 0.3s;
}

.btn-nav:hover { background: var(--primary-dark); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(14, 165, 233, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--secondary); }

/* --- Sezioni Generiche --- */
.section { padding: 100px 0; }
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--secondary); color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h3 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.text-white h2 { color: var(--white); }
.text-white p { color: rgba(255, 255, 255, 0.8); }

/* --- Chi Siamo --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p { margin-bottom: 20px; font-size: 1.05rem; }

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.check-list i { color: var(--primary); font-size: 1.2rem; }

.about-image img {
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Servizi --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-card.full-width { grid-column: 1 / -1; text-align: center; }

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h4 { font-size: 1.25rem; margin-bottom: 10px; color: var(--secondary); }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Clienti --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.client-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.3s;
}

.client-item:hover { background: rgba(255, 255, 255, 0.1); }

/* --- Contatti --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.info-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-box i {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-box h5 { font-size: 1.1rem; margin-bottom: 5px; color: var(--secondary); }
.info-box p { color: var(--text-light); }

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-block { width: 100%; }
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 15px; text-align: center; }

/* --- Footer --- */
.footer { background: #020617; color: rgba(255, 255, 255, 0.7); padding: 60px 0 20px; }
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-logo h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.footer-logo span { color: var(--primary); }
.footer-links h4, .footer-legal h4 { color: var(--white); margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; font-size: 0.85rem; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero h2 { font-size: 2.5rem; }
    .about-grid, .contact-grid, .footer-content { grid-template-columns: 1fr; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s ease;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; width: 100%; }
    .nav-menu a { display: block; padding: 15px 0; font-size: 1.2rem; text-align: center; }
    .hero { text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero h2 { font-size: 2rem; }
}