:root {
  --bg: #0a1424;           /* Blu notte profondo, scuro e riposante */
  --bg-light: #111d30;     /* Variante blu leggermente più chiara per le sezioni alternate */
  --card: #16263d;         /* Card che staccano con eleganza dallo sfondo senza abbagliare */
  --text: #f1f5f9;         /* Bianco morbido (non puro, così non fa male agli occhi) */
  --text-muted: #94a3b8;   /* Grigio ardesia per i testi secondari, perfetto per la lettura */
  --accent: #d926a9;       /* Il fucsia del logo in versione "matte", elegante e non neon */
  --accent-hover: #fa4ec7; /* Variante per il movimento del mouse */
  --tech-cyan: #0ea5e9;    /* Azzurro tech aziendale (stile interni d'auto moderne o software) */
  --border: rgba(255, 255, 255, 0.04); /* Bordi finissimi e discreti */
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 45, 96, 0.9); /* Sfondo Dark Blue con trasparenza */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo span { color: var(--accent); } /* Rosa Neon sul logo */

.logo-img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--tech-cyan); } /* Hover Cyan sui link */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent); /* Pulsante principale Rosa Neon */
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--tech-cyan); /* Bordo del pulsante secondario in Cyan */
}

.btn-outline:hover { background: rgba(0, 245, 255, 0.1); }

.mobile-menu { display: none; }

/* HERO */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url('assets/background.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 45, 96, 0.95) 0%, rgba(44, 26, 74, 0.75) 100%); /* Gradiente Dark Blue -> Deep Purple */
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--tech-cyan); } /* Il testo in evidenza nella hero diventa Cyan */

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tech-cyan); /* Numeri delle statistiche Cyan */
}

.stat-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* SECTIONS */
section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p { color: var(--text-muted); }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent); /* Etichette Rosa Neon */
  margin-bottom: 12px;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent); /* Il bordo della card si illumina di Rosa Neon al passaggio */
}

.service-card.bg-img {
  background-size: cover;
  background-position: center;
}

.service-card.bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.98) 0%, rgba(8, 45, 96, 0.4) 60%, transparent 100%);
}

.service-card > * { position: relative; z-index: 1; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-card .link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tech-cyan); /* Link interni Cyan */
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s;
}

.feature-card:hover { border-color: var(--tech-cyan); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 245, 255, 0.1); /* Sfondo icona Cyan soft */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--tech-cyan); /* Icone spunte Cyan */
  font-size: 1.2rem;
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s;
}

.team-card:hover { border-color: var(--accent); }

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--bg-light)); /* Gradiente cerchio foto */
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.team-card h4 { font-size: 1.1rem; font-weight: 600; }
.team-card .role {
  font-size: 0.85rem;
  color: var(--tech-cyan); /* Ruolo dello staff in Cyan */
  font-weight: 500;
  margin: 4px 0 12px;
}
.team-card .info {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* CONTACTS */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 0, 204, 0.1); /* Sfondo icone contatti Rosa Neon soft */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent); /* Icone contatti Rosa Neon */
  font-size: 1.3rem;
}

.contact-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); }

/* CTA & PREVENTIVO */
.cta-section {
  background: linear-gradient(135deg, rgba(44, 26, 74, 0.6), rgba(10, 37, 64, 0.8)); /* Sfondo CTA Deep Purple -> Dark Blue */
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 60px;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

.preventivo-container {
  display: block; 
  max-width: 550px;
  margin: 30px auto 0;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--accent); /* Il bordo del form evidenziato si illumina di Rosa Neon */
  padding: 30px;
  border-radius: 12px;
}

.preventivo-container h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input, .form-group textarea, .form-group select {
  background: var(--card);
  border: 1px solid rgba(0, 245, 255, 0.2); /* Bordo dei campi Cyan leggero */
  border-radius: 6px;
  padding: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group select option {
  background: var(--card);
  color: var(--text);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--tech-cyan); /* I campi attivi diventano Cyan */
}

.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

footer .logo { margin-bottom: 8px; }
footer p { font-size: 0.85rem; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; font-size: 1.5rem; color: var(--text); background: none; border: none; cursor: pointer; }

  .hero h1 { font-size: 2rem; }
  .stats { gap: 24px; }

  .services-grid,
  .features-grid,
  .team-grid,
  .contacts-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-section { padding: 40px 24px; }
}