:root {
  --blue: #0b4ea2;
  --blue-dark: #083a7a;
  --ink: #0e1b2e;
  --muted: #4a5a70;
  --bg: #fbfcfe;
  --tint: #eef3fa;
  --line: #d5deea;
  --r: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section__sub { color: var(--muted); max-width: 60ch; margin-top: 14px; font-size: 1.08rem; }
.textlink { font-weight: 600; text-underline-offset: 3px; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: var(--r); border: 2px solid var(--blue);
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--tint); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.band :focus-visible, .aud--fill :focus-visible { outline-color: #fff; }
.btn--primary:focus-visible, .quickbar__main:focus-visible { outline-color: var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 11;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}
.skip:focus { left: 0; }

/* Navigazione */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251, 252, 254, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav__logo img { height: 48px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap; }
.nav__links a:hover { color: var(--blue); }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lang a { white-space: nowrap; padding: 7px 10px; font-size: .85rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang a:focus-visible { outline-offset: -3px; }
.lang a:hover { color: var(--blue); }
.lang a[aria-current="true"] { background: var(--blue); color: #fff; }
.nav__links a[aria-current="page"] { color: var(--blue); }
.nav__cta { padding: 10px 18px; }
.nav__toggle { display: none; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 7px 12px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.nav__links-cta { display: none; }
.todo { color: var(--muted); font-style: italic; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); margin-top: 22px; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Segnaposto foto: sparisce quando la foto esiste */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: linear-gradient(135deg, #0b4ea2, #1668c7 60%, #5b9be6);
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background-size: cover; background-position: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo span { color: #fff; font-weight: 600; font-size: .95rem; padding: 0 20px; text-align: center; opacity: .92; }
.photo.has-photo span { display: none; }
.photo--hero { aspect-ratio: 3 / 2; }

/* Numeri */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 34px; padding-bottom: 34px; }
.facts strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; }

/* Servizi */
.services { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(4, auto); gap: 20px; margin-top: 44px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
a.service { display: block; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.service:hover { border-color: var(--blue); box-shadow: 0 10px 28px rgba(11, 78, 162, .10); }
.service p { color: var(--muted); margin-top: 10px; }
.service .more { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 700; font-size: .95rem; }
.service--big .more { padding: 0 30px; }
.service--big { grid-row: 1 / span 4; padding: 0 0 30px; overflow: hidden; }
.service--big .photo { border-radius: 0; aspect-ratio: 16 / 10; margin-bottom: 26px; }
.service--big h3 { font-size: 1.6rem; }
.service--big h3, .service--big p { padding: 0 30px; }
a.service--thumb { display: grid; grid-template-columns: 112px 1fr; column-gap: 20px; align-content: start; }
.service--thumb .photo { grid-row: 1 / span 3; aspect-ratio: 1; }
.service--thumb > :not(.photo) { grid-column: 2; }
.service--thumb .more { justify-self: start; }

/* Linee: due gruppi, Italia ed Estero */
.groups { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: 40px; align-items: start; }
.group { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--r); padding: 30px 30px 14px; }
.group--est { border-top-color: var(--ink); }
.group h3 { font-size: 1.7rem; }
.group > p { color: var(--muted); margin-top: 8px; }
.group ul { list-style: none; margin: 20px 0 0; padding: 0; }
.group li { border-top: 1px solid var(--line); }
.group a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 17px 0; color: inherit; text-decoration: none; }
.group a strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.group a strong::after { content: " \2192"; color: var(--blue); }
.group a span { color: var(--muted); font-size: .92rem; text-align: right; }
.group a:hover strong { color: var(--blue); }
.lines__more { margin-top: 28px; }

/* Flotta */
.fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.fleet figure { margin: 0; }
.fleet figcaption { margin-top: 14px; }
.fleet strong { display: block; font-size: 1.08rem; }
.fleet figcaption span { color: var(--muted); font-size: .95rem; }

/* Perché noi */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.why__lead p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.why__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.why__list dt { font-weight: 800; font-size: 1.12rem; padding-top: 14px; border-top: 3px solid var(--blue); }
.why__list dd { margin: 8px 0 0; color: var(--muted); }

/* Preventivo */
.quote { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
address { font-style: normal; margin-top: 30px; display: grid; gap: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .93rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1.5px solid #9fb0c6; border-radius: var(--r); padding: 11px 13px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(11, 78, 162, .2); outline-offset: 0; }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__hint { color: var(--muted); font-size: .9rem; }
.form__error { color: #b3261e; font-weight: 600; }
.form__ok { color: #17663a; font-weight: 600; }

/* Testata delle pagine interne */
.pagehead { background: var(--tint); padding: 44px 0 52px; }
.pagehead h1 { font-size: clamp(2rem, 3.8vw, 3rem); max-width: 22ch; }
.pagehead .lead { margin-top: 16px; max-width: 62ch; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }
.wrap.narrow { max-width: 1240px; }
.wrap.narrow > * { max-width: 860px; }

/* Pagina servizio */
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.points { margin: 0; display: grid; gap: 28px; }
.points dt { font-weight: 800; font-size: 1.2rem; padding-top: 14px; border-top: 3px solid var(--blue); }
.points dd { margin: 8px 0 0; color: var(--muted); }
.linklist { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.linklist a { display: block; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; text-decoration: none; }
.linklist a:hover { border-color: var(--blue); }

/* Pagina linea */
.linefacts { margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.linefacts dt { font-size: .9rem; color: var(--muted); padding-top: 12px; border-top: 3px solid var(--blue); }
.linefacts dd { margin: 6px 0 0; font-weight: 800; font-size: 1.1rem; }
.prose { font-size: 1.12rem; max-width: 62ch; margin-bottom: 22px; }
.why__lead .textlink { display: inline-block; margin-top: 20px; }
.fleet--page { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
.fleet--page strong { font-size: 1.3rem; }
.fleet figure:not(:has(.photo)) figcaption { margin-top: 0; padding-top: 16px; border-top: 3px solid var(--blue); }
.photo--fleet + .fleet { margin-top: 40px; }
@media (min-width: 821px) {
  .photo--fleet { aspect-ratio: 21 / 8; }
  .photo--fleet img { object-position: center 38%; }
}
.detail:not(:has(.photo)) { grid-template-columns: 1fr; max-width: 860px; }

/* Per chi lavoriamo */
.auds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.aud { border: 1px solid var(--line); border-radius: var(--r); padding: 34px; background: #fff; display: flex; flex-direction: column; }
.aud h3 { font-size: 1.7rem; }
.aud p { color: var(--muted); margin: 12px 0 24px; font-size: 1.08rem; flex: 1; }
.aud a { font-weight: 700; align-self: flex-start; text-underline-offset: 3px; }
.aud--fill { background: var(--blue); border-color: var(--blue); color: #fff; }
.aud--fill p { color: #fff; opacity: .92; }
.aud--fill a { color: #fff; }
.facts small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.facts a { color: inherit; }
.qr { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); }

/* Suggerimento lingua */
.langhint { display: flex; justify-content: center; align-items: center; gap: 16px; background: var(--ink); color: #fff; padding: 10px 16px; font-size: .95rem; }
.langhint a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.langhint button { background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: var(--r); padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; }

/* Dove siamo */
.loc { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.loc address { margin: 20px 0 24px; }
.map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map__bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: rgba(14, 27, 46, .82); border-radius: var(--r); padding: 10px 12px; }
.map__bar .btn { padding: 9px 16px; font-size: .95rem; }
.map__bar p { color: #fff; font-size: .82rem; max-width: 46ch; margin: 0; }
.map__credit { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .85); border-radius: 4px; padding: 1px 6px; font-size: .72rem; color: var(--muted); }
.map__credit a { color: inherit; }
.map--on { border: 0; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Come funziona */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 62px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: -16px; height: 2px; background: var(--line); }
.steps p { color: var(--muted); margin-top: 8px; }

/* Contatti: cosa serve e persone */
.need { background: var(--tint); border-radius: var(--r); padding: 24px 26px; }
.need h2, .people h2 { font-size: 1.15rem; letter-spacing: 0; }
.need ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.people { margin-top: 30px; }
.people ul { list-style: none; margin: 12px 0 0; padding: 0; }
.people li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.people li span { grid-row: 2; color: var(--muted); font-size: .92rem; }
.people li a { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; }

/* Barra fissa su telefono */
.quickbar { display: none; }

/* Pagine servizio e linea: elenchi e collegamenti */
.crumbs .crumbs__here { margin: 0; color: var(--ink); }
.extra + .extra { margin-top: 40px; }
.extra p { color: var(--muted); max-width: 62ch; margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.narrow > h2 + .ticks { margin-bottom: 8px; }
.linklist__h { margin-top: 36px; }
.linklist + p { margin-top: 20px; }
.pagehead + .section .services { margin-top: 0; }
@media (min-width: 821px) {
  .service--big { display: flex; flex-direction: column; }
  .service--big .photo { flex: 1 1 auto; aspect-ratio: auto; min-height: 260px; }
}
.callbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; gap: 14px; align-content: start; }
.callbox p { color: var(--muted); }
.callbox .btn { justify-self: start; }

/* Fascia finale */
.band { background: var(--blue); color: #fff; padding: 56px 0; }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band p { margin-top: 8px; opacity: .92; }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; }
.btn--light:hover { background: var(--tint); }

/* Note legali */
.legal h2 { font-size: 1.3rem; margin-top: 34px; }
.legal p { margin-top: 10px; color: var(--muted); max-width: 68ch; }
.legal .legal__upd { margin-top: 40px; font-size: .9rem; }
.notice { background: #fff6da; border: 1px solid #e6c65c; color: #5c4a00 !important; border-radius: var(--r); padding: 14px 18px; font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 52px 0 44px; font-size: .95rem; color: var(--muted); }
.footer__in { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; }
.footer img { height: 38px; width: auto; margin-bottom: 16px; }
.footer__brand p + p { margin-top: 12px; }
.footer h3 { font-size: .95rem; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--blue); text-decoration: underline; }

/* Comparsa allo scorrimento: guida l'occhio sezione per sezione */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .nav__toggle { display: block; order: 3; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; box-shadow: 0 12px 24px rgba(14, 27, 46, .08);
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links-cta { display: block; color: var(--blue) !important; }
  .lang { margin-left: auto; }
  .fleet { grid-template-columns: 1fr 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 48px; }
  .hero__in, .groups, .why, .quote, .services, .auds { grid-template-columns: 1fr; gap: 32px; }
  .auds { gap: 16px; }
  .loc { grid-template-columns: 1fr; gap: 28px; }
  .map { aspect-ratio: 4 / 3; }
  .map__bar { gap: 8px; padding: 8px 10px; }
  .map__bar p { font-size: .72rem; }
  .aud { padding: 24px 22px; }
  .groups { gap: 16px; }
  .group { padding: 22px 20px 8px; }
  .group a { flex-direction: column; gap: 2px; }
  .group a span { text-align: left; }
  .services { gap: 16px; }
  .service--big { grid-row: auto; }
  a.service--thumb { grid-template-columns: 76px 1fr; column-gap: 16px; padding: 20px; }
  .facts__in { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav__in { gap: 12px; height: 64px; }
  .nav__logo img { height: 30px; }
  .nav__cta { display: none; }
  .nav__links { padding: 8px 16px 16px; }
  .lang a { padding: 7px 6px; font-size: .8rem; }
  .nav__toggle { padding: 7px 9px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .why__list { grid-template-columns: 1fr; }
  .detail, .footer__in { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .steps li { padding: 0 0 0 62px; min-height: 46px; }
  .steps li:not(:last-child)::after { top: 52px; left: 22px; right: auto; bottom: -20px; width: 2px; height: auto; }
  .quickbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -6px 18px rgba(14, 27, 46, .08); }
  .quickbar a { flex: 1; text-align: center; padding: 12px 8px; border-radius: var(--r); border: 2px solid var(--blue); color: var(--blue); font-weight: 700; text-decoration: none; }
  .quickbar a.quickbar__main { background: var(--blue); color: #fff; }
  body { padding-bottom: 72px; }
  .linefacts { grid-template-columns: 1fr 1fr; }
  .fleet--page { grid-template-columns: 1fr; }
  .pagehead { padding: 28px 0 36px; }
  .band { padding: 40px 0; }
}
@media (max-width: 350px) {
  .nav__in { gap: 8px; }
  .nav__logo img { height: 24px; }
  .lang a { padding: 6px 4px; font-size: .75rem; }
  .nav__toggle { padding: 6px 7px; }
}
