:root {
  --navy: #0b2a4a;
  --navy-2: #123a63;
  --red: #d7263d;
  --red-dark: #b81e32;
  --ink: #1b2430;
  --muted: #5b6776;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --line: #e2e7ee;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); text-decoration: none; }
.brand span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-soft); color: var(--navy); }
.nav-phone {
  background: var(--red); color: #fff !important; font-weight: 700 !important;
  margin-left: 8px;
}
.nav-phone:hover { background: var(--red-dark) !important; color: #fff !important; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 84px 0 92px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; max-width: 18ch; }
.hero p { font-size: 1.15rem; max-width: 56ch; color: #d6e2f0; margin: 0 0 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #ff8fa0; margin-bottom: 14px; }
.page-hero { background: var(--navy); color: #fff; padding: 56px 0; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.page-hero p { margin: 0; color: #cddbed; max-width: 62ch; }

/* Photo panels (home) */
.brand img { height: 44px; width: auto; }
.panels { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 62vh; }
.panel {
  position: relative; display: flex; align-items: flex-end; text-decoration: none; color: #fff;
  background-size: cover; background-position: center; overflow: hidden; isolation: isolate;
  min-height: 380px;
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,42,74,.25) 0%, rgba(8,32,58,.88) 100%);
  transition: background .25s;
}
.panel:hover::before { background: linear-gradient(180deg, rgba(215,38,61,.25) 0%, rgba(8,32,58,.92) 100%); }
.panel + .panel { border-left: 1px solid rgba(255,255,255,.18); }
.panel-in { padding: 36px 32px 40px; }
.panel h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 6px; }
.panel p { margin: 0 0 18px; color: #dbe6f3; }
.panel-btn {
  display: inline-block; border: 2px solid #fff; border-radius: 10px; padding: 9px 22px; font-weight: 700;
  transition: .15s;
}
.panel:hover .panel-btn { background: #fff; color: var(--navy); }
.intro { background: var(--navy); color: #fff; padding: 56px 0; text-align: center; }
.intro h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin: 0 0 12px; letter-spacing: -.02em; }
.intro p { max-width: 62ch; margin: 0 auto 24px; color: #cddbed; font-size: 1.08rem; }
.page-hero.has-img {
  background-size: cover; background-position: center; position: relative; padding: 88px 0; isolation: isolate;
}
.page-hero.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,42,74,.92) 0%, rgba(11,42,74,.6) 100%);
}

/* Barre velocità */
.bars { max-width: 860px; }
.bar { display: grid; grid-template-columns: 210px 1fr 140px; gap: 16px; align-items: center; margin-bottom: 16px; }
.bar-label { font-weight: 700; color: var(--navy); }
.bar-track { background: #fff; border: 1px solid var(--line); border-radius: 999px; height: 30px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; min-width: 14px; }
.bar-val { color: var(--muted); font-weight: 600; text-align: right; }
@media (max-width: 640px) {
  .bar { grid-template-columns: 1fr; gap: 6px; }
  .bar-val { text-align: left; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Sections */
section { padding: 72px 0; }
.soft { background: var(--bg-soft); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 12px; letter-spacing: -.02em; color: var(--navy); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 64ch; margin: 0 0 40px; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.2rem; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; color: var(--red); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: #fdecee; color: var(--red);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; font-weight: 800;
}

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--red);
  width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; display: grid; place-items: center; top: 4px;
}

.stat { text-align: center; padding: 10px; }
.stat strong { display: block; font-size: 2rem; color: var(--navy); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .95rem; }

.cta {
  background: var(--navy); color: #fff; border-radius: 20px; padding: 48px; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #cddbed; margin: 0 auto 24px; max-width: 54ch; }

.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-box h3 { margin-top: 0; color: var(--navy); }
.contact-box dt { font-weight: 700; color: var(--navy); margin-top: 14px; }
.contact-box dd { margin: 2px 0 0; color: var(--muted); }

.notice {
  background: #fff8e6; border: 1px solid #f3dc9c; border-radius: 10px; padding: 14px 18px; font-size: .95rem; color: #6b5200;
}

/* Footer */
.site-footer { background: #08203a; color: #b9c8da; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #dce7f4; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .84rem; }

@media (max-width: 860px) {
  .panels { grid-template-columns: 1fr; min-height: 0; }
  .panel { min-height: 260px; }
  .panel + .panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 20px 18px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-phone { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 64px; }
  .btn-ghost { margin: 10px 0 0; }
  .cta { padding: 32px 20px; }
}
