@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/poppins-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/poppins-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins/poppins-extrabold.ttf") format("truetype");
  font-weight: 800 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono/dm-mono-light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono/dm-mono-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono/dm-mono-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --blue: #213a59;
  --blue-deep: #13263d;
  --paper: #f5f2ec;
  --white: #ffffff;
  --ink: #232b36;
  --muted: #5d6978;
  --green: #2e6e57;
  --green-deep: #1f4f3f;
  --green-light: #e2ebe6;
  --azure: #4a7fb5;
  --azure-soft: #9fc0da;
  --azure-light: #e3ecf4;
  --sand: #ddcbbc;
  --sand-deep: #8a7360;
  --gold: #e9b544; /* oro dei social DICO, caldo e non vivido */
  --green-portal: #16a34a; /* pill "Portale": stesso verde di referenze.css */
  --line: rgba(35, 43, 54, 0.14);
  --shadow: 0 24px 70px rgba(17, 35, 56, 0.16);
  --font: Poppins, "Avenir Next", "Segoe UI", sans-serif;
  --canvas: #f5f2ec;
  /* scala spaziature aurea (x1.618) */
  --s1: 0.5rem;
  --s2: 0.809rem;
  --s3: 1.309rem;
  --s4: 2.118rem;
  --s5: 3.427rem;
  --s6: 5.545rem;
  --s7: 8.972rem;
  --section-pad: clamp(var(--s6), 8.5vw, var(--s7));
  /* gutter orizzontale unico di tutta la pagina: ~22px su mobile (prima 16px),
     cresce dolcemente fino a 32px. Un solo punto da regolare. */
  --page-pad: clamp(1.35rem, 4.5vw, 2rem);
  --band-radius: clamp(24px, 3vw, 44px);
  --section-blend: clamp(2.4rem, 5vw, 5.5rem);
  --type-hero: clamp(2.45rem, 3.25vw, 3.45rem);
  --type-statement: clamp(2.35rem, 4.65vw, 4.15rem);
  --type-section-title: clamp(2.25rem, 4.7vw, 4.85rem);
  --type-footer-marquee: clamp(3.4rem, 8.7vw, 8.25rem);
  --type-footer-title: clamp(2.25rem, 4.6vw, 4.9rem);
  --anchor-offset: 7rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

/* Lenis gestisce lo scroll fluido su desktop: il nativo torna auto */
html.lenis {
  scroll-behavior: auto;
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  /* nessun elemento largo deve poter far scorrere la pagina in orizzontale:
     senza questo una banda o un titolo che sfora "taglia" il resto su mobile. */
  overflow-x: hidden;
  color: var(--ink);
  /* canvas dinamico: il colore di fondo cambia con la sezione (stile PN2027) */
  background: var(--canvas);
  font-family: var(--font);
  text-rendering: geometricPrecision;
  transition: background-color 700ms ease;
}

body.page-canvas-light-start {
  --canvas: #ffffff;
}

body.page-canvas-azure-start {
  --canvas: #e3ecf4;
}

body.page-canvas-light-start .people-band {
  background: var(--canvas);
  transition: background-color 700ms ease;
}

p,
li,
a,
summary,
.channel-board span,
.flow-mobile-node strong,
.flow-mobile-channels span,
.trust-badges li,
.footer-bottom p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.hero-claim,
.section-intro h2,
.system-copy h2,
.reference-copy h2,
.resources h2,
.footer-panel h2 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

a {
  color: inherit;
}

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

.anchor-alias {
  position: relative;
  top: calc(var(--anchor-offset) * -1);
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0.85rem;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: min(1220px, calc(100% - var(--page-pad) * 2));
  min-height: 4.25rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(33, 58, 89, 0.14);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(33, 58, 89, 0.18);
}

html[data-tone="blue"] .site-header {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(15, 21, 29, 0.42);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

html[data-tone="blue"] .site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(15, 21, 29, 0.54);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-left: 0.45rem;
}

.brand img {
  width: 8.9rem;
  height: auto;
}

.top-nav {
  --nav-pill-x: 0px;
  --nav-pill-y: 0px;
  --nav-pill-w: 0px;
  --nav-pill-h: 0px;
  --nav-pill-opacity: 0;
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.top-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--nav-pill-w);
  height: var(--nav-pill-h);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(15, 21, 29, 0.12);
  opacity: var(--nav-pill-opacity);
  transform: translate3d(var(--nav-pill-x), var(--nav-pill-y), 0);
  transition:
    width 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 160ms ease;
  pointer-events: none;
}

.top-nav a,
.header-cta,
.hero-actions a,
.reference-copy a,
.contact-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
}

.top-nav a {
  position: relative;
  z-index: 1;
  padding: 0 0.85rem;
  color: rgba(33, 58, 89, 0.78);
}

.top-nav a:hover,
.top-nav a.is-active {
  color: rgba(23, 32, 51, 0.96);
}

.top-nav a:hover:not(.is-active) {
  background: rgba(33, 58, 89, 0.08);
}

html[data-tone="blue"] .top-nav a {
  color: rgba(255, 255, 255, 0.82);
}

html[data-tone="blue"] .top-nav a.is-active {
  color: rgba(23, 32, 51, 0.96);
}

html[data-tone="blue"] .top-nav a:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.12);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.utility-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 58, 89, 0.12);
  border-radius: 999px;
  padding: 0 0.9rem;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* rif. Sabina 14.07: "Accedi al portale" si mescolava con le altre voci:
   pill blu pieno, distinto sia dal ghost "Sei un'azienda?" sia dal CTA giallo. */
.utility-link-portal {
  border-color: transparent;
  color: var(--white);
  background: var(--green-portal);
  box-shadow: 0 10px 22px rgba(11, 95, 215, 0.24);
}

.utility-link-portal:hover,
.utility-link-portal:focus-visible {
  color: var(--white);
  background: #128a3d;
}

html[data-tone="blue"] .utility-link {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
}

/* sulle sezioni scure il pill blu non staccherebbe: diventa bianco pieno,
   restando distinto dal ghost "Sei un'azienda?" e dal CTA giallo. */
html[data-tone="blue"] .utility-link-portal {
  border-color: transparent;
  color: var(--white);
  background: var(--green-portal);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

html[data-tone="blue"] .utility-link-portal:hover,
html[data-tone="blue"] .utility-link-portal:focus-visible {
  color: var(--white);
  background: #128a3d;
}

/* Toggle menu mobile: nascosto su desktop, comparso <=980px. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(33, 58, 89, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

html[data-tone="blue"] .nav-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms ease, opacity 160ms ease, top 240ms ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* Pannello menu mobile a scomparsa. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem var(--page-pad) 2rem;
  background: rgba(15, 21, 29, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: min(420px, 100%);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(15, 21, 29, 0.32);
  transform: translateY(-10px);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateY(0);
}

.mobile-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 14px;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible {
  background: rgba(33, 58, 89, 0.07);
}

.mobile-menu-utilities {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(33, 58, 89, 0.1);
}

.mobile-menu-utilities a {
  min-height: 48px;
  font-size: 0.95rem;
  color: var(--muted);
}

.mobile-menu-cta {
  margin-top: 0.5rem;
  justify-content: center !important;
  color: var(--blue-deep) !important;
  background: var(--gold);
  font-weight: 800 !important;
}

.header-cta,
.hero-actions a:first-child,
.reference-copy a,
.contact-panel a {
  padding: 0 1.25rem;
  color: var(--blue-deep);
  background: var(--gold);
}

.message-cta {
  position: relative;
  min-width: max-content;
  gap: 0.48rem;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.message-cta:hover {
  background: #f2c25c;
  transform: translateY(-1px);
}

.message-cta-label,
.message-cta-plane,
.message-cta-sent {
  position: relative;
  z-index: 1;
}

.message-cta-label {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.message-cta-plane {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition: transform 220ms ease;
}

.message-cta-plane svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-cta:hover .message-cta-plane {
  transform: translate3d(0.12rem, -0.08rem, 0) rotate(-8deg);
}

.message-cta-sent {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.message-cta.is-flying {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(33, 58, 89, 0.26);
}

.message-cta.is-flying .message-cta-label {
  opacity: 0;
  transform: scale(0.92);
}

.message-cta.is-flying .message-cta-plane {
  animation: message-plane-flight 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.message-cta.is-sent {
  background: var(--green);
  color: var(--white);
}

.message-cta.is-sent .message-cta-label,
.message-cta.is-sent .message-cta-plane {
  opacity: 0;
}

.message-cta.is-sent .message-cta-sent {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes message-plane-flight {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  45% {
    opacity: 1;
    transform: translate3d(1.8rem, -0.45rem, 0) rotate(-12deg) scale(1.08);
  }

  100% {
    opacity: 0;
    transform: translate3d(5.2rem, -2.2rem, 0) rotate(-24deg) scale(0.86);
  }
}

main {
  overflow: clip;
}

section {
  width: min(1180px, calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  scroll-margin-top: var(--anchor-offset);
}

#plus,
#risorse,
.site-footer {
  scroll-margin-top: var(--anchor-offset);
}

.hero {
  --win-scale: 1;
  --win-opacity: 1;
  --field-scale: 1.06;
  --field-y: 0px;
  --intro-opacity: 1;
  --intro-y: 0px;
  --statement-opacity: 0;
  --statement-y: 34px;
  --hint-opacity: 1;
  position: relative;
  width: 100%;
  max-width: none;
  height: 240svh;
  margin: 0;
  overflow: clip;
  color: var(--white);
  background: var(--blue-deep);
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--blue-deep);
}

.hero-field,
.hero-network-wrap,
.hero-intro,
.hero-statement {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.hero-field {
  z-index: 0;
  /* il territorio si sviluppa in verticale dietro la finestra e durante
     lo scroll viaggia come una pagina lunga (rif. jeskojets) */
  height: 220svh;
  bottom: auto;
  transform: translate3d(0, var(--field-y), 0);
}

.hero-field img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform: scale(var(--field-scale));
  transform-origin: center 20%;
}

.hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  /* territorio in penombra con tinta blu profonda: la rete "filo" risalta sopra */
  background:
    radial-gradient(120% 92% at 50% 30%, rgba(18, 40, 68, 0.28) 0%, rgba(8, 15, 27, 0.9) 76%),
    linear-gradient(180deg, rgba(8, 15, 27, 0.62) 0%, rgba(8, 15, 27, 0.32) 42%, rgba(8, 15, 27, 0.94) 100%);
}

/* Hero "filo che raggiunge tutti": rete viva su canvas. */
.hero-network-wrap {
  z-index: 2;
  opacity: var(--win-opacity);
  pointer-events: none;
}

