/* Dott. Diego Miglio - sito multi-pagina - CSS condiviso */
:root {
  --bg: #f6f9fb;
  --bg-soft: #eef9fc;
  --ink: #132331;
  --muted: #5c6b77;
  --blue: #0789c8;
  --blue-2: #00a0d2;
  --navy: #0d3047;
  --line: #dfe9ee;
  --shadow: 0 24px 70px rgba(13,48,71,.12);
  --shadow-sm: 0 14px 38px rgba(13,48,71,.06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.04em; color: var(--navy); }
h1 { font-size: clamp(34px, 5.5vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 20px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
@media (max-width: 700px) { section { padding: 52px 0; } }
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(223,233,238,.85); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 900; font-size: 14px; background: #fff; }
.brand b { color: var(--navy); display: block; letter-spacing: -0.02em; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; font-weight: 700; color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--blue); }
.nav-cta { background: var(--blue); color: #fff !important; padding: 10px 18px !important; border-radius: 999px; border-bottom: 0 !important; font-weight: 800 !important; box-shadow: 0 12px 26px rgba(7,137,200,.28); transition: transform .2s ease, background .2s ease; }
.nav-cta:hover { transform: translateY(-2px); background: #006fa4; }
@media (max-width: 720px) {
  .nav-inner { gap: 10px; padding: 10px 16px; }
  .nav-links { gap: 14px; font-size: 13px; width: 100%; order: 3; justify-content: center; padding-top: 4px; border-top: 1px solid var(--line); }
  .nav-cta { padding: 8px 14px !important; font-size: 13px !important; }
  .brand b { font-size: 14px; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; min-height: 48px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 16px 32px rgba(7,137,200,.28); }
.btn-primary:hover { background: #006fa4; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.hero { position: relative; overflow: hidden; padding: 80px 0; background: radial-gradient(circle at 80% 10%, rgba(0,160,210,.24), transparent 30%), linear-gradient(135deg, #fff 0%, var(--bg-soft) 55%, #e9f1f6 100%); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(7,137,200,.1); color: var(--blue); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 22px; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 22px 0 0; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); margin: 0; }
.icon-tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #f3fbfe, #e8f5fb); border: 1px solid #d6eaf3; color: var(--blue); margin-bottom: 8px; }
.icon-tile svg { width: 26px; height: 26px; stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 920px) { .nav-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .nav-cards { grid-template-columns: 1fr; } }
.nav-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; color: var(--ink); box-shadow: var(--shadow-sm); min-height: 150px; }
.nav-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 18px 40px rgba(7,137,200,.16); }
.nav-card .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 800; }
.nav-card h3 { color: var(--navy); font-size: 18px; line-height: 1.2; margin-bottom: 4px; }
.nav-card p { color: var(--muted); font-size: 13px; margin: 0; flex-grow: 1; }
.nav-card .arrow { color: var(--blue); font-weight: 900; font-size: 15px; align-self: flex-end; }
.timeline { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.timeline time, .timeline .tag { font-weight: 900; color: var(--blue); font-size: 14px; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }
.highlight { background: linear-gradient(135deg, var(--navy), #0f5e78); color: #fff; border-radius: 32px; padding: 44px; overflow: hidden; position: relative; }
.highlight::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.08); right: -120px; top: -110px; }
.highlight h2 { color: #fff; max-width: 720px; }
.highlight p { color: rgba(255,255,255,.78); font-size: 17px; max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.18); font-weight: 700; font-size: 13px; }
@media (max-width: 700px) { .highlight { padding: 30px; border-radius: 24px; } }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 600px) { .service-list { grid-template-columns: 1fr; } }
.service-item { padding: 16px 16px 16px 42px; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); position: relative; background: #fff; font-weight: 650; }
.service-item::before { content: ""; position: absolute; left: 18px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 0 0 5px rgba(7,137,200,.1); }
.contact-card { background: var(--navy); color: #fff; border-radius: 26px; padding: 30px; }
.contact-card h3 { color: #fff; margin-bottom: 8px; }
.contact-card p { color: rgba(255,255,255,.78); margin: 0 0 18px; }
.contact-row { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-row:last-child { border-bottom: 0; }
.contact-row strong { display: block; color: #fff; font-size: 13px; letter-spacing: .03em; }
.contact-row span { color: rgba(255,255,255,.78); font-size: 15px; }
.contact-row a { color: rgba(255,255,255,.95); }
form { display: grid; gap: 12px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; background: #fff; outline: none; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7,137,200,.12); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.consent-label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.consent-label input[type="checkbox"] { width: auto; margin-top: 4px; accent-color: var(--blue); }
/* ===== Footer ===== */
footer.site-footer { background: #081f2f; color: rgba(255,255,255,.78); padding: 28px 22px; font-size: 13px; margin-top: 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.footer-inner .row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-inner strong { color: #fff; font-weight: 800; }
.footer-inner .meta { font-size: 12px; opacity: .78; line-height: 1.6; }
.footer-inner a { color: rgba(255,255,255,.95); text-decoration: underline; }
@media (max-width: 700px) {
  .footer-inner .row { flex-direction: column; }
  .footer-inner .row > div:last-child { text-align: left !important; }
}
/* ===== Cookie banner ===== */
#cookie-banner { display: none; position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 760px; margin: 0 auto; background: var(--navy); color: #fff; padding: 18px 22px; border-radius: 18px; box-shadow: 0 20px 50px rgba(13,48,71,.35); z-index: 9999; font-size: 14px; line-height: 1.5; }
#cookie-banner .inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
#cookie-banner span { flex: 1; min-width: 240px; }
#cookie-banner a { color: #7fd3f0; font-weight: 800; }
#cookie-banner button { background: var(--blue); color: #fff; border: 0; padding: 10px 22px; border-radius: 999px; font-weight: 800; cursor: pointer; font-size: 14px; }
