/* AB Horizon Mockup v2 — palette + pattern tecnici da Next-Be (toni AB Horizon) */
:root {
  --primary: #003E7E;
  --primary-dark: #002a55;
  --accent: #FF9900;
  --text-dark: #333333;
  --text-muted: #666666;
  --bg-light: #F4F6F9;
  --bg: #FFFFFF;
  --line: rgba(0, 62, 126, 0.12);
  --border-warm: #FFCC7F;
  --border-warm-strong: #FFC773;
  --border-w: 1.8px;
  --nav-grad-left: #FBF4E7;
  --nav-grad-mid: #F7F4EE;
  --nav-grad-right: #EEF4FB;
  --nav-surface: linear-gradient(90deg, var(--nav-grad-left) 0%, var(--nav-grad-mid) 34%, var(--nav-grad-right) 100%);
  --card-grad-top: #FFF3E0;
  --card-grad-mid: #FFE8C4;
  --card-grad-bot: #FFFFFF;
  --shadow-warm: 0 12px 28px rgba(255, 153, 0, 0.22);
  --shadow-warm-sm: 0 8px 18px rgba(255, 153, 0, 0.16);
  /* Shared card lift (matches .diff-item:hover) */
  --card-lift: translateY(-2px);
  --card-hover-transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  --radius: 18px;
  --max: 1160px;
  --pad: clamp(16px, 3vw, 36px);
  --navH: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Next Be brand (teal/cyan) — available site-wide for footer / wordmarks */
  --nb-deep: #0C2B2C;
  --nb-primary: #0f7c82;
  --nb-accent: #52D3CE;
  --nb-accent-hi: #7BE7F0;
  --nb-shadow: 0 12px 28px rgba(12, 43, 44, 0.35);
  --nb-shadow-hi: 0 16px 36px rgba(15, 124, 130, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navH) + 12px);
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
html::-webkit-scrollbar { width: 13px; height: 13px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: #e68a00; background-clip: padding-box; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
main { overflow-x: clip; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(52px, 7vw, 88px) 0; }
.soft { background: var(--bg-light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(0, 62, 126, 0.55); font-weight: 700; }
.kicker.on-dark { color: rgba(255,255,255,.78); }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.22; letter-spacing: -.01em; font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; color: var(--primary); }
p { font-size: 16px; }
.muted { color: var(--text-muted); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.9); margin-top: 14px; max-width: 40rem; }
.hero-hook {
  font-size: clamp(15px, 1.5vw, 17px);
  color: rgba(255,255,255,.88);
  margin-top: 12px;
  max-width: 42rem;
  line-height: 1.5;
}
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }

