/* =========================================================
   ERMES RouteHELP - site.css ottimizzato
   Pulizia duplicazioni, mantenendo componenti e resa visiva
========================================================= */

:root {
  --blue: #0b3d91;
  --blue-dark: #06275f;
  --cyan: #00a7d8;
  --gray-900: #172033;
  --gray-700: #4a5568;
  --gray-100: #f4f7fb;
  --white: #ffffff;
  --warning: #f59e0b;
  --warning-soft: #fff7e6;
  --blue-soft: #eaf3ff;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(23,32,51,.12);

  --hero-standard-height: 560px;
  --hero-standard-height-tablet: auto;
  --hero-image-position: center center;
  --hero-overlay: linear-gradient(
    90deg,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.08) 40%,
    rgba(0,0,0,.02) 100%
  );
}

/* =========================================================
   Base
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   Header / Navigation
========================================================= */

.topbar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8edf5;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 24px;
}

.menu {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 15px;
  color: var(--gray-700);
}

.logo {
  font-weight: 800;
  font-size: 24px;
  color: var(--blue);
  letter-spacing: -.5px;
}

.logo span {
  color: var(--cyan);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  height: 42px;
  width: auto;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-logo-text strong {
  color: var(--blue-dark);
  font-size: 18px;
  letter-spacing: -.2px;
}

.brand-logo-text span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* =========================================================
   Buttons
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: .2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
}

.btn-primary:hover {
  background: #008fba;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.12);
}

/* =========================================================
   Typography / Sections
========================================================= */

section {
  padding: 88px 0;
}

.section-light {
  background: var(--gray-100);
}

.section-title {
  max-width: 780px;
  margin-bottom: 42px;
}

.eyebrow {
  color: #008fba;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(40px,5vw,66px);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(30px,3vw,44px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.8px;
}

.section-title p {
  font-size: 18px;
  color: var(--gray-700);
  margin: 0;
}

/* =========================================================
   Layout grids and cards
========================================================= */

.grid-4,
.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(4,1fr);
}

.grid-3 {
  grid-template-columns: repeat(3,1fr);
}

.card,
.benefit-card,
.reference-card,
.related-card,
.sidebar-link-card {
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(23,32,51,.06);
}

.card {
  padding: 28px;
  height: 100%;
}

.card h3,
.benefit-card h3 {
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--blue-dark);
}

.card p {
  color: var(--gray-700);
  margin: 0 0 18px;
}

.card a {
  color: var(--blue);
  font-weight: 800;
}

/* Card con testo giustificato */

.card-justify p {
  text-align: justify;
}


.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
  margin: 28px 0 46px;
}

.benefit-card {
  padding: 24px;
}

.benefit-card h3 {
  margin-bottom: 10px;
}

.benefit-card p {
  margin: 0;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
  margin: 28px 0 46px;
}

.reference-card {
  padding: 24px;
}

