/* ==========================================================================
   Autoroute — Modern Design System (facelift)
   Design tokens + base + components. Additive: loaded alongside/after the
   legacy stylesheet during rollout, will fully replace it once all pages
   are ported.
   ========================================================================== */

:root {
  /* Brand */
  --brand:        #0B57D0;   /* primary interactive blue (modernized from legacy #064896) */
  --brand-700:    #0A46A8;
  --brand-deep:   #0A2A5E;   /* legacy-adjacent navy, used for colored header state */
  --navy-950:     #050D1F;   /* near-black navy, footer / deep panels */
  --navy-900:     #0A1730;
  --accent:       #14D9C4;   /* teal/cyan accent — tech + transit + sustainability */
  --accent-600:   #0FB9A6;
  --amber:        #FFB020;   /* sparing use: small highlights, underlines */
  --ai-green:     #4CFF8C;   /* fluo green — AI Lab accent, used sparingly for that one CTA */
  --ai-green-700: #1FCF66;

  /* Neutrals */
  --ink:          #0B1220;
  --slate-700:    #33405C;
  --slate-500:    #5B6B8C;
  --slate-400:    #8592AC;
  --line:         #E4E9F2;
  --line-dark:    rgba(255,255,255,.12);
  --surface:      #FFFFFF;
  --surface-alt:  #F4F7FB;
  --surface-dark: #0A1730;

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, #0B57D0 0%, #14D9C4 100%);
  --grad-hero:    linear-gradient(180deg, rgba(2,6,16,.45) 0%, rgba(2,6,16,.6) 45%, rgba(2,6,16,.85) 80%, #000 100%);
  --grad-panel:   linear-gradient(120deg, rgba(5,13,31,.94) 0%, rgba(10,42,94,.86) 100%);

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11,22,45,.06);
  --shadow-md: 0 12px 32px rgba(11,22,45,.10);
  --shadow-lg: 0 24px 64px rgba(11,22,45,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
.mtheme, .mtheme * , .mtheme *::before, .mtheme *::after { box-sizing: border-box; }
.mtheme {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
.mtheme img, .mtheme video { max-width: 100%; display: block; }
:where(.mtheme a) { color: inherit; text-decoration: none; }
.mtheme ul { margin: 0; padding: 0; list-style: none; }
.mtheme h1, .mtheme h2, .mtheme h3, .mtheme h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
.m-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.m-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.m-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.m-eyebrow.light { color: var(--accent); }

/* ---------- Buttons ---------- */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.m-btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); flex-shrink: 0; }
.m-btn:hover svg { transform: translateX(3px); }
.m-btn:hover { transform: translateY(-2px); }

.m-btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(11,87,208,.28); }
.m-btn--primary:hover { box-shadow: 0 14px 32px rgba(11,87,208,.38); }

.m-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.m-btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.m-btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.m-btn--ghost-dark:hover { background: var(--surface-alt); border-color: var(--slate-400); }

.m-btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.m-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.m-header .m-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.m-header.is-scrolled {
  padding: 12px 0;
  background: rgba(5,13,31,.88);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px rgba(5,13,31,.25);
}
.m-logo { display: flex; align-items: center; gap: 10px; }
.m-logo img { height: 34px; width: auto; }

.m-nav { display: flex; align-items: center; gap: 4px; }
.m-nav > li { position: relative; }
.m-nav > li > a, .m-nav > li > button {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  background: none; border: none; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.m-nav > li > a:hover, .m-nav > li > button:hover,
.m-nav > li.is-open > button { background: rgba(255,255,255,.12); }
.m-nav > li > a.is-active { background: rgba(255,255,255,.16); }
.m-mobile-nav a.is-active { color: var(--accent); }
.m-nav > li > button svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.m-nav > li.is-open > button svg { transform: rotate(180deg); }

.m-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Autoroute Lab — standalone AI-flavored CTA, deliberately distinct from the rest of the nav */
.m-lab-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--ink);
  background: linear-gradient(100deg, var(--ai-green) 0%, #A6FFC8 100%);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(76,255,140,.25), 0 8px 20px rgba(76,255,140,.22);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.m-lab-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(76,255,140,.4), 0 12px 26px rgba(76,255,140,.32); }
.m-lab-btn .m-lab-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--ai-green);
  transition: transform .25s var(--ease);
}
.m-lab-btn .m-lab-icon svg { width: 13px; height: 13px; }
.m-lab-btn:hover .m-lab-icon { transform: rotate(45deg); }

