
:root{
  --bg:#ffffff;
  --surface:#f6f8fb;
  --text:#0b1727;
  --muted:#46566b;
  --border:rgba(11,23,39,.12);

  --navy:#1A446A;
  --blue:#266885;
  --teal:#41A0A7;
  --aqua:#51B3B2;
  --green:#70B9A7;
  --accent:#F9721A;

  --radius:18px;
  --shadow: 0 18px 50px rgba(11,23,39,.10);
  --max: 1120px;
  --pad: clamp(18px, 2.4vw, 28px);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(65,160,167,.16), transparent 60%),
    radial-gradient(900px 500px at 90% 5%, rgba(249,114,26,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
p{ margin:0 0 14px; color:var(--muted); }
h1,h2,h3{ margin:0 0 12px; line-height:1.15; letter-spacing:-.02em; }
h1{ font-size: clamp(34px, 4vw, 54px); }
h2{ font-size: clamp(24px, 3vw, 34px); }
h3{ font-size: 18px; }

.container{
  width: min(var(--max), calc(100% - 2*var(--pad)));
  margin: 0 auto;
}

header{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.2px;
}
.brand img{ height:44px; width:auto; }
.brand .name{ display:flex; flex-direction:column; line-height:1.05; }
.brand .name strong{ font-size:14px; color:var(--navy); }
.brand .name span{ font-size:12px; color:var(--muted); font-weight:700; }

.menu{
  display:flex;
  gap:10px;
  align-items:center;
}
.menu a{
  padding:10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight:800;
}
.menu a[aria-current="page"], .menu a:hover{
  color: var(--navy);
  background: rgba(38,104,133,.08);
}

.burger{
  display:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.85);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:900;
}

.btn{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(26,68,106,.20);
  background: linear-gradient(135deg, rgba(65,160,167,.18), rgba(38,104,133,.10));
  box-shadow: 0 12px 26px rgba(11,23,39,.08);
  font-weight:900;
  color: var(--navy);
}
.btn:hover{ filter: brightness(1.03); }
.btn.secondary{
  background: rgba(255,255,255,.90);
  border-color: var(--border);
  box-shadow:none;
  color: var(--text);
  font-weight:900;
}

section{ padding: 58px 0; }
.hero{ padding: 72px 0 44px; }

.grid{ display:grid; gap: 22px; }
.hero-grid{ grid-template-columns: 1.15fr .85fr; align-items:center; }

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.80);
  border-radius: 999px;
  color: var(--muted);
  font-weight:900;
  width: fit-content;
  margin-bottom: 14px;
}
.kicker i{
  width:9px; height:9px;
  border-radius: 50%;
  background: var(--accent);
  display:inline-block;
}

.hero p{ font-size: 17px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap: 12px; margin-top: 18px; }

.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card.soft{ background: rgba(255,255,255,.75); box-shadow:none; }

.pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 14px; }
.pill{
  font-size: 13px;
  color: var(--muted);
  border:1px solid var(--border);
  background: rgba(255,255,255,.86);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight:800;
}
.pill strong{ color:var(--navy); }

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.stat{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(246,248,251,.78);
}
.stat b{ font-size: 18px; color: var(--navy); }
.small{ font-size: 13px; color: var(--muted); }

.cols-3{ grid-template-columns: repeat(3, 1fr); }
.cols-2{ grid-template-columns: repeat(2, 1fr); }

.feature h3{ margin-bottom: 6px; color:var(--navy); }
.feature p{ margin:0; }

ul.list{ margin: 0; padding-left: 18px; color: var(--muted); }
ul.list li{ margin: 6px 0; }

