:root {
  --brand-teal: #078068;
  --brand-teal-strong: #056b58;
  --brand-teal-soft: #329682;
  --brand-navy: #00183f;
  --brand-mint: #e5f8f5;
  --brand-line: #cfe8e2;
  --brand-white: #ffffff;
  --text: #173052;
  --text-soft: #4f627f;
  --surface: #f8fcfb;
  --shadow: 0 18px 40px rgba(0, 24, 63, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

body.has-cookie-modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

/* Tracciabilità: T01, P01, P05. Header immerso nel fondale, senza capsula grigia. */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 14px;
  z-index: 50;
  isolation: isolate;
  padding: 0 0 10px;
  background: transparent;
  pointer-events: none;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--wrap), calc(100% - 32px));
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled .header-inner {
  transform: translateY(-2px) scale(0.992);
  padding-inline: 14px;
  background: rgba(0, 24, 63, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 24, 63, 0.2);
  backdrop-filter: blur(18px) saturate(1.1);
}

.brand img {
  width: auto;
  height: 38px;
  filter: brightness(0) invert(1);
}

.footer-logo {
  width: auto;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0, 24, 63, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.site-nav a,
.nav-parent {
  position: relative;
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--brand-white);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    160ms ease,
    box-shadow 160ms ease;
}

.site-nav a:hover,
.site-nav a.active,
.nav-group.active > .nav-parent,
.nav-parent:hover {
  color: var(--brand-white);
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-soft));
  box-shadow: 0 10px 22px rgba(7, 128, 104, 0.26);
}

.nav-group {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.nav-parent {
  display: inline-flex;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 38px rgba(0, 24, 63, 0.14);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    visibility 140ms ease;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.nav-dropdown a {
  display: block;
  border-radius: 12px;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-soft));
  color: var(--brand-white);
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(7, 128, 104, 0.24);
}

.page-hero {
  padding: 138px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(99, 218, 194, 0.18), transparent 30%),
    radial-gradient(circle at right center, rgba(7, 128, 104, 0.22), transparent 26%),
    linear-gradient(145deg, #03275b 0%, #044c66 52%, #06745f 100%);
}

.page-hero-home {
  min-height: 62svh;
  padding: 0;
  display: block;
  overflow-anchor: none;
  background:
    radial-gradient(circle at top left, rgba(7, 128, 104, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(0, 24, 63, 0.98), rgba(6, 96, 82, 0.94));
}

.page-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 34px;
  align-items: center;
}

.page-hero-home .page-hero-inner {
  flex: 1;
  min-height: calc(100svh - 194px);
  align-items: stretch;
}

.hero-slideshow-home {
  position: relative;
  display: grid;
  /* U55/D11: la nuova immagine non deve allargare la traccia oltre la viewport. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 62svh;
  max-height: 660px;
  border-radius: 0;
  background: transparent;
}

.page-hero-full .page-hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.page-hero-full .page-hero-inner > :first-child {
  width: 100%;
  max-width: none;
}

.page-hero-full .page-hero-inner > * {
  max-width: 920px;
}

.page-hero-full .lead,
.page-hero-full p {
  max-width: none;
}

.page-hero:not(.page-hero-home) .eyebrow,
.page-hero:not(.page-hero-home) .card-kicker {
  color: #91ebda;
}

.page-hero:not(.page-hero-home) h1,
.page-hero:not(.page-hero-home) h3 {
  color: var(--brand-white);
}

.page-hero:not(.page-hero-home) .lead,
.page-hero:not(.page-hero-home) .hero-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero:not(.page-hero-home) .hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px rgba(0, 16, 42, 0.22);
  backdrop-filter: blur(10px);
}

.page-hero-home .hero-copy .eyebrow {
  color: #b7fff1 !important;
}

.page-hero-home .hero-copy h1 {
  color: #ffffff !important;
  text-shadow: 0 10px 26px rgba(0, 16, 42, 0.32);
}

.page-hero-article {
  padding: 112px 0 28px;
}

.page-hero.page-hero-article h1 {
  max-width: none;
  font-size: clamp(1.35rem, 1.35vw, 1.8rem);
  line-height: 1.1;
  text-wrap: balance;
}

.article-hero-copy {
  max-width: 680px;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.page-hero-home .hero-copy p,
.page-hero-home .hero-copy .lead {
  color: rgba(255, 255, 255, 0.96) !important;
}

.page-hero-home .hero-actions .button-primary {
  color: #ffffff;
  background: #0aa083;
  box-shadow: 0 16px 28px rgba(0, 16, 42, 0.22);
}

.page-hero-home .hero-actions .button-outline {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.page-hero-home .hero-actions .button-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-hero-home .metric-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px rgba(0, 16, 42, 0.2);
  backdrop-filter: blur(10px);
}

.page-hero-home .metric-card strong {
  color: var(--brand-white);
}

.page-hero-home .metric-card p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1,
.page-hero h1,
.section-title h2,
.archive-card h2,
.content-card h3,
.team-card h3,
.news-card h3,
.panel h3 {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  color: var(--brand-navy);
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  max-width: 14ch;
}

.page-hero.page-hero-full h1 {
  max-width: none;
}

.section-title h2,
.archive-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.18;
}

.content-card h3,
.team-card h3,
.news-card h3,
.panel h3 {
  font-size: 1.24rem;
  line-height: 1.2;
}

.eyebrow,
.card-kicker,
.stat-label,
.section-title p:first-child {
  margin: 0 0 12px;
  color: var(--brand-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.lead,
.hero-copy p,
.section-title .section-lead,
.content-card p,
.team-card p,
.news-card p,
.archive-card p,
.panel p,
.site-footer p,
.site-footer a,
.article-body p,
.contact-list li,
.metric-card p {
  color: var(--text-soft);
  line-height: 1.75;
}

/* Tracciabilità: U44. Etichette cromatiche coerenti: teal su chiaro, mint su scuro. */
.content-card .card-kicker,
.team-card .card-kicker,
.news-card .card-kicker,
.archive-card .card-kicker,
.project-card .card-kicker {
  color: var(--brand-teal);
}

.purpose-card-primary .eyebrow,
.purpose-card-primary .card-kicker {
  color: #91ebda;
}

.article-body ul,
.article-body ol,
.article-body li {
  color: var(--text-soft);
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  margin: 18px 0;
  padding-left: 22px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(7, 128, 104, 0.18);
}

.button-primary {
  color: var(--brand-white);
  background: var(--brand-teal);
}

.button-primary:hover {
  background: var(--brand-teal-strong);
}

.button-outline {
  color: var(--brand-teal);
  background: var(--brand-white);
  border-color: rgba(7, 128, 104, 0.22);
}

.hero-panel,
.panel,
.content-card,
.metric-card,
.team-card,
.news-card,
.archive-card,
.partner-card,
.contact-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hero-panel {
  padding: 28px;
}

.hero-visual {
  display: grid;
  gap: 18px;
  height: 100%;
}

.hero-badge {
  padding: 20px;
}

.hero-badge img {
  width: 180px;
  margin-bottom: 16px;
}

.hero-slideshow {
  padding: 0;
  overflow: hidden;
  min-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.hero-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
}

.hero-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.feature-band-video {
  display: grid;
  gap: 24px;
}

.feature-band-video-copy {
  max-width: 40ch;
  margin-bottom: 0;
}

.section-video-frame {
  background: transparent;
}

.section-video-frame {
  width: 100%;
}

.section-video-frame video {
  min-height: 0;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1.02);
  transform-origin: center;
}