/* language switcher */
.m-lang { position: relative; }
.m-lang > button {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.m-lang > button:hover { background: rgba(255,255,255,.18); }
.m-lang > button svg { width: 11px; height: 11px; }
.m-lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 168px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.m-lang.is-open .m-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.m-lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink);
}
.m-lang-menu a:hover { background: var(--surface-alt); }
.m-lang-menu a.is-active { color: var(--brand); font-weight: 700; }

/* custom rounded flag icons (no external assets — CSS-drawn) */
.m-flag {
  display: inline-block; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.m-flag--sm { width: 16px; height: 16px; }
.m-flag--it { background-image: linear-gradient(90deg, #009246 0 33%, #fff 33% 66%, #CE2B37 66% 100%); }
.m-flag--fr { background-image: linear-gradient(90deg, #0055A4 0 33%, #fff 33% 66%, #EF4135 66% 100%); }
.m-flag--es { background-image: linear-gradient(180deg, #AA151B 0 25%, #F1BF00 25% 75%, #AA151B 75% 100%); }
.m-flag--de { background-image: linear-gradient(180deg, #000 0 33%, #DD0000 33% 66%, #FFCE00 66% 100%); }
.m-flag--gb {
  background-color: #00247d;
  /* file statico invece di data URI: la CSP del sito blocca gli URI data: su img-src/default-src */
  background-image: url("../images/flags/gb.svg");
}

/* mega menu */
.m-mega {
  position: fixed;
  left: 0; right: 0; top: 72px;
  background: #fff;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px 0 44px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.m-nav > li.is-open .m-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.m-mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.m-mega-col-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--slate-400); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 14px;
}
.m-mega-col a {
  display: block; padding: 9px 0; font-size: 14.5px; color: var(--slate-700); font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.m-mega-col a:hover { color: var(--brand); padding-left: 4px; }
.m-mega-highlight {
  background: var(--surface-alt); border-radius: var(--radius-md); padding: 24px;
}
.m-mega-highlight img { border-radius: var(--radius-sm); margin-bottom: 14px; aspect-ratio: 16/10; object-fit: cover; }
.m-mega-highlight h4 { font-size: 16px; margin-bottom: 6px; }
.m-mega-highlight p { font-size: 13.5px; color: var(--slate-500); margin: 0 0 12px; }

/* ---------- Hero ---------- */
.m-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-950);
}
.m-hero-video, .m-hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.72) saturate(1.05);
}
.m-hero::after {
  content: ''; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none;
}
.m-hero-content {
  position: relative; z-index: 2; width: 100%;
  padding-bottom: 96px;
  padding-top: 180px;
}
.m-hero-content .m-eyebrow { color: var(--accent); margin-bottom: 20px; }
.m-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.2vw, 68px);
  max-width: 820px;
  margin-bottom: 22px;
}
.m-hero p {
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 560px;
  margin-bottom: 36px;
}
.m-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.m-trustbar {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 32px;
}
.m-trustbar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.m-trust-stat { color: #fff; }
.m-trust-stat strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-trust-stat span { font-size: 13.5px; color: rgba(255,255,255,.68); }

/* ---------- Video showcase (kinetic brand film, no competing copy) ---------- */
.m-showcase {
  position: relative;
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--navy-950);
}
.m-showcase video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-showcase::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(5,13,31,.85) 100%);
  pointer-events: none;
}
/* ---------- Cookie banner (technical cookies) ---------- */
.m-cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 300;
  max-width: 760px; margin: 0 auto;
  background: #fff; color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  transform: translateY(140%);
  transition: transform .4s var(--ease);
}
.m-cookie.is-visible { transform: translateY(0); }
.m-cookie p { font-size: 13.5px; color: var(--slate-500); margin: 0; flex: 1 1 380px; line-height: 1.6; }
.m-cookie p a { color: var(--brand); font-weight: 600; }
.m-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Floating contact ---------- */
.m-floating-contact {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy-950); color: #fff;
  padding: 14px 20px 14px 14px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(5,13,31,.35);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  opacity: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: m-fc-enter .9s cubic-bezier(.34,1.56,.64,1) .7s both;
}
.m-floating-contact:hover { transform: translateY(-3px) !important; box-shadow: 0 16px 36px rgba(5,13,31,.45); }
.m-floating-contact .m-fc-icon {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.m-floating-contact .m-fc-icon::before {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: m-fc-ping 2.4s ease-out 2s infinite;
}
.m-floating-contact .m-fc-icon svg { width: 16px; height: 16px; color: #fff; }

@keyframes m-fc-enter {
  0%   { opacity: 0; transform: translateY(50px) scale(.5) rotate(-12deg); }
  55%  { opacity: 1; transform: translateY(-8px) scale(1.06) rotate(3deg); }
  75%  { transform: translateY(2px) scale(.99) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes m-fc-ping {
  0%   { transform: scale(.8); opacity: .8; }
  80%  { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .m-floating-contact { animation: none; opacity: 1; }
  .m-floating-contact .m-fc-icon::before { animation: none; }
}
@media (max-width: 640px) {
  .m-floating-contact span { display: none; }
  .m-floating-contact { padding: 14px; }
  .m-cookie { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}

/* ---------- Global search ---------- */
.m-search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.m-search-toggle:hover { background: rgba(255,255,255,.18); }
.m-search-toggle svg { width: 17px; height: 17px; }
.m-search-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(5,13,31,.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 24px 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.m-search-overlay.is-open { opacity: 1; visibility: visible; }
.m-search-box {
  width: 100%; max-width: 640px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  transform: translateY(-16px);
  transition: transform .25s var(--ease);
}
.m-search-overlay.is-open .m-search-box { transform: translateY(0); }
.m-search-input-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.m-search-input-row svg { width: 20px; height: 20px; color: var(--slate-400); flex-shrink: 0; }
.m-search-input-row input {
  flex: 1; border: none; outline: none; font-size: 17px; font-family: var(--font-body); color: var(--ink);
}
.m-search-close {
  width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--surface-alt);
  color: var(--slate-500); cursor: pointer; flex-shrink: 0;
}
.m-search-suggestions { border-top: 1px solid var(--line); padding: 8px; max-height: 50vh; overflow-y: auto; }
.m-search-suggestions .m-search-hint {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  color: var(--slate-400); padding: 10px 12px 6px;
}
.m-search-suggestions a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.m-search-suggestions a:hover, .m-search-suggestions a.is-active { background: var(--surface-alt); color: var(--brand); }
.m-search-suggestions a svg { width: 15px; height: 15px; color: var(--slate-400); flex-shrink: 0; }

/* ---------- Generic scroll-reveal utility (reused across pages) ---------- */
.m-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.m-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Inner-page hero (image-led, shorter than homepage hero) ---------- */
.m-page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-950) center/cover no-repeat;
  padding-top: 140px;
}
.m-page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,6,16,.55) 0%, rgba(2,6,16,.65) 40%, #000 100%);
  pointer-events: none;
}
.m-page-hero-content { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; }
.m-page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 54px); max-width: 780px; margin-bottom: 18px; }
.m-page-hero p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 600px; margin-bottom: 28px; }
.m-page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Feature row: alternating image / text (case studies, explainers) ---------- */
.m-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.m-feature-row:last-child { border-bottom: none; }
.m-feature-row-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.m-feature-row-media img, .m-feature-row-media video { width: 100%; height: 100%; object-fit: cover; }
.m-feature-row-text h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 16px; }
.m-feature-row-text p { color: var(--slate-500); font-size: 16px; margin: 0 0 22px; }
.m-feature-row--reverse .m-feature-row-media { order: 2; }
.m-feature-row--reverse .m-feature-row-text { order: 1; }

