/* =========================================================
   DFG Servizi S.r.l. — Landing page
   ========================================================= */

@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #FFFFFF;
  --ink-2: #F4F5F6;
  --ink-3: #E9EBED;
  --bar: #16181B;
  --line: rgba(17, 18, 20, .12);
  --line-2: rgba(17, 18, 20, .24);
  --text: #16181B;
  --muted: #565A62;
  --accent: #C8201A;
  --accent-hover: #A81A15;
  --ok: #17794E;
  --paper: #F4F5F6;
  --paper-2: #FFFFFF;
  --paper-text: #16181B;
  --paper-muted: #565A62;

  --radius: 8px;
  --radius-sm: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Fasce scure: logo bianco, testata, footer */
.nav, .footer, .jobs-band {
  --text: #F5F5F5;
  --muted: #B4B7BD;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .3);
  background: var(--bar);
  color: var(--text);
}
/* Fasce rosse */
.hero__copy, .cta {
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, .92);
  --line-2: rgba(255, 255, 255, .6);
  background: var(--accent);
  color: var(--text);
}
.hero__copy .btn--primary, .cta .btn--primary { background: #fff; color: var(--accent); }
.hero__copy .btn--primary:hover, .cta .btn--primary:hover { background: #F4F5F6; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; font-family: var(--font); }
p { margin: 0; }
em { font-style: normal; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 46px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--dark { background: var(--bar); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline-dark { border-color: var(--line-2); color: var(--text); }
.btn--outline-dark:hover { border-color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.brand__logo { height: 46px; width: auto; }
.brand__logo--lg { height: 64px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: var(--radius); font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  display: grid; gap: 4px; padding: 12px var(--gutter) 24px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }
.hero__inner { display: grid; grid-template-columns: 1.75fr 1fr; gap: 16px; }
.hero__copy { padding: clamp(28px, 5vw, 60px); border-radius: var(--radius); }
.hero__side { display: grid; align-content: space-between; gap: 28px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--ink-2); }
.hero__side h2 { font-size: 21px; margin-bottom: 8px; }
.hero__side p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.hero__side div:last-child p { margin-bottom: 0; }
.hero__side p a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font: 500 15px/1.3 var(--font); color: var(--muted); }
.hero__title { font-size: clamp(30px, 3.9vw, 48px); margin: 14px 0 18px; line-height: 1.15; text-wrap: balance; }
.hero__sub { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head h2, .split h2, .quote h2, .cta h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section__head h2 em, .split h2 em, .quote h2 em, .cta h2 em { font-size: 1em; }
.kicker { font: 600 15px/1.3 var(--font); color: var(--accent); margin-bottom: 10px; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); margin-top: 14px; max-width: 62ch; }

.section--light { background: var(--paper); color: var(--paper-text); }
.section--light .lead, .section--light p { color: var(--paper-muted); }
.section--light h3, .section--light h2 { color: var(--paper-text); }
.section--light .kicker { color: var(--accent); }

/* ---------- Split / Fleet ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* ---------- Quote / Form ---------- */
.section--quote { position: relative; overflow: hidden; }
.quote { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.quote__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.quote__contact > a:first-child, .quote__contact > .quote__info { grid-column: 1 / -1; }
.quote__contact a, .quote__info { display: block; padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ink); font-size: 17px; font-weight: 600; transition: border-color .2s, background .2s; overflow-wrap: anywhere; }
.quote__contact a:hover { border-color: var(--accent); }
.quote__contact small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }

.form { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line-2); }
.form__progress { height: 4px; border-radius: var(--radius); background: var(--ink-3); overflow: hidden; }
.form__progress span { display: block; height: 100%; width: 33.33%; background: var(--accent); transition: width .3s var(--ease); }
.form__step-label { font-size: 13px; color: var(--muted); margin: 14px 0 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__step { display: none; gap: 16px; }
.form__step.is-active { display: grid; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 500; color: var(--text); }
.field input, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: #fff; color: var(--text);
  font: 16px/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #80848C; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,32,26,.15); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; text-align: center; min-height: 52px; padding: 8px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: all .2s; }
.choice input:checked + span { border-color: var(--accent); background: rgba(200,32,26,.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid span { color: #B3261E; }
.form__nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.form__nav [data-prev] { margin-right: auto; }
.form__nav [hidden] { display: none; }
.form__success { text-align: center; padding: 40px 0 16px; }
.form__success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(23,121,78,.08); border: 1px solid rgba(23,121,78,.3); }
.form__success-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form__success h3 { font-size: 26px; margin-bottom: 8px; }
.form__success p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq .section__head { position: sticky; top: 110px; }
.faq__list { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }

.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font: 600 17px/1.35 var(--font); position: relative; color: var(--paper-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23111214' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font-size: 16px; }

/* ---------- CTA ---------- */
.cta { padding: clamp(44px, 6vw, 72px) 0; }
.cta__inner { text-align: center; display: grid; justify-items: center; gap: 16px; }
.cta h2 em { display: block; }
.cta p { font-size: 18px; max-width: 54ch; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__tag { color: var(--muted); margin-top: 16px; max-width: 32ch; font-size: 15px; }
.footer h4 { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__legal a:hover { color: var(--text); }

/* ---------- Chi siamo ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.about h2 { font-size: clamp(26px, 3.2vw, 38px); text-wrap: balance; }
.about h2 em { font-size: 1em; }
.pillars { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.pillars li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--paper-2); }
.pillars b { display: block; font-size: 17px; color: var(--paper-text); }
.pillars span { font-size: 15px; color: var(--paper-muted); }
.pillars__icon { flex: none; width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center; background: rgba(215,38,30,.1); }
.pillars__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Flotta ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.vehicle { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--ink-2); }
.vehicle h3 { font-size: 18px; }
.vehicle p { color: var(--muted); font-size: 15px; }
.vehicle small { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Form extra ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.check--inline { color: var(--muted); }
.form__error { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: #FCEEED; border: 1px solid rgba(179,38,30,.3); color: #8C1D18; font-size: 15px; }
.form__error a { color: inherit; text-decoration: underline; }
.footer address { font-style: normal; font-size: 15px; line-height: 1.7; }

/* ---------- Hero facts ---------- */
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 24px clamp(28px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.hero__facts dt { font-size: 14px; color: var(--muted); }
.hero__facts dd { margin: 2px 0 0; font: 600 24px/1.2 var(--font); }

/* ---------- In evidenza ---------- */
.quick { padding: 28px 0 0; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick__card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.quick__card:hover { border-color: var(--accent); }
.quick__card b { font-size: 18px; font-weight: 600; line-height: 1.3; }
.quick__card span { color: var(--muted); font-size: 15px; }
.quick__card i { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 600; font-size: 15px; color: var(--accent); }
.quick__card i::after { content: " →"; }

/* ---------- Servizi a tab ---------- */
.svc { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.svc__list { display: flex; flex-direction: column; gap: 6px; }
.svc__tab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--muted); font: 600 17px/1.2 var(--font); text-align: left; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.svc__tab:hover { color: var(--text); background: var(--ink-2); }
.svc__tab[aria-selected="true"] { color: var(--text); background: var(--ink-2); border-color: var(--line-2); box-shadow: inset 4px 0 0 var(--accent); }
.svc__num { font: 700 15px/1 var(--font); color: var(--accent); min-width: 22px; }
.svc__panels { position: relative; }
.svc__panel { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--ink-2); }
.js .svc__panel[hidden] { display: none; }
.js .svc__panel { }
.svc__panel + .svc__panel { margin-top: 16px; }
.js .svc__panel + .svc__panel { margin-top: 0; }
.svc__icon { margin-bottom: 14px; }
.svc__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc__panel h3 { font-size: clamp(22px, 2.3vw, 28px); }
.svc__desc { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 64ch; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.svc__cols > div { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.svc__cols h4 { font-size: 15px; margin-bottom: 12px; }
.svc__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc__cols li { position: relative; padding-left: 22px; font-size: 15px; color: var(--muted); }
.svc__cols li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }

/* ---------- Per chi lavoriamo ---------- */
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); flex: none; }
.seg button { position: relative; z-index: 1; padding: 14px 24px; border: 0; background: transparent; font: 600 15px/1 var(--font); color: var(--paper-muted); cursor: pointer; border-radius: var(--radius); transition: color .3s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: var(--radius-sm); background: var(--accent); }
.seg[data-active="1"] .seg__thumb { transform: translateX(100%); }
.seg[data-active="2"] .seg__thumb { transform: translateX(200%); }
.no-js-hide { display: none; }
.aud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.js .aud[hidden] { display: none; }
.aud + .aud { margin-top: 16px; }
.js .aud + .aud { margin-top: 0; }
.use { padding: 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.use__icon { display: block; margin-bottom: 14px; }
.use__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.use h3 { font-size: 18px; margin-bottom: 8px; }
.use p { font-size: 15px; }

/* ---------- Copertura ---------- */
.zones { display: grid; gap: 16px; margin-top: 36px; }
.zone { padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.zone__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.zone h3 { font-size: 19px; }
.zone p { color: var(--muted); font-size: 15px; }
.provs { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.provs li { padding: 7px 14px; border-radius: var(--radius); background: rgba(215,38,30,.1); border: 1px solid rgba(215,38,30,.25); font-size: 14px; font-weight: 500; }
.handoff { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: h; }
.handoff li { counter-increment: h; position: relative; padding-left: 40px; font-size: 15px; color: var(--muted); }
.handoff li::before { content: counter(h); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); }
.handoff b { color: var(--text); }

/* ---------- Preventivo: consigli ---------- */
.quote__tips { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.quote__tips li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15px; }
.quote__tips li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.quote__tips b { color: var(--text); font-weight: 600; }
.faq .lead a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Brochure: barre del logo ---------- */
.footer { position: relative; }
.nav__h24 { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font); color: var(--muted); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.nav__h24 { transition: border-color .2s, color .2s; }
.nav__h24:hover { border-color: var(--text); color: var(--text); }
.nav__tel { color: var(--text); }
.nav__portal { font: 600 15px/1 var(--font); color: var(--text); padding: 12px 4px; }
.nav__portal:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mobile-menu .btn + .btn { margin-top: 8px; }

/* ---------- Servizi: gruppi ---------- */
.svc__group { margin: 18px 0 6px 4px; font: 600 14px/1.3 var(--font); color: var(--muted); }
.svc__group:first-child { margin-top: 0; }
.svc__tab { font-family: var(--font); font-weight: 500; font-size: 16px; }
.svc__cols h4 { font-family: var(--font); }

/* ---------- Perché noi ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reason { padding: 24px; background: var(--ink-2); border-radius: var(--radius); }
.reason svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.reason h3 { font-size: 18px; margin-bottom: 8px; }
.reason p { color: var(--muted); font-size: 16px; }

/* ---------- Copertura ---------- */
.section--dark2 { background: var(--ink-2); }
.section--dark2 + .section--light { border-top: 1px solid var(--line); }
.levels { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.levels li { display: flex; gap: 16px; align-items: flex-start; }
.levels h3 { font-size: 18px; margin-bottom: 4px; }
.levels p { color: var(--muted); font-size: 16px; }
.levels__dot { flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--accent); }
.levels__dot--2 { background: #80848C; }
.levels__dot--3 { background: transparent; border: 2px solid #80848C; }
.bases { display: flex; align-items: center; gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.bases small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.bases strong { font: 600 19px/1.2 var(--font); }
.bases > span { color: var(--muted); font-size: 24px; }
.bases__note { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* ---------- Chi siamo ---------- */
.about__copy .lead:first-child { margin-top: 0; }
.about__copy .lead + .lead { margin-top: 14px; }

/* ---------- Form ---------- */
.extras { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .split, .quote, .faq, .about { grid-template-columns: 1fr; gap: 40px; }
  .hero__inner { grid-template-columns: 1fr; }
  .quick__grid { grid-template-columns: 1fr 1fr; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle:last-child { grid-column: span 2; }
  .svc { grid-template-columns: 1fr; }
  .svc__list { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .svc__list::-webkit-scrollbar { display: none; }
  .svc__tab { flex: none; white-space: nowrap; }
  .aud { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .nav__h24, .nav__portal { display: none; }
    .section__head--row { flex-direction: column; align-items: flex-start; }
  .faq .section__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__cta .btn--sm { display: none; }
  .hero { padding-top: 12px; }
  .hero__actions .btn { width: 100%; }
  .grid-2, .fleet-grid, .aud, .svc__cols, .reasons { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg button { padding: 14px 8px; }
  .bases { flex-wrap: wrap; gap: 12px 20px; }
  .hero__facts { grid-template-columns: 1fr 1fr; padding-inline: 4px; }
  .quick__grid { grid-template-columns: 1fr; }
  .vehicle:last-child { grid-column: auto; }
  .brand__logo { height: 38px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .form__nav .btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Pagine legali ---------- */
.legal { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(30px, 3.9vw, 44px); }
.legal h1 em { font-size: 1em; }
.legal__meta { color: var(--muted); font-size: 14px; margin: 16px 0 48px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal-page .footer { padding-top: 0; }
.legal-page .footer__legal { margin-top: 0; }

/* Nav affollata su schermi medi: nascondi il numero, resta il badge H24 cliccabile */
@media (max-width: 1320px) and (min-width: 1081px) {
  .nav__tel { display: none; }
  .nav__links a { padding: 8px 10px; }
}
.footer__h4-gap { margin-top: 24px; }

/* ---------- Lavora con noi ---------- */
.jobs-band { padding: clamp(36px, 5vw, 56px) 0; }
.jobs-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.jobs-band .kicker { color: var(--muted); }
.jobs-band h2 { font-size: clamp(24px, 2.8vw, 32px); }
.jobs-band p:not(.kicker) { margin-top: 10px; font-size: 17px; color: var(--muted); max-width: 60ch; }
.jobs-hero { padding: clamp(40px, 6vw, 72px) 0; background: var(--ink-2); }
.jobs-hero h1 { font-size: clamp(30px, 3.9vw, 46px); line-height: 1.15; }
.jobs-hero .lead { max-width: 62ch; }
.jobs-page .footer { padding-top: 32px; }
.field select { width: 100%; height: 52px; padding: 0 44px 0 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23565A62' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; color: var(--text); font: 16px/1.4 var(--font); appearance: none; -webkit-appearance: none; }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,32,26,.15); }
.form__fields { display: grid; gap: 18px; }
.form__fields[hidden] { display: none; }
.extras--wrap { grid-template-columns: repeat(3, auto); }
.file { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px; border: 1px dashed var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color .2s; }
.file:hover, .file:focus-within { border-color: var(--accent); }
.file.is-invalid { border-color: #B3261E; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file__btn { flex: none; padding: 10px 16px; background: var(--ink-3); border-radius: var(--radius); font: 600 13px/1 var(--font); }
.file__name { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1080px) { .jobs-band__inner { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) { .extras--wrap { grid-template-columns: 1fr 1fr; } .jobs-band .btn { width: 100%; } }

/* ---------- Loghi clienti ---------- */
.logos { background: var(--paper); color: var(--paper-text); padding: 0 0 clamp(56px, 8vw, 96px); }
.logos .container { display: grid; gap: 40px; padding-top: 8px; }
.logos__label { font: 600 15px/1.3 var(--font); color: var(--paper-muted); margin-bottom: 16px; }
.logos__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logos__row li { position: relative; display: grid; place-items: center; height: 104px; padding: 20px 28px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.logos__row img { grid-area: 1 / 1; max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; opacity: .75; transition: opacity .3s; }
.logos__row .logos__color { opacity: 0; }
.logos__row li:hover .logos__mono { opacity: 0; }
.logos__row li:hover .logos__color { opacity: 1; }
.logos__row img.logos__tall { max-height: 72px; }
.logos__row li:hover img:only-child { opacity: 1; }
@media (max-width: 1080px) { .logos__row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .logos__row li { height: 96px; padding: 16px; } .logos__row img { max-height: 40px; } .logos__row img.logos__tall { max-height: 60px; } }

/* ---------- Mappa Calabria ---------- */
.cmap { margin: 0; width: 100%; max-width: 440px; justify-self: center; display: grid; gap: 16px; }
.cmap__svg { width: 100%; height: auto; max-height: 640px; overflow: visible; }
.cmap__prov { fill: #E4E6E9; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; cursor: pointer; transition: fill .25s; outline: none; }
.cmap__prov:hover, .cmap__prov:focus-visible, .cmap__prov.is-active { fill: rgba(200,32,26,.35); }
.cmap__prov:focus-visible { stroke: var(--text); stroke-width: 2; }
.cmap__city circle { fill: var(--text); }
.cmap__city text, .cmap__hq text { font: 600 13px/1 var(--font); fill: var(--text); paint-order: stroke; stroke: var(--ink-2); stroke-width: 4px; }
.cmap__cities, .cmap__hq { pointer-events: none; }
.cmap__dot { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.cmap__hq text { font-size: 14px; }
.cmap__info { padding: 18px 20px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); min-height: 112px; }
.cmap__info small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.cmap__info strong { display: block; font: 600 19px/1.25 var(--font); margin-bottom: 6px; }
.cmap__info span { color: var(--muted); font-size: 15px; }
.cmap__credit { font-size: 12px; color: var(--muted); }
@media (max-width: 1080px) { .cmap { max-width: 380px; order: 2; } }

/* ---------- Configuratore servizio ---------- */
.js-only { display: none; }
.js .js-only { display: block; }
.section--flush { padding-top: 0; }
.finder { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); background: var(--ink-2); border-radius: var(--radius); }
.finder h2 { font-size: clamp(24px, 2.8vw, 32px); }
.finder__progress { height: 4px; margin-top: 24px; background: var(--ink-3); border-radius: var(--radius); overflow: hidden; }
.finder__progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s var(--ease); }
.finder__body { position: relative; min-height: 300px; display: flex; flex-direction: column; }
.finder__q { border: 0; margin: 0; padding: 0; min-width: 0; }
.finder__q[hidden], .finder__result[hidden] { display: none; }
.finder__q legend { font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--font); margin-bottom: 20px; padding: 0; }
.finder__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finder__opts--3 { grid-template-columns: repeat(3, 1fr); }
.finder__opts label { position: relative; cursor: pointer; }
.finder__opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.finder__opts span { display: block; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.finder__opts label:hover span { border-color: var(--accent); }
.finder__opts input:checked + span { border-color: var(--accent); background: rgba(200,32,26,.08); }
.finder__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.finder__opts b { display: block; font: 600 16px/1.3 var(--font); }
.finder__opts small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.finder__nav { margin-top: auto; padding-top: 20px; }
.finder__back { background: none; border: 0; color: var(--muted); font: 600 14px/1 var(--font); cursor: pointer; padding: 8px 0; }
.finder__back:hover { color: var(--text); }
.finder__result { outline: none; }
.finder__result-label { font: 600 14px/1.3 var(--font); color: var(--accent); margin-bottom: 8px; }
.finder__result h3 { font-size: clamp(22px, 2.3vw, 28px); }
.finder__result-desc { color: var(--muted); margin-top: 10px; font-size: 17px; }
.finder__facts { display: grid; gap: 1px; margin: 22px 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.finder__facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 16px; background: var(--ink); }
.finder__facts dt { font-size: 14px; color: var(--muted); }
.finder__facts dd { margin: 0; font-size: 15px; }
.finder__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1080px) { .finder { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .finder__opts, .finder__opts--3 { grid-template-columns: 1fr; }
  .finder__opts span { padding: 14px 16px; }
  .finder__facts > div { grid-template-columns: 1fr; gap: 4px; }
  .finder__actions .btn { width: 100%; }
}