/* Bottoni: no fringe bianco su primary (border 0 + clip) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #FFB84D);
  background-origin: border-box;
  background-clip: padding-box;
  overflow: clip;
  box-shadow: var(--shadow-warm-sm);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}
.btn.ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: var(--border-w) solid var(--border-warm);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--border-warm-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm-sm);
}
.btn.outline {
  background: transparent;
  color: var(--primary);
  border: var(--border-w) solid var(--border-warm);
}
.btn.outline:hover {
  background: rgba(255, 204, 127, 0.12);
  border-color: var(--border-warm-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm-sm);
}
.btn.dark {
  background: var(--primary);
  color: #fff;
  border: var(--border-w) solid var(--border-warm);
}
.btn.dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm-sm);
}

/* NAV solid + blur */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--navH); z-index: 50;
  display: flex; align-items: center;
  overflow: visible;
  background: linear-gradient(180deg, rgba(0, 42, 85, .78) 0%, rgba(0, 42, 85, .42) 58%, rgba(0, 42, 85, 0) 100%);
  color: #fff;
  transition: background .18s ease, box-shadow .18s ease, color .18s ease, backdrop-filter .18s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 153, 0, .18) 0%, rgba(255, 204, 127, .12) 45%, rgba(255, 244, 231, .08) 100%);
  pointer-events: none;
}
.nav.solid {
  background: rgba(255,255,255,.96);
  color: var(--text-dark);
  box-shadow: 0 6px 22px rgba(0, 62, 126, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.is-inner .nav::before,
body.has-solid-nav .nav::before,
.nav.solid::before {
  content: none;
}
body.is-inner .nav,
body.has-solid-nav .nav {
  background: rgba(255,255,255,.96);
  color: var(--text-dark);
  box-shadow: 0 6px 22px rgba(0, 62, 126, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--primary);
  --brand-logo-width: min(205px, 50vw);
  --brand-logo-height: calc(var(--brand-logo-width) * 52 / 205);
}
.brand::before { content: none; }
.brand-logo {
  position: relative;
  z-index: 1;
  height: 52px;
  width: auto;
  display: block;
  max-width: min(205px, 50vw);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #0060c0);
  background-clip: padding-box;
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px;
  box-shadow: var(--shadow-warm-sm);
}
.brand-text { font-size: 17px; letter-spacing: .01em; }
.nav:not(.solid) .brand-text { color: #fff; }
body.is-inner .brand-text, body.has-solid-nav .brand-text, .nav.solid .brand-text { color: var(--primary); }
.menu { display: flex; gap: 4px; align-items: center; position: relative; z-index: 2; }
.menu > a, .menu .drop > summary {
  font-size: 13px; font-weight: 700; padding: 8px 10px; border-radius: 999px;
  cursor: pointer; list-style: none; border: 0;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.menu .drop > summary {
  position: relative;
  z-index: 1;
}
.menu > a:hover,
.menu .drop > summary:hover,
.menu .drop[open] > summary {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-warm-sm);
}
.menu > a:focus-visible,
.menu .drop > summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 204, 127, 0.45);
}
.menu > a.active,
.menu .drop > summary.active {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-warm-sm);
}
.menu .drop { position: relative; }
.menu .drop > summary::-webkit-details-marker { display: none; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; max-height: 70vh; overflow: auto;
  background: #fff; border: var(--border-w) solid var(--border-warm); border-radius: 14px;
  box-shadow: var(--shadow-warm); padding: 8px; z-index: 200;
}
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-dark);
}
.dropdown a.active {
  background: rgba(255, 153, 0, 0.15);
  color: var(--primary);
}
.dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.nav-cta .btn { padding: 8px 14px; font-size: 13px; }
.burger {
  display: none; width: 38px; height: 38px; border-radius: 11px;
  border: var(--border-w) solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: #fff;
  align-items: center; justify-content: center; cursor: pointer; font-size: 18px;
}
body.is-inner .burger, body.has-solid-nav .burger, .nav.solid .burger {
  border-color: var(--border-warm);
  background: rgba(255, 153, 0, .06);
  color: var(--text-dark);
}
.mobile-panel {
  display: none; position: fixed; top: var(--navH); left: 0; right: 0; background: #fff; z-index: 49;
  border-top: var(--border-w) solid var(--border-warm); box-shadow: var(--shadow-warm);
  max-height: calc(100vh - var(--navH)); overflow: auto;
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block; padding: 13px var(--pad); font-weight: 700;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.mobile-panel a:hover {
  background: rgba(255, 153, 0, .15);
  color: #c77700;
}

/* HERO + glass panel strutturato */
.hero {
  min-height: 100vh; color: #fff; display: flex; align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255,153,0,.18), transparent 50%),
    linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, #0056b3 100%);
  padding: calc(var(--navH) + 40px) 0 64px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; }
.hero-copy h1 { margin-top: 8px; max-width: 18ch; }
.hero-panel {
  position: relative;
  background: rgba(255,255,255,.10);
  border: var(--border-w) solid var(--border-warm);
  border-radius: var(--radius);
  padding: 8px 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 38px rgba(0, 42, 85, 0.28);
  overflow: hidden;
}
.hero-panel .row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 204, 127, 0.28);
}
.hero-panel .row:last-child { border-bottom: 0; }
.dot {
  width: 10px; height: 10px; border-radius: 999px; margin-top: 6px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), #FFB84D);
  box-shadow: 0 6px 14px rgba(255, 153, 0, 0.35);
}
.hero-panel .t { font-weight: 800; font-size: 15px; }
.hero-panel .d { font-size: 14px; color: rgba(255,255,255,.82); margin-top: 4px; }

/* Page hero: padding da --navH; min-height allineata a chi-siamo (desktop ~391px) */
.page-hero {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: calc(var(--navH) + 40px) 0 56px;
  min-height: 390px;
}
/* Banner servizio: foto reale + velo navy trasparente */
.page-hero.has-media {
  position: relative;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.page-hero.has-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(0, 42, 85, 0.62), rgba(0, 62, 126, 0.52));
}
.page-hero.has-media > .container {
  position: relative;
  z-index: 1;
}
.page-hero p { margin-top: 14px; max-width: 46rem; color: rgba(255,255,255,.88); }