/* ---------- Checklist (replaces inline check-mark spans from legacy copy) ---------- */
.m-checklist { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.m-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--slate-700); }
.m-checklist li::before {
  content: '✓';
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%; background: var(--grad-brand);
  color: #fff; font-size: 12px; font-weight: 700;
  text-align: center; line-height: 20px;
}

/* ---------- Logo grid (partners / integrations) ---------- */
.m-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.m-logo-grid img, .m-logo-grid a {
  display: flex; align-items: center; justify-content: center;
  height: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.m-logo-grid img { object-fit: contain; width: 100%; height: 100%; }
.m-logo-grid a img { height: auto; box-shadow: none; border: none; padding: 0; }
.m-logo-grid a:hover, .m-logo-grid img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-400);
}

/* ---------- Simple stat band (reuses trust-stat look on light bg) ---------- */
.m-stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; }
.m-stat-band .m-trust-stat strong { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-stat-band .m-trust-stat span { color: var(--slate-500); }

/* ---------- Sections ---------- */
.m-section { padding: 108px 0; }
.m-section--alt { background: var(--surface-alt); }
.m-section-head { max-width: 640px; margin-bottom: 56px; }
.m-section-head h2 { font-size: clamp(28px, 3.2vw, 42px); margin-top: 14px; }
.m-section-head p { color: var(--slate-500); font-size: 17px; margin-top: 16px; }
.m-section-head.center { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
.m-section-head.center .m-eyebrow::before { display: none; }
.m-section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.m-section-head.split > div:first-child { max-width: 620px; }

/* solutions cards */
.m-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.m-solution-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.m-solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.m-solution-icon {
  width: 76px; height: 76px; border-radius: 20px;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
  padding: 14px;
}
.m-solution-icon img { width: 100%; height: 100%; object-fit: contain; }
.m-solution-card h3 { font-size: 20px; margin-bottom: 10px; }
.m-solution-card p { color: var(--slate-500); font-size: 15px; margin: 0 0 18px; }
.m-link-arrow { font-size: 14px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.m-link-arrow svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s var(--ease); }
.m-link-arrow:hover svg, .m-solution-card:hover .m-link-arrow svg { transform: translateX(4px); }

/* dark statement / video panel */
.m-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.m-panel-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.m-panel::before { content: ''; position: absolute; inset: 0; background: var(--grad-panel); z-index: -1; }
.m-panel-content { padding: 72px; max-width: 620px; }
.m-panel-content h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.m-panel-content p { color: rgba(255,255,255,.78); font-size: 16px; margin-bottom: 30px; }

/* sectors — primary passenger-transport bento (photo-led, high visual weight) */
.m-sectors-primary {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  grid-template-rows: repeat(2, 230px);
  gap: 20px;
  margin-bottom: 56px;
}
.m-sector-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: 100%;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: background-size .5s var(--ease);
}
.m-sector-feature-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform .5s var(--ease);
}
.m-sector-feature:hover .m-sector-feature-media { transform: scale(1.08); }
.m-sector-feature::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,13,31,0) 35%, rgba(5,13,31,.88) 100%);
  transition: background .3s var(--ease);
}
.m-sector-feature:hover { background-size: 112%; }
.m-sector-feature:hover::before { background: linear-gradient(180deg, rgba(5,13,31,.1) 0%, rgba(5,13,31,.92) 100%); }
.m-sector-feature-content { position: relative; z-index: 2; padding: 26px; width: 100%; }
.m-sector-feature-content h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.m-sector-feature-content .m-link-arrow {
  color: #fff; opacity: 0; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.m-sector-feature:hover .m-link-arrow { opacity: 1; transform: translateY(0); }
.m-sector-feature:nth-of-type(1) { grid-column: 1; grid-row: 1 / 3; }
.m-sector-feature:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.m-sector-feature:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.m-sector-feature:nth-of-type(4) { grid-column: 3; grid-row: 1 / 3; }

/* sectors — secondary/adjacent lines of business (deliberately lighter weight) */
.m-sectors-secondary { border-top: 1px solid var(--line); padding-top: 32px; }
.m-sectors-secondary-label {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--slate-400);
  margin-bottom: 16px;
}
.m-sectors-secondary-row { display: flex; flex-wrap: wrap; gap: 14px; }
.m-sector-tile-sm {
  display: flex; align-items: center;
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.m-sector-tile-sm:hover { background: #fff; border-color: var(--slate-400); }
.m-sector-tile-sm span { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--slate-700); }

/* legacy sectors grid (kept for other pages until ported) */
.m-sectors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.m-sector-tile {
  background: linear-gradient(155deg, #0E2350 0%, var(--navy-950) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 30px 24px; text-align: left;
  display: flex; flex-direction: column; gap: 20px;
  flex: 1 1 calc(25% - 20px);
  min-width: 210px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.m-sector-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(20,217,196,.16), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.m-sector-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(20,217,196,.4); }
.m-sector-tile:hover::before { opacity: 1; }
.m-sector-tile img { width: 52px; height: 52px; object-fit: contain; position: relative; z-index: 1; }
.m-sector-tile span { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: #fff; position: relative; z-index: 1; }

/* news / stories */
.m-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.m-news-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 3/4; background: var(--navy-900);
  opacity: 0; transform: translateY(36px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s var(--ease);
}
.m-news-card.is-visible { opacity: 1; transform: translateY(0); }
.m-news-card:hover { box-shadow: var(--shadow-lg); }
.m-news-card img, .m-news-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.m-news-card:hover img, .m-news-card:hover video { transform: scale(1.06); }
.m-news-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,13,31,0) 40%, rgba(5,13,31,.88) 100%);
}
.m-news-card-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff; }
.m-news-card-content h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.m-news-card-content span { font-size: 12.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.m-news-loading { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--slate-400); font-family: var(--font-display); font-weight: 600; }

/* Story card — used on the News & Storie di successo archive. Handles both
   items with media and text-only items (production's stories.cfm shows both). */
.m-story-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  height: 100%;
}
.m-story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); cursor: pointer; }
.m-story-media { position: relative; aspect-ratio: 16/10; background: var(--navy-950); overflow: hidden; }
.m-story-media img, .m-story-media video { width: 100%; height: 100%; object-fit: cover; }
.m-story-media--text {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand);
}
.m-story-media--text img { width: 88px; height: auto; object-fit: contain; opacity: .92; }
.m-story-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.m-story-date { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 10px; }
.m-story-body h4 { font-size: 18px; margin-bottom: 10px; line-height: 1.3; }
.m-story-excerpt {
  color: var(--slate-500); font-size: 14.5px; line-height: 1.6; margin-bottom: 20px;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-story-excerpt br { display: block; content: ''; margin-top: 4px; }
.m-story-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.m-story-share { display: flex; gap: 8px; }
.m-story-share a {
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; color: var(--slate-500);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.m-story-share a:hover { background: var(--brand); color: #fff; }
.m-story-share svg { width: 14px; height: 14px; }
.m-statement h2, .m-feature-row-text h3, .m-module-tile h4 { scroll-margin-top: 90px; }

/* CTA band */
.m-cta {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.m-cta::before {
  content: ''; position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(20,217,196,.22), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(11,87,208,.35), transparent 55%);
}
.m-cta-inner { position: relative; z-index: 1; }
.m-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 46px); max-width: 780px; margin: 0 auto 32px; }
.m-cta h2 mark { background: none; color: var(--accent); }
.m-cta .m-btn { margin: 0 auto; }

/* ---------- Footer ---------- */
.m-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 80px 0 32px; }
.m-footer-payoff {
  position: relative;
  overflow: hidden;
  padding-bottom: 64px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.m-footer-payoff::before {
  content: 'AUTOROUTE';
  position: absolute;
  top: 50%; left: -2%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(80px, 13vw, 220px);
  letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.m-footer-payoff-inner { position: relative; z-index: 1; }
.m-footer-payoff h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  max-width: 880px;
  margin: 0;
  background: linear-gradient(100deg, #fff 0%, var(--accent) 35%, var(--brand) 55%, #fff 80%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: m-payoff-shimmer 7s linear infinite;
}
@keyframes m-payoff-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: -220% center; }
}
.m-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.m-footer-brand p { font-size: 14.5px; margin: 18px 0 24px; max-width: 300px; color: rgba(255,255,255,.55); }
.m-footer-col h5 { font-family: var(--font-display); color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.m-footer-col a, .m-footer-col div { display: block; font-size: 14.5px; margin-bottom: 12px; color: rgba(255,255,255,.62); transition: color .2s; }
.m-footer-col a:hover { color: #fff; }
.m-footer-badges { display: flex; gap: 10px; margin-top: 8px; }
.m-footer-badges span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent);
  border: 1px solid rgba(20,217,196,.4); border-radius: 999px; padding: 6px 12px;
}
.m-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 16px; }
.m-footer-bottom small { font-size: 13px; color: rgba(255,255,255,.45); }
.m-social { display: flex; gap: 10px; }
.m-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; transition: background-color .2s, border-color .2s; }
.m-social a:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.m-social img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