.reference-card strong {
  display: block;
  font-size: 22px;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.reference-card span {
  display: block;
  color: var(--gray-700);
  margin-bottom: 14px;
}

.reference-card em {
  display: inline-block;
  font-style: normal;
  background: var(--cyan);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  font-size: 13px;
}

.related-card {
  border-color: rgba(16,42,67,.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(16,42,67,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover,
.sidebar-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16,42,67,.10);
}

.related-card h3 {
  margin-bottom: 8px;
}

.related-card p {
  margin-bottom: 14px;
}

/* =========================================================
   Generic article pages
========================================================= */

.article-hero {
  padding: 92px 0 78px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 48px;
  align-items: start;
}

.article-content {
  max-width: 820px;
}

.article-content .lead {
  font-size: 21px;
  color: var(--gray-900);
  font-weight: 500;
}

.article-content h2 {
  margin-top: 52px;
}

.article-content h3 {
  margin-top: 30px;
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1.25;
}

.article-content p,
.article-content li {
  font-size: 18px;
  color: var(--gray-700);
}

.article-content a {
  color: var(--blue);
  font-weight: 800;
}

.article-content ol,
.article-content ul {
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-box {
  background: var(--gray-100);
  border-left: 5px solid var(--cyan);
  border-radius: var(--radius);
  padding: 28px;
  margin: 38px 0;
}

.article-sidebar {
  position: sticky;
  top: 110px;
}

.article-sidebar .card {
  margin-bottom: 24px;
}

.article-sidebar a {
  display: block;
  color: var(--blue);
  font-weight: 800;
  margin: 10px 0;
}

.article-cta {
  margin-top: 52px;
}

.article-compact .solution-hero {
  padding: 66px 0 52px;
}

.article-compact .solution-hero h1 {
  font-size: clamp(34px,4vw,52px);
  margin-bottom: 16px;
}

.article-compact .solution-hero p {
  font-size: 18px;
  margin-bottom: 22px;
}

.article-compact section {
  padding: 56px 0;
}

.article-compact .article-content h2 {
  margin-top: 42px;
}

.article-compact .article-content h3 {
  margin-top: 24px;
}

.article-compact .article-box {
  margin: 28px 0;
  padding: 24px;
}

.article-compact .benefit-grid,
.article-compact .tech-timeline,
.article-compact .feature-strip,
.article-compact .reference-grid {
  margin-top: 24px;
  margin-bottom: 34px;
  gap: 18px;
}

.article-compact .benefit-card {
  padding: 22px;
}

.article-compact .solution-cta {
  margin-top: 44px;
  padding: 34px;
}

/* =========================================================
   Solution-specific components
========================================================= */

.solution-hero {
  background:
    radial-gradient(circle at top right,rgba(0,167,216,.32),transparent 32%),
    linear-gradient(115deg,rgba(6,39,95,.96),rgba(11,61,145,.88)),
    url("images/hero-sistemi-sos-stradali.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 105px 0 86px;
}

.solution-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) 390px;
  gap: 48px;
  align-items: center;
}

.solution-hero h1 {
  max-width: 880px;
}

.solution-hero p {
  color: #eaf6ff;
  font-size: 21px;
  max-width: 760px;
  margin: 0 0 30px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tech-pills span {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 14px;
}

.hero-proof-card,
.sticky-assessment-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-proof-card h2 {
  color: #fff;
  font-size: 28px;
}

.hero-proof-card p,
.hero-proof-card li {
  color: #eaf6ff;
}

.hero-proof-card ul,
.sticky-assessment-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.sticky-assessment-card {
  position: sticky;
  top: 110px;
  background: linear-gradient(145deg,var(--blue-dark),var(--blue));
  color: #fff;
  margin-bottom: 24px;
}

.sticky-assessment-card h3 {
  color: #fff;
  font-size: 24px;
}

.sticky-assessment-card p,
.sticky-assessment-card li {
  color: #eaf6ff;
}

.sticky-assessment-card .btn {
  margin-top: 18px;
  width: 100%;
}

.gsm-alert {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--warning-soft);
  border: 1px solid rgba(245,158,11,.35);
  border-left: 7px solid var(--warning);
  border-radius: 24px;
  padding: 34px;
}

.gsm-alert-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--warning);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.gsm-alert h2 {
  margin-top: 0;
  font-size: clamp(26px,2.5vw,36px);
}

.gsm-alert p {
  margin-bottom: 0;
  color: var(--gray-700);
  font-size: 18px;
}

.tech-timeline {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin: 30px 0 48px;
}

.tech-timeline div {
  background: var(--blue-soft);
  border: 1px solid #cfe3ff;
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.tech-timeline span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 12px;
}

.tech-timeline h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tech-timeline p {
  margin: 0;
  font-size: 16px;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  margin: 26px 0 42px;
}

.feature-strip span {
  background: #fff;
  border: 1px solid #dce5f2;
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.solution-cta {
  background: linear-gradient(110deg,var(--blue-dark),var(--blue));
  color: #fff;
  border-radius: 28px;
  padding: 42px;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.solution-cta h2 {
  color: #fff;
  margin-top: 0;
}

.solution-cta p {
  color: #eaf6ff;
  margin-bottom: 0;
}

/* =========================================================
   Links / navigation blocks
========================================================= */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 800;
  text-decoration: none;
  color: var(--blue-dark);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.next-step-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-left: 5px solid var(--cyan);
}

.sidebar-link-card {
  display: block;
  border-color: rgba(16,42,67,.12);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.sidebar-link-card strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.sidebar-link-card span {
  display: block;
  font-size: 14px;
  opacity: .78;
  line-height: 1.45;
}

.reading-path {
  background: linear-gradient(135deg,rgba(9,34,65,.96),rgba(14,72,112,.96));
  color: #fff;
  border-radius: 22px;
  padding: 30px;
  margin: 34px 0;
}

.reading-path h2,
.reading-path h3,
.reading-path p,
.reading-path a {
  color: #fff;
}

.reading-path ol {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  counter-reset: path;
}

.reading-path li {
  counter-increment: path;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 18px;
}

.reading-path li::before {
  content: counter(path);
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 900;
  margin-bottom: 12px;
}

.reading-path a {
  display: block;
  font-weight: 800;
  text-decoration: none;
}

.reading-path a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   Images / figures
========================================================= */

.content-image {
  margin: 30px 0 38px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16,42,67,.12);
}

.content-image img {
  display: block;
  width: 100%;
  height: auto;
}

.content-image figcaption {
  padding: 14px 18px;
  font-size: 14px;
  color: rgba(16,42,67,.72);
  background: #fff;
}

.image-large {
  margin: 34px 0 42px;
  width: 100%;
}

.image-large img {
  width: 100%;
  max-width: 980px;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.image-large figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  color: #5f6b7a;
}

.image-roadmap {
  margin: 42px auto 36px;
  text-align: center;
}

.image-roadmap img {
  width: 100%;
  max-width: 1240px;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  display: block;
  margin: 0 auto;
}

.image-roadmap figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: #667085;
}

/* =========================================================
   Home compact
========================================================= */

body.home-compact {
  font-size: 14px;
  line-height: 1.32;
}

.home-compact .container {
  max-width: 1180px;
}

.home-compact .topbar .container {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 12px;
}

.home-compact header .nav {
  min-height: 48px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.home-compact .brand-logo img {
  max-height: 34px;
}

.home-compact .brand-logo-text span {
  font-size: 12px;
}

.home-compact .menu {
  gap: 9px;
  font-size: 13px;
}

.home-compact .menu a {
  padding: 4px 0;
}

.home-compact .btn {
  padding: 7px 11px;
  line-height: 1.1;
  font-size: 13px;
}

.home-compact section {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.home-compact .solution-hero {
  min-height: 0 !important;
  padding-top: 42px !important;
  padding-bottom: 34px !important;
}

.home-compact .solution-hero-grid {
  gap: 20px;
  align-items: center;
}

.home-compact .hero-content h1 {
  font-size: clamp(30px,4.1vw,48px);
  line-height: .96;
  margin: 5px 0 7px;
}

.home-compact h2 {
  font-size: clamp(22px,2.5vw,32px);
  line-height: 1.03;
  margin: 4px 0 7px;
}

.home-compact h3 {
  font-size: 18px;
  line-height: 1.08;
  margin: 0 0 5px;
}

.home-compact h4 {
  margin: 0 0 6px;
}

.home-compact p,
.home-compact ul,
.home-compact ol {
  margin-top: 0;
  margin-bottom: 7px;
}

.home-compact li {
  margin-bottom: 3px;
}

.home-compact .eyebrow {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: .08em;
}

.home-compact .section-title {
  margin-bottom: 12px;
}

.home-compact .section-title p {
  max-width: 900px;
}

.home-compact .hero-actions,
.home-compact .tech-pills,
.home-compact .applications,
.home-compact .feature-strip {
  gap: 6px;
  margin-top: 9px;
}

.home-compact .tech-pills span,
.home-compact .tag,
.home-compact .feature-strip span {
  padding: 4px 8px;
  font-size: 12px;
}

.home-compact .benefit-grid,
.home-compact .grid-3,
.home-compact .reference-grid,
.home-compact .footer-grid {
  gap: 10px;
}

.home-compact .benefit-card,
.home-compact .related-card,
.home-compact .reference-card,
.home-compact .hero-proof-card,
.home-compact .faq-item,
.home-compact .article-box,
.home-compact .reading-path,
.home-compact .solution-cta {
  padding: 12px !important;
}

.home-compact .benefit-card p,
.home-compact .related-card p,
.home-compact .faq-item p,
.home-compact .hero-proof-card p {
  margin-bottom: 5px;
}

.home-compact .benefit-card .text-link,
.home-compact .related-card .text-link {
  font-size: 13px;
}

.home-compact .tech-timeline {
  gap: 9px;
  margin-top: 8px;
}

.home-compact .tech-timeline > div {
  padding: 12px !important;
}

.home-compact .tech-timeline span {
  width: 26px;
  height: 26px;
  margin-bottom: 5px;
  font-size: 13px;
}

.home-compact .split {
  gap: 18px;
}

.home-compact .check-list {
  padding-left: 18px;
}

.home-compact .content-image {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.home-compact .content-image figcaption {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.25;
}

.home-compact img[src="images/schema-architettura-sistemi-sos.png"] {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto !important;
}

.home-compact .next-step-box,
.home-compact .solution-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px !important;
}

.home-compact .reading-path {
  margin-top: 10px;
}

.home-compact .reference-card strong {
  font-size: 16px;
}

.home-compact .reference-card span,
.home-compact .reference-card em {
  font-size: 12px;
}

.home-compact footer {
  padding-top: 18px !important;
  padding-bottom: 12px !important;
}

.home-compact footer p {
  margin-bottom: 5px;
}

.home-compact footer a {
  margin-bottom: 3px;
}

.home-compact .copyright {
  font-size: 12px;
  padding-top: 8px;
}

/* =========================================================
   Hero standard riutilizzabile
========================================================= */

.solution-hero.hero-with-image.hero-standard {
  position: relative;
  overflow: hidden;
  height: var(--hero-standard-height) !important;
  min-height: var(--hero-standard-height) !important;
  display: flex;
  align-items: center;
  color: #fff;
  background: transparent !important;
  padding: 0 !important;
}

.solution-hero.hero-with-image.hero-standard .hero-background-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.solution-hero.hero-with-image.hero-standard .hero-background-image picture,
.solution-hero.hero-with-image.hero-standard .hero-background-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.solution-hero.hero-with-image.hero-standard .hero-background-image img {
  object-fit: cover;
  object-position: var(--hero-image-position);
  transform: scale(1.01);
  filter: brightness(1.18) saturate(1.05);
}

.solution-hero.hero-with-image.hero-standard .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--hero-overlay);
}

.solution-hero.hero-with-image.hero-standard .solution-hero-grid {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,700px) 440px;
  gap: 48px;
  align-items: center;
  padding: 70px 0 55px;
}

