/* ── VARIABILI ── */
:root {
  --blu:     #1a2d6e;
  --blu-dark:#111e4e;
  --giallo:  #f0a500;
  --testo:   #222222;
  --grigio:  #f5f5f5;
  --bianco:  #ffffff;
  --font:    'Segoe UI', Arial, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--testo); font-size: 16px; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
header {
  background: var(--blu);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding: 12px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.logo img {
  height: 80px;
  display: block;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  color: var(--bianco);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}
nav a:hover { opacity: 1; color: var(--giallo); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blu-dark) 0%, var(--blu) 100%);
  color: var(--bianco);
  padding: 100px 0 90px;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--giallo); }
.hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  background: var(--giallo);
  color: var(--blu-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: #d99200; transform: translateY(-1px); }

/* ── SEZIONI ── */
.section { padding: 80px 0; }
.section.alt { background: var(--grigio); }
.section h2 {
  font-size: 1.9rem;
  color: var(--blu);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.section h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--giallo);
}
.section p { max-width: 760px; margin-bottom: 14px; color: #444; }

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.card {
  background: var(--bianco);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-top: 4px solid var(--giallo);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; color: var(--blu); margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: #555; margin: 0; }

/* ── INDUSTRIA 4.0 ── */
.industria-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.industria-text { flex: 1; }
.industria-text ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.industria-text ul li {
  padding-left: 20px;
  position: relative;
  color: #444;
}
.industria-text ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--giallo);
  font-weight: bold;
}
.industria-badge {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background: var(--blu);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bianco);
  box-shadow: 0 4px 20px rgba(26,45,110,0.35);
}
.industria-badge span { font-size: 0.9rem; opacity: 0.75; letter-spacing: 1px; }
.industria-badge strong { font-size: 2.8rem; color: var(--giallo); line-height: 1; }

/* ── CASO REALE ── */
.caso-box {
  background: var(--bianco);
  border-radius: 8px;
  padding: 36px 40px;
  margin-top: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-left: 6px solid var(--blu);
}
.caso-label {
  display: inline-block;
  background: var(--giallo);
  color: var(--blu-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.caso-box h3 { font-size: 1.3rem; color: var(--blu); margin-bottom: 14px; }
.caso-box p { color: #444; margin-bottom: 10px; max-width: 100%; }

/* ── CONTATTI ── */
#contatti p { margin-bottom: 32px; }
.contatti-box {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.contatto-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--grigio);
  border-radius: 6px;
  padding: 16px 24px;
  font-size: 1rem;
}
.contatto-item a { color: var(--blu); font-weight: 600; }
.contatto-item a:hover { color: var(--giallo); }
.contatto-icon { font-size: 1.3rem; }

/* ── FOOTER ── */
footer {
  background: var(--blu-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 28px 0;
  font-size: 0.85rem;
  line-height: 2;
}
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--giallo); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.9rem; }
  .header-inner { justify-content: center; }
  nav {
    width: 100%;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  nav a { font-size: 0.85rem; }
  .industria-inner { flex-direction: column; gap: 36px; }
  .industria-badge { width: 120px; height: 120px; }
  .industria-badge strong { font-size: 2.2rem; }
  .caso-box { padding: 24px 20px; }
}
