@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal/neue-montreal-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("/fonts/neue-montreal/neue-montreal-bold.ttf") format("truetype");
  font-weight: 700;
  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: #0b5fd7;
  --blue-soft: #213a59;
  --navy: #0b1320;
  --ink: #10141f;
  --paper: #f4f7fb;
  --white: #ffffff;
  --orange: #ff4e2f;
  --yellow: #fbbc05;
  --line: rgba(16, 20, 31, 0.16);
  --page-pad: clamp(1rem, 3vw, 3rem);
  --content: min(1120px, calc(100vw - var(--page-pad) * 2));
  --reference-main: minmax(0, 58rem);
  --reference-rail: minmax(8rem, 12rem);
  --reference-shell-gap: clamp(1rem, 2.5vw, 2rem);
  --reference-mobile-nav-clearance: 9.5rem;
  --reference-shell-grid:
    minmax(var(--page-pad), 1fr)
    var(--reference-rail)
    var(--reference-main)
    var(--reference-rail)
    minmax(var(--page-pad), 1fr);
  font-family: "Neue Montreal", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(251, 188, 5, 0.2), transparent 22rem),
    radial-gradient(circle at 12% 8%, rgba(11, 95, 215, 0.16), transparent 24rem),
    var(--paper);
}

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

a {
  color: inherit;
}

.reference-nav {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: min(1220px, calc(100% - 2rem));
  min-height: 4.25rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 21, 29, 0.54);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  color: var(--white);
  transform: translateX(-50%);
}

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

.reference-logo img {
  width: 8.9rem;
  height: auto;
}

.reference-top-nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: 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);
}

.reference-actions a,
.reference-directory-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

/* Utility della navbar, allineate alla v3 (.utility-link / .utility-link-portal).
   Qui la pill e' su fondo scuro, quindi valgono i valori del tono "blue". */
.reference-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.reference-utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reference-utility:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* "Accedi al portale" non deve mescolarsi con le altre voci (rif. Sabina) */
.reference-utility-portal {
  border-color: transparent;
  color: var(--blue-soft);
  background: #16a34a; color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.reference-utility-portal:hover {
  background: #128a3d;
}

@media (max-width: 1180px) {
  .reference-utility {
    display: none;
  }
}

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

.reference-top-nav a {
  padding: 0 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.reference-top-nav a:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.12);
}

.reference-top-nav a.is-active {
  color: rgba(23, 32, 51, 0.96);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(15, 21, 29, 0.12);
}

.reference-header-cta {
  gap: 0.48rem;
  min-width: max-content;
  padding: 0 1.25rem;
  background: var(--yellow);
  color: var(--blue-soft);
}

.reference-header-cta svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
}

.reference-actions a:first-child,
.reference-directory-card a {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.reference-hero,
.reference-index-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 4.6rem);
  padding: clamp(6rem, 9vw, 9rem) var(--page-pad) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.reference-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.48fr);
  align-items: end;
}

.reference-index-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.reference-hero::after,
.reference-index-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 19, 32, 0.96), rgba(11, 19, 32, 0.72) 46%, rgba(11, 19, 32, 0.2)),
    linear-gradient(0deg, rgba(11, 19, 32, 0.92), rgba(11, 19, 32, 0.08) 52%);
}

.reference-hero-media {
  position: absolute;
  inset: 0;
}

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

.reference-hero-copy,
.reference-index-copy,
.reference-identity {
  position: relative;
  z-index: 1;
}

.reference-hero-copy,
.reference-index-copy {
  max-width: 76rem;
}