.grid { display: grid; gap: 22px; }
.cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.split > * { min-width: 0; overflow-wrap: break-word; }

/* Service cards + media/label overlay ready */
.service-card {
  position: relative;
  background: linear-gradient(165deg, var(--card-grad-top) 0%, var(--card-grad-mid) 38%, var(--card-grad-bot) 72%);
  border: var(--border-w) solid var(--border-warm);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column; min-height: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  transition: var(--card-hover-transition);
}
.service-card .media {
  position: relative;
  height: 132px;
  min-height: 132px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, #0060c0);
}
.service-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.service-card .media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,42,85,.12), rgba(0,42,85,.42));
  z-index: 1; pointer-events: none;
}
.service-card .media .label {
  position: absolute; left: 16px; bottom: 12px; z-index: 2;
  color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 6px 16px rgba(0, 42, 85, 0.45);
}
.service-card .body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
  min-width: 0;
}
.service-card .tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
/* Label già in overlay media: evita doppia etichetta */
.service-card .media + .body > .tag { display: none; }
.service-card .body h3 { margin: 0; }
.service-card .body p { color: var(--text-muted); font-size: 14px; flex: 1; margin: 0; overflow-wrap: break-word; }
.service-card .body p a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.service-card .body p a:hover { color: var(--accent); }
.service-card .more { font-size: 14px; font-weight: 800; color: var(--primary); margin-top: 4px; }
.service-card .more:hover { color: var(--accent); }
.service-card.featured {
  border-color: var(--border-warm-strong);
  background: linear-gradient(165deg, #FFE0B2 0%, #FFECC8 35%, #FFFFFF 75%);
}

.diff-item {
  position: relative;
  padding: 20px;
  background: linear-gradient(165deg, var(--card-grad-top) 0%, var(--card-grad-bot) 75%);
  border: var(--border-w) solid var(--border-warm);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  transition: var(--card-hover-transition);
}
.diff-item h3 { margin-bottom: 6px; }

/* Unified warm card hover — same as .diff-item (lift + accent border + soft orange shadow) */
.service-card:hover,
.diff-item:hover,
.news-card:hover,
.faq details:hover,
.not-list li:hover,
.process-step:hover .process-pill {
  transform: var(--card-lift);
  box-shadow: var(--shadow-warm);
  border-color: var(--accent);
}

/* News / Approfondimenti cards — same warm language as diff-item, no accent rail */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  background: linear-gradient(165deg, var(--card-grad-top) 0%, var(--card-grad-bot) 75%);
  border: var(--border-w) solid var(--border-warm);
  border-radius: var(--radius);
  min-height: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  transition: var(--card-hover-transition);
}
.news-card .news-meta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.news-card p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 14px;
}
.news-card .more {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}
.news-card--more {
  justify-content: center;
  text-align: left;
  border-style: dashed;
  background: linear-gradient(165deg, #fff 0%, var(--card-grad-top) 100%);
}
.news-card--more h3 { font-size: 1.15rem; }
.article-meta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.article-body {
  max-width: 42rem;
  overflow-wrap: break-word;
}
.article-body p {
  margin-top: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}
.article-back {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

/* Next-Be promo — teal/cyan livery (tokens on :root; does not alter AB Horizon orange) */
.nextbe {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px; align-items: center;
  /* Original hue path (deep teal → blue mid → cyan teal); extra stops soften the old 48% kink. */
  background:
    radial-gradient(ellipse 70% 90% at 88% 55%, rgba(82, 211, 206, 0.22) 0%, rgba(82, 211, 206, 0) 62%),
    linear-gradient(145deg, #0C2B2C 0%, #0d3a4a 20%, #0E4B7A 45%, #0e5f7a 70%, #0f7c82 100%);
  border: 1.8px solid rgba(82, 211, 206, 0.45);
  border-radius: var(--radius); padding: 32px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--nb-shadow);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.nextbe::before {
  content: "";
  position: absolute; inset: -40% auto auto -20%;
  width: 55%; height: 90%;
  /* Fade to same-hue zero alpha (not keyword transparent) to avoid a dark ring. */
  background: radial-gradient(circle, rgba(82, 211, 206, 0.16) 0%, rgba(82, 211, 206, 0) 72%);
  pointer-events: none;
}
.nextbe > * { position: relative; z-index: 1; }
.nextbe:hover {
  transform: translateY(-2px);
  box-shadow: var(--nb-shadow-hi);
  border-color: rgba(82, 211, 206, 0.7);
}
.nextbe-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(260px, 70%);
  object-fit: contain;
  margin-bottom: 14px;
}
.nextbe .badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--nb-accent); margin-bottom: 8px;
}
.nextbe h2 { color: #fff; }
.nextbe-answer {
  color: var(--nb-accent);
  font-weight: 800;
}
.nextbe .muted { color: rgba(255, 255, 255, 0.78); }
.nextbe .muted strong,
.nextbe .nb-mark {
  color: var(--nb-accent);
  font-weight: 800;
}
.nextbe-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin-top: 0;
  width: 100%;
}
/* CTA uses AB Horizon orange (same as .btn.primary), not Next Be teal */
.nextbe .btn,
.nextbe .btn.dark,
.nextbe .btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #FFB84D);
  background-origin: border-box;
  background-clip: padding-box;
  overflow: clip;
  border: 0;
  box-shadow: var(--shadow-warm-sm);
}
.nextbe .btn:hover,
.nextbe .btn.dark:hover,
.nextbe .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

