:root {
    --primary: #00a8ff;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --white: #ffffff;
    --text: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { line-height: 1.6; color: var(--text); background-color: var(--light); scroll-behavior: smooth; }

/* NAVBAR */
header { background: var(--dark); padding: 10px 0; position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo-img { height: 60px; }
.nav-links { display: flex; list-style: none; }
.nav-links a { color: var(--white); text-decoration: none; padding: 10px 15px; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* HERO - Sfondo con laboratorio informatico (URL Certificato) */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('image/laboratorio.jpg');
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    height: 50vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--white); 
    text-align: center;
}

/* SERVIZI */
.services { padding: 80px 20px; max-width: 1200px; margin: 0 auto; text-align: center; }
.services h2 { margin-bottom: 40px; }
.services-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-box { background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.3s; }
.service-box:hover { transform: translateY(-10px); border-bottom: 4px solid var(--primary); }
.service-box i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

/* SEZIONE PARTNER - FIX DIMENSIONI E ALLINEAMENTO */
.brands-section { padding: 80px 0; background: #ffffff; width: 100%; border-top: 1px solid #eee; }
.brands-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.brands-wrapper h3 { margin-bottom: 50px; font-size: 1.8rem; text-transform: uppercase; color: var(--dark); }

.brands-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px 20px; 
    align-items: flex-start;
}

.brand-card { 
    flex: 0 1 250px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.logo-box { 
    width: 100%; 
    height: 110px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 10px; 
}

.logo-box img { 
    max-width: 200px; 
    max-height: 90px; 
    filter: grayscale(100%); 
    opacity: 0.7; 
    transition: 0.4s; 
    object-fit: contain; 
}

.brand-label { font-size: 0.85rem; color: #777; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.brand-card:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.brand-card:hover .brand-label { color: var(--primary); }

/* CONTATTI */
.contact-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; }
.btn-submit { background: var(--primary); color: white; border: none; padding: 15px; width: 100%; border-radius: 5px; font-weight: bold; cursor: pointer; }
.privacy-container { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; }
.info-card { background: var(--dark); color: white; padding: 25px; border-radius: 10px; margin-bottom: 20px; }
.map-box { height: 350px; border-radius: 10px; overflow: hidden; border: 1px solid #ddd; }

/* FOOTER */
footer { text-align: center; padding: 30px; background: #111; color: #777; }

@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } .nav-links { display: none; } }



.privacy-container {
    display: flex;
    align-items: flex-start; /* Allinea la checkbox alla prima riga di testo */
    gap: 10px;               /* Crea spazio tra il quadratino e la scritta */
    margin: 15px 0;
    text-align: left;
}

.privacy-container input[type="checkbox"] {
    width: auto;
    margin-top: 4px;         /* Piccola correzione manuale per centrare il quadratino con il testo */
    cursor: pointer;
}

.privacy-container label {
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;               /* Rimuove margini residui che potrebbero sfasare l'allineamento */
}