.reference-kicker,
.reference-eyebrow,
.reference-section-index,
.reference-channel-list span,
.reference-source-list dt,
.reference-directory-card span,
.reference-index-stats span {
  font-family: "DM Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reference-kicker,
.reference-eyebrow {
  margin: 0 0 1rem;
  color: var(--yellow);
}

.reference-hero h1,
.reference-index-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.4rem, 8.2vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.reference-index-hero h1 {
  max-width: 15ch;
}

.reference-lead,
.reference-index-lead {
  max-width: 52rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.reference-identity {
  justify-self: end;
  align-self: stretch;
  width: min(23rem, 100%);
  min-height: clamp(28rem, 72svh, 42rem);
  overflow: visible;
}

/* Lanyard in stile Righello (rif. wearerighello.com/chi-siamo): cordino
   sottile a segmenti + clip discreta + card che si inclina col mouse.
   Niente WebGL: e' DOM/CSS, molto piu' soft e leggero. */
.lanyard-wrapper {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: clamp(26rem, 62svh, 34rem);
  padding-top: 1rem;
  perspective: 1000px;
  pointer-events: auto;
  user-select: none;
}

.lanyard-rig {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
}

.lanyard-rope {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rope-segment {
  position: relative;
  width: 12px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #163152 0%,
    #24508a 20%,
    #1b3f6e 50%,
    #24508a 80%,
    #163152 100%
  );
}

.rope-segment::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 8px;
  height: 4px;
  border-radius: 50%;
  background: #12283f;
  transform: translateX(-50%);
}

.lanyard-clip {
  width: 20px;
  height: 30px;
  border-radius: 4px 4px 8px 8px;
  background: linear-gradient(135deg, #8f98a3 0%, #b6bec8 50%, #7c848e 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.lanyard-clip::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: #6b737d;
  transform: translateX(-50%);
}

.reference-lanyard-card {
  position: relative;
  display: grid;
  justify-items: center;
  width: clamp(16rem, 20vw, 19rem);
  min-height: 24rem;
  margin-top: -5px;
  padding: 2.6rem 1.35rem 1.6rem;
  border: 1px solid rgba(16, 20, 31, 0.1);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #eef1f6 55%, #f7f9fc 100%);
  color: var(--ink);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lanyard-rig.is-tilting .reference-lanyard-card {
  transition: transform 120ms ease-out;
}

.lanyard-card-hole {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 40px;
  height: 12px;
  border: 2px solid #9aa3ae;
  border-radius: 6px;
  background: #ccd2da;
  transform: translateX(-50%);
}

.reference-lanyard-card img {
  width: clamp(7rem, 11vw, 9.5rem);
  /* box ad altezza fissa: gli stemmi hanno proporzioni diverse (quadrati,
     alti come Codroipo, o larghi come il logo EDR). Con height:auto il logo
     largo diventava una striscia sottile e quello alto sforava. Un box fisso
     + object-fit:contain li centra tutti in un'area coerente, senza tagli. */
  height: clamp(5.5rem, 8vw, 7.5rem);
  margin: 0.4rem 0 1.2rem;
  object-fit: contain;
}

.reference-lanyard-card small {
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reference-lanyard-card span {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  text-wrap: balance;
}

.reference-lanyard-card strong {
  margin-top: 0.65rem;
  color: rgba(16, 20, 31, 0.62);
  font-weight: 400;
  line-height: 1.25;
}

@keyframes lanyard-sway {
  0%,
  100% {
    transform: rotate(-1.4deg) translateY(0);
  }

  50% {
    transform: rotate(1.4deg) translateY(0.35rem);
  }
}

.reference-section,
.reference-directory {
  display: grid;
  grid-template-columns: var(--reference-shell-grid);
  gap: var(--reference-shell-gap);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.reference-section > .reference-section-index,
.reference-directory > .reference-section-index {
  grid-column: 2;
  justify-self: start;
  width: min(100%, 11rem);
  transform: translateX(clamp(-1.25rem, -1.8vw, -0.4rem));
}

.reference-section > .reference-content,
.reference-directory > .reference-content {
  grid-column: 3;
  width: 100%;
  min-width: 0;
}

.reference-section + .reference-section {
  border-top: 1px solid var(--line);
}

.reference-section-index {
  color: rgba(16, 20, 31, 0.55);
  font-size: 0.82rem;
}

.reference-section-index span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--blue);
}

.reference-section-index p {
  margin: 0;
}

.reference-content {
  min-width: 0;
}

.reference-content h2,
.reference-directory h2 {
  max-width: 15ch;
  margin: 0 0 2rem;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.92;
}

.reference-grid,
.reference-directory-grid,
.reference-index-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* 22 referenze su 3 colonne lasciano l'ultima card da sola nella riga finale
   (22 = 3x7 + 1). Piazzarla nella colonna centrale la fa leggere come una
   chiusura voluta invece che come un orfano allineato a sinistra. Vale solo
   con 3 colonne attive; sotto i 900px la griglia passa a 2/1 e si resetta. */
.reference-directory-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.reference-grid article,
.reference-directory-card,
.reference-index-stats article,
.reference-note,
.reference-entity,
.reference-source-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

/* Stemma e recapiti sono scelte del singolo comune: si riportano identici a come
   stanno sulla landing che l'ente ha oggi online. */
.reference-entity {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
  margin-top: clamp(1.6rem, 2.4vw, 2.25rem);
  padding: 1.15rem 1.35rem;
}

.reference-entity-stemma {
  flex: 0 0 auto;
  width: clamp(3.1rem, 4.2vw, 4rem);
  height: auto;
  object-fit: contain;
}

.reference-entity-body {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.reference-entity-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.reference-entity-name {
  font-weight: 700;
}

.reference-entity-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.reference-entity-contacts a {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .reference-entity {
    flex-direction: column;
    align-items: flex-start;
  }
}

.reference-grid article {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-height: 12rem;
  padding: 1.35rem;
}

.reference-summary .reference-grid,
.reference-source .reference-grid {
  align-items: start;
}

.reference-card-icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  margin-bottom: 0.1rem;
}

/* Bento sezione Servizio: "Servizio gratuito" alto a sinistra su 2 righe,
   "Canali quotidiani" + "Regia DICO" in alto a destra, immagine che riempie
   lo spazio in basso a destra. */
.reference-summary .reference-grid.reference-bento {
  align-items: stretch;
}

.reference-bento > article:first-of-type {
  grid-row: 1 / span 2;
}

/* Illustrazione DICO (trasparente, 500x339): va contenuta su fondo chiaro,
   non ritagliata in "cover" (la sgranerebbe e taglierebbe il telefono). */
.reference-bento-media {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 12rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
}

.reference-bento-media img {
  width: 100%;
  height: 100%;
  max-width: 24rem;
  object-fit: contain;
}

.reference-grid h3,
.reference-directory-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.reference-grid p,
.reference-directory-card p,
.reference-note,
.reference-source-list dd {
  color: rgba(16, 20, 31, 0.68);
  line-height: 1.38;
}

.reference-summary:not(.reference-section) {
  max-width: 58rem;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.reference-source-list {
  display: grid;
  gap: 0.75rem;
  max-width: 56rem;
  margin: 0;
}

/* Canali come CTA d'iscrizione evidenti (rif. Sabina: "link per iscriversi"). */
.reference-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 56rem;
  margin: 0.6rem 0 0;
}

.reference-channel-list a,
.reference-channel-list span {
  display: inline-flex;
  max-width: 100%;
  min-height: 3rem;
  align-items: center;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reference-channel-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

/* Etichette non cliccabili (canale presente ma senza link d'iscrizione,
   es. EDR/Bassano): chip "spente" a contorno, non finti bottoni CTA. */
.reference-channel-list span {
  background: transparent;
  color: rgba(33, 58, 89, 0.62);
  border: 1px solid rgba(33, 58, 89, 0.2);
  font-weight: 650;
}

/* Etichetta l'azione in base al canale, senza modificare l'HTML dei 20 Comuni */
.reference-channel-list a[href*="wa.me"]::before,
.reference-channel-list a[href*="whatsapp"]::before,
.reference-channel-list a[href*="t.me"]::before,
.reference-channel-list a[href*="telegram"]::before {
  content: "Iscriviti su ";
  white-space: pre;
}

.reference-channel-list a[href*="facebook"]::before,
.reference-channel-list a[href*="instagram"]::before {
  content: "Segui su ";
  white-space: pre;
}

.reference-channel-list a[href*="wa.me"],
.reference-channel-list a[href*="whatsapp"] {
  background: #1fa855;
}

.reference-channel-list a[href*="t.me"],
.reference-channel-list a[href*="telegram"] {
  background: #229ed9;
}

.reference-channel-list a[href*="facebook"] {
  background: #1877f2;
}

.reference-channel-list a[href*="instagram"] {
  background: #c13584;
}

/* "Come iscriverti": istruzioni passo-passo scelte dai Comuni (rif. pagine
   ufficiali dico.online): numero WhatsApp da salvare + parola ISCRIVIMI, canale Telegram. */
.reference-subscribe {
  margin-top: 1.8rem;
  max-width: 56rem;
}

/* EDR gestisce due servizi con numeri, canali e informative diversi (guadi e
   SR-PN22). Sul sito attuale stanno su due pagine; qui convivono, quindi ognuno
   va in un contenitore proprio: se si confondono, il cittadino si iscrive agli
   avvisi sbagliati. */
.reference-service {
  max-width: 56rem;
  margin-top: clamp(1.5rem, 2.4vw, 2.1rem);
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.reference-service-name {
  margin: 0;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 800;
}

.reference-service-note {
  max-width: 46rem;
  margin: 0.9rem 0 0;
  line-height: 1.5;
}

.reference-service-desc {
  max-width: 44rem;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(33, 58, 89, 0.78);
}

.reference-service .reference-subscribe-grid {
  margin-top: 1rem;
}

.reference-subscribe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-top: 0.7rem;
}

.reference-subscribe-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(33, 58, 89, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(33, 58, 89, 0.06);
}

.reference-subscribe-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue);
  font-size: 1.08rem;
}

.reference-subscribe-card ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: rgba(33, 58, 89, 0.82);
  line-height: 1.55;
}

.reference-subscribe-card ol li {
  margin-bottom: 0.25rem;
}

.reference-subscribe-card b {
  color: var(--blue);
}

.reference-subscribe-card a {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease;
}

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

.reference-subscribe-card.rs-wa a {
  background: #1fa855;
}

.reference-subscribe-card.rs-tg a {
  background: #229ed9;
}

.reference-note {
  max-width: 56rem;
  padding: 1rem;
}

.reference-source-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.reference-source-list dt,
.reference-source-list dd {
  margin: 0;
}

.reference-source-list dd {
  overflow-wrap: anywhere;
}

.reference-index-stats {
  position: relative;
  z-index: 1;
  max-width: 74rem;
  margin-top: 2rem;
  grid-template-columns: minmax(8.5rem, 0.72fr) minmax(12rem, 1fr) minmax(20rem, 1.48fr);
  align-items: stretch;
}

.reference-index-stats article {
  min-width: 0;
  min-height: 8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.reference-index-stats strong {
  display: block;
  margin-top: 1rem;
  font-size: clamp(2rem, 3.35vw, 3.85rem);
  line-height: 0.94;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.reference-directory-card {
  display: grid;
  align-content: space-between;
  gap: 1.25rem;
  min-height: 15rem;
  padding: 1rem;
}

.reference-directory-logo {
  width: 3.35rem;
  height: 3.35rem;
  padding: 0.42rem;
  border: 1px solid rgba(16, 20, 31, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(17, 35, 56, 0.08);
  object-fit: contain;
}

.reference-directory-card span {
  color: var(--blue);
  font-size: 0.82rem;
}

.reference-directory-card p {
  margin: 0;
}

/* L'indice Referenze usa lo stesso canvas, la stessa tipografia e lo stesso
   wrapper da 1180px delle pagine principali della V3. */
.reference-index-page {
  --page-pad: clamp(1.35rem, 4.5vw, 2rem);
  --content: min(1180px, calc(100vw - var(--page-pad) * 2));
  --blue: #213a59;
  --blue-deep: #13263d;
  --paper: #f5f2ec;
  --ink: #232b36;
  --line: rgba(35, 43, 54, 0.14);
  --canvas: #f5f2ec;
  color: var(--ink);
  background: var(--canvas);
  font-family: Poppins, "Avenir Next", "Segoe UI", sans-serif;
  transition: background-color 700ms ease;
}

.reference-index-page .reference-index-copy {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.reference-index-page .reference-index-hero {
  width: 100%;
  max-width: none;
}

.reference-index-page .reference-directory {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: var(--content);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.reference-index-page .reference-directory > .reference-section-index {
  grid-column: 1;
  justify-self: stretch;
  width: 100%;
  padding: 0;
  transform: none;
}

.reference-index-page .reference-directory > .reference-content {
  grid-column: 1;
}

.reference-index-page .reference-directory h2 {
  font-size: clamp(2.8rem, 5vw, 4.85rem);
}

@media (max-width: 1100px) {
  .reference-section,
  .reference-directory {
    grid-template-columns: 1fr;
    width: var(--content);
  }

  .reference-section > .reference-section-index,
  .reference-section > .reference-content,
  .reference-directory > .reference-section-index,
  .reference-directory > .reference-content {
    grid-column: auto;
    width: 100%;
    transform: none;
  }

  .reference-index-page .reference-directory {
    grid-template-columns: 1fr;
    width: var(--content);
    gap: 0.85rem;
  }

  .reference-index-page .reference-directory > .reference-section-index,
  .reference-index-page .reference-directory > .reference-content {
    grid-column: auto;
    width: 100%;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .reference-grid,
  .reference-directory-grid,
  .reference-index-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* a 2/1 colonna la centratura dell'orfano non serve e la colonna 2 potrebbe
     non esistere: si torna al flusso normale. */
  .reference-directory-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .reference-index-stats article:last-child {
    grid-column: span 2;
  }

  .reference-summary .reference-grid.reference-bento {
    grid-template-columns: 1fr;
  }

  .reference-bento > article:first-of-type {
    grid-row: auto;
  }

  .reference-bento-media {
    grid-column: auto;
    grid-row: auto;
    min-height: 14rem;
  }
}

@media (max-width: 760px) {
  .reference-nav {
    top: 0.5rem;
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 0.75rem;
    width: calc(100% - 1rem);
    min-height: 3.8rem;
    padding: 0.45rem 0.5rem;
  }

  /* La nav non sparisce piu' da mobile: queste landing non caricano script.js
     e non hanno un hamburger, quindi nascondendola restavano raggiungibili
     solo logo e "Contattaci". Diventa una striscia scorrevole su seconda riga,
     e il "Portale" torna in prima riga: nessun JS, nessun vicolo cieco. */
  .reference-nav {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .reference-top-nav {
    display: flex;
    order: 3;
    /* il contenitore e' una grid a due colonne: "flex: 1 0 100%" qui non ha
       effetto (le proprieta' flex sono ignorate sui grid item) e la nav
       restava larga una colonna sola, ~175px su 387, con quattro voci su sei
       fuori dal nastro. Serve occupare l'intera riga. */
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* a 390px sei voci non ci stanno nemmeno riducendo corpo e padding:
       lo scorrimento resta, ma la dissolvenza a destra lo rende evidente
       invece di far sembrare la nav troncata. */
    mask-image: linear-gradient(to right, #000 calc(100% - 2.2rem), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.2rem), transparent);
  }

  .reference-top-nav::-webkit-scrollbar {
    display: none;
  }

  .reference-top-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .reference-utility-portal {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding-inline: 0.8rem;
    font-size: 0.82rem;
  }

  .reference-logo {
    min-height: 2.75rem;
    padding-left: 0.25rem;
  }

  .reference-logo img {
    width: 7.25rem;
  }

  .reference-header-cta {
    min-height: 2.75rem;
    padding-inline: 1rem;
    font-size: 0.88rem;
  }

  .reference-hero,
  .reference-index-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--reference-mobile-nav-clearance);
    padding-bottom: 2.35rem;
  }

  .reference-hero h1,
  .reference-index-hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 10.5vw, 3.35rem);
    line-height: 1;
  }

  /* Il lanyard nuovo (stile Righello) e' in FLUSSO, non piu' assoluto: le
     altezze fisse di prima (rig 15.5rem) lo facevano sfondare e la hero,
     che ha overflow:hidden, tagliava la card. Qui va tutto ad altezza auto. */
  .reference-identity {
    justify-self: stretch;
    width: 100%;
    min-height: auto;
    margin-top: 1.35rem;
  }

  .lanyard-wrapper {
    height: auto;
    min-height: auto;
    max-height: none;
    align-items: flex-start;
    padding-top: 0;
  }

  .lanyard-rig {
    width: auto;
    height: auto;
  }

  /* cordino piu' corto: su mobile lo spazio verticale e' prezioso */
  .rope-segment {
    width: 10px;
    height: 26px;
  }

  .lanyard-clip {
    width: 17px;
    height: 24px;
  }

  .reference-lanyard-card {
    width: min(13.6rem, 100%);
    min-height: 10.7rem;
    padding: 2.05rem 0.95rem 0.9rem;
    border-radius: 1.35rem;
  }

  .reference-lanyard-card::before {
    top: 0.75rem;
    width: 3.4rem;
    height: 0.95rem;
  }

  .lanyard-card-hole {
    top: 0.9rem;
    width: 2.2rem;
    height: 0.58rem;
  }

  .reference-lanyard-card img {
    width: 5.35rem;
    height: 4.6rem;
    margin: 0.15rem 0 0.5rem;
  }

  .reference-lanyard-card small {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
  }

  .reference-lanyard-card span {
    font-size: clamp(1.25rem, 6vw, 1.65rem);
    line-height: 1;
  }

  .reference-lanyard-card strong {
    margin-top: 0.4rem;
    font-size: 0.9rem;
  }

  .reference-section,
  .reference-directory {
    gap: 0.9rem;
    padding-block: 3rem;
  }

  .reference-content h2,
  .reference-directory h2 {
    max-width: 14ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.25rem, 10.8vw, 3.45rem);
    line-height: 0.98;
  }

  .reference-grid,
  .reference-directory-grid,
  .reference-index-stats {
    grid-template-columns: 1fr;
  }

  .reference-index-stats article:last-child {
    grid-column: auto;
  }

  .reference-source-list div {
    grid-template-columns: 1fr;
  }

  .reference-grid article,
  .reference-directory-card {
    align-content: start;
    gap: 1.25rem;
    min-height: auto;
    padding: 1rem;
  }

  .reference-grid h3,
  .reference-directory-card h3 {
    font-size: clamp(1.18rem, 5.2vw, 1.55rem);
    line-height: 1.05;
  }

  .reference-grid p,
  .reference-directory-card p,
  .reference-note,
  .reference-source-list dd {
    font-size: 0.98rem;
    line-height: 1.42;
  }
}

@media (max-width: 380px) {
  .reference-hero,
  .reference-index-hero {
    padding-inline: 1rem;
  }

  .reference-hero h1,
  .reference-index-hero h1 {
    font-size: clamp(2.25rem, 11vw, 2.62rem);
    line-height: 1;
    text-wrap: auto;
    overflow-wrap: anywhere;
  }

  .reference-lead,
  .reference-index-lead {
    font-size: 1.04rem;
    line-height: 1.42;
  }

  .lanyard-rig {
    width: min(13.25rem, 88vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lanyard-rig {
    animation: none;
  }
}

/* ============================================================
   Footer uniformato allo stile DICO v3 (self-contained, no JS).
   ============================================================ */
.site-footer {
  width: 100%;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(3.5rem, 7vw, 6rem) var(--page-pad) 1.1rem;
  position: relative;
  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::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;
}

.site-footer .footer-eyebrow {
  margin: 0 0 0.6rem;
  color: var(--yellow);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: clamp(1.35rem, 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(760px, 100%);
  margin: 0.4rem 0 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 820;
  line-height: 0.99;
  letter-spacing: -0.04em;
}

.footer-panel p.footer-text {
  width: min(620px, 100%);
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.56;
}

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

.footer-trust 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);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

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

.footer-trust .badge-icon img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

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

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

.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.3rem;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

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

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

.footer-actions .footer-cta::after {
  content: "";
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  width: min(1180px, 100%);
  margin: 1rem auto 0;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  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.86rem;
  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;
  text-decoration: none;
}

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

@media (max-width: 820px) {
  .footer-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer-actions {
    justify-items: stretch;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    border-radius: 24px;
    text-align: center;
    justify-items: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* Informativa privacy del servizio: replica il link presente sulle landing
   attuali dei Comuni su dico.online (URL diversi per Comune). */
/* Servizi che il singolo ente offre oltre alla messaggistica: un magazine, una
   newsletter, un'app per le segnalazioni. Si riportano come stanno sulla landing
   che l'ente ha oggi online. */
.reference-extra {
  margin-top: clamp(1.4rem, 2.2vw, 2rem);
  padding-top: clamp(1.2rem, 2vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.reference-extra > p:not(.reference-eyebrow) {
  margin: 0.55rem 0 0;
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.reference-extra-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.reference-extra-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease;
}

.reference-extra-list a:hover {
  border-color: var(--blue);
  background: rgba(11, 95, 215, 0.06);
}

.reference-privacy {
  margin: 1.1rem 0 0;
}

/* Gemona e Maniago hanno due informative affiancate */
.reference-privacy a + a {
  margin-left: 1.2rem;
}

.reference-privacy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.reference-privacy a:hover {
  color: var(--orange);
}

/* Semaforo transitabilita' EDR: le PNG sono servite (e sovrascritte) da
   dico.online/grafiche-automazioni/ -> quel path deve restare sul vecchio stack. */
.reference-semaforo-time {
  margin: 0 0 1.4rem;
  font-family: "DM Mono", monospace;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue);
}

.reference-semaforo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reference-semaforo-grid article {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 1.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.reference-semaforo-grid h3 {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.2;
}

.reference-semaforo-grid img {
  width: auto;
  max-width: 100%;
  height: clamp(7rem, 12vw, 9.5rem);
  object-fit: contain;
}

@media (max-width: 760px) {
  .reference-semaforo-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   BLOG — i 3 approfondimenti (WhatsApp PA, Legge 150/2000, social PA) usano lo
   stack referenze condiviso: navbar e footer v3 sopra, qui lo stile del corpo,
   riscritto sui token v3. Assorbe il vecchio css/blog.css.
   ========================================================================== */
.blog-article {
  width: var(--content);
  margin: 0 auto;
  /* piu' aria in alto: la navbar e' fixed, cosi' non copre la hero */
  padding: clamp(5.5rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 6rem);
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.86fr);
  gap: clamp(1.8rem, 4vw, 4.5rem);
  align-items: center;
}

.blog-hero > * {
  min-width: 0;
}

.blog-kicker,
.blog-meta,
.blog-body h2,
.blog-cta p {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* kicker con barretta editoriale */
.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--blue);
}

.blog-kicker::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  background: currentColor;
}

.blog-hero h1 {
  max-width: 15ch;
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.blog-deck {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  color: rgba(16, 20, 31, 0.72);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.5;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  color: var(--blue-soft);
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.blog-hero figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 20px;
  /* ombra morbida al posto del bordo secco: l'immagine "galleggia" */
  box-shadow: 0 26px 60px -24px rgba(16, 20, 31, 0.45);
}

/* velo brand appena percettibile in un angolo, per integrare l'illustrazione */
.blog-hero figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, transparent 56%, rgba(11, 95, 215, 0.14));
  pointer-events: none;
}

.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ingresso in fade-up sfalsato — CSS puro (i blog non hanno JS di scena),
   spento per chi preferisce meno movimento. */
@media (prefers-reduced-motion: no-preference) {
  .blog-hero > div > *,
  .blog-hero figure {
    animation: blogRise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .blog-hero figure { animation-delay: 60ms; }
  .blog-hero .blog-kicker { animation-delay: 140ms; }
  .blog-hero h1 { animation-delay: 220ms; }
  .blog-hero .blog-deck { animation-delay: 320ms; }
  .blog-hero .blog-meta { animation-delay: 400ms; }
}

@keyframes blogRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.blog-body {
  display: grid;
  gap: clamp(2rem, 3.5vw, 2.8rem);
  max-width: 720px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}

.blog-body h2 {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.82rem;
}

.blog-body p,
.blog-body li {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--ink);
}

.blog-body ol,
.blog-body ul {
  margin: 0;
  padding-left: 1.3rem;
}

.blog-body li {
  margin-bottom: 0.6rem;
}

.blog-note {
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: rgba(11, 95, 215, 0.05);
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

.blog-cta {
  margin-top: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.blog-cta p {
  margin: 0 0 0.6rem;
  color: var(--blue);
}

.blog-cta h2 {
  max-width: 26ch;
  margin: 0 0 1.4rem;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.blog-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease;
}

.blog-cta a:hover {
  transform: translateY(-2px);
  background: #0a52bd;
}

@media (max-width: 760px) {
  .blog-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-hero figure {
    order: -1;
  }
}

/* Blocco "DICO è pensato anche per le aziende" (pagina contatti, doc Sabina) */
.business-band {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}
.business-inner { width: min(60rem, 100%); margin: 0 auto; }
.business-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 0.9rem;
}
.business-inner h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
}
/* max-width sui paragrafi: il contenitore e' largo 60rem per titolo ed elenco,
   ma il corpo del testo a piena larghezza arrivava a ~120 caratteri per riga,
   ben oltre i ~75 comodi da leggere. */
.business-inner p { margin: 0 0 1rem; max-width: 42rem; line-height: 1.6; color: rgba(16, 20, 31, 0.78); }
.business-list-intro { font-weight: 700; color: var(--ink) !important; margin-top: 1.4rem !important; }
.business-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.5rem 1.5rem; margin: 0 0 1.4rem; padding-left: 1.2rem;
}
.business-list li { line-height: 1.5; color: rgba(16, 20, 31, 0.78); }
.business-cta {
  margin-top: 1.6rem !important; padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0;
  background: rgba(11, 95, 215, 0.05);
}

/* ── Blocchi ripristinati dagli originali dei comuni (contenuti scelti dai
   comuni: rassicurazione su gratuità/privacy, invito a seguire i social,
   payoff del servizio). Reintegrati nel design attuale, senza il boilerplate
   Systemdoc/dati fiscali. ── */
.reference-payoff {
  margin: 0.35rem 0 0.9rem;
  font-family: "DM Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold, #e9b544);
}

.reference-reassurance {
  margin: 1.1rem 0 0;
  max-width: 46rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(16, 20, 31, 0.74);
}

.reference-follow-note {
  margin: 0.75rem 0 0;
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(16, 20, 31, 0.68);
}