/* Next Be callout — compact aside (mirror Next Be .abhorizon-callout sizing, inverted palette) */
.nextbe-callout {
  margin-top: 22px;
  padding: 20px 22px 18px;
  border-radius: 18px;
  border: 1.5px solid var(--nb-primary);
  background: linear-gradient(145deg, #e0f5f4 0%, #f0faf9 55%, #ffffff 100%);
  box-shadow: 0 12px 28px rgba(12, 43, 44, 0.14);
  min-width: 0;
  overflow-wrap: break-word;
}
.section.nextbe-callout-band .nextbe-callout { margin-top: 0; }
.nextbe-callout-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.nextbe-callout-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 124, 130, 0.18);
  box-sizing: border-box;
}
.nextbe-callout-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nb-primary);
}
.nextbe-callout p {
  margin: 0;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.55;
}
.nextbe-callout-note {
  margin-top: 8px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
}
.nextbe-callout .btn,
.nextbe-callout .btn.primary {
  margin-top: 16px;
  display: inline-flex;
  white-space: nowrap;
}

/* Process flow — metodo (pattern Next-Be, palette AB Horizon) */
.process-panel {
  padding: clamp(28px, 4vw, 40px);
}
.process-panel > h2 { color: var(--primary); }
.process-panel > .process-lead {
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.process-steps {
  --process-pill-h: 168px;
  --process-arrow-size: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.process-step {
  flex: 1 1 140px;
  min-width: 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.process-pill {
  position: relative;
  margin: 0 auto 12px;
  width: 118px;
  height: var(--process-pill-h);
  /* Match outer .panel / .process-panel card radius */
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
  border: var(--border-w) solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 18px;
  box-shadow: 0 8px 20px rgba(0, 62, 126, 0.06);
  transition: var(--card-hover-transition);
}
.process-number {
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: var(--primary);
}
.process-icon {
  margin-top: 14px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.process-step-1 .process-icon { background: rgba(0, 62, 126, 0.12); }
.process-step-2 .process-icon { background: rgba(255, 153, 0, 0.16); color: #c77700; }
.process-step-3 .process-icon { background: rgba(0, 62, 126, 0.09); }
.process-step-4 .process-icon { background: rgba(255, 204, 127, 0.45); color: #b86e00; }
.process-step-5 .process-icon { background: rgba(0, 42, 85, 0.10); }
.process-title {
  font-weight: 800;
  margin-top: 4px;
  color: var(--primary);
  font-size: 15px;
  line-height: 1.3;
  /* Equal title row: 2-line min-height keeps titles top-aligned across steps */
  min-height: calc(1.3em * 2);
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-wrap: break-word;
}
.process-meta {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
/* Arrow track = pill height → vertical center between rounded pills */
.process-arrow {
  align-self: flex-start;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--process-pill-h);
  margin-top: 0;
  color: var(--accent);
  opacity: 1;
}
.process-arrow svg {
  width: var(--process-arrow-size);
  height: var(--process-arrow-size);
  /* ~30% thicker than stroke-width="2" */
  stroke-width: 2.6;
}
@media (max-width: 900px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .process-step {
    width: 100%;
    max-width: 320px;
  }
  .process-arrow {
    height: auto;
    margin-top: 0;
    transform: rotate(90deg);
    opacity: .7;
  }
  .process-pill { width: 128px; }
}

/* CTA band + pannello checklist “In pratica” */
.cta-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 10px; max-width: 36rem; }
.cta-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 28px;
  align-items: center;
}
.cta-panel {
  background: rgba(255,255,255,.10);
  border: var(--border-w) solid var(--border-warm);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
}
.cta-panel .kicker { margin-bottom: 10px; }
.cta-panel .li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; font-size: 14px; color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255, 204, 127, 0.22);
  min-width: 0;
}
.cta-panel .li > div { min-width: 0; overflow-wrap: break-word; }
.cta-panel .li:last-child { border-bottom: 0; }
.cta-panel .check {
  width: 18px; height: 18px; border-radius: 999px; flex: 0 0 auto; margin-top: 2px;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 6px 12px rgba(255, 153, 0, 0.35);
}
.cta-panel .check svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 2.5; }

.faq details {
  background: linear-gradient(165deg, var(--card-grad-top) 0%, var(--card-grad-bot) 75%);
  border: var(--border-w) solid var(--border-warm);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 10px;
  min-width: 0;
  overflow-wrap: break-word;
  transition: var(--card-hover-transition);
}
.faq summary { font-weight: 800; cursor: pointer; color: var(--primary); overflow-wrap: break-word; }
.faq details p { margin-top: 10px; color: var(--text-muted); font-size: 15px; overflow-wrap: break-word; }
.nextbe-link {
  color: var(--nb-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nextbe-link:hover { color: var(--nb-deep); }
.disclaimer {
  font-size: 13px; color: var(--text-muted); background: var(--bg-light);
  border-left: 4px solid var(--accent); padding: 12px 14px; border-radius: 0 10px 10px 0; margin-top: 20px;
}
.panel {
  position: relative;
  background: linear-gradient(165deg, var(--card-grad-top) 0%, var(--card-grad-bot) 70%);
  border: var(--border-w) solid var(--border-warm);
  border-radius: var(--radius); padding: 28px;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
}
.trust-strip { padding: 28px 0; }
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.trust-strip-item {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: break-word;
}
.deliverables-box .not-list { margin-top: 16px; }
.form-sla { margin-top: 16px; font-size: 14px; }
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-alert {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
}
.form-alert-error {
  border: var(--border-w) solid #e57373;
  background: #fff5f5;
  color: #8b1a1a;
}
.form-alert-success {
  border: var(--border-w) solid var(--border-warm);
  background: linear-gradient(180deg, var(--card-grad-top) 0%, #fff 100%);
}
.form-alert-success h3 { margin: 0 0 8px; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: var(--border-w) solid var(--border-warm);
  border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--border-warm-strong); box-shadow: 0 0 0 3px rgba(255, 204, 127, 0.25);
}
.field textarea { min-height: 120px; resize: vertical; }
.field.full { grid-column: 1 / -1; }
.nap-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; overflow-wrap: break-word; }
.nap-list li:last-child { border-bottom: 0; }
.nap-list strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.contact-side-panel .nap-list,
.contact-side-panel .nextbe-callout { min-width: 0; }
#territorio .container {
  text-align: center;
}
#territorio p {
  margin-left: auto;
  margin-right: auto;
}
#territorio .territorio-lead {
  white-space: nowrap;
  max-width: none;
}
@media (max-width: 640px) {
  #territorio .territorio-lead {
    white-space: normal;
  }
}
.territory-list {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
  margin: 0; padding: 0;
}
.territory-list li {
  font-weight: 700;
  color: var(--primary);
  border: var(--border-w) solid var(--border-warm);
  background: linear-gradient(165deg, var(--card-grad-top) 0%, var(--card-grad-bot) 70%);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}
