/* Hybrid Consulting — foglio di stile unico, nessuna dipendenza esterna. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0f1419;
  --ink-soft: #56606e;
  --ink-faint: #8892a0;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --brand: #123a52;
  --brand-soft: #1d5476;
  --cta: #b4530c;
  --cta-dark: #94430a;
  --ok: #12694a;
  --radius: 8px;
  --maxw: 1080px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

section { padding: 72px 0; }
section.tight { padding: 52px 0; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.18; letter-spacing: -0.022em; font-weight: 700; }
h2 { font-size: clamp(23px, 3.4vw, 32px); line-height: 1.25; letter-spacing: -0.016em; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.005em; }
h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
p { color: var(--ink-soft); margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
p.lead { font-size: 18px; max-width: 680px; }
strong { color: var(--ink); font-weight: 650; }
a { color: var(--brand-soft); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cta); margin-bottom: 14px;
}

/* ---------- Nav ---------- */
header.nav { border-bottom: 1px solid var(--line); padding: 18px 0; position: sticky; top: 0; background: rgba(255,255,255,.95); backdrop-filter: saturate(180%) blur(8px); z-index: 40; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--brand-soft); }
/* Sotto 860px i link vanno a capo su una seconda riga: restano sempre raggiungibili. */
.nav-links { display: flex; gap: 20px; order: 3; width: 100%; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav .btn-sm { white-space: nowrap; padding: 9px 14px; font-size: 13.5px; }
@media (min-width: 560px) { .nav .btn-sm { padding: 10px 18px; font-size: 14px; } }
@media (min-width: 860px) { .nav-links { order: 0; width: auto; gap: 26px; } }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block; background: var(--cta); color: #fff; text-decoration: none;
  padding: 15px 28px; border-radius: var(--radius); font-weight: 650; font-size: 16px;
  border: 1px solid var(--cta); cursor: pointer; text-align: center; line-height: 1.3;
}
.btn:hover { background: var(--cta-dark); border-color: var(--cta-dark); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--brand); color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.btn-note { font-size: 14px; color: var(--ink-faint); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 68px; }
.hero p.lead { margin-top: 18px; }
.hero-sub { margin-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 640px; }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 34px; }
@media (min-width: 720px) {
  .grid.c2 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { font-size: 15px; }
.card .num { font-size: 12px; font-weight: 700; color: var(--cta); letter-spacing: 0.1em; margin-bottom: 10px; }
.alt .card { background: #fff; }

/* ---------- Liste ---------- */
ul.check, ul.plain { list-style: none; margin-top: 20px; }
ul.check li, ul.plain li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--ink-soft); font-size: 16px; }
ul.check li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 11px; height: 6px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
ul.plain li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
ul.check li strong, ul.plain li strong { color: var(--ink); }

/* ---------- Servizio (blocco lungo) ---------- */
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; background: #fff; }
.service .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-soft); background: #eef3f7; padding: 5px 10px; border-radius: 4px; margin-bottom: 14px; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-faint); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; margin-top: 34px; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 18px; border-top: 3px solid var(--brand); }
.step .n { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--cta); text-transform: uppercase; }
.step h3 { margin-top: 6px; }
.step p { font-size: 15px; }

/* ---------- Definizioni / dati azienda ---------- */
dl.facts { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 720px) { dl.facts { grid-template-columns: repeat(2, 1fr); } }
dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-soft); margin-bottom: 4px; }
dd { color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 650; cursor: pointer; font-size: 16px; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--cta); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 10px; font-size: 15px; }

/* ---------- Form ---------- */
form.lead { margin-top: 30px; display: grid; gap: 16px; max-width: 620px; }
.field label { display: block; font-size: 14px; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  border: 1px solid #cfd6df; border-radius: 6px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); outline-offset: 1px; border-color: var(--brand-soft); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--ink-faint); margin-top: 5px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.form-msg { font-size: 15px; padding: 12px 14px; border-radius: 6px; display: none; }
.form-msg.err { display: block; background: #fdf0ee; color: #8a2c17; border: 1px solid #f3cdc4; }
.form-msg.ok { display: block; background: #eef7f2; color: #12694a; border: 1px solid #c3e3d4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA finale ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 64px 0; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: #c6d6e1; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ---------- Pagine legali ---------- */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.legal .updated { font-size: 14px; color: var(--ink-faint); margin-bottom: 34px; }
.legal h2 { font-size: 20px; margin-top: 36px; margin-bottom: 12px; }
.legal h3 { font-size: 16px; margin-top: 22px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-soft); }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 650; color: var(--ink); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #98a3b2; padding: 52px 0 36px; font-size: 14px; }
footer.site .cols { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 780px) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
footer.site h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
footer.site a { color: #b9c4d2; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; }
footer.site .legal-note {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid #262d36;
  font-size: 13px; color: #79838f; line-height: 1.7;
}
footer.site .legal-note strong { color: #b9c4d2; font-weight: 600; }

/* ---------- Banner cookie ---------- */
#cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 100; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -6px 28px rgba(15,20,25,.13);
  padding: 20px 0; display: none;
}
#cookie-banner.show { display: block; }
#cookie-banner .cb-in { display: grid; gap: 14px; align-items: center; }
@media (min-width: 900px) { #cookie-banner .cb-in { grid-template-columns: 1fr auto; gap: 16px; } }
#cookie-banner p { font-size: 13px; margin: 0; line-height: 1.55; }
@media (min-width: 900px) { #cookie-banner p { font-size: 14px; } }
#cookie-banner .cb-btns { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner .btn { padding: 11px 20px; font-size: 14.5px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; z-index: 200; border-radius: 6px; border: 1px solid var(--line); }