.hero-network {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(var(--win-scale));
  transform-origin: center 44%;
}

.eyebrow {
  display: block;
  color: var(--green);
}

.hero .eyebrow,
.solution-fit .eyebrow,
.plus .eyebrow,
.resources .eyebrow,
.site-footer .eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-intro {
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
  padding: 7rem max(var(--page-pad), calc((100vw - 1180px) / 2)) clamp(4.8rem, 8vh, 7rem);
  opacity: var(--intro-opacity);
  transform: translate3d(0, var(--intro-y), 0);
  pointer-events: none;
}

.hero-intro-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: end;
}

.hero-intro-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: end;
  text-align: right;
}

.hero-statement h2,
.section-intro h2,
.system-copy h2,
.reference-copy h2,
.plus h2,
.resources h2,
.contact-panel h2 {
  margin: 0;
  font-weight: 780;
  letter-spacing: -0.035em;
}

/* word-reveal mascherato sui titoli di sezione (split via JS, motion-safe) */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.split-word > span {
  display: inline-block;
  will-change: transform;
}

.hero-claim {
  width: min(13ch, 100%);
  margin: clamp(1rem, 2vh, 1.45rem) 0 0;
  color: var(--white);
  font-size: var(--type-hero);
  font-weight: 830;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 26px rgba(9, 15, 25, 0.55);
}

.hero-claim .split-word,
.footer-panel h2 .split-word {
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 0;
}

.hero-intro .lead {
  width: min(25rem, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.5;
  text-shadow: 0 1px 18px rgba(9, 15, 25, 0.55);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  padding: 0.32rem 0.58rem 0.32rem 0.36rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.8rem 1.9rem rgba(9, 15, 25, 0.16);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.trust-badges .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.48rem;
  min-width: 1.48rem;
  height: 1.48rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  overflow: hidden;
}

.trust-badges .badge-icon img,
.trust-badges .badge-icon svg {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.trust-badges .badge-icon-meta img {
  width: 1.12rem;
  height: 1.12rem;
}

.trust-badges .badge-icon-mepa {
  letter-spacing: -0.03em;
}

.trust-badges .badge-icon-gdpr svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-statement {
  z-index: 3;
  display: grid;
  place-items: center;
  /* gutter 1rem coerente con le altre bande (era 1.2rem, sfasava il rientro) */
  padding: 6rem var(--page-pad);
  text-align: center;
  opacity: var(--statement-opacity);
  transform: translate3d(0, var(--statement-y), 0);
  pointer-events: none;
}

.hero-statement > div {
  width: min(760px, 100%);
}

.hero-statement h2 {
  margin: 1rem 0 0;
  color: var(--white);
  font-size: var(--type-statement);
  line-height: 1.04;
  text-shadow: 0 2px 34px rgba(9, 15, 25, 0.5);
}

.hero-statement p {
  width: min(560px, 100%);
  margin: 1.3rem auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  text-shadow: 0 1px 20px rgba(9, 15, 25, 0.5);
}

.hero-scroll-hint {
  position: absolute;
  z-index: 4;
  left: max(1rem, calc((100vw - 1180px) / 2 - 4.9rem));
  bottom: clamp(4.8rem, 8vh, 7rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: var(--hint-opacity);
  pointer-events: auto;
  cursor: pointer;
  transition: color 220ms ease;
}

.hero-scroll-hint:hover,
.hero-scroll-hint:focus-visible {
  color: #fff;
  outline: none;
}

.hero.is-hint-hidden .hero-scroll-hint {
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent);
  transform-origin: top center;
  animation: hero-hint-breath 2.6s ease-in-out infinite;
}

/* "respiro": la linea si allunga e si accende con ritmo calmo */
@keyframes hero-hint-breath {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.hero-scroll-hint:hover::after {
  animation-duration: 1.7s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint::after {
    animation: none;
    transform: scaleY(1);
    opacity: 0.7;
  }
}

.mission-grid,
.solution-fit,
.method,
.pillars,
.targeting,
.system,
.plus-resources,
.references,
.contact-panel {
  padding: var(--section-pad) 0;
}

.section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--s5);
}

.section-intro .eyebrow {
  margin: 0 0 var(--s3);
}

.section-intro h2 {
  width: min(24ch, 100%);
}

.section-intro > p:not(.eyebrow) {
  margin: var(--s3) 0 0;
  max-width: 40rem;
}

.section-intro h2,
.system-copy h2,
.reference-copy h2,
.resources h2,
.contact-panel h2 {
  font-size: var(--type-section-title);
  line-height: 0.93;
  /* i titoli grandi non devono mai sforare: parole lunghe (DICO.ONLINE) vanno
     a capo invece di allargare la sezione oltre il viewport. */
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Il titolo di Servizi vive in una colonna (meta' pagina), non a tutta larghezza
   come gli altri: a 4.85rem sforava. Qui e' piu' contenuto cosi' resta nella sua
   colonna e non compenetra i canali a destra. */
.system-copy h2 {
  font-size: clamp(2.25rem, 3.55vw, 3.7rem);
  line-height: 0.98;
  /* niente spezzatura di parola: "DICO.ONLINE:" e "comunicazione" restano interi
     (col break-word andavano a capo come "DICO.ONLINE" + ":" e "comunicazio" + "ne").
     La colonna e' abbastanza larga da contenerli senza sforare. */
  overflow-wrap: normal;
  word-break: normal;
}

.section-intro p:not(.eyebrow),
.system-copy p,
.plus .section-intro p:not(.eyebrow),
.reference-copy p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

/* Quando le chip seguono un blocco con reveal (accordion "soluzione", deck
   pilastri, griglie plus/valori, carosello referenze) le card partono da
   +42px: serve uno stacco maggiore e COERENTE, altrimenti durante
   l'animazione entrano nelle chip (compenetrazione). */
.solution-accordion + .section-actions,
.pillar-deck + .section-actions,
.plus-grid + .section-actions,
.value-grid + .section-actions,
.reference-carousel + .section-actions,
.method-faq-all + .section-actions {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 4.5vw, 4.75rem);
}

.section-actions a {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 58, 89, 0.14);
  border-radius: 999px;
  padding: 0.62rem 0.86rem;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.section-actions-dark a {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.section-actions .section-actions-cta {
  border-color: rgba(251, 188, 5, 0.48);
  color: var(--blue-deep);
  background: var(--gold);
}

.section-actions-dark .section-actions-cta {
  border-color: rgba(251, 188, 5, 0.78);
  color: var(--blue-deep);
  background: var(--gold);
}

@media (hover: hover) {
  .section-actions a:hover {
    border-color: rgba(74, 127, 181, 0.34);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
  }

  .section-actions .section-actions-cta:hover {
    background: #ffd15a;
  }

  .section-actions-dark .section-actions-cta:hover {
    color: var(--blue-deep);
    background: #ffd15a;
  }
}

/* Card valori: card singole arrotondate (non più griglia "a tabella"),
   fondo pastello + alone di colore per profondità, icona in tile bianco. */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.4vw, 1.15rem);
  counter-reset: value-card;
}

/* rif. Sabina 15.07: dove il testo è poco restava molto vuoto in fondo
   (la riga si stira sulla card più alta): contenuto centrato in verticale. */
.value-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 13rem;
  overflow: hidden;
  padding: clamp(1.3rem, 1.8vw, 1.7rem);
  border: 1px solid rgba(33, 58, 89, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 1px 2px rgba(17, 35, 56, 0.04);
  /* niente transition su transform: lo guida la fisica "magnetica" in JS
     frame per frame, una transizione lo farebbe arrancare. */
  transition:
    box-shadow 320ms ease,
    border-color 320ms ease;
}

/* alone morbido in alto: dà profondità senza appesantire */
.value-grid article::before {
  content: "";
  position: absolute;
  inset: -34% -20% auto -20%;
  height: 72%;
  background: radial-gradient(circle at 32% 0%, var(--value-glow, transparent), transparent 70%);
  pointer-events: none;
}

/* rif. doc 13.07: niente numeri (non è una sequenza), fondi pastello soft. */
.value-grid article::after {
  display: none;
}

.value-grid article:nth-child(1) { background: #eef3fa; --value-glow: rgba(11, 95, 215, 0.17); }
.value-grid article:nth-child(2) { background: #edf5f0; --value-glow: rgba(46, 110, 87, 0.17); }
.value-grid article:nth-child(3) { background: #f8f3e9; --value-glow: rgba(251, 188, 5, 0.24); }
.value-grid article:nth-child(4) { background: #f1eff8; --value-glow: rgba(108, 92, 180, 0.17); }

/* Metodo "Come lavoriamo": infografica a piena larghezza */
.method .method-news {
  grid-template-columns: 1fr;
}

.method-infographic {
  margin: 1.2rem 0 0;
}

.method-infographic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Esempio reale del metodo (infografica San Benedetto): figura a piena
   larghezza con fondo chiaro così l'illustrazione resta leggibile. */
.method-example {
  width: min(1180px, 100%);
  margin: 0;
}

.method-example img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(17, 35, 56, 0.12);
}

/* Chiusura del flusso: il messaggio che arriva al cittadino. Stesso contenitore
   dell'esempio editoriale, con didascalia sotto. */
.method-delivery img {
  object-fit: cover;
}

.method-delivery figcaption {
  margin-top: 0.9rem;
  color: rgba(16, 20, 31, 0.7);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.5;
  text-align: center;
}

/* La nostra filosofia */
.method-philosophy {
  width: min(1180px, 100%);
}

.method-philosophy > h3 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.method-philosophy-intro {
  max-width: 52rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.philosophy-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.philosophy-values article {
  padding: 1.4rem 1.55rem;
  border-radius: 18px;
  background: #fff;
}

.philosophy-blue { background: #e9f0f9; }
.philosophy-green { background: #eaf4ee; }
.philosophy-azure { background: #e6eef7; }
.philosophy-sand { background: #f6f1e7; }

.philosophy-values h4 {
  margin: 0 0 0.4rem;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 820;
}

.philosophy-values p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.philosophy-commitment {
  margin-top: 1.5rem;
  padding: 1.6rem 1.7rem;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  color: #fff;
}

.philosophy-commitment h4 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 820;
}

.philosophy-commitment p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.55;
}

.method-faq-all {
  display: inline-flex;
  margin-top: 0.6rem;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.method-faq-all:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .philosophy-values {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) {
  /* il movimento lo fa la fisica magnetica: qui solo il feedback statico */
  .value-grid article:hover {
    border-color: rgba(33, 58, 89, 0.16);
    box-shadow: 0 26px 56px rgba(17, 35, 56, 0.14);
  }

  .value-grid article:hover .value-head {
    transform: translateY(-2px) scale(1.06) rotate(-3deg);
  }
}

.value-grid span,
.method-steps span,
.reference-cards span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  height: 2.1rem;
  border-radius: 999px;
  color: var(--blue);
  background: var(--azure-light);
  font-size: 0.82rem;
  font-weight: 850;
}

/* Testa card: icona fornita dal cliente (01-03) o numero (04), stessa
   altezza così i testi restano allineati sulla riga. */
.value-grid .value-head {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.3rem;
  min-width: 4.3rem;
  height: 4.3rem;
  padding: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--blue);
  box-shadow:
    0 12px 26px rgba(17, 35, 56, 0.12),
    inset 0 1px 0 #fff;
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-icon {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
}

.value-grid p {
  position: relative;
  z-index: 1;
  margin: 1.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--blue-deep);
}

.solution-fit {
  width: 100%;
  max-width: none;
  padding-right: max(var(--page-pad), calc((100vw - 1180px) / 2));
  padding-left: max(var(--page-pad), calc((100vw - 1180px) / 2));
  border-radius: var(--band-radius);
  background: var(--blue);
  color: var(--white);
}

/* le bande piene si appoggiano sul canvas con angoli morbidi coerenti */
.brand-band,
.people-band,
.plus-resources {
  border-radius: var(--band-radius);
}

.site-footer {
  border-radius: 0;
}

.solution-fit .section-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

/* "Vuoi raggiungere davvero i cittadini?": card fotografiche.
   Le persone sono in duotone e si accendono a colori al passaggio. */
.reach-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.reach-card {
  position: relative;
  display: flex;
  min-height: 26rem;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  grid-column: span 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: var(--blue-deep);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  isolation: isolate;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.reach-card:nth-child(4),
.reach-card:nth-child(5) {
  grid-column: span 3;
}

.reach-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.01);
  transition: opacity 600ms ease, filter 600ms ease, transform 700ms ease;
}

.reach-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 19, 31, 0.34) 0%, rgba(10, 19, 31, 0.12) 40%, rgba(10, 19, 31, 0.9) 100%),
    radial-gradient(circle at 84% 14%, rgba(159, 192, 218, 0.14), transparent 16rem);
  transition: opacity 500ms ease;
}

@media (hover: hover) {
  .reach-card:hover {
    border-color: rgba(159, 192, 218, 0.5);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    transform: translateY(-5px);
  }

  .reach-card:hover img {
    opacity: 0.88;
    filter: grayscale(0) contrast(1);
    transform: scale(1.055);
  }
}

/* su touch le foto restano a colori: nessun contenuto "nascosto" dietro l'hover */
@media (hover: none) {
  .reach-card img {
    opacity: 0.62;
    filter: grayscale(0);
  }
}

.reach-card-body {
  padding: 1.2rem;
}

.reach-card-body span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  height: 2.1rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--sand);
  font-size: 0.82rem;
  font-weight: 850;
}