.slideshow-track {
  display: flex;
  transition: transform 320ms ease;
  min-height: 0;
  min-width: 0;
}

.slide-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(440px, 640px);
  justify-content: center;
  gap: clamp(18px, 2.8vw, 36px);
  min-height: 100%;
  padding: clamp(112px, 7vw, 124px) clamp(24px, 6vw, 88px) clamp(44px, 4vw, 58px);
  align-items: start;
  background: transparent;
  color: var(--brand-white);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    filter 260ms ease;
  opacity: 0.72;
  filter: saturate(0.9);
}

.slide-card.is-active {
  opacity: 1;
  filter: saturate(1);
}

/* Tracciabilità: U07. Il video iniziale riempie la slide, senza box autonomo. */
.slide-card--media-only {
  grid-template-columns: 1fr;
  padding: 0;
}

.slide-card--media-only .slide-media {
  position: relative;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* Tracciabilità: U09. Il trattamento tonale integra il video nel fondale senza creare un box. */
.slide-card--media-only .slide-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 24, 63, 0.08) 0%, transparent 46%, rgba(0, 24, 63, 0.24) 100%),
    linear-gradient(90deg, rgba(7, 128, 104, 0.08), rgba(0, 24, 63, 0.06));
}

.slide-copy h3 {
  margin-bottom: 14px;
  color: var(--brand-white);
}

.slide-copy,
.slide-media {
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.slide-card:not(.is-active) .slide-copy,
.slide-card:not(.is-active) .slide-media {
  opacity: 0.84;
  transform: translateY(4px);
}

.slide-card.is-active .slide-copy,
.slide-card.is-active .slide-media {
  opacity: 1;
  transform: translateY(0);
}

.slide-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.slide-copy .card-kicker {
  color: #8de1d0;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.slide-copy .button-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--brand-white);
  background: rgba(255, 255, 255, 0.08);
}

.slide-copy .button-primary {
  color: #ffffff;
  background: #0aa083;
  box-shadow: 0 16px 28px rgba(0, 16, 42, 0.22);
}

.slide-copy .button-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.slide-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  max-width: none;
  z-index: 1;
}

/* Tracciabilità: U31. Il titolo non conserva il margine superiore nativo, così PREMII ed EPRO partono dalla stessa quota. */
.page-hero-home .slide-copy h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.08;
  max-width: 15ch;
  margin: 0;
}

.page-hero-home .slide-copy p {
  max-width: 68ch;
  font-size: clamp(0.92rem, 0.95vw, 1rem);
}

.page-hero-home .slide-copy .card-kicker {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.slide-media {
  display: grid;
  place-items: center;
  min-height: 0;
  height: clamp(220px, 31vw, 420px);
  align-self: start;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.slide-media--image {
  justify-self: end;
  width: min(100%, 420px);
  padding: 8px;
  background: transparent;
  border-color: transparent;
}

.slide-media--video {
  padding: 0;
  background: transparent;
  border-color: transparent;
}

/* Tracciabilità: U21. Slide ePRO ricomposta sul riferimento visivo fornito dall'utente. */
.slide-card--epro {
  grid-template-columns: minmax(0, 520px) minmax(480px, 600px);
  gap: clamp(10px, 1.5vw, 24px);
}

.slide-card--epro .slide-copy {
  gap: 14px;
}

.page-hero-home .slide-card--epro .slide-copy h3 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 2.55vw, 2.5rem);
  line-height: 1.06;
}

.page-hero-home .slide-card--epro .slide-copy > p:not(.card-kicker) {
  max-width: 39ch;
  line-height: 1.55;
}

.slide-media--epro {
  min-height: 330px;
  justify-self: stretch;
  width: 100%;
  padding: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
}

.epro-reference-visual {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 1708 / 921;
}

.epro-reference-visual img,
.slide-media--image .epro-reference-visual img {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  filter: none;
}

.slide-media--image img {
  width: auto;
  height: auto;
  max-width: min(100%, 420px);
  max-height: min(100%, 300px);
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.16));
}

.slide-media--video .slide-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: 100%;
  object-fit: cover;
  object-position: center 48%;
  border-radius: inherit;
  background: transparent;
  transform: none;
  transform-origin: center;
  filter: saturate(0.88) contrast(1.04) brightness(0.92);
}

/* Tracciabilità: U55, W01, D11. Immagine editoriale originale intera, senza crop o ricostruzioni. */
.page-hero-home .slide-card--news .slide-copy h3 {
  max-width: none;
}