.list-check li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--text-muted); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px;
  border-radius: 999px; background: var(--accent);
}
.not-list { display: grid; gap: 12px; margin-top: 16px; }
.not-list li {
  position: relative;
  background: linear-gradient(165deg, var(--card-grad-top) 0%, var(--card-grad-bot) 75%);
  border: var(--border-w) solid var(--border-warm);
  border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--text-muted);
  min-width: 0;
  overflow-wrap: break-word;
  transition: var(--card-hover-transition);
}
.not-list strong { color: var(--primary); }
.not-list li > strong:first-child { display: block; }

.footer { background: #0b1f36; color: rgba(255,255,255,.82); padding: 40px 0 28px; font-size: 14px; }
.footer a { color: rgba(255,255,255,.9); }
.footer a:hover { color: var(--accent); }
.footer a.footer-nextbe {
  color: var(--nb-accent);
  font-weight: 700;
}
.footer a.footer-nextbe:hover {
  color: var(--nb-accent-hi);
}
/* Mobile drawer + any stray Next Be link on dark surfaces */
.mobile-panel a.footer-nextbe,
.mobile-panel a[href*="next-be.com"] {
  color: var(--nb-primary);
}
.mobile-panel a.footer-nextbe:hover,
.mobile-panel a[href*="next-be.com"]:hover {
  color: var(--nb-deep);
  background: rgba(82, 211, 206, 0.12);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; margin-bottom: 28px; align-items: start; }
/* Extra space only between brand (col 1) and Servizi; Servizi↔Società keeps gap: 28px */
.footer-grid > div { min-width: 0; overflow-wrap: break-word; }
/* Extra space only between brand (col 1) and Servizi; Servizi↔Società keeps gap: 28px */
.footer-grid > div:first-child { margin-right: 28px; }
.footer h4 { color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.footer p { margin: 0; }
.footer ul { margin: 0; padding-left: 0; list-style: none; }
.footer ul li { margin: 0 0 8px; }
.footer ul li:last-child { margin-bottom: 0; }
.footer-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
@media (max-width: 420px) {
  .footer-services { grid-template-columns: 1fr; }
}
/* Legal/social strip under Società — Next Be .links pattern */
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-links a,
.footer-links button {
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer .privacy-prefs-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer .privacy-prefs-btn:hover {
  color: var(--accent);
}

/* Cookie consent banner + preferences modal (AB Horizon blue/orange) */
.privacy-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 16px 20px 20px;
  background: white;
  box-shadow: 0 -2px 12px rgba(0, 62, 126, 0.1);
  border-top: 1px solid var(--line);
}
.privacy-modal.active {
  display: block;
}
.privacy-overlay {
  display: none;
}
.privacy-panel {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
  width: 100%;
  max-height: none;
  overflow-y: visible;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.privacy-close {
  position: relative;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
body.privacy-banner-open {
  padding-bottom: 120px;
}
.privacy-close:hover {
  color: var(--text-dark);
}
.privacy-panel h2 {
  display: none;
}
.privacy-panel > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
  flex: 1;
  min-width: 250px;
}
.privacy-panel > p a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.privacy-panel > p a:hover {
  color: var(--accent);
}
.privacy-panel > p:nth-child(2),
.privacy-panel > p:nth-child(3) {
  display: none;
}
.privacy-options,
.privacy-option,
.privacy-option:last-child,
.privacy-checkbox-label,
.privacy-checkbox,
.checkbox-custom,
.privacy-checkbox:checked + .checkbox-custom,
.privacy-checkbox:checked + .checkbox-custom::after,
.option-text,
.option-description,
.privacy-save-continue {
  display: none;
}
.privacy-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.privacy-btn {
  flex: 0 1 auto;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.privacy-btn-reject {
  background: rgba(0, 62, 126, 0.08);
  color: var(--text-dark);
  border: 1px solid var(--line);
}
.privacy-btn-reject:hover {
  background: rgba(0, 62, 126, 0.12);
  border-color: var(--text-muted);
}
.privacy-btn-accept {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}
.privacy-btn-accept:hover {
  background: #E68A00;
  border-color: #E68A00;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.28);
}
.privacy-btn-customize {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 18px;
  margin-bottom: 0;
}
.privacy-btn-customize:hover {
  background: rgba(0, 62, 126, 0.08);
  border-color: var(--primary);
}

/* Detailed preferences view */
.privacy-modal.detailed-view {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.privacy-modal.detailed-view .privacy-overlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 42, 85, 0.5);
  backdrop-filter: blur(2px);
}
.privacy-modal.detailed-view .privacy-panel {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 48px 40px 40px;
  max-width: 580px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 62, 126, 0.25);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.privacy-modal.detailed-view .privacy-panel h2 {
  display: block;
  margin-bottom: 20px;
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--primary);
}
.privacy-modal.detailed-view .privacy-panel > p {
  display: block;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
  flex: none;
}
.privacy-modal.detailed-view .privacy-panel > p:nth-child(2),
.privacy-modal.detailed-view .privacy-panel > p:nth-child(3) {
  display: block;
}
.privacy-modal.detailed-view .privacy-options {
  display: block;
  margin: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.privacy-modal.detailed-view .privacy-option {
  display: block;
  margin-bottom: 24px;
}
.privacy-modal.detailed-view .privacy-option:last-child {
  display: block;
  margin-bottom: 0;
}
.privacy-modal.detailed-view .privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.privacy-modal.detailed-view .privacy-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
}
.privacy-modal.detailed-view .checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: white;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 2px;
}
.privacy-modal.detailed-view .privacy-checkbox:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.privacy-modal.detailed-view .privacy-checkbox:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}
.privacy-modal.detailed-view .option-text {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}
.privacy-modal.detailed-view .option-description {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-left: 32px;
}
.privacy-modal.detailed-view .privacy-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.privacy-modal.detailed-view .privacy-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
}
.privacy-modal.detailed-view .privacy-save-continue {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 22px rgba(0, 62, 126, 0.2);
}
.privacy-modal.detailed-view .privacy-save-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 62, 126, 0.28);
}
.privacy-modal.detailed-view .privacy-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 28px;
}
.privacy-modal.detailed-view .privacy-btn-customize {
  display: none;
}
body.privacy-banner-open:has(.privacy-modal.detailed-view) {
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body.privacy-banner-open {
    padding-bottom: 200px;
  }
  .privacy-modal {
    padding: 10px 14px 12px;
  }
  .privacy-panel {
    gap: 10px;
    align-items: flex-start;
  }
  .privacy-panel > p {
    min-width: 100%;
    flex: none;
    order: -1;
    font-size: 13px;
    line-height: 1.4;
    padding-right: 36px;
  }
  .privacy-close {
    position: absolute;
    top: 4px;
    right: 0;
    z-index: 2;
  }
  .privacy-actions {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .privacy-btn {
    flex: 1 1 calc(50% - 4px);
    padding: 12px 14px;
    font-size: 13px;
    min-height: 44px;
  }
  .privacy-btn-customize {
    width: 100%;
    flex: 1 1 100%;
    min-height: 44px;
    padding: 10px 14px;
  }
  body.privacy-banner-open .scroll-to-top-btn {
    bottom: calc(100px + 160px);
  }
}

@media (max-width: 480px) {
  body.privacy-banner-open {
    padding-bottom: 240px;
  }
  .privacy-modal {
    padding: 10px 12px 12px;
  }
  .privacy-panel > p {
    font-size: 12px;
  }
  .privacy-actions {
    width: 100%;
    flex-direction: column;
  }
  .privacy-btn {
    width: 100%;
    flex: 1 1 100%;
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* Must beat `.footer a` (0,1,1) — bare `.footer-linkedin` loses and stays light gray */
.footer a.footer-linkedin {
  color: var(--accent);
}
.footer a.footer-linkedin:hover {
  color: #FFB84D;
}
.footer a.footer-linkedin svg {
  display: block;
  fill: currentColor;
}
.footer a.footer-linkedin path {
  fill: currentColor;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 6px; opacity: .7; }
.breadcrumbs a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: rgba(255,255,255,.9); }
.mock-banner {
  position: fixed; bottom: 12px; right: 12px; z-index: 100;
  background: rgba(0,42,85,.92); color: #fff; font-size: 12px; font-weight: 700;
  padding: 8px 12px; border-radius: 999px; border: var(--border-w) solid var(--border-warm);
}

/* Scroll to Top — Next-Be pattern, AB Horizon orange */
.scroll-to-top-btn {
  position: fixed;
  bottom: 60px;
  right: 40px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 8px 18px rgba(255, 153, 0, 0.35);
}
.scroll-to-top-btn:active {
  transform: scale(0.95);
}
.scroll-to-top-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1000px) {
  .menu, .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .hero-grid, .split, .cards4, .cards3, .cards2, .nextbe, .footer-grid, .form-grid, .cta-band-grid { grid-template-columns: 1fr; }
  .trust-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { margin-right: 0; }
  .hero-copy h1 { max-width: none; }
  .service-card .media { height: 100px; min-height: 100px; }
  .nextbe-cta { align-items: flex-start; justify-self: start; }
  /* Mobile: floor coerente (chi-siamo wrappato ~498px); cresce se il testo è più alto */
  .page-hero { min-height: 500px; }
}

@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 100px;
    right: 16px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100%, var(--max));
    padding-inline: clamp(18px, 5vw, 24px);
  }
  .section { padding: 44px 0; }
  .split { gap: 24px; }
  .panel,
  .nextbe,
  .nextbe-callout,
  .cta-panel,
  .hero-panel {
    padding: 20px;
  }
  .article-body,
  .footer-grid > div,
  .nap-list li,
  .nextbe-callout p {
    overflow-wrap: anywhere;
  }
  .nextbe-callout .btn,
  .nextbe-callout .btn.primary {
    width: 100%;
    white-space: normal;
  }
  .footer {
    padding: 34px 0 24px;
  }
  .footer-grid,
  .footer-links {
    gap: 20px;
  }
}