.reach-card h3 {
  margin: 0.9rem 0 0.55rem;
  color: var(--white);
  font-size: clamp(1.3rem, 1.75vw, 1.66rem);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.reach-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.99rem;
  line-height: 1.5;
}

.method {
  display: grid;
  gap: clamp(2.75rem, 4.5vw, 4.5rem);
}

.method .section-intro {
  margin-bottom: 0;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: method-step;
}

.method-steps article {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 31rem;
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(74, 127, 181, 0.16), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54));
  box-shadow: 0 18px 46px rgba(33, 58, 89, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

@media (hover: hover) {
  .method-steps article:hover {
    box-shadow: 0 26px 58px rgba(33, 58, 89, 0.14);
    transform: translateY(-5px);
  }
}

/* percorso 01 -> 04: linea che avanza, inserita via JS (progressive enhancement) */
.step-line {
  position: absolute;
  top: 3.65rem;
  left: 1.1rem;
  width: calc(100% - 2.2rem);
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(46, 110, 87, 0.16));
  transform-origin: left center;
}

.method-steps article::after {
  content: "";
  position: absolute;
  right: -2.6rem;
  bottom: -2.9rem;
  width: 9rem;
  height: 8rem;
  border: 1.05rem solid rgba(33, 58, 89, 0.08);
  border-radius: 42% 46% 42% 48%;
  pointer-events: none;
}

.method-steps h3 {
  width: min(16ch, 100%);
  margin: 2rem 0 1rem;
  color: var(--blue);
  font-size: clamp(1.45rem, 2.1vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.method-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.52;
}

.method-step-copy {
  position: relative;
  z-index: 1;
}

.method-step-visual {
  position: relative;
  align-self: end;
  /* lo step 2 usa un <figure>, che ha il margine di default del browser
     (16px 40px): quei 40px per lato lo restringevano a 257px, disallineato
     rispetto alla colonna testo e agli altri due visual (che sono <div>). */
  margin: 0;
  min-height: 14rem;
  overflow: hidden;
  border: 1px solid rgba(33, 58, 89, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.method-message-visual {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 18%, rgba(251, 188, 5, 0.24), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 255, 0.9));
}

.method-message-visual::before,
.method-message-visual::after {
  position: absolute;
  border: 0.54rem solid rgba(74, 127, 181, 0.18);
  border-radius: 34px 34px 10px 34px;
  content: "";
  pointer-events: none;
}

.method-message-visual::before {
  inset: 1.3rem 1.3rem auto auto;
  width: 45%;
  height: 36%;
}

.method-message-visual::after {
  right: 1.3rem;
  bottom: 1.3rem;
  width: 62%;
  height: 42%;
  border-color: rgba(143, 78, 66, 0.18);
  border-radius: 34px 34px 34px 10px;
}

.method-social-card {
  position: relative;
  z-index: 1;
  padding: 0.85rem;
  border: 1px solid rgba(74, 127, 181, 0.2);
  border-radius: 20px 20px 20px 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1rem 2rem rgba(33, 58, 89, 0.12);
}

.method-social-card span {
  color: var(--blue);
  background: transparent;
  min-width: 0;
  height: auto;
  font-size: 0.75rem;
}

.method-social-card p {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.15;
}

.method-social-card-whatsapp {
  justify-self: end;
  width: min(82%, 16rem);
  border-color: rgba(251, 188, 5, 0.46);
  border-radius: 20px 20px 6px 20px;
}

.method-photo-visual img {
  /* la figure ha solo min-height (altezza auto), quindi height:100% non
     risolveva: la foto restava alla sua altezza naturale lasciando ~53px di
     vuoto sotto, dentro una card pensata per le illustrazioni degli altri
     step. In posizione assoluta riempie la card ed è ritagliata con cover. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-megaphone-visual {
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 76% 24%, rgba(251, 188, 5, 0.3), transparent 7rem),
    linear-gradient(145deg, #fff, #e9f1ff);
}

.method-megaphone-visual svg {
  width: min(76%, 15rem);
  filter: drop-shadow(0 1.1rem 1.8rem rgba(33, 58, 89, 0.2));
}

.method-megaphone-cone {
  fill: var(--gold);
}

.method-megaphone-body,
.method-megaphone-handle {
  fill: var(--blue);
}

.method-megaphone-line {
  fill: none;
  stroke: var(--sand);
  stroke-linecap: round;
  stroke-width: 10;
}

.method-output-chips {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.36rem;
  max-width: min(18rem, calc(100% - 1.6rem));
}

.method-output-chips span {
  min-width: 0;
  height: auto;
  padding: 0.42rem 0.52rem;
  border-radius: 999px;
  background: rgba(33, 58, 89, 0.92);
  color: var(--white);
  font-size: 0.75rem;
}

.system {
  display: grid;
  /* la colonna del testo era piu' STRETTA di quella delle card (0.9 < 1.1):
     il titolo grande sforava a destra sovrapponendosi ai canali. Ora il testo
     ha nettamente piu' spazio, cosi' le parole del titolo stanno intere su una
     riga senza spezzarsi ne' toccare i canali. */
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 3.5vw, 3.25rem);
  align-items: start;
}

.system-copy {
  align-self: start;
  min-width: 0;
}