.solution-hero.hero-with-image.hero-standard .hero-content,
.solution-hero.hero-with-image.hero-standard .solution-hero-grid > div:first-child,
.solution-hero.hero-with-image.hero-standard .solution-hero-grid > div:first-child h1,
.solution-hero.hero-with-image.hero-standard .solution-hero-grid > div:first-child p,
.solution-hero.hero-with-image.hero-standard .solution-hero-grid > div:first-child .eyebrow {
  background: transparent;
}

.solution-hero.hero-with-image.hero-standard .hero-content {
  max-width: 760px;
  position: relative;
  z-index: 3;
  padding-left: 42px;
  padding-right: 20px;
}

.solution-hero.hero-with-image.hero-standard h1 {
  color: #fff;
  font-size: clamp(40px,4.6vw,62px);
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 3px 14px rgba(0,0,0,.34);
}

.solution-hero.hero-with-image.hero-standard p {
  color: rgba(255,255,255,.94);
  font-size: 19px;
  line-height: 1.65;
  max-width: 760px;
  text-shadow: 0 2px 9px rgba(0,0,0,.26);
}

.solution-hero.hero-with-image.hero-standard .eyebrow {
  color: #ffd54a;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.24);
}

.solution-hero.hero-with-image.hero-standard .tech-pills span {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  backdrop-filter: blur(5px);
}