.slide-card--news .slide-media--image {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.slide-card--news .slide-media--image img {
  width: auto;
  max-width: min(100%, 510px);
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .page-hero-home .slide-card--news {
    padding-bottom: 80px;
  }

  .slide-card--news .slide-media--image {
    height: auto;
    aspect-ratio: 3 / 2;
    max-width: 450px;
    justify-self: center;
  }

  .slide-card--news .slide-media--image img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

  /* U55/D11: controlli nello spazio libero sotto il visuale, non sul testo o sui loghi. */
  .hero-slideshow-home:has(.slide-card--news.is-active) .slideshow-button {
    align-self: flex-end;
    margin-bottom: 16px;
  }

  .hero-slideshow-home:has(.slide-card--news.is-active) .slideshow-dots {
    bottom: 20px;
  }
}

/* Tracciabilità: U09. I controlli sono sovrapposti alla slide: nessuna fascia sottostante. */
.slideshow-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  padding: 0 clamp(18px, 3vw, 44px);
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  margin: 0;
  pointer-events: none;
}

/* Tracciabilità: U20. Controlli slideshow ridisegnati senza glifi tipografici. */
.slideshow-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(0, 24, 63, 0.62);
  color: var(--brand-white);
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 10px 24px rgba(0, 24, 63, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.slideshow-button::before {
  content: '';
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.slideshow-button[data-slide-prev]::before {
  margin-left: 4px;
  transform: rotate(-135deg);
}

.slideshow-button[data-slide-next]::before {
  margin-right: 4px;
  transform: rotate(45deg);
}

.slideshow-button:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(5, 163, 135, 0.92);
  box-shadow:
    0 14px 28px rgba(0, 24, 63, 0.24),
    0 0 0 4px rgba(255, 255, 255, 0.12);
}

.slideshow-button:focus-visible {
  outline: 3px solid rgba(184, 255, 241, 0.9);
  outline-offset: 3px;
}

.slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 24, 63, 0.3);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 24, 63, 0.18);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.slideshow-dot.is-active {
  width: 34px;
  background: var(--brand-teal);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 18px;
}

.metric-card-logo {
  display: grid;
  gap: 16px;
  align-content: start;
}

.metric-logo-inline {
  display: block;
  max-width: 168px;
  max-height: 44px;
  margin: 4px 0 2px;
  object-fit: contain;
}

.metric-wordmark {
  display: inline-block;
  margin: 4px 0 2px;
  color: var(--brand-teal-strong);
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
}

.page-section {
  padding: 56px 0;
}

.page-section.mint {
  background: var(--brand-mint);
}

.section-title {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-title-wide {
  max-width: 920px;
}

/* Tracciabilità: T03, P01, P06, V01, U13 */
.clinical-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7fffd, var(--brand-mint));
}

.clinical-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1180px);
  justify-content: center;
}

.clinical-intro .section-title {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  text-align: center;
  margin-bottom: 0;
}

.clinical-intro h1 {
  max-width: none;
  margin: 0;
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: clamp(2.25rem, 2.8vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-inline: auto;
}

.clinical-intro-lead {
  max-width: 1120px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
}

/* Tracciabilità: T04, P04, D02, U16 */
.stack-section {
  color: var(--brand-navy);
  background: #ffffff;
}

/* Tracciabilità: U29. L'etichetta usa il verde standard delle altre sezioni. */
.stack-section .section-title h2 {
  color: var(--brand-navy);
}

.stack-section .section-lead {
  color: var(--text-soft);
  opacity: 1;
}

.clinical-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 30px 0 0;
  list-style: none;
}

.stack-step {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-height: 380px;
  padding: 48px 20px 20px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  color: var(--brand-white);
  box-shadow: 0 18px 34px rgba(0, 38, 80, 0.14);
}