.channel-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.channel-board article {
  display: flex;
  min-width: 0;
  min-height: 10rem;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.channel-icon {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.channel-icon-wide {
  width: 3.2rem;
}

@media (hover: hover) {
  .channel-board article:hover {
    border-color: rgba(74, 127, 181, 0.55);
    box-shadow: 0 16px 38px rgba(33, 58, 89, 0.12);
    transform: translateY(-4px);
  }

  .channel-board article:hover .channel-icon {
    transform: scale(1.12) rotate(-3deg);
  }
}

.channel-board strong {
  display: block;
  margin: auto 0 0.4rem;
  color: var(--blue);
  font-size: 1.35rem;
}

.channel-board span {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.portal-frame {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eef1f4;
}

/* barra browser: lo screenshot diventa "prodotto vivo" */
.portal-frame::before {
  content: "";
  display: block;
  height: 2.2rem;
  border-bottom: 1px solid rgba(33, 58, 89, 0.12);
  background:
    radial-gradient(circle at 1.15rem 50%, #8f4e42 0.28rem, transparent 0.34rem),
    radial-gradient(circle at 2.15rem 50%, #8a7360 0.28rem, transparent 0.34rem),
    radial-gradient(circle at 3.15rem 50%, #2e6e57 0.28rem, transparent 0.34rem),
    linear-gradient(180deg, #f8fafb, #eef1f4);
}

.portal-frame img {
  width: 100%;
  height: auto;
}

.flow-figure {
  grid-column: 1 / -1;
  margin: 1.6rem 0 0;
  min-width: 0;
}

.flow-scroller {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
}

.flow-scroller svg {
  display: block;
  width: 100%;
  min-width: 40rem;
  height: auto;
  font-family: var(--font);
}

.flow-mobile {
  display: none;
}

.flow-line {
  fill: none;
  stroke: rgba(33, 58, 89, 0.22);
  stroke-width: 2;
}

.flow-pulse {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 3 15;
  opacity: 0;
}

.flow-figure.is-live .flow-pulse {
  opacity: 0.9;
  animation: flow-drift 1.5s linear infinite;
}

@keyframes flow-drift {
  to {
    stroke-dashoffset: -36;
  }
}

.flow-chip rect {
  fill: rgba(255, 255, 255, 0.86);
  stroke: rgba(33, 58, 89, 0.16);
}

.flow-chip text {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.flow-hub rect {
  fill: var(--blue);
  stroke: none;
}

.flow-hub-title {
  fill: var(--white) !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.flow-hub-sub {
  fill: rgba(255, 255, 255, 0.72) !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- banda brand: spazio al marchio DICO --- */
.brand-band {
  width: 100%;
  max-width: none;
  /* extra padding-bottom: stacca il payoff dal marquee orizzontale in fondo */
  padding: clamp(3.4rem, 7vw, 5.5rem) var(--page-pad) clamp(6.5rem, 15vw, 9.5rem);
  text-align: center;
  background: var(--sand);
}

.brand-band img {
  width: min(34rem, 82%);
  height: auto;
  margin: 0 auto;
}

.brand-band p {
  margin: 1.4rem 0 0;
  color: rgba(35, 43, 54, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 750;
  letter-spacing: 0.01em;
}

/* --- pilastri: deck a impacchettamento (desktop), griglia altrove --- */
.pillar-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pillar-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  border-radius: 22px;
  color: var(--white);
  background-position: center;
  background-size: cover;
  box-shadow: 0 26px 60px rgba(17, 35, 56, 0.16);
}

.pillar-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(12, 24, 39, 0.04), rgba(12, 24, 39, 0.7));
}

/* Pilastri: solo colore, niente foto di sfondo (rif. doc 13.07, stile PN). */
.pillar-blue {
  background-image: linear-gradient(160deg, #34598570, #1a3453), linear-gradient(160deg, #345985, #1a3453);
}

.pillar-green {
  background-image: linear-gradient(160deg, #3a7a6370, #1f5343), linear-gradient(160deg, #3a7a63, #1f5343);
}

.pillar-azure {
  background-image: linear-gradient(160deg, #5786b570, #2b4d74), linear-gradient(160deg, #5786b5, #2b4d74);
}

.pillar-sand {
  color: var(--white);
  background-image: linear-gradient(160deg, #8a6f5e70, #4d3b32), linear-gradient(160deg, #8a6f5e, #4d3b32);
}

.pillar-card::before {
  display: none;
}

.pillar-kicker {
  margin: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.pillar-card h3 {
  margin: 2.2rem 0 0.6rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 790;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.pillar-card .pillar-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.88;
}

/* deck attivo (classe via JS, solo desktop + motion) */
.pillars.is-stack .pillar-deck {
  position: relative;
  display: block;
  height: 26rem;
  perspective: 1100px;
}

.pillars.is-stack .pillar-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(44rem, 94%);
  min-height: 20rem;
  margin: 0;
  padding: 1.8rem 2rem;
  box-shadow: 0 34px 80px rgba(17, 35, 56, 0.22);
  backface-visibility: hidden;
  will-change: transform;
}

/* --- targeting: tre profili --- */
.target-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.target-cards article {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.target-cards article::after {
  position: absolute;
  right: -3rem;
  bottom: -4.6rem;
  width: 12rem;
  height: 12rem;
  border: 1.2rem solid rgba(33, 58, 89, 0.055);
  border-radius: 48% 42% 46% 38%;
  content: "";
  pointer-events: none;
  transform: rotate(-8deg);
}

.target-motion {
  position: relative;
  display: block;
  width: 100%;
  height: 8.5rem;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(33, 58, 89, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 188, 5, 0.4) 0 0.42rem, transparent 0.46rem),
    radial-gradient(circle at 50% 50%, rgba(251, 188, 5, 0.16), transparent 4.6rem),
    linear-gradient(145deg, rgba(33, 58, 89, 0.96), rgba(19, 38, 61, 0.96));
}

.target-motion::before,
.target-motion::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.8rem;
  height: 4.8rem;
  border: 1px solid rgba(251, 188, 5, 0.3);
  border-radius: 999px;
  content: "";
  transform: translate(-50%, -50%);
  animation: target-orbit 6s linear infinite;
}

.target-motion::after {
  width: 7rem;
  height: 7rem;
  border-color: rgba(255, 255, 255, 0.16);
  animation-duration: 8.5s;
  animation-direction: reverse;
}

.target-motion-green {
  background:
    radial-gradient(circle at 50% 50%, rgba(46, 110, 87, 0.52) 0 0.42rem, transparent 0.46rem),
    radial-gradient(circle at 50% 50%, rgba(46, 110, 87, 0.22), transparent 4.6rem),
    linear-gradient(145deg, rgba(33, 58, 89, 0.96), rgba(19, 38, 61, 0.96));
}

.target-motion-azure {
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 127, 181, 0.56) 0 0.42rem, transparent 0.46rem),
    radial-gradient(circle at 50% 50%, rgba(74, 127, 181, 0.24), transparent 4.6rem),
    linear-gradient(145deg, rgba(33, 58, 89, 0.96), rgba(19, 38, 61, 0.96));
}

@keyframes target-orbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(1rem) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(1rem) rotate(-360deg);
  }
}

@media (hover: hover) {
  .target-cards article:hover {
    box-shadow: 0 22px 50px rgba(33, 58, 89, 0.12);
    transform: translateY(-4px);
  }

  .target-cards article:hover .target-motion {
    box-shadow: inset 0 0 0 1px rgba(251, 188, 5, 0.24), 0 18px 44px rgba(33, 58, 89, 0.14);
  }
}

.target-cards h3 {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.target-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Flip card (rif. richiesta cliente, stile "PESO"): il fronte porta titolo e
   motion, il retro colorato rivela la spiegazione. Su touch/reduced-motion si
   appiattisce in un'unica card impilata: nessun contenuto nascosto. */
.target-cards .target-card {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  perspective: 1400px;
}

.target-cards .target-card::after {
  display: none;
}

.target-flip {
  position: relative;
  width: 100%;
  min-height: 20rem;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.target-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backface-visibility: hidden;
  overflow: hidden;
}

.target-face-front {
  justify-content: flex-start;
}

.target-face-back {
  justify-content: center;
  transform: rotateY(180deg);
  border-color: transparent;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
}

.target-card-green .target-face-back {
  background: linear-gradient(150deg, #2e6e57, #1d4a3a);
}

.target-card-azure .target-face-back {
  background: linear-gradient(150deg, #4a7fb5, #2c5680);
}

.target-face-back p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.06rem;
  line-height: 1.55;
}

.target-flip-hint {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .target-card:hover .target-flip,
  .target-card:focus-within .target-flip {
    transform: rotateY(180deg);
  }
}

/* Fallback senza hover o con motion ridotto: card unica impilata. */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .target-flip {
    min-height: 0;
    transform: none !important;
  }

  .target-face {
    position: static;
    inset: auto;
  }

  .target-face-front {
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }

  .target-face-back {
    transform: none;
    border-radius: 0 0 18px 18px;
  }

  .target-flip-hint {
    display: none;
  }
}

/* --- banda chi siamo --- */
.people-band {
  width: 100%;
  max-width: none;
  padding: clamp(4rem, 8vw, 6.5rem) var(--page-pad);
  background: var(--sand);
}

.people-band > div {
  width: min(880px, 100%);
  margin: 0 auto;
  text-align: center;
}

.people-band .eyebrow {
  color: var(--sand-deep);
}

.people-band h2 {
  margin: 0.9rem 0 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.people-band p:not(.eyebrow) {
  margin: 1.3rem auto 0;
  max-width: 46rem;
  color: rgba(35, 43, 54, 0.78);
  font-size: 1.08rem;
  line-height: 1.6;
}

.plus-resources {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-bottom: calc(var(--section-blend) * -1);
  padding-top: var(--section-pad);
  padding-right: max(var(--page-pad), calc((100vw - 1180px) / 2));
  padding-bottom: calc(var(--section-pad) + var(--section-blend));
  padding-left: max(var(--page-pad), calc((100vw - 1180px) / 2));
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(251, 188, 5, 0.22), transparent 22rem),
    radial-gradient(circle at 92% 20%, rgba(159, 192, 218, 0.24), transparent 24rem),
    linear-gradient(135deg, #10243b 0%, var(--blue) 48%, #182f4a 100%);
}

.plus-resources::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(var(--section-blend) * -1);
  left: 0;
  z-index: 1;
  height: calc(var(--section-blend) * 2.2);
  background: linear-gradient(180deg, rgba(33, 58, 89, 0), rgba(19, 38, 61, 0.42) 54%, rgba(19, 38, 61, 0));
  pointer-events: none;
}

.dot-field-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.dot-field-canvas,
.dot-field-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dot-field-canvas {
  opacity: 0.82;
}

.dot-field-glow {
  mix-blend-mode: screen;
  opacity: 0.72;
}

.dot-field-glow circle {
  opacity: 0;
  transition: opacity 240ms ease;
  will-change: opacity;
}

.plus {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-width: none;
  margin: 0 auto;
  color: var(--white);
  padding: 0;
  background: transparent;
}

/* I Plus vivono dentro Servizi come pannello scuro a tutta larghezza: il contrasto
   con il tono chiaro della sezione e' cio' che li evidenzia, e conserva il
   trattamento che avevano quando stavano sulla banda blu. */
.system .plus {
  grid-column: 1 / -1;
  width: 100%;
  margin: clamp(2.5rem, 4vw, 4rem) 0 0;
  /* piu' respiro sotto le card: il bottom era pari ai lati e sembrava schiacciato */
  padding: clamp(1.75rem, 2.8vw, 3rem) clamp(1.5rem, 2.6vw, 2.75rem)
    clamp(2.5rem, 3.6vw, 3.75rem);
  border-radius: var(--band-radius);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(251, 188, 5, 0.22), transparent 22rem),
    radial-gradient(circle at 92% 20%, rgba(159, 192, 218, 0.24), transparent 24rem),
    linear-gradient(135deg, #10243b 0%, var(--blue) 48%, #182f4a 100%);
}

.system .plus .section-intro {
  margin-bottom: clamp(1.5rem, 2.2vw, 2.2rem);
}

.plus .section-intro {
  margin-bottom: 2.4rem;
}

.plus .section-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

/* flex centrato così un numero dispari di servizi (5, presto 6) resta
   bilanciato: 3 per riga, ultima riga centrata. */
.plus-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.plus-grid article {
  flex: 0 1 calc(33.333% - 0.667rem);
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

/* icona in tile: leggibile e "di prodotto", non persa nel blu */
.plus-icon {
  width: 4.6rem;
  height: 4.6rem;
  margin-top: 1rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plus-icon-wide {
  width: 6.4rem;
  height: auto;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  aspect-ratio: auto;
}

@media (hover: hover) {
  .plus-grid article:hover {
    border-color: rgba(159, 192, 218, 0.6);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 24px 52px rgba(0, 0, 0, 0.26);
    transform: translateY(-5px);
  }

  .plus-grid article:hover .plus-icon {
    transform: scale(1.1) rotate(-3deg);
  }
}

.plus-grid p {
  width: fit-content;
  margin: 0;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--azure-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plus-grid h3 {
  /* il testo si ancora in fondo alla card: label e icona restano in alto come
     "testata", la descrizione riempie lo spazio invece di lasciare il vuoto sotto.
     padding-top garantisce l'aria minima dall'icona anche quando il margine auto = 0. */
  margin: auto 0 0;
  padding-top: 1.25rem;
  color: var(--white);
  font-size: clamp(1.32rem, 1.68vw, 1.82rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.references {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
}

.reference-copy a {
  width: fit-content;
  margin-top: 1.2rem;
}

.reference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.reference-tags span {
  border: 1px solid rgba(33, 58, 89, 0.12);
  border-radius: 999px;
  padding: 0.45rem 0.68rem;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reference-cards {
  display: grid;
  gap: 1rem;
}

.reference-cards a {
  position: relative;
  display: flex;
  min-height: clamp(15rem, 24vw, 22rem);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 1.35rem;
  color: var(--white);
  background: var(--blue-deep);
  box-shadow: 0 24px 62px rgba(17, 35, 56, 0.2);
  text-decoration: none;
  isolation: isolate;
}

.reference-cards a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 19, 31, 0.76) 0%, rgba(10, 19, 31, 0.18) 46%, rgba(10, 19, 31, 0.82) 100%),
    radial-gradient(circle at 82% 18%, rgba(74, 127, 181, 0.18), transparent 18rem);
  pointer-events: none;
}

.reference-cards img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1);
  transition:
    opacity 600ms ease,
    transform 700ms ease;
}

.reference-cards a:hover img {
  opacity: 0.92;
  transform: scale(1.055);
}

.reference-cards span {
  align-self: flex-start;
  min-width: auto;
  height: 2rem;
  padding: 0 0.72rem;
  color: var(--ink);
  background: var(--sand);
  backdrop-filter: blur(12px);
}

.reference-cards strong {
  display: block;
  width: min(15ch, 100%);
  margin: auto 0 0.45rem;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  transform-origin: left center;
  transition: transform 260ms ease;
}

.reference-cards a:hover strong {
  transform: scale(1.025);
}

.reference-cards small {
  width: min(24rem, 100%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.35;
}

.reference-cards i {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-style: normal;
  font-size: 1.35rem;
  opacity: 0;
  transform: translate3d(0, 0.75rem, 0);
  transition:
    opacity 320ms ease,
    transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reference-cards a:hover i {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Impilata come la sezione .plus gemella: con lo split 0.9fr/1.1fr le 3 card
   restavano in ~195px l'una (testo a una parola per riga, spezzature a meta'
   parola) e il titolo display veniva schiacciato su 6 righe. */
.resources {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  width: min(1180px, 100%);
  max-width: none;
  margin: clamp(4rem, 7vw, 6.6rem) auto 0;
  padding: clamp(3rem, 5.5vw, 5.4rem) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: transparent;
}

/* Nella pagina Risorse il blocco segue direttamente la hero: il filo che nella
   home separa Risorse dalla sezione precedente qui non separa nulla e si legge
   come un divider messo per sbaglio sopra il titolo BLOG. */
.page-hero + .plus-resources .resources {
  border-top: none;
}

/* Nella pagina Risorse il blocco segue direttamente la hero: il padding della
   banda e quello interno non devono sommarsi agli spazi pensati per la home. */
.page-hero + .plus-resources {
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

.page-hero + .plus-resources .resources {
  margin-top: 0;
  padding-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.resources h2 {
  margin: 0.8rem 0 0;
}

.resources p:not(.eyebrow) {
  width: min(34rem, 100%);
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.58;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(17rem, auto);
  gap: 1rem;
}

.resource-card {
  position: relative;
  display: flex;
  min-height: 17rem;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 1.25rem;
  color: var(--white);
  background: rgba(10, 19, 31, 0.36);
  text-decoration: none;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.22);
  isolation: isolate;
  transform: translateZ(0);
}

.resource-card-large {
  grid-row: span 2;
  min-height: 35rem;
}

.resource-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transition: opacity 500ms ease, transform 700ms ease;
}

.resource-card::before,
.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.resource-card::before {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 19, 31, 0.82) 0%, rgba(10, 19, 31, 0.2) 42%, rgba(10, 19, 31, 0.9) 100%),
    radial-gradient(circle at 16% 12%, rgba(74, 127, 181, 0.2), transparent 15rem);
}

.resource-card::after {
  right: 1.15rem;
  bottom: 1.15rem;
  left: auto;
  top: auto;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  content: "→";
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  opacity: 0;
  transform: translate3d(0, 0.65rem, 0);
  transition: opacity 320ms ease, transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease;
}

@media (hover: none) {
  .resource-card::after {
    opacity: 0.9;
    transform: none;
  }
}

.resource-card strong {
  transform-origin: left bottom;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) {
  .resource-card:hover strong {
    transform: scale(1.04);
  }
}

.resource-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-card strong {
  display: block;
  width: 100%;
  margin-top: auto;
  font-size: clamp(1.2rem, 1.35vw, 1.6rem);
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: none;
}

.resource-card small {
  display: block;
  width: min(24rem, calc(100% - 3.4rem));
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
  line-height: 1.38;
}

@media (hover: hover) {
  .resource-card:hover img {
    opacity: 0.9;
    transform: scale(1.045);
  }

  .resource-card:hover::after {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-card img,
  .resource-card::after {
    transition: none;
  }
}

@media (max-width: 900px) {
  .method-video {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .section-actions {
    gap: 0.42rem;
    margin-top: 0.9rem;
  }

  .section-actions a {
    min-height: 2.35rem;
    padding: 0.56rem 0.68rem;
    font-size: 0.76rem;
  }

  .method-video {
    padding: 1rem;
  }

  .reference-tags span {
    font-size: 0.72rem;
  }
}

/* --- FAQ (details nativi) --- */
.faq {
  grid-column: 1 / -1;
  margin-top: 2.6rem;
}

.faq-title {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 780;
  letter-spacing: -0.02em;
}

.faq details {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 240ms ease, background 240ms ease;
}

.faq details[open] summary::after {
  content: "–";
  background: rgba(255, 255, 255, 0.14);
}

.faq details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.99rem;
  line-height: 1.55;
}

.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: calc(clamp(4rem, 8vw, 7rem) + var(--section-blend)) 0 1.1rem;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 16%, rgba(74, 127, 181, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(46, 110, 87, 0.2), transparent 24rem),
    linear-gradient(180deg, #213a59 0%, #13263d 100%);
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.3px, transparent 1.45px);
  background-size: 17px 17px;
  -webkit-mask-image: radial-gradient(circle at 96% 6%, #000 0 12rem, transparent 24rem);
  mask-image: radial-gradient(circle at 96% 6%, #000 0 12rem, transparent 24rem);
  pointer-events: none;
}

.footer-motion {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.footer-motion-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding-block: clamp(0.16rem, 0.55vw, 0.52rem);
  line-height: 0.96;
}

.footer-motion-track {
  display: flex;
  min-width: max-content;
  flex: 0 0 auto;
  gap: clamp(1.4rem, 4vw, 4rem);
  padding-right: clamp(1.4rem, 4vw, 4rem);
  animation: footer-marquee-left 42s linear infinite;
}

/* quando il marquee è guidato da GSAP (velocity/skew), la CSS animation si spegne */
.js-marquee .footer-motion-track {
  animation: none;
  will-change: transform;
}

.footer-motion-row-right .footer-motion-track {
  animation-name: footer-marquee-right;
  animation-duration: 48s;
}

.footer-motion span {
  display: inline-block;
  color: rgba(255, 255, 255, 0.93);
  font-size: var(--type-footer-marquee);
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  transform: skewX(-2deg);
  text-shadow: 0 0.12em 0.42em rgba(0, 0, 0, 0.18);
  user-select: none;
}

.footer-motion-row-right span {
  color: var(--gold);
  text-shadow: 0 0.13em 0.48em rgba(0, 0, 0, 0.26);
  transform: skewX(2deg);
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.footer-panel h2 {
  width: min(860px, 100%);
  margin: 0.8rem 0 0;
  font-size: var(--type-footer-title);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.footer-panel p:not(.eyebrow) {
  width: min(640px, 100%);
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.58;
}

.footer-actions {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.footer-actions a,
.footer-bottom a {
  text-decoration: none;
}

.footer-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 1.15rem;
  color: var(--white);
  font-weight: 800;
}

.footer-actions a::after {
  content: "↗";
  font-size: 1rem;
}

.footer-actions .message-cta::after {
  content: none;
}

.footer-actions .footer-cta {
  border-color: transparent;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 18px 34px rgba(31, 79, 63, 0.3);
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  width: min(1180px, calc(100% - var(--page-pad) * 2));
  margin: 1rem auto 0;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  background: rgba(10, 19, 31, 0.24);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.footer-brand img {
  width: 8.4rem;
  height: auto;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.35;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.footer-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 760;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

@keyframes footer-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes footer-marquee-right {
  from {
    transform: translate3d(-100%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.contact-panel a {
  white-space: nowrap;
}

.brand-solution-stack {
  width: 100%;
  max-width: none;
  overflow: hidden;
  border-radius: var(--band-radius);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(251, 188, 5, 0.16), transparent 21rem),
    radial-gradient(circle at 90% 62%, rgba(74, 127, 181, 0.2), transparent 24rem),
    linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.brand-solution-stack .brand-band,
.brand-solution-stack .solution-fit {
  border-radius: 0;
  background: transparent;
}

.brand-solution-stack .solution-fit {
  padding-top: clamp(3.8rem, 7vw, 6.8rem);
}

.brand-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 188, 5, 0.14), transparent 18rem),
    linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.brand-band > img,
.brand-band > p {
  position: relative;
  z-index: 1;
}

.brand-band p {
  color: rgba(255, 255, 255, 0.78);
}

.brand-payoff-marquee {
  position: absolute;
  inset: auto 0 1.1rem;
  z-index: 0;
  display: flex;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.brand-payoff-marquee div {
  display: flex;
  min-width: max-content;
  flex: 0 0 auto;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  padding-right: clamp(1.4rem, 4vw, 3.5rem);
  animation: brand-payoff-marquee 48s linear infinite;
}

.brand-payoff-marquee span {
  color: rgba(255, 255, 255, 0.08);
  font-size: clamp(2.8rem, 7vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
  user-select: none;
}

@keyframes brand-payoff-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-100%, 0, 0);
  }
}

.solution-accordion {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 0.85rem 1.25rem;
  align-items: start;
  max-width: none;
}

.solution-question {
  width: min(100%, 980px);
  margin-block: clamp(1.1rem, 2.4vw, 1.8rem) clamp(1.2rem, 2.6vw, 2rem);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(251, 188, 5, 0.42);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(251, 188, 5, 0.16), rgba(255, 255, 255, 0.08));
  color: var(--white);
}

/* rif. Sabina 14.07: stessa scala tipografica dei punti dell'accordion,
   prima risultava sensibilmente più grande. */
.solution-question strong {
  display: block;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 820;
  line-height: 1.08;
}

.solution-question p {
  max-width: 760px;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.55;
}

.solution-accordion details {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.solution-accordion details[open] {
  border-color: rgba(251, 188, 5, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

@media (hover: hover) {
  .solution-accordion details:hover {
    border-color: rgba(159, 192, 218, 0.42);
    transform: translateY(-2px);
  }
}

.solution-accordion summary {
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--white);
  cursor: pointer;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 820;
  line-height: 1.08;
  list-style: none;
}

.solution-accordion summary::-webkit-details-marker {
  display: none;
}

.solution-accordion summary::after {
  content: "+";
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.solution-accordion details[open] summary::after {
  content: "–";
  background: var(--gold);
  color: var(--blue-deep);
}

.solution-accordion details p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.method-band {
  width: 100%;
  max-width: none;
  padding: clamp(3.8rem, 7vw, 6.2rem) max(var(--page-pad), calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 88% 18%, rgba(251, 188, 5, 0.18), transparent 20rem),
    linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.method-band > div {
  width: min(900px, 100%);
}

.method-band h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.method-band p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.58;
}

.method-band a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 1.4rem;
  border-radius: 999px;
  padding: 0 1.2rem;
  color: var(--blue-deep);
  background: var(--gold);
  font-weight: 850;
  text-decoration: none;
}

.method-news,
.method-faq,
.method-values,
.method-video,
.metrics {
  width: min(1180px, 100%);
}

.method-news {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.2rem;
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
}

.method-news h3,
.method-faq h3,
.method-values h3,
.metrics-grid strong {
  margin: 0;
  color: var(--blue);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.method-news h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

.method-news p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.method-news ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-news li {
  min-width: 0;
  border: 1px solid rgba(33, 58, 89, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: var(--white);
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 760;
}

.method-faq {
  display: grid;
  gap: 0.7rem;
}

.method-faq h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.45rem);
}

.method-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.method-faq summary {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.method-faq summary::-webkit-details-marker {
  display: none;
}

.method-faq summary::after {
  content: "+";
  flex: 0 0 auto;
}

.method-faq details[open] summary::after {
  content: "–";
}

.method-faq details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.method-values,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.method-values article,
.metrics-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
}

.method-values h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.08;
}

.method-values p,
.metrics-grid span {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.method-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
  background:
    radial-gradient(circle at 86% 16%, rgba(251, 188, 5, 0.16), transparent 14rem),
    rgba(255, 255, 255, 0.74);
}

.method-video h3 {
  margin: 0.45rem 0 0;
  color: var(--blue);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.05;
}

.method-video p:not(.eyebrow) {
  max-width: 42rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.method-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(33, 58, 89, 0.16);
  border-radius: 18px;
  background: rgba(10, 19, 31, 0.82);
  box-shadow: 0 18px 42px rgba(33, 58, 89, 0.14);
}

/* Copertina locale del video: sta al posto dell'iframe finche' non si clicca, cosi'
   la pagina non contatta YouTube di sua iniziativa. */
.method-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.method-video-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, opacity 260ms ease;
}

.method-video-play:hover img,
.method-video-play:focus-visible img {
  transform: scale(1.03);
  opacity: 0.86;
}

.method-video-play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(3.6rem, 5vw, 4.6rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(10, 19, 31, 0.34);
  transition: transform 260ms ease;
}

.method-video-play:hover .method-video-play-icon,
.method-video-play:focus-visible .method-video-play-icon {
  transform: scale(1.08);
}

.method-video-play-icon::after {
  content: "";
  margin-left: 0.22em;
  border-style: solid;
  border-width: 0.55em 0 0.55em 0.92em;
  border-color: transparent transparent transparent var(--blue);
}

@media (prefers-reduced-motion: reduce) {
  .method-video-play img,
  .method-video-play-icon {
    transition: none;
  }
}

.method-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.metrics {
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.metrics-grid strong {
  display: block;
  color: var(--blue);
  font-size: clamp(1.7rem, 2.55vw, 2.6rem);
  line-height: 0.95;
  overflow-wrap: break-word;
}

/* rif. Sabina 14.07: ogni numero ha ora etichetta + descrizione, quindi le
   5 colonne rigide starebbero troppo strette: la griglia va a capo da sola. */
.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  align-items: stretch;
}

.metrics-grid article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* etichetta del dato */
.metrics-grid span {
  margin: 0.55rem 0 0;
  color: var(--blue-deep);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.24;
}

/* descrizione del dato */
.metrics-grid article p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.metrics-lead {
  width: min(58rem, 100%);
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.metrics-closing {
  width: min(58rem, 100%);
  margin: clamp(1.6rem, 2.5vw, 2.4rem) 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  color: var(--blue-deep);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 650;
  line-height: 1.5;
}

.reference-carousel {
  position: relative;
  /* il track interno e' una flex row che scorre: senza questo il carosello
     contribuisce con la sua larghezza piena al calcolo del contenitore. */
  min-width: 0;
}

.reference-carousel-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding: 0.35rem 0.15rem 1.3rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.reference-carousel-track::-webkit-scrollbar {
  display: none;
}

.reference-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.reference-carousel-track.is-dragging a {
  pointer-events: none;
}

.reference-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(20rem, 78vw);
  min-height: 25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 1.4rem;
  color: var(--white);
  background: var(--blue-deep);
  box-shadow: 0 24px 62px rgba(17, 35, 56, 0.22);
  scroll-snap-align: start;
  isolation: isolate;
  transform-origin: center 55%;
  transition: box-shadow 420ms ease, filter 420ms ease;
  will-change: transform, opacity;
}

.reference-card:hover {
  box-shadow: 0 40px 82px rgba(17, 35, 56, 0.38);
  filter: saturate(1.08);
}

.reference-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 19, 31, 0.12), rgba(9, 17, 28, 0.9)),
    radial-gradient(circle at 82% 10%, rgba(251, 188, 5, 0.18), transparent 15rem);
}

.reference-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1.07);
  transition: opacity 600ms ease;
  will-change: transform;
}

.reference-card .reference-card-logo {
  inset: 1rem 1rem auto auto;
  z-index: 2;
  width: 3.45rem;
  height: 3.45rem;
  padding: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(9, 15, 25, 0.25);
  object-fit: contain;
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .reference-card {
    transform: none !important;
    opacity: 1 !important;
  }
  .reference-card img {
    transform: scale(1.03) !important;
  }
}

.reference-card-region {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.reference-card-body h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.reference-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.reference-card-actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease;
}

.reference-card-actions a:hover {
  transform: translateY(-2px);
}

.reference-card-actions .rc-primary {
  background: var(--white);
  color: var(--blue-deep);
}

.reference-card-actions .rc-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.reference-card-actions .rc-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Barra di controllo del carosello: hint + progresso + frecce.
   Il drag resta, ma ora c'è anche un'affordance esplicita. */
.reference-carousel-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.reference-carousel-hint {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-500, #5c7699);
  opacity: 0.75;
}

.reference-carousel-progress {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
  min-width: 3rem;
  border-radius: 999px;
  background: rgba(33, 58, 89, 0.14);
  overflow: hidden;
}

.reference-carousel-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  border-radius: 999px;
  background: var(--blue);
  transition: width 180ms ease;
}

.reference-carousel-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.rc-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(33, 58, 89, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, opacity 200ms ease;
}

.rc-nav svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rc-nav:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--azure-soft, #eaf1fa);
}

.rc-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 640px) {
  .reference-carousel-hint {
    display: none;
  }
}

.resource-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(19rem, auto);
}

@media (max-width: 980px) {
  :root {
    --anchor-offset: 6.75rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    width: min(680px, calc(100% - 1rem));
    border-radius: 22px;
  }

  .top-nav {
    display: none;
  }

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

  .header-actions {
    gap: 0.35rem;
  }

  .utility-link-secondary {
    display: none;
  }

  .brand img {
    width: 8rem;
  }

  .hero {
    height: 220svh;
  }

  .hero-intro {
    display: grid;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 1rem;
    padding: 6.8rem 1.2rem clamp(4.7rem, 9svh, 6rem);
  }

  .hero-intro-left,
  .hero-intro-right {
    align-self: end;
    align-items: flex-start;
    text-align: left;
  }

  .hero-claim {
    width: min(13ch, 100%);
    font-size: clamp(2.35rem, 8vw, 3.5rem);
    line-height: 0.96;
  }

  .hero-statement h2 {
    font-size: clamp(2.35rem, 6vw, 3.55rem);
    line-height: 0.98;
  }

  .section-intro,
  .method,
  .system,
  .plus .section-intro,
  .references,
  .resources,
  .contact-panel {
    /* minmax(0, 1fr) e non 1fr: "1fr" vale minmax(auto, 1fr) e quel minimo
       auto impedisce alla traccia di scendere sotto la min-content del
       contenuto. Con dentro il carosello referenze (una flex row di slide)
       la colonna si allargava a ~6200px sfondando il viewport mobile. */
    grid-template-columns: minmax(0, 1fr);
  }

  .resources > div:first-child {
    position: static;
  }

  .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(15rem, auto);
  }

  .resource-card-large {
    grid-row: auto;
    min-height: 18rem;
  }

  .value-grid,
  .method-steps,
  .plus-grid,
  .pillar-deck,
  .channel-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plus-grid article {
    flex-basis: calc(50% - 0.5rem);
  }

  .target-cards {
    grid-template-columns: 1fr;
  }

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

  .reach-card,
  .reach-card:nth-child(4) {
    grid-column: span 1;
  }

  .reach-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .system-copy {
    position: static;
  }

  .solution-accordion,
  .method-news,
  .method-video {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  :root {
    --anchor-offset: 7rem;
  }

  html {
    scroll-padding-top: var(--anchor-offset);
  }

  section,
  #plus,
  #risorse,
  .site-footer {
    scroll-margin-top: var(--anchor-offset);
  }

  .site-header {
    top: 0.5rem;
    min-height: 3.8rem;
    padding: 0.45rem;
  }

  .brand img {
    width: 7.2rem;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 0.85rem;
    font-size: 0.78rem;
  }

  .utility-link {
    display: none;
  }

  section {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    height: 190svh;
  }

  .hero-intro {
    display: grid;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 0.85rem;
    /* più padding-bottom: il contenuto finisce più in alto e lascia
       respiro al cue "Scorri" ancorato in basso */
    padding: 4.4rem 1.1rem clamp(7rem, 14svh, 9rem);
    isolation: isolate;
  }

  .hero-intro::before {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    z-index: -1;
    background: linear-gradient(
      180deg,
      rgba(9, 15, 25, 0) 0,
      rgba(9, 15, 25, 0.4) 24%,
      rgba(9, 15, 25, 0.82) 52%,
      rgba(9, 15, 25, 0.96) 78%,
      rgba(9, 15, 25, 0.98) 100%
    );
    pointer-events: none;
  }

  .hero-intro-left,
  .hero-intro-right {
    align-self: end;
    align-items: flex-start;
    text-align: left;
  }

  .hero-claim {
    width: min(19rem, 100%);
    margin-top: 0.6rem;
    font-size: clamp(2.15rem, 9.1vw, 2.95rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow: 0 3px 30px rgba(9, 15, 25, 0.8);
  }

  @media (min-width: 500px) {
    .hero-claim {
      width: min(24rem, 100%);
    }
  }

  .hero-intro .lead {
    width: min(21rem, 94%);
    font-size: 0.99rem;
  }

  .hero-trust-badges {
    width: min(21rem, 100%);
    margin-top: 0.8rem;
  }

  /* Hero mobile: chip in alto (sotto l'eyebrow) per distribuire meglio gli
     elementi e liberare respiro in basso per il cue "Scorri". */
  .hero-intro-left,
  .hero-intro-right {
    display: contents;
  }

  .hero .eyebrow {
    order: 1;
  }

  .hero-trust-badges {
    order: 2;
    margin-top: 0.55rem;
  }

  .hero-claim {
    order: 3;
    margin-top: 0.9rem;
  }

  .hero-intro .lead {
    order: 4;
    margin-top: 0.2rem;
  }

  .trust-badges li {
    min-height: 2.05rem;
    font-size: 0.75rem;
    line-height: 1.05;
  }

  .trust-badges .badge-icon {
    width: 1.55rem;
    min-width: 1.55rem;
    height: 1.55rem;
    font-size: 0.75rem;
  }

  .hero-scroll-hint {
    left: 50%;
    bottom: 1rem;
    align-items: center;
    transform: translateX(-50%);
  }

  .hero-network {
    transform-origin: center 40%;
  }

  .hero-statement {
    padding: 4.6rem 1.2rem;
  }

  .hero-statement h2 {
    font-size: clamp(2.05rem, 8.4vw, 2.75rem);
  }

  .hero-statement p {
    font-size: 1rem;
  }

  .mission-grid,
  .solution-fit,
  .method,
  .pillars,
  .targeting,
  .system,
  .references,
  .contact-panel {
    padding-top: var(--s6);
    padding-bottom: var(--s6);
  }

  /* Plus e Risorse sono blocchi interni a .plus-resources (che già pad la
     sezione): niente doppio padding sopra "Servizi Plus" e dopo la FAQ,
     solo lo stacco tra i due sottoblocchi. */
  .plus {
    padding: 0;
  }

  .resources {
    padding: var(--s6) 0 0;
  }

  .section-intro {
    margin-bottom: var(--s4);
  }

  .section-intro h2,
  .system-copy h2,
  .reference-copy h2,
  .plus h2,
  .resources h2,
  .contact-panel h2 {
    font-size: clamp(2rem, 9.6vw, 3.05rem);
  }

  .plus h2,
  .resources h2 {
    font-size: clamp(1.85rem, 8.1vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -0.022em;
  }

  .plus .section-intro p:not(.eyebrow),
  .resources > div:first-child p:not(.eyebrow) {
    margin-top: 2.7rem;
  }

  .plus h2 .split-word,
  .resources h2 .split-word {
    overflow: visible;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .system {
    width: min(100%, calc(100vw - 1rem));
    row-gap: 1.15rem;
  }

  .system-copy h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.1vw, 2.32rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .system-copy h2 .split-word {
    overflow: visible;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .system-copy > p:not(.eyebrow) {
    max-width: 100%;
    margin-top: 0.95rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .value-grid,
  .method-steps,
  .plus-grid,
  .pillar-deck,
  .channel-board,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .plus-grid article {
    flex-basis: 100%;
  }

  .channel-board {
    gap: 0.65rem;
  }

  .channel-board article {
    min-height: 0;
    padding: 0.95rem 1rem;
  }

  .channel-board strong {
    margin-top: 0.55rem;
    font-size: 1.18rem;
    line-height: 1.05;
  }

  .channel-board span {
    font-size: 0.92rem;
    line-height: 1.38;
  }

  .flow-figure {
    /* stacco > distanza reveal delle card canali (42px), così durante
       l'animazione la card PEO/PEC non entra nella chip "Messaggio dell'ente" */
    margin-top: 3.2rem;
    position: relative;
    z-index: 1;
  }

  .flow-scroller {
    display: none;
  }

  .flow-mobile {
    display: grid;
    width: 100%;
    gap: 0.7rem;
  }

  .flow-mobile-node,
  .flow-mobile-channels span {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--blue);
    box-shadow: 0 12px 28px rgba(33, 58, 89, 0.08);
  }

  .flow-mobile-node {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.78rem 0.9rem;
  }

  .flow-mobile-node-input > span {
    width: 0.56rem;
    height: 0.56rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #2e6e57;
  }

  .flow-mobile-node strong,
  .flow-mobile-channels span {
    font-size: 0.94rem;
    line-height: 1.1;
  }

  .flow-mobile-node-hub {
    display: grid;
    justify-items: center;
    border-color: rgba(33, 58, 89, 0.18);
    border-radius: 14px;
    background: var(--blue);
    color: var(--white);
    text-align: center;
  }

  .flow-mobile-node-hub span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .flow-mobile-arrow {
    width: 2px;
    height: 1.1rem;
    justify-self: center;
    background: linear-gradient(180deg, rgba(33, 58, 89, 0.22), rgba(33, 58, 89, 0.02));
  }

  .flow-mobile-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .flow-mobile-channels span {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.62rem 0.68rem;
    font-weight: 850;
  }

  .flow-mobile-channels img {
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
    object-fit: contain;
  }

  .portal-frame {
    margin-top: 1rem;
  }

  .pillar-card {
    min-height: 15rem;
  }

  .brand-band img {
    width: min(22rem, 94%);
  }

  .reach-cards {
    grid-template-columns: 1fr;
  }

  .reach-card,
  .reach-card:nth-child(4),
  .reach-card:nth-child(5) {
    grid-column: auto;
    min-height: 21rem;
  }

  .value-grid article,
  .method-steps article,
  .plus-grid article {
    min-height: auto;
  }

  .plus-grid article {
    padding: 0.95rem;
  }

  .plus-grid .plus-icon {
    width: 3.05rem;
    height: 3.05rem;
    margin-top: 0.9rem;
  }

  .plus-grid p {
    max-width: 100%;
    padding: 0.36rem 0.56rem;
    font-size: 0.75rem;
    line-height: 1.08;
    white-space: normal;
  }

  .plus-grid h3 {
    margin-top: 1.15rem;
    font-size: clamp(1.52rem, 7vw, 2.05rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
  }

  .resource-card,
  .resource-card-large {
    min-height: 18rem;
    border-radius: 18px;
    padding: 1rem;
  }

  .method-values,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .method-news {
    padding: 1rem;
  }

  .method-news ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* Metodo su mobile: più aria tra i blocchi (steps -> domande operative ->
     valore) e gerarchia più chiara sotto i titoli di sottosezione. */
  .method {
    gap: clamp(2.6rem, 8vw, 3.4rem);
  }

  .method-faq {
    gap: 1rem;
  }

  .method-faq h3 {
    margin-bottom: 0.5rem;
  }

  .solution-accordion summary,
  .method-faq summary {
    font-size: 1rem;
    line-height: 1.18;
  }

  .reference-carousel-track {
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }

  .reference-card {
    width: min(16.5rem, 82vw);
    min-height: 21rem;
  }

  .resource-card strong,
  .resource-card small {
    width: min(100%, calc(100% - 3rem));
  }

  .reference-cards a {
    min-height: 18rem;
    border-radius: 18px;
    padding: 1rem;
  }

  .reference-cards strong {
    padding-right: 2.6rem;
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .reference-cards small {
    padding-right: 3.2rem;
  }

  .reference-cards i {
    opacity: 1;
    transform: none;
  }

  .value-grid p,
  .method-steps h3 {
    margin-top: 2rem;
  }

  .contact-panel a {
    width: 100%;
  }

  /* --- FAQ (details nativi) --- */
.faq {
  grid-column: 1 / -1;
  margin-top: 2.6rem;
}

.faq-title {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 780;
  letter-spacing: -0.02em;
}

.faq details {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 240ms ease, background 240ms ease;
}

.faq details[open] summary::after {
  content: "–";
  background: rgba(255, 255, 255, 0.14);
}

.faq details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.99rem;
  line-height: 1.55;
}

.site-footer {
    padding-top: calc(3.4rem + var(--section-blend));
  }

  .footer-motion {
    margin-bottom: 2.2rem;
  }

  .footer-motion span {
    font-size: clamp(2.7rem, 15vw, 4.8rem);
  }

  .footer-panel,
  .footer-bottom {
    width: min(100% - 1rem, 1180px);
    border-radius: 22px;
  }

  .footer-panel {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-actions {
    justify-items: stretch;
  }

  .footer-actions a {
    width: 100%;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0.85rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero {
    height: auto;
  }

  .hero-pin {
    position: relative;
    height: auto;
    min-height: auto;
    overflow: hidden;
  }

  .hero-field {
    height: 100%;
    transform: none !important;
  }

  .hero-field img {
    transform: none !important;
  }

  .hero-network-wrap {
    display: none;
  }

  .hero-intro,
  .hero-statement {
    position: relative;
    inset: auto;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .hero-intro {
    padding: 7rem 1rem 1.5rem;
  }

  .hero-statement {
    padding: 1rem 1rem 5rem;
  }

  .hero-scroll-hint {
    display: none;
  }

  .footer-motion-track {
    animation: none;
    transform: none;
  }

  .flow-figure.is-live .flow-pulse,
  .flow-pulse {
    animation: none;
    opacity: 0;
  }

  .value-grid article,
  .method-steps article,
  .channel-board article,
  .plus-grid article,
  .reach-card,
  .reach-card img,
  .target-cards article,
  .pillar-card,
  .channel-icon,
  .plus-icon {
    transition: none;
  }

  body {
    transition: none;
  }

  .step-line {
    display: none;
  }
}

/* Hero immersiva delle pagine dedicate (multi-page: /servizi, /metodo, /chi-siamo,
   /risorse). Immagine a tutta larghezza con overlay scuro, coerente con le referenze;
   la navbar (tono blue) ci si integra sopra. */
.page-hero {
  /* il colore in cui la hero sfuma e' quello reale del fondo pagina, non un
     valore riscritto a mano su ogni pagina: /servizi/ dichiarava #f4f7fb e
     /risorse/ addirittura #10243b su un fondo #f5f2ec, e la differenza si
     vedeva come una riga netta al confine con la sezione successiva. */
  --page-hero-blend: var(--canvas);
  position: relative;
  width: 100%;
  max-width: none;
  min-height: min(74svh, 600px);
  display: grid;
  align-items: end;
  /* padding inferiore generoso: il testo deve stare sopra la zona di
     dissolvenza, altrimenti per renderlo leggibile si e' costretti a far
     chiudere il blend sull'ultimo pixel — ed e' proprio quello che lasciava
     una riga scura al confine con la sezione successiva. */
  padding: calc(var(--anchor-offset) + clamp(2rem, 5vw, 4rem)) var(--page-pad)
    clamp(7rem, 13vw, 11rem);
  overflow: hidden;
  isolation: isolate;
  /* stesso blend anche sul fondo dell'elemento, non solo sull'::after: se la
     riga di pixel al confine viene coperta solo in parte, sotto trova gia' il
     colore della sezione successiva invece del navy. */
  background: linear-gradient(to bottom, transparent 66%, var(--page-hero-blend) 93%, var(--page-hero-blend)),
    var(--blue-deep);
  color: var(--white);
  /* niente angoli arrotondati: la hero si fonde con la sezione sotto via gradiente */
  border-radius: 0;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* blend: il bordo inferiore sfuma nel colore della sezione sotto (merge).
       Chiude al 99% e non al 100%: l'altezza della hero e' frazionaria
       (es. 665.047px) e con lo stop finale sull'ultimo pixel quella riga
       restava semitrasparente, lasciando affiorare il fondo --blue-deep come
       una riga scura tra hero e sezione successiva. */
    linear-gradient(to bottom, transparent 66%, var(--page-hero-blend) 93%, var(--page-hero-blend)),
    linear-gradient(90deg, rgba(11, 19, 32, 0.94), rgba(11, 19, 32, 0.66) 48%, rgba(11, 19, 32, 0.22)),
    /* la velatura scura si ferma prima del fondo: ancorata a 0 restava a 0.92
       proprio sul bordo e il blend riusciva a coprirla solo all'ultimo pixel. */
    linear-gradient(0deg, rgba(11, 19, 32, 0.55) 12%, rgba(11, 19, 32, 0.1) 55%);
}

/* la sezione subito sotto la hero non deve avere angoli arrotondati adiacenti */
.page-hero + section {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero .eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.page-hero h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero-lead {
  max-width: 46rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
}

.page-hero-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.9rem;
}

.page-hero-channels span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

/* Hub della home (multi-page): griglia di card che portano alle pagine dedicate. */
.page-hub {
  padding: var(--section-pad) 0;
}

.hub-grid {
  --hub-gap: clamp(0.9rem, 1.6vw, 1.25rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  align-items: stretch;
  row-gap: var(--hub-gap);
  column-gap: var(--hub-gap);
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  min-height: 12rem;
  height: 100%;
  padding: clamp(1.3rem, 2vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-decoration: none;
  transition: translate 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hub-card:hover {
    translate: 0 -4px;
    border-color: var(--blue);
    box-shadow: 0 20px 44px rgba(33, 58, 89, 0.12);
  }
}

.hub-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hub-card p {
  margin: 0;
  color: rgba(16, 20, 31, 0.72);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hub-card-go {
  margin-top: auto;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.hub-card-go::after {
  content: " →";
}

.hub-lead {
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: rgba(16, 20, 31, 0.72);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}

/* CTA "richiedi informazioni" in coda ai rimandi delle pagine dedicate */
.hub-cta {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 3.4vw, 2.8rem);
}

/* Fascia garanzie (badge Meta / MEPA / GDPR) — richiesta Sabina: piu' grandi con descrizione */
.trust-band { padding: var(--section-pad) 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}
.trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-family: "DM Mono", monospace;
  font-weight: 700;
  font-size: 1rem;
}
.trust-badge img { width: 1.7rem; height: 1.7rem; }
.trust-badge svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: #fff; stroke-width: 1.8; }
.trust-badge-pa {
  background: var(--blue);
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: -0.03em;
}
.trust-card h3 { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; }
.trust-card p { margin: 0; color: rgba(16, 20, 31, 0.72); font-size: 0.98rem; line-height: 1.55; }

/* Tendina Servizi Base / Servizi Plus (richiesta Sabina, doc 17.07) */
.services-tabs {
  display: grid;
  gap: clamp(0.8rem, 1.4vw, 1.1rem);
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.services-tab {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.services-tab > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 1.8vw, 1.5rem) clamp(1.2rem, 2vw, 1.8rem);
  cursor: pointer;
  list-style: none;
  font-family: "DM Mono", monospace;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
}

.services-tab > summary::-webkit-details-marker { display: none; }

.services-tab > summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(11, 95, 215, 0.1);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 240ms ease, background 240ms ease;
}

.services-tab[open] > summary::after {
  content: "−";
  background: var(--blue);
  color: #fff;
}

.services-tab > summary:hover { background: rgba(11, 95, 215, 0.04); }

.services-tab-body {
  padding: 0 clamp(1.2rem, 2vw, 1.8rem) clamp(1.4rem, 2.2vw, 2rem);
}

.services-tab-body > h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.services-tab-body > p {
  max-width: 52rem;
  margin: 0 0 1rem;
  color: rgba(16, 20, 31, 0.75);
  line-height: 1.6;
}

/* dentro la tendina il pannello Plus mantiene il suo fondo scuro */
.services-tab-body .plus { margin-top: 1.2rem; }

/* Nella pagina dedicata i pannelli devono usare tutto il wrapper. La classe
   .system a due colonne resta invariata nelle sezioni che la usano in home. */
.services-page-system {
  display: block;
  /* la hero fornisce gia' ~112px di zona blend in fondo: sommati al
     padding-top di sezione (var(--section-pad)) e al margine dei tab lasciavano
     un enorme vuoto sopra i contenuti (era ~233px su mobile). Qui la sezione
     parte subito sotto la hero. */
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

.services-page-system > .services-tabs {
  margin-top: clamp(1rem, 3vw, 1.75rem);
}

.services-page-system > .section-intro {
  max-width: 56rem;
}

.services-page-system .services-tabs,
.services-page-system .services-tab,
.services-page-system .services-tab-body,
.services-page-system .flow-figure,
.services-page-system .portal-frame {
  min-width: 0;
  max-width: 100%;
}

.services-page-system .flow-scroller svg {
  min-width: min(40rem, 100%);
}

.faq-lead {
  max-width: 46rem;
  margin: 0.8rem 0 1.6rem;
  color: rgba(16, 20, 31, 0.72);
  line-height: 1.55;
}
.faq-cta {
  margin: 1.4rem 0 0;
  font-weight: 700;
}
.faq-cta a { color: var(--blue); }

/* Fascia Metodo in home (doc Sabina): blocco full-width con CTA */
.method-band-home { padding: clamp(3rem, 6vw, 5rem) 0; }
.method-band-inner { width: min(56rem, 100%); margin: 0 auto; text-align: center; }
.method-band-inner .eyebrow {
  font-family: "DM Mono", monospace; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--blue); margin: 0 0 1rem;
}
.method-band-text {
  margin: 0 0 1.8rem;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.45; font-weight: 500; text-wrap: balance;
}
.method-band-cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.6rem;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform 200ms ease, background 200ms ease;
}
.method-band-cta:hover { transform: translateY(-2px); background: #0a52bd; }

.home-blog-preview {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.home-blog-lead {
  width: min(46rem, 100%);
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-resource-list {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

.home-blog-preview .section-actions {
  margin-top: clamp(1.6rem, 2.8vw, 2.4rem);
}

/* Le pagine dedicate rimandano alle altre 4 sezioni: 2x2 da tablet, 4 in fila
   da desktop, cosi' non resta mai una card spaiata in fondo. */
@media (min-width: 720px) {
  .hub-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Hub: su desktop le 5 card stanno tutte in fila (richiesta Sabina, no 4+1) */
@media (min-width: 1080px) {
  .hub-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hub-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hub-card { min-height: 13rem; padding: clamp(1rem, 1.4vw, 1.3rem); }
  .hub-card h3 { font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
  .hub-card p { font-size: 0.9rem; }

  /* Cinque dati, una sola riga: evita il 4+1 segnalato nella revisione del
     17 luglio e mantiene tutte le card della riga alla stessa altezza. */
  .metrics-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .metrics-grid article { padding: clamp(1rem, 1.35vw, 1.2rem); }
  .metrics-grid strong { font-size: clamp(1.7rem, 2.15vw, 2.3rem); }
  .metrics-grid span { font-size: 0.9rem; }
  .metrics-grid article p { font-size: 0.82rem; }
}

@media (min-width: 1001px) and (max-width: 1079px) {
  /* In questa fascia cinque card non hanno ancora spazio sufficiente: 3+2 e'
     piu' equilibrato di una riga da quattro con una card isolata. */
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Chi siamo, revisione 17.07: fotografie reali e tre passaggi editoriali. */
.page-hero-team .page-hero-media img {
  object-position: center 42%;
}

.people-story,
.people-philosophy {
  width: 100%;
  max-width: none;
  padding: var(--section-pad) max(var(--page-pad), calc((100vw - 1180px) / 2));
}

.people-story-list {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: min(1180px, 100%);
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
}

.people-story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(0.75rem, 1.4vw, 1rem);
  background: rgba(255, 255, 255, 0.84);
}

.people-story-row-reverse figure {
  order: 2;
}

.people-story-row figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 2;
}

.people-story-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-story-row > div {
  min-width: 0;
  padding: clamp(0.6rem, 2vw, 1.5rem);
}

.people-story-row h3,
.people-commitment h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.people-story-row p,
.people-commitment p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.58;
}

.people-philosophy {
  background: #e7f0f7;
}

.people-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(1180px, 100%);
  margin: clamp(2rem, 3vw, 2.8rem) auto 0;
}

.people-values article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  background: #fff;
}

.people-values h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.people-values p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.people-commitment,
.people-faq {
  width: min(1180px, 100%);
  margin: clamp(1.2rem, 2.4vw, 2rem) auto 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: #fff;
}

.people-faq > h3 {
  margin-bottom: 1rem;
}

@media (max-width: 760px) {
  .page-hero-team .page-hero-media img {
    object-position: 58% center;
  }

  .people-story-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .people-story-row-reverse figure {
    order: initial;
  }

  .people-values {
    grid-template-columns: 1fr;
  }
}