.solution-hero.hero-with-image.hero-standard .hero-proof-card {
  background: rgba(10,20,35,.28);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
}

.solution-hero.hero-with-image.hero-standard .hero-proof-card h2 {
  color: #fff;
}

.solution-hero.hero-with-image.hero-standard .hero-proof-card p,
.solution-hero.hero-with-image.hero-standard .hero-proof-card li {
  color: rgba(255,255,255,.9);
}

.solution-hero.hero-with-image.hero-standard .btn-secondary {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.34);
  color: #fff;
  backdrop-filter: blur(4px);
}

.solution-hero.hero-with-image.hero-standard .btn-secondary:hover {
  background: rgba(255,255,255,.18);
}

.solution-hero.hero-with-image.hero-standard .btn-primary {
  box-shadow: 0 10px 28px rgba(0,167,216,.32);
}

/* =========================================================
   Footer
========================================================= */

footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 54px 0 28px;
}

footer .footer-brand-logo {
  display: block;
  max-width: 220px;
  height: auto;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 980px) {
  .solution-hero.hero-with-image.hero-standard {
    height: var(--hero-standard-height-tablet) !important;
    min-height: auto !important;
  }

  .solution-hero.hero-with-image.hero-standard .solution-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 0 48px;
  }

  .solution-hero.hero-with-image.hero-standard h1 {
    font-size: clamp(34px,7vw,50px);
  }

  .solution-hero.hero-with-image.hero-standard p {
    font-size: 18px;
  }
}