.stack-step:nth-child(1) {
  background: linear-gradient(155deg, #063e7f, #075aa8);
}

.stack-step:nth-child(2) {
  background: linear-gradient(155deg, #0875c7, #058bc7);
}

.stack-step:nth-child(3) {
  background: linear-gradient(155deg, #078eae, #079b9d);
}

.stack-step:nth-child(4) {
  background: linear-gradient(155deg, #079a8e, #139866);
}

.stack-step:nth-child(5) {
  background: linear-gradient(155deg, #168d57, #258f43);
}

.stack-step::after {
  content: '›';
  position: absolute;
  z-index: 2;
  top: 52%;
  right: -17px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--brand-teal-strong);
  background: var(--brand-white);
  font-family: 'Lato', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.stack-step:last-child::after {
  display: none;
}

.stack-number {
  position: absolute;
  top: -29px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--brand-white);
  border-radius: 50%;
  color: var(--brand-white);
  background: inherit;
  box-shadow: 0 8px 18px rgba(0, 24, 63, 0.18);
  font-size: 1.45rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.stack-label {
  color: var(--brand-white);
  font-size: clamp(0.86rem, 1.05vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.stack-step strong {
  color: var(--brand-white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.42;
  text-align: center;
}

.stack-visual {
  align-self: end;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 150px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.stack-visual svg {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stack-visual text {
  fill: currentColor;
  stroke: none;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.stack-visual .stack-visual-small {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.stack-visual .stack-visual-fhir {
  fill: #0875a8;
  font-size: 13px;
}

.stack-visual .stack-visual-fill {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(255, 255, 255, 0.96);
  color: #057eaa;
}

.stack-visual .stack-visual-node {
  fill: var(--brand-white);
  stroke: var(--brand-white);
}

.stack-visual .stack-visual-dash {
  stroke-dasharray: 3 4;
  opacity: 0.65;
}

/* Tracciabilità: U16. Ritaglio CSS dell'originale: solo i cinque blocchi colorati, senza le sezioni inferiori. */
.clinical-stack--reconstruction {
  display: none;
}

.stack-reference-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 12px;
  scrollbar-color: rgba(7, 128, 104, 0.48) rgba(0, 24, 63, 0.08);
  scrollbar-width: thin;
}

.stack-reference-crop {
  position: relative;
  width: 100%;
  min-width: 1120px;
  aspect-ratio: 1438 / 362;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

.stack-reference-artwork {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 3px 0);
  -webkit-mask:
    linear-gradient(#000 0 0) bottom / 100% 91.3% no-repeat,
    radial-gradient(ellipse 2.05% 8% at 9.67% 8%, #000 97%, transparent 100%),
    radial-gradient(ellipse 2.05% 8% at 29.42% 8%, #000 97%, transparent 100%),
    radial-gradient(ellipse 2.05% 8% at 50% 8%, #000 97%, transparent 100%),
    radial-gradient(ellipse 2.05% 8% at 70.45% 8%, #000 97%, transparent 100%),
    radial-gradient(ellipse 2.05% 8% at 90.33% 8%, #000 97%, transparent 100%);
  mask:
    linear-gradient(#000 0 0) bottom / 100% 91.3% no-repeat,
    radial-gradient(ellipse 2.05% 8% at 9.67% 8%, #000 97%, transparent 100%),
    radial-gradient(ellipse 2.05% 8% at 29.42% 8%, #000 97%, transparent 100%),
    radial-gradient(ellipse 2.05% 8% at 50% 8%, #000 97%, transparent 100%),
    radial-gradient(ellipse 2.05% 8% at 70.45% 8%, #000 97%, transparent 100%),
    radial-gradient(ellipse 2.05% 8% at 90.33% 8%, #000 97%, transparent 100%);
}

.stack-reference-artwork img {
  position: absolute;
  top: -51.105%;
  left: -3.408%;
  display: block;
  width: 106.815%;
  max-width: none;
  height: auto;
}

/* Tracciabilità: T05, P02, P07, T09, U19, R02, U34, U39, U42, U43. Icone ed etichette visuali centrate; copy lungo a sinistra. */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(7, 128, 104, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.riatlas-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pillar-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 14px 26px rgba(0, 48, 112, 0.2);
}

.pillar-card:nth-child(even) .pillar-icon {
  background: transparent;
  box-shadow: 0 14px 26px rgba(7, 128, 104, 0.2);
}

.pillar-source-visual {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.pillar-card .card-kicker {
  text-align: center;
}

.pillar-card h3 {
  margin: 0;
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: 1.32rem;
}

.pillar-card p:last-child {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Tracciabilità: T06, P02, R01, U34, U35, U36, U37. Struttura 3+4+3 e icone originali, compattate per il web. */
.proof-section {
  background: var(--brand-white);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.proof-card:nth-child(-n + 3),
.proof-card:nth-child(n + 8) {
  grid-column: span 4;
}

.proof-card:nth-child(n + 4):nth-child(-n + 7) {
  grid-column: span 3;
}

.proof-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 24, 63, 0.08);
  border-radius: 14px;
  background: var(--brand-white);
  box-shadow: 0 8px 22px rgba(0, 24, 63, 0.065);
}

.proof-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: var(--brand-navy);
}

.proof-source-icon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.proof-card strong {
  grid-column: 2;
  align-self: end;
  color: var(--brand-navy);
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.proof-card strong::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 6px;
  background: var(--brand-teal);
}

.proof-card > span:not(.proof-icon) {
  grid-column: 2;
  align-self: start;
  color: var(--brand-navy);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.proof-card--textual strong {
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.proof-card--textual strong::after {
  display: none;
}

.proof-card--iso > span:not(.proof-icon) {
  line-height: 1.4;
}

/* Tracciabilità: R03, U34, U38, U42. Visuali originali centrate; U42 rimuove l'accento inferiore non condiviso dalle altre card. */
.business-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
}

.business-visual {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--brand-white);
}

.business-source-visual {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.business-card .card-kicker {
  min-height: 2.4em;
  text-align: center;
}

.my-section-title {
  max-width: unset;
}

.grid-3,
.news-grid,
.team-grid,
.partner-grid,
.contact-grid,
.metrics-grid {
  display: grid;
  gap: 22px;
}

.grid-3,
.news-grid,
.team-grid,
.partner-grid,
.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.news-card,
.team-card,
.contact-card,
.archive-card {
  padding: 24px;
}

.content-card ul,
.contact-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.feature-band img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.feature-band-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.partner-card {
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.partner-card img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform 180ms ease;
}

.network-partners .partner-card {
  min-height: 156px;
  padding: 22px;
}

.network-partners .partner-card img {
  max-height: 76px;
}

.network-partners .partner-card--vyvo img,
.network-partners .partner-card--nemo img {
  max-height: 116px;
}

.network-partners .partner-card--dxc-technology img {
  max-height: 108px;
}

.network-partners .partner-card--novartis img {
  max-height: 132px;
}

/* Tracciabilità: R05, U45, U47, D04, D06. In Home ogni tile mostra esclusivamente il logo. */
.home-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-reference-card {
  min-height: 150px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-reference-logo-frame {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-reference-logo-frame img {
  width: auto;
  max-width: 88%;
  max-height: 76px;
  object-fit: contain;
}

.home-reference-logo-frame--wide img {
  max-width: 96%;
  max-height: 66px;
}

.home-reference-logo-frame--nemo img {
  max-height: 92px;
}

.home-reference-logo-frame--pineta img {
  max-width: 90%;
  max-height: 82px;
}

.home-reference-logo-frame--dark {
  width: min(100%, 176px);
  margin-inline: auto;
  padding: 7px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #042c46, #075d63);
}

.home-reference-logo-frame--dark img {
  max-height: 82px;
}

/* Tracciabilità: R05, U46, D05. Struttura completa per categorie nella pagina Azienda. */
.company-reference-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    'irccs pharma'
    'hospitals hospitals'
    'pa integrator';
  gap: 20px;
}

.company-reference-group {
  padding: 18px 20px 20px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.company-reference-group--irccs {
  grid-area: irccs;
}

.company-reference-group--hospitals {
  grid-area: hospitals;
}

.company-reference-group--pharma {
  grid-area: pharma;
}

.company-reference-group--pa {
  grid-area: pa;
}

.company-reference-group--integrator {
  grid-area: integrator;
}

.company-reference-group--integrator .company-reference-logo-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-reference-group > h3 {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-teal);
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.company-reference-group > h3::before,
.company-reference-group > h3::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(7, 128, 104, 0.72));
}

.company-reference-group > h3::after {
  background: linear-gradient(90deg, rgba(7, 128, 104, 0.72), transparent);
}

.company-reference-logo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 14px;
}

.company-reference-logo-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-reference-logo-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-reference-logo-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-reference-logo-card {
  min-width: 0;
  min-height: 112px;
  padding: 8px 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.company-reference-logo {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-reference-logo img {
  width: auto;
  max-width: 88%;
  max-height: 78px;
  object-fit: contain;
}

.company-reference-logo--wide img {
  max-width: 96%;
  max-height: 66px;
}

.company-reference-logo--portrait img {
  max-height: 90px;
}

.company-reference-logo--pineta img {
  max-width: 94%;
  max-height: 82px;
}

.company-reference-logo--dark {
  width: min(100%, 170px);
  height: 88px;
  margin-inline: auto;
  padding: 7px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #042c46, #075d63);
}

.company-reference-logo--dark img {
  max-height: 76px;
}

.company-reference-logo-card h4 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-card img {
  max-height: 86px;
  width: auto;
  margin: 0 0 18px;
  object-fit: contain;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.logo-wall-trust {
  grid-template-columns: 1fr 1fr 1.2fr;
  align-items: stretch;
}

.logo-wall-card,
.badge-stack {
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.logo-wall-card {
  min-height: 144px;
  display: grid;
  place-items: center;
}

.logo-wall-card img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 180ms ease;
}

.logo-wall-card--novartis img {
  max-height: 114px;
}

.recognition-strip {
  padding: 20px 28px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

.recognition-strip img {
  width: 100%;
  max-height: 132px;
  object-fit: contain;
}

.mission-copy {
  width: 100%;
}

.mission-copy h2 {
  max-width: none;
  margin: 0 0 18px;
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.16;
}

.mission-copy p:not(.eyebrow) {
  max-width: none;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.mission-copy p:not(.eyebrow) + p {
  margin-top: 14px;
}

/* Tracciabilità: T08, P06, U02. Il profilo è integrato direttamente nell'apertura Azienda. */
.company-hero-profile .company-hero-profile-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
}

.company-hero-profile .company-hero-profile-grid > * {
  width: 100%;
  max-width: none;
}

.company-hero-profile-image {
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 50px rgba(0, 24, 63, 0.24);
}

/* Tracciabilità: T08, P03, P08 */
.company-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.purpose-card {
  min-height: 300px;
  padding: 34px;
  border: 1px solid rgba(7, 128, 104, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.purpose-card-primary {
  color: var(--brand-white);
  background: linear-gradient(145deg, var(--brand-navy), #056b67);
}

.purpose-card h2 {
  margin: 14px 0 18px;
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.12;
}

/* Tracciabilità: U24. Tutti i paragrafi di Mission e Vision condividono lo stesso stile. */
.purpose-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.68;
}

.purpose-card > p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 14px;
}

.purpose-card-primary h2,
.purpose-card-primary > p:not(.eyebrow) {
  color: var(--brand-white);
}

.purpose-card-primary > p:not(.eyebrow) {
  opacity: 0.86;
}

/* Tracciabilità: T08, T09, P03, P08, P10 */
.timeline-list-visual {
  position: relative;
  gap: 0;
  padding-left: 34px;
}

.timeline-list-visual::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--brand-navy), var(--brand-teal));
}

.timeline-list-visual .timeline-item {
  position: relative;
  margin-bottom: 14px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 24, 63, 0.06);
}

.timeline-list-visual .timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 28px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--brand-white);
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 2px var(--brand-teal);
}

/* Tracciabilità: R04, U34, U40, U41. U41 adatta i contenuti della pagina 8 allo stile della slide ePRO. */
.product-module-grid .content-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 24px;
  overflow: hidden;
}

.module-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 210px;
  padding: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
}

.module-source-visual {
  display: block;
  width: auto;
  height: 188px;
  max-width: 100%;
  object-fit: contain;
}

.product-module-grid .card-kicker,
.product-module-grid h3,
.product-module-grid p {
  margin-top: 0;
}

.standard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7, 128, 104, 0.1);
  color: var(--brand-teal-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cert-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

.cert-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(7, 128, 104, 0.08), rgba(0, 24, 63, 0.03));
  border: 1px solid rgba(7, 128, 104, 0.12);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-summary-item:hover,
.cert-summary-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(7, 128, 104, 0.38);
  box-shadow: 0 14px 30px rgba(0, 24, 63, 0.12);
}

.cert-summary-item img,
.cert-summary-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.cert-summary-item .cert-summary-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(7, 128, 104, 0.12);
  color: var(--brand-teal-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.cert-summary-item strong {
  display: block;
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  line-height: 1.2;
}

.cert-summary-item span {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

.team-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

/* Tracciabilità: U65. Il link chiude sempre la colonna testuale della card. */
.team-card > div {
  display: flex;
  flex-direction: column;
}

.team-card > div > a {
  margin-top: auto;
}

.team-card img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(7, 128, 104, 0.1);
}

.team-card a,
.news-card a,
.site-footer a,
.inline-link {
  color: var(--brand-teal);
  font-weight: 700;
}

.archive-list {
  display: grid;
  gap: 20px;
}

.archive-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.archive-card--featured {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.archive-card--featured .archive-media {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(7, 128, 104, 0.08), rgba(0, 24, 63, 0.05));
  padding: 24px;
}

.archive-card--featured .archive-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 30px;
  max-width: none;
}

.archive-card--featured h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.archive-card--featured p {
  font-size: 1rem;
}

.archive-card--no-image {
  grid-template-columns: minmax(0, 1fr) auto;
}

.archive-card--featured.archive-card--no-image {
  grid-template-columns: 1fr;
}

.news-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.news-card-media,
.archive-media {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--brand-line);
  background: linear-gradient(180deg, rgba(7, 128, 104, 0.04), rgba(0, 24, 63, 0.03));
}

.news-card-media img,
.archive-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.news-card-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 2px;
  padding: 12px;
}

.archive-media {
  align-self: stretch;
  min-height: 168px;
  padding: 14px;
}

.archive-copy {
  max-width: 760px;
}

.archive-actions {
  margin-top: 4px;
}

.article-hero-inner {
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.article-visual {
  display: flex;
  justify-content: flex-end;
}

.article-visual img {
  max-width: 460px;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-line);
  background: var(--brand-white);
  box-shadow: 0 24px 48px rgba(0, 16, 42, 0.24);
  padding: 12px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.article-body,
.article-aside {
  padding: 28px;
}

.timeline-list,
.project-list,
.icon-grid,
.developer-grid {
  display: grid;
  gap: 18px;
}

.compact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-item,
.project-card,
.icon-card,
.developer-card {
  padding: 22px 24px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

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

.developer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icon-card img,
.developer-card img {
  width: auto;
  max-height: 72px;
  margin-bottom: 18px;
}

.icon-card h3,
.developer-card h3 {
  margin-bottom: 10px;
}

.ethical-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.ethical-card img {
  width: auto;
  height: 78px;
  max-height: 78px;
  margin: 0;
  object-fit: contain;
}

.ethical-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.ethical-card strong {
  color: var(--brand-teal-strong);
  font-weight: 900;
}

.project-card h3,
.icon-card h3,
.developer-card h3 {
  margin-top: 0;
  font-family: 'Roboto Slab', serif;
  color: var(--brand-navy);
}

.project-list-detailed {
  gap: 22px;
}

.project-card--detailed {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 24px;
  align-items: center;
}

.project-card--text-only {
  grid-template-columns: 1fr;
}

.project-copy {
  min-width: 0;
}

.project-card__body {
  display: grid;
  gap: 14px;
}

.project-card__body p {
  margin: 0;
}

.project-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-line);
  background: linear-gradient(180deg, rgba(7, 128, 104, 0.04), rgba(0, 24, 63, 0.02));
}

.project-card__media img {
  width: 100%;
  max-width: 350px;
  max-height: 136px;
  object-fit: contain;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-item strong {
  color: var(--brand-teal);
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
}

.timeline-item span,
.project-card p {
  color: var(--text-soft);
  line-height: 1.75;
}

.article-body {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

.article-body a {
  color: var(--brand-teal);
  font-weight: 700;
  word-break: break-word;
}

.article-body a.button-primary {
  color: var(--brand-white);
}

.article-body a.button-outline {
  color: var(--brand-teal);
}

.article-body iframe,
.article-body video,
.article-body .wp-video {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-md);
}

.article-body iframe,
.article-body video {
  min-height: 320px;
  background: #000;
}

.article-body .wp-video {
  margin: 18px 0;
}

.policy-body {
  display: grid;
  gap: 24px;
}

.policy-body p {
  margin: 0;
}

.policy-subsection {
  display: grid;
  gap: 8px;
}

.policy-subsection h2 {
  margin: 0;
}

.policy-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.policy-cert-grid--product {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-card img {
  width: auto;
  max-width: 100%;
  max-height: 96px;
  margin: 0 0 14px;
  object-fit: contain;
  object-position: left center;
}

.policy-card--document {
  min-height: 100%;
}

.policy-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-height: 72px;
  margin: 0 0 14px;
  border: 1px solid rgba(7, 128, 104, 0.18);
  border-radius: var(--radius-md);
  background: rgba(7, 128, 104, 0.08);
  color: var(--brand-teal-strong);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.policy-card h3 {
  margin: 0 0 10px;
}

.policy-card p {
  margin: 0 0 18px;
  flex: 1;
}

.policy-card .button {
  margin-top: auto;
}

.policy-highlight-card,
.policy-doc-grid {
  display: grid;
  gap: 20px;
}

.policy-highlight-card {
  grid-template-columns: minmax(160px, 220px) 1fr;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-highlight-card img {
  width: 100%;
  max-width: 220px;
  max-height: 140px;
  object-fit: contain;
}

.policy-highlight-card h3 {
  margin: 0 0 10px;
}

.policy-highlight-card p {
  margin: 0 0 18px;
}

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

.cookie-policy-body {
  display: grid;
  gap: 26px;
}

.cookie-policy-body ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.75;
}

.cookie-info-stack {
  display: grid;
  gap: 18px;
}

.cookie-table-wrap {
  overflow-x: auto;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cookie-table th,
.cookie-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--brand-line);
  text-align: left;
}

.cookie-table th {
  color: var(--brand-navy);
  background: rgba(7, 128, 104, 0.08);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(520px, calc(100% - 24px));
}

.cookie-banner-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--brand-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 46px rgba(0, 24, 63, 0.16);
  backdrop-filter: blur(18px);
}

.cookie-banner-title {
  margin: 0 0 8px;
  color: var(--brand-navy);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-banner-copy p:last-child,
.cookie-modal-head p,
.cookie-setting small {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.cookie-banner-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-manage-button {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 55;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 24, 63, 0.92);
  color: var(--brand-white);
  box-shadow: 0 16px 32px rgba(0, 24, 63, 0.2);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 12, 32, 0.56);
}

.cookie-modal-dialog {
  position: relative;
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: var(--brand-white);
  box-shadow: 0 32px 80px rgba(0, 16, 42, 0.28);
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 24, 63, 0.08);
  color: var(--brand-navy);
  font-size: 1.4rem;
}

.cookie-modal-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding-right: 42px;
}

.cookie-modal-head h2 {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  color: var(--brand-navy);
}

.cookie-settings-list {
  display: grid;
  gap: 12px;
}

.cookie-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: var(--surface);
}

.cookie-setting strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-navy);
}

.cookie-setting input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-teal);
}

.cookie-setting.is-locked {
  background: rgba(7, 128, 104, 0.08);
}

.cookie-modal-actions {
  margin-top: 22px;
}

.contact-card strong {
  color: var(--brand-navy);
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
}

.contact-form {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--brand-navy);
  font-weight: 700;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid .checkbox-label {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.55;
}

.form-grid .checkbox-label input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 24, 63, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(7, 128, 104, 0.18);
  border-color: var(--brand-teal);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.form-status {
  margin: 0;
  color: var(--brand-teal);
  font-weight: 700;
}

.form-status.is-error {
  color: #b73434;
}

.site-footer {
  padding: 56px 0 26px;
  background:
    radial-gradient(circle at top left, rgba(7, 128, 104, 0.22), transparent 26%),
    linear-gradient(180deg, #031634 0%, #021126 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 0.55fr;
  gap: 28px;
  padding-bottom: 28px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-brand,
.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-brand > p {
  max-width: 34ch;
}

.footer-contact-stack {
  display: grid;
  gap: 14px;
}

.footer-address-block {
  display: grid;
  gap: 6px;
}

.footer-address-block + .footer-address-block {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-contact-stack p {
  margin: 0;
}

.footer-address-block .footer-title {
  color: #8de1d0;
}

.footer-address-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.footer-map {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: 130px;
  border: 0;
  border-radius: 10px;
  filter: saturate(0.9);
}

.footer-link-list {
  display: grid;
  gap: 10px;
}

.footer-column .footer-link-list + .footer-title {
  margin-top: 18px;
}

.footer-link-list a,
.footer-contact-stack a {
  width: fit-content;
}

/* Tracciabilità: U28 */
.footer-link-list a {
  font-size: 0.875rem;
}

.footer-link-list a:hover,
.footer-contact-stack a:hover,
.footer-bottom a:hover {
  color: #078068;
}

.site-footer .footer-title {
  margin: 0;
  color: #8de1d0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  line-height: 1.2;
}

.footer-note {
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.scroll-top-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 26;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-soft));
  color: var(--brand-white);
  box-shadow: 0 18px 32px rgba(0, 24, 63, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.92);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-button:hover {
  background: linear-gradient(135deg, var(--brand-teal-strong), var(--brand-teal));
  transform: translateY(-2px) scale(1.03);
}

.content-card:hover,
.team-card:hover,
.news-card:hover,
.archive-card:hover,
.partner-card:hover,
.metric-card:hover,
.contact-card:hover,
.panel:hover,
.logo-wall-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 24, 63, 0.12);
  border-color: rgba(7, 128, 104, 0.22);
}

.partner-card:hover img,
.logo-wall-card:hover img {
  transform: scale(1.035);
}

.feature-band img:hover,
.feature-band-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 42px rgba(0, 24, 63, 0.14);
}

body.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

body.motion-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.motion-ready .section-title.reveal-on-scroll {
  transform: translateY(12px);
}

/* Tracciabilità: U08. Su desktop il full bleed non aumenta l'ingombro originario dello slideshow. */
@media (min-width: 1025px) {
  .page-hero-home {
    height: clamp(432px, 100svh, 462px);
    min-height: clamp(432px, 100svh, 462px);
  }

  .hero-slideshow-home {
    height: clamp(432px, 100svh, 462px);
    min-height: 0;
    max-height: 462px;
  }

  /* Tracciabilità: U10. Le slide testuali conservano un margine inferiore visibile anche su viewport bassi. */
  .slide-card:not(.slide-card--media-only) {
    padding-top: 84px;
    padding-bottom: 18px;
  }

  .slide-card--media-only {
    padding: 0;
  }

  .slide-media--image:not(.slide-media--epro) {
    height: 300px;
  }

  /* U62: più respiro sotto il menu nella sola slide AGENAS, senza allungare l'hero. */
  .slide-card--news .slide-media--image {
    margin-top: 24px;
    height: clamp(270px, calc(100svh - 162px), 300px);
  }

  .slide-card--news .slide-media--image img {
    max-height: clamp(270px, calc(100svh - 162px), 300px);
  }

  .slide-media--epro {
    height: 320px;
    min-height: 320px;
  }

  .slide-card--epro:not(.slide-card--media-only) {
    padding-top: 84px;
    padding-bottom: 18px;
  }

  /* Tracciabilità: U11, U12. Indicatori liberi dalla capsula e separati dai contenuti desktop. */
  .slideshow-dots {
    bottom: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .slideshow-dot {
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 1px 5px rgba(0, 24, 63, 0.28);
  }

  .slideshow-dot.is-active {
    background: #16b89a;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  .page-hero-home {
    min-height: 60svh;
  }

  .page-hero-home .page-hero-inner {
    min-height: auto;
  }

  .page-hero-inner,
  .feature-band,
  .article-layout,
  .footer-grid,
  .archive-card,
  .hero-stats,
  .grid-3,
  .policy-cert-grid,
  .policy-doc-grid,
  .news-grid,
  .team-grid,
  .partner-grid,
  .logo-wall,
  .logo-wall-trust,
  .contact-grid,
  .metrics-grid,
  .compact-list,
  .form-grid,
  .icon-grid,
  .developer-grid {
    grid-template-columns: 1fr;
  }

  .company-hero-profile .company-hero-profile-grid {
    grid-template-columns: 1fr;
  }

  .home-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-reference-groups {
    grid-template-columns: 1fr;
    grid-template-areas:
      'irccs'
      'hospitals'
      'pharma'
      'pa'
      'integrator';
  }

  .company-reference-logo-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-card {
    align-items: flex-start;
  }

  .article-visual {
    justify-content: flex-start;
  }

  .hero-slideshow-home {
    min-height: 60svh;
    max-height: none;
    gap: 14px;
  }

  .clinical-intro-grid {
    grid-template-columns: 1fr;
  }

  .clinical-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 42px;
  }

  .stack-step {
    min-height: 260px;
  }

  .stack-step::after {
    display: none;
  }

  .pillar-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid > .proof-card:nth-child(n) {
    grid-column: auto;
  }

  .pillar-card {
    min-height: 270px;
  }

  .slide-card {
    grid-template-columns: 1fr;
    padding: 108px 24px 40px;
  }

  .slide-card--media-only {
    padding: 0;
  }

  .slide-media {
    height: clamp(190px, 32vw, 300px);
  }

  .slide-card--media-only .slide-media {
    height: 100%;
  }

  .slide-media--image img {
    max-width: min(100%, 280px);
    max-height: min(100%, 210px);
  }

  .slideshow-controls {
    width: auto;
    padding-inline: 24px;
    margin: 0;
  }

  .policy-highlight-card {
    grid-template-columns: 1fr;
  }

  .cert-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .cookie-manage-button {
    left: 12px;
    bottom: 12px;
  }

  .hero-video-frame {
    border-radius: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-address-map {
    grid-template-columns: 1fr;
  }

  .scroll-top-button {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 840px) {
  .site-header {
    top: 10px;
  }

  .header-inner {
    min-height: 66px;
    width: min(calc(var(--wrap) + 8px), calc(100% - 20px));
    padding: 8px 4px;
    border-radius: 18px;
  }

  .site-header.is-scrolled .header-inner {
    padding-inline: 10px;
  }

  .brand img {
    height: 34px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 22px 38px rgba(0, 24, 63, 0.16);
    backdrop-filter: blur(18px);
  }

  .site-nav a,
  .nav-parent {
    color: var(--brand-navy);
  }

  .site-nav a:hover,
  .site-nav a.active,
  .nav-group.active > .nav-parent,
  .nav-parent:hover {
    color: var(--brand-white);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-group {
    position: static;
  }

  .nav-dropdown {
    position: static;
    display: block;
    min-width: 0;
    padding: 6px 0 0 14px;
    border: 0;
    box-shadow: none;
  }

  .nav-dropdown a {
    padding: 8px 10px;
  }
}

@media (max-width: 640px) {

  /* Tracciabilità: U53, U54, D10. Stessa immagine originale U16, interamente contenuta nella viewport. */
  .stack-reference-scroll {
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .stack-reference-scroll::-webkit-scrollbar {
    display: none;
  }

  .stack-reference-crop {
    width: 100%;
    min-width: 0;
  }
  .wrap {
    width: min(var(--wrap), calc(100% - 20px));
  }

  .page-hero {
    padding: 0;
  }

  .home-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-reference-card {
    min-height: 132px;
    padding: 12px;
  }

  .company-reference-logo-grid--2,
  .company-reference-logo-grid--3,
  .company-reference-logo-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-reference-group {
    padding: 14px 12px 16px;
  }

  .company-reference-logo-card {
    min-height: 100px;
    padding: 5px;
  }

  .company-reference-logo {
    height: 90px;
  }

  /* Tracciabilità: D03. Compensa l'header fisso sulle pagine interne. */
  .page-hero:not(.page-hero-home):not(.page-hero-article) {
    padding: 104px 0 38px;
  }

  /* Tracciabilità: V02. Altezza naturale e cambio slide senza salti/ritagli. */
  .page-hero-home {
    min-height: 0;
  }

  .page-hero-home .page-hero-inner {
    min-height: 0;
  }

  .hero-slideshow-home {
    height: auto;
    min-height: 0;
    max-height: none;
    gap: 0;
  }

  .slideshow-track {
    min-height: 0;
    align-items: flex-start;
    transition: transform 320ms ease, height 240ms ease;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .page-hero-article {
    padding: 106px 0 26px;
  }

  .page-hero.page-hero-article h1 {
    font-size: clamp(1.35rem, 5.4vw, 1.9rem);
  }

  .article-hero-meta {
    margin-top: 12px;
  }

  .hero-panel,
  .content-card,
  .news-card,
  .team-card,
  .contact-card,
  .archive-card,
  .article-body,
  .article-aside,
  .partner-card,
  .timeline-item,
  .project-card,
  .contact-form {
    padding: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-card--detailed {
    grid-template-columns: 1fr;
  }

  .project-card__media {
    order: -1;
  }

  .slide-card {
    min-height: 0;
    padding: 94px 20px 24px;
  }

  .slide-card--media-only {
    padding: 0;
  }

  .page-hero-home .slide-copy h3 {
    max-width: none;
  }

  .slide-media {
    height: 160px;
  }

  .slide-card--media-only .slide-media {
    /* Tracciabilità: U08. Full bleed, ma con l'ingombro mobile originario dello slideshow. */
    height: clamp(320px, 96vw, 360px);
  }

  .slide-media--epro {
    min-height: 220px;
    height: auto;
    padding: 0;
  }

  .page-hero-home .slide-card--epro .slide-copy h3 {
    max-width: none;
    font-size: clamp(1.9rem, 8.8vw, 2.3rem);
  }

  .epro-reference-visual {
    width: 100%;
  }

  .slide-media--image img {
    max-width: min(100%, 220px);
    max-height: 120px;
  }

  .slideshow-controls {
    width: auto;
    padding: 0 12px;
    margin: 0;
  }

  .slideshow-button {
    width: 40px;
    height: 40px;
  }

  /* Tracciabilità: V04. Il copy U25 è più lungo: sulla sola slide ePRO le frecce scendono sul visuale. */
  .hero-slideshow-home:has(.slide-card--epro.is-active) .slideshow-button {
    translate: 0 116px;
  }

  .slideshow-dots {
    bottom: 12px;
  }

  .clinical-intro-grid,
  .company-purpose-grid,
  .clinical-stack,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .clinical-intro h1 {
    font-size: clamp(2.1rem, 10.5vw, 2.9rem);
  }

  /* Tracciabilità: U14. Su mobile il testo torna allineato a sinistra per leggibilità. */
  .clinical-intro .section-title {
    justify-self: stretch;
    text-align: left;
  }

  .clinical-intro h1,
  .clinical-intro-lead {
    margin-inline: 0;
  }

  .purpose-card {
    padding: 24px;
  }

  .stack-step,
  .pillar-card,
  .purpose-card {
    min-height: 0;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: 96px;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px 16px;
  }

  .proof-icon {
    width: 48px;
    height: 48px;
  }

  .proof-source-icon {
    width: 46px;
    height: 46px;
  }

  .proof-card strong {
    font-size: clamp(1.6rem, 8vw, 1.95rem);
  }

  .proof-card > span:not(.proof-icon) {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .proof-card--textual strong {
    font-size: 0.86rem;
  }

  .module-visual {
    height: 190px;
    padding: 8px;
  }

  .module-source-visual {
    height: 172px;
  }

  .business-visual {
    width: 98px;
    height: 98px;
  }

  .business-source-visual {
    width: 98px;
    height: 98px;
  }

  .timeline-list-visual {
    padding-left: 24px;
  }

  .timeline-list-visual .timeline-item::before {
    left: -25px;
  }

  .standard-grid {
    grid-template-columns: 1fr;
  }

  /* Tracciabilità: V03 */
  .cookie-manage-button {
    left: auto;
    right: 10px;
    bottom: 10px;
    min-height: 36px;
    max-width: 118px;
    padding: 0 10px;
    overflow: hidden;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cert-summary {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .cert-summary-item {
    min-height: 0;
  }
}