/* ---------- Mobile nav ---------- */
.m-burger {
  display: none;
  background: none; border: none; color: #fff; cursor: pointer;
  padding: 8px; margin-left: 4px;
}
.m-burger svg { width: 24px; height: 24px; display: block; }
.m-mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-950);
  padding: 100px 28px 40px;
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.m-mobile-nav.is-open { transform: translateY(0); }
.m-mobile-nav-logo { display: block; margin-bottom: 32px; }
.m-mobile-nav-logo img { height: 28px; width: auto; }
.m-mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.m-mobile-nav-close svg { width: 16px; height: 16px; }
.m-mobile-nav a {
  display: block; color: #fff; font-family: var(--font-display);
  font-size: 21px; font-weight: 600; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.m-mobile-search-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: none; cursor: pointer;
  color: #fff; font-family: var(--font-display);
  font-size: 21px; font-weight: 600; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.m-mobile-search-btn svg { width: 20px; height: 20px; flex-shrink: 0; color: rgba(255,255,255,.6); }

/* mobile nav accordion group (second-level links under "Soluzioni e Prodotti") */
.m-mobile-nav-group { border-bottom: 1px solid rgba(255,255,255,.12); }
.m-mobile-nav-parent {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  color: #fff; font-family: var(--font-display);
  font-size: 21px; font-weight: 600; padding: 16px 0;
}
.m-mobile-nav-parent svg { width: 12px; height: 12px; flex-shrink: 0; margin-left: 12px; transition: transform .2s var(--ease); }
.m-mobile-nav-group.is-open .m-mobile-nav-parent svg { transform: rotate(180deg); }
.m-mobile-submenu { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.m-mobile-nav-group.is-open .m-mobile-submenu { max-height: 900px; padding-bottom: 10px; }
.m-mobile-submenu-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: rgba(255,255,255,.4); padding: 14px 0 4px;
}
.m-mobile-nav .m-mobile-submenu a {
  display: block; color: rgba(255,255,255,.82); font-family: var(--font-body);
  font-size: 16px; font-weight: 500; padding: 10px 0 10px 16px;
  border-bottom: none; position: relative;
}
.m-mobile-submenu a::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}