/* === Page hero media modifiers (replaces inline background-image) === */
.page-hero--ai-act { background-image: url("../img/cards/ai-act.webp"); }
.page-hero--nis2 { background-image: url("../img/cards/nis2.webp"); }
.page-hero--tisax { background-image: url("../img/cards/tisax.webp"); }
.page-hero--iatf { background-image: url("../img/cards/iatf.webp"); }
.page-hero--iso-9001 { background-image: url("../img/cards/iso-9001.webp"); }
.page-hero--iso-27001 { background-image: url("../img/cards/iso-27001.webp"); }
.page-hero--iso-45001 { background-image: url("../img/cards/iso-45001.webp"); }
.page-hero--iso-22716 { background-image: url("../img/cards/iso-22716.webp"); }
.page-hero--iso-42001 { background-image: url("../img/cards/iso-42001.webp"); }
.page-hero--ce { background-image: url("../img/cards/ce.webp"); }
.page-hero--gdpr { background-image: url("../img/cards/gdpr.webp"); }
.page-hero--gmp { background-image: url("../img/cards/gmp.webp"); }
.page-hero--reg-ue { background-image: url("../img/cards/reg-ue.webp"); }
.page-hero--contatti { background-image: url("../img/cards/contatti-hero.webp"); }
.page-hero--news { background-image: url("../img/cards/news-hero.webp"); }
.page-hero--metodo { background-image: url("../img/cards/metodo-hero.webp"); }
.page-hero--chi-siamo { background-image: url("../img/cards/chi-siamo-hero.webp"); }