.hr{
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.pagehead{ padding: 44px 0 10px; }
.breadcrumb{ color: var(--muted); font-weight:900; font-size: 13px; margin-bottom: 10px; }

.callout{
  border-left: 5px solid var(--teal);
  padding: 14px 16px;
  background: rgba(246,248,251,.85);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.tag{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight:900;
  color: var(--navy);
}

.form-grid{ grid-template-columns: 1fr 1fr; }
form{ display:grid; gap:12px; }
label{ font-weight:900; font-size: 13px; color: var(--navy); }
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline:none;
}
textarea{ min-height: 140px; resize: vertical; }
input:focus, textarea:focus{
  border-color: rgba(65,160,167,.55);
  box-shadow: 0 0 0 4px rgba(65,160,167,.14);
}

footer{
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--muted);
  background: rgba(255,255,255,.78);
}
.footer-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap: 12px;
  align-items:center;
}
.footer-links{ display:flex; flex-wrap:wrap; gap: 12px; }
.footer-links a{ color: var(--muted); font-weight:900; }
.footer-links a:hover{ color: var(--navy); }

@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cols-3{ grid-template-columns: 1fr; }
  .cols-2{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
  .menu{ display:none; }
  .burger{ display:inline-flex; }
  .menu.open{
    display:flex;
    position:absolute;
    left: var(--pad);
    right: var(--pad);
    top: 70px;
    flex-direction:column;
    padding: 10px;
    background: rgba(255,255,255,.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .form-grid{ grid-template-columns: 1fr; }
}

/* Aggiornamento finale: palette originale invariata. */
.brand img{width:96px;height:auto;flex-shrink:0;border-radius:6px;}
.brand .name strong{font-size:22px;line-height:1.15;display:block;}
.brand .name span{font-size:16px;color:var(--navy);margin-top:4px;line-height:1.2;}
.brand{min-width:0;gap:14px;}
.menu a{white-space:nowrap;}
.menu .btn{color:var(--navy);}
.hero h1{font-size:clamp(34px,4vw,54px);}
.hero-aside{padding:26px;}
.hero-aside .tag,.feature .tag{margin-bottom:12px;}
.hero-aside h2{margin-top:8px;}
.lead{font-size:18px;max-width:850px;}
.cta-panel{margin-top:28px;}
.cta-actions{justify-content:flex-end;}
.reference .list li{margin:8px 0;}
.legal{max-width:850px;}
.legal h2{font-size:23px;margin-top:24px;}
.legal h2:first-child{margin-top:0;}
.text-link{color:var(--navy);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
.footer-grid a[href^="mailto:"]{overflow-wrap:anywhere;text-decoration:underline;}
input,textarea,button{font:inherit;}
button:not(:disabled){cursor:pointer;}
button:disabled{opacity:.6;}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;}
[id]{scroll-margin-top:125px;}
.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.skip-link:focus{position:fixed;top:8px;left:8px;z-index:100;padding:12px;background:white;color:var(--navy);}
@media (max-width:1100px){
 .nav{position:relative;}
 .menu{display:flex;gap:4px;}
 .menu a{padding:8px;}
}
@media (max-width:1000px){
 .nav{flex-wrap:wrap;}
 .menu{display:flex;flex-wrap:wrap;width:100%;gap:4px;}
 .menu a{padding:8px 10px;}
 .js .nav{flex-wrap:nowrap;}
 .js .menu{display:none;}
 .js .burger{display:inline-flex;}
 .js .menu.open{display:flex;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;padding:10px;background:white;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);width:auto;}
 .js .menu.open a{white-space:normal;}
 .cta-actions{justify-content:flex-start;}
 .burger{display:none;}
}
@media (max-width:520px){
 .brand img{width:76px;}
 .brand .name strong{font-size:17px;}
 .brand .name span{font-size:13px;}
 .brand{gap:8px;}
 .nav{gap:8px;}
 .burger{padding:8px;}
 .hero{padding:40px 0 24px;}
 section{padding:32px 0;}
 .pagehead{padding:30px 0 5px;}
 .card{padding:16px;}
 .kicker{border-radius:16px;font-size:13px;}
 .kicker i{flex-shrink:0;}
 .hero h1{font-size:34px;}
 .footer-links{gap:10px;}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}