/* mobile bottom row: compact language dropdown ("a tendina") + social */
.m-mobile-bottom-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.m-mobile-lang-dropdown { position: relative; }
.m-mobile-lang-dropdown > button {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 11px 16px; cursor: pointer;
  color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 600;
}
.m-mobile-lang-dropdown > button svg { width: 10px; height: 10px; transition: transform .2s var(--ease); flex-shrink: 0; }
.m-mobile-lang-dropdown.is-open > button svg { transform: rotate(180deg); }
.m-mobile-lang-menu {
  position: absolute; left: 0; bottom: calc(100% + 8px);
  min-width: 180px;
  max-height: 0; overflow: hidden;
  background: #12203f; border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: max-height .3s var(--ease), opacity .2s var(--ease);
  opacity: 0;
}
.m-mobile-lang-dropdown.is-open .m-mobile-lang-menu { max-height: 260px; opacity: 1; }
.m-mobile-lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.8);
  border-bottom: none;
}
.m-mobile-lang-menu a.is-active { color: var(--accent); font-weight: 700; }

.m-mobile-social { display: flex; gap: 10px; }
.m-mobile-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
}
.m-mobile-social img { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .m-solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .m-sector-tile { flex-basis: calc(33.333% - 20px); }
  .m-news-grid { grid-template-columns: repeat(2, 1fr); }
  .m-footer-grid { grid-template-columns: 1fr 1fr; }
  .m-nav { display: none; }
  .m-mega { display: none; }
  .m-burger { display: flex; }
  .m-lab-btn, .m-search-toggle, .m-lang, .m-nav-actions > .m-btn--ghost-light { display: none; }
  .m-trustbar-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .m-sectors-primary { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 200px); }
  .m-sector-feature:nth-of-type(1) { grid-column: 1 / 3; grid-row: 1; }
  .m-sector-feature:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  .m-sector-feature:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .m-sector-feature:nth-of-type(4) { grid-column: 1 / 3; grid-row: 3; }
  .m-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .m-stat-band { grid-template-columns: repeat(2, 1fr); }
  .m-feature-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .m-feature-row--reverse .m-feature-row-media, .m-feature-row--reverse .m-feature-row-text { order: initial; }
}
@media (max-width: 640px) {
  .m-container { padding: 0 20px; }
  .m-section { padding: 72px 0; }
  .m-trustbar-grid { grid-template-columns: 1fr; row-gap: 20px; }
  .m-sectors-primary { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); }
  .m-sector-feature:nth-of-type(1), .m-sector-feature:nth-of-type(2),
  .m-sector-feature:nth-of-type(3), .m-sector-feature:nth-of-type(4) { grid-column: 1; }
  .m-sector-feature:nth-of-type(1) { grid-row: 1; }
  .m-sector-feature:nth-of-type(2) { grid-row: 2; }
  .m-sector-feature:nth-of-type(3) { grid-row: 3; }
  .m-sector-feature:nth-of-type(4) { grid-row: 4; }
  .m-solutions-grid, .m-news-grid { grid-template-columns: 1fr; }
  .m-sector-tile { flex-basis: 100%; }
  .m-news-card { aspect-ratio: 4/5; }
  .m-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .m-stat-band { grid-template-columns: 1fr; }
  .m-panel-content { padding: 40px 28px; }
  .m-cta { padding: 56px 24px; }
  .m-footer-grid { grid-template-columns: 1fr; }
  .m-section-head.split { flex-direction: column; align-items: flex-start; }
}