/* === CSP-friendly spacing (replaces inline margin styles) === */
.kicker + h2 { margin-top: 10px; }
.kicker + h2.max-w-28ch { max-width: 28ch; }
.section > .container > .kicker + h2 + .muted,
.section > .container > .kicker + h2 + p.muted { margin-top: 12px; }
.section > .container > .kicker + h2 + .muted.max-w-46rem { max-width: 46rem; }
.cta-band .kicker + h2 { margin-top: 10px; }
.cta-band .kicker + h2 + .muted,
.cta-band .kicker + h2 + p.muted { margin-top: 8px; }
.deliverables-box .kicker + h2 { margin-top: 10px; }
.split .kicker + h2 { margin-top: 10px; }
.split .kicker + h2 + .muted,
.split .kicker + h2 + p.muted { margin-top: 14px; }
.split h3:not(:first-child) { margin-top: 28px; }
.panel > h3 + p.muted { margin-top: 8px; }
.panel > h3 + ul.nap-list { margin-top: 14px; }
.section h2 + .faq { margin-top: 20px; }
.section > .container > h2 + .grid { margin-top: 22px; }
.section > .container > h2 + .muted + .grid,
.section > .container > h2 + p.muted + .grid { margin-top: 32px; }
.section > .container > h2 + .muted + .grid.cards2,
.section > .container > h2 + p.muted + .grid.cards2,
.section > .container > h2.max-w-28ch + .muted.max-w-46rem + .grid { margin-top: 28px; }
#territorio .territorio-lead { margin-top: 12px; }
#territorio .territory-list { margin-top: 22px; }
.nextbe > div > .muted { margin-top: 12px; }
.footer-address { margin-top: 12px; }
.article-body > .btns { margin-top: 32px; }
.process-panel > .process-lead { margin-top: 10px; }
.process-panel > .btns { margin-top: 36px; }
.contact-side-panel > h2 + .nap-list { margin-top: 16px; }
.section--legal { padding-top: calc(var(--navH) + 40px); }
.container--narrow { max-width: 820px; }
.legal-prose h3 { margin-top: 28px; }
.legal-prose h3.mt-24 { margin-top: 24px; }
.legal-prose h3 + .muted,
.legal-prose h3 + p.muted { margin-top: 8px; }
.legal-prose > h1 + .muted { margin-top: 8px; }
.legal-prose > h1 + .muted + .muted { margin-top: 16px; }
.legal-list { margin-top: 8px; padding-left: 20px; list-style: disc; }

.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }
.max-w-28ch { max-width: 28ch; }
.max-w-46rem { max-width: 46rem; }