@media (max-width: 960px) {
  .menu {
    display: none;
  }

  .hero-grid,
  .cta,
  .article-layout,
  .solution-hero-grid,
  .benefit-grid,
  .tech-timeline,
  .reference-grid,
  .solution-cta {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2,1fr);
  }

  .article-sidebar,
  .sticky-assessment-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .next-step-box {
    grid-template-columns: 1fr;
  }

  .reading-path ol {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px,1180px);
  }

  section {
    padding: 64px 0;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .brand-logo img {
    height: 34px;
  }

  .brand-logo-text strong {
    font-size: 16px;
  }

  .brand-logo-text span {
    font-size: 11px;
  }

  .solution-hero {
    padding: 76px 0 64px;
  }

  .article-compact .solution-hero {
    padding: 56px 0 44px;
  }

  .article-compact section {
    padding: 42px 0;
  }

  .gsm-alert {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .cta,
  .solution-cta {
    padding: 30px;
  }

  .reading-path ol {
    grid-template-columns: 1fr;
  }

  .solution-hero.hero-with-image.hero-standard .solution-hero-grid {
    padding: 54px 0 40px;
  }

  .solution-hero.hero-with-image.hero-standard .hero-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .solution-hero.hero-with-image.hero-standard h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .solution-hero.hero-with-image.hero-standard p {
    font-size: 16px;
    line-height: 1.6;
  }

  .home-compact .solution-hero {
    padding: 58px 0 48px;
  }

  .home-compact section {
    padding: 44px 0;
  }

  .home-compact .solution-cta {
    padding: 26px;
  }
}


/* =========================================================
   Site explorer popup menu
   Menu unico in fascia alta con popup di navigazione completo
========================================================= */

.page-index header {
  background: rgba(255,255,255,.97);
  border-bottom: 2px solid #dce5f2;
  box-shadow: 0 8px 22px rgba(16,42,67,.08);
}

.page-index .nav {
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-explorer {
  margin-left: auto;
  position: relative;
}

.site-explorer > summary {
  list-style: none;
}

.site-explorer > summary::-webkit-details-marker {
  display: none;
}

.site-explorer-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: var(--white);
  border: 2px solid var(--blue-dark);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(6,39,95,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.site-explorer-trigger:hover,
.site-explorer[open] .site-explorer-trigger {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6,39,95,.24);
}

.site-explorer-icon {
  font-size: 22px;
  line-height: 1;
}

.site-explorer-backdrop {
  display: none;
}

.site-explorer[open] .site-explorer-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,39,95,.44);
  backdrop-filter: blur(3px);
}

.site-explorer-modal {
  display: none;
}

.site-explorer[open] .site-explorer-modal {
  display: block;
  position: fixed;
  z-index: 210;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(940px, calc(100vw - 36px));
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid #dce5f2;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(6,39,95,.28);
  padding: 30px;
}

.site-explorer-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7edf6;
}

.site-explorer-header h2 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: clamp(28px,3vw,40px);
}

.site-explorer-header p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.site-explorer-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #dce5f2;
  background: var(--gray-100);
  color: var(--blue-dark);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.site-explorer-close:hover {
  background: var(--blue-soft);
}

.site-explorer-content {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  padding: 24px 0;
}

.site-explorer-group {
  padding: 20px;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16,42,67,.05);
}

.site-explorer-group h3 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 19px;
}

.site-explorer-group a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid #eef3fa;
  color: var(--gray-700);
  font-weight: 800;
  line-height: 1.35;
}

.site-explorer-group a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-explorer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e7edf6;
}

.btn-outline-dark {
  background: #fff;
  color: var(--blue-dark);
  border-color: #c8d6ea;
}

.btn-outline-dark:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

@media (max-width: 720px) {
  .topbar .container {
    font-size: 12px;
  }

  .site-explorer-trigger {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .site-explorer[open] .site-explorer-modal {
    top: 82px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 104px);
    padding: 22px;
    border-radius: 22px;
  }

  .site-explorer-header {
    gap: 14px;
  }

  .site-explorer-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-explorer-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   Evidenziazione soft delle card
   Modifica limitata al colore di sfondo, senza alterare layout
========================================================= */

.reference-card,
.benefit-card,
.related-card {
  background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

@media (max-width: 640px) {

  .hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* priorità alla parte sinistra dell'immagine */
    object-position: 20% center;
  }

  .solution-hero.hero-with-image.hero-standard {
    min-height: 420px !important;
    height: auto !important;
  }

}

.hero-background-image {
    position: absolute; /* oppure relative in base al layout esistente */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;

    animation: heroFade 12s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 4s;
}

.hero-slide:nth-child(3) {
    animation-delay: 8s;
}

@keyframes heroFade {

    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}
