@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;
  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: #d24126; 
  --yellow: #fbbc05;
  --line: rgba(16, 20, 31, 0.16);
  
  --page-pad: clamp(1.35rem, 4.5vw, 2rem);
  
  --content: min(1180px, calc(100% - var(--page-pad) * 2));
  --reference-shell-gap: clamp(1rem, 2.5vw, 2rem);
  --reference-mobile-nav-clearance: 9.5rem;
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(33, 58, 89, 0.14);
  backdrop-filter: blur(18px);
  color: var(--blue-soft);
  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(33, 58, 89, 0.12);
  border-radius: 999px;
  background: rgba(33, 58, 89, 0.05);
}

.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.05;
  text-decoration: none;
  text-transform: uppercase;
}

.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(33, 58, 89, 0.18);
  border-radius: 999px;
  background: rgba(33, 58, 89, 0.05);
  color: var(--blue-soft);
  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(33, 58, 89, 0.1);
  transform: translateY(-1px);
}

.reference-utility-portal {
  border-color: transparent;
  color: var(--blue-soft);
  background: #12883e; color: #fff; 
  
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.28);
}

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

.nav-burger,
input.nav-toggle {
  display: none;
}

@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.05;
  text-decoration: none;
}

.reference-top-nav a {
  padding: 0 0.85rem;
  color: rgba(33, 58, 89, 0.78);
}

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

.reference-top-nav a.is-active {
  color: rgba(23, 32, 51, 0.96);
  background: rgba(33, 58, 89, 0.1);
  box-shadow: inset 0 0 0 1px rgba(33, 58, 89, 0.08);
}

.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)
    max(var(--page-pad), calc((100% - 1180px) / 2))
    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-hero > .reference-hero-copy,
.reference-hero > .reference-identity,
.reference-index-hero > .reference-hero-copy {
  min-width: 0;
}

.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 {
  margin: 0 0 1rem;
  color: var(--yellow);
}

.reference-eyebrow {
  margin: 0 0 clamp(1.1rem, 1.7vw, 1.75rem);
  color: var(--blue);
}

.reference-hero h1,
.reference-index-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.4rem, 8.2vw, 7.4rem);
  line-height: 1.05;
  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-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;
  backface-visibility: hidden;
}

.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);
  
  height: clamp(5.5rem, 8vw, 7.5rem);
  margin: 0.4rem 0 1.2rem;
  object-fit: contain;
  
  mix-blend-mode: multiply;
}

.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: 1.05;
  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;
}

.reference-section,
.reference-directory {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--reference-shell-gap);
  width: var(--content);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.reference-section > .reference-section-index,
.reference-directory > .reference-section-index {
  width: min(100%, 11rem);
}

@media (min-width: 1620px) {
  .reference-section > .reference-section-index,
  .reference-directory > .reference-section-index {
    position: absolute;
    top: clamp(4rem, 8vw, 7rem);
    left: 0;
    transform: translateX(calc(-100% - var(--reference-shell-gap)));
    margin: 0;
  }
}

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

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

.reference-section-index {
  
  color: rgba(16, 20, 31, 0.68);
  font-size: 0.82rem;
  
  margin-bottom: clamp(1.4rem, 2.4vw, 2.4rem);
}

.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(1.7rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}

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

.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);
}

.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;
}

.reference-entity-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  margin-top: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.reference-entity-legal p {
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.reference-entity-legal p span {
  color: rgba(33, 58, 89, 0.68);
  font-weight: 500;
}

.reference-entity-site {
  flex-basis: 100%;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.reference-entity-fax {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
}

@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;
}

.reference-summary .reference-grid.reference-bento {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: stretch;
}

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

.reference-bento-media {
  grid-column: auto;
  grid-row: auto;
  display: block;
  margin: 0;
  
  position: relative;
  min-height: min(100%, 16rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
}

.reference-bento-media img,
.reference-bento-media picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.reference-bento-media--contain {
  background: #fff;
}

.reference-bento-media--grande {
  grid-column: 1 / -1;
  min-height: min(100%, 26rem);
}

@media (max-width: 640px) {
  .reference-bento-media--grande { min-height: 18rem; }
}

.reference-bento-media--contain img {
  object-fit: contain;
  object-position: center;
  padding: clamp(0.75rem, 1.8vw, 1.35rem);
}

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

.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-directory-quote-by {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(16, 20, 31, 0.78);
}

.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;
}

.reference-channel-groups {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.4rem);
  max-width: 56rem;
  margin: 0.9rem 0 0;
}

.reference-channel-label {
  margin: 0 0 0.15rem;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-channel-groups .reference-channel-list {
  margin-top: 0.35rem;
}

.reference-channel-group .reference-channel-label {
  margin: 0 0 0.15rem;
  font-size: clamp(0.86rem, 1.2vw, 0.98rem);
  letter-spacing: 0.1em;
}

.reference-channel-headline {
  margin: 0;
  max-width: 38rem;
  color: rgba(16, 20, 31, 0.72);
  font-size: clamp(0.94rem, 1.2vw, 1.02rem);
  font-weight: 500;
  line-height: 1.45;
}

.reference-channel-icons {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin-top: 0.7rem;
}

.channel-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: clamp(5.5rem, 9vw, 7rem);
  color: var(--blue-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 220ms ease;
}

.channel-icon img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.channel-icon:hover,
.channel-icon:focus-visible {
  transform: translateY(-3px);
}

.channel-icon:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .channel-icon { transition: none; }
  .channel-icon:hover, .channel-icon:focus-visible { transform: none; }
}

.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);
}

.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;
}

.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: #198845;
}

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

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

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

.reference-subscribe {
  margin-top: 1.8rem;
  max-width: 56rem;
}

.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 > .reference-channel-group {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}

.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: #198845;
}

.reference-subscribe-card.rs-tg a {
  background: #1b7eae;
}

.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: 1.05;
  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;
}

.reference-index-page {
  --page-pad: clamp(1.35rem, 4.5vw, 2rem);
  
  --content: min(1180px, calc(100% - 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(1.7rem, 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;
  }

  .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;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem 0.6rem;
    width: calc(100% - 1rem);
    min-height: 0;
    padding: 0.5rem 0.6rem;
    border-radius: 1.5rem;
  }

  .reference-logo {
    grid-column: 1;
    min-height: 2.75rem;
    padding-left: 0.15rem;
  }

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

  input.nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
  }

  input.nav-toggle:focus-visible ~ .nav-burger {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  .nav-burger {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid rgba(33, 58, 89, 0.15);
    border-radius: 0.85rem;
    background: rgba(33, 58, 89, 0.05);
    cursor: pointer;
  }

  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    content: "";
    display: block;
    width: 1.3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-soft);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-burger span {
    position: relative;
  }

  .nav-burger span::before {
    position: absolute;
    left: 0;
    top: -6px;
  }

  .nav-burger span::after {
    position: absolute;
    left: 0;
    top: 6px;
  }

  .reference-top-nav,
  .reference-header-actions {
    grid-column: 1 / -1;
    display: none;
  }

  .nav-toggle:checked ~ .reference-top-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.2rem;
    border: none;
    background: transparent;
  }

  .nav-toggle:checked ~ .reference-top-nav a {
    justify-content: flex-start;
    padding: 0.7rem 0.65rem;
    border-radius: 0.7rem;
    white-space: nowrap;
  }

  .nav-toggle:checked ~ .reference-top-nav a:hover,
  .nav-toggle:checked ~ .reference-top-nav a.is-active {
    background: rgba(33, 58, 89, 0.06);
  }

  .nav-toggle:checked ~ .reference-header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(33, 58, 89, 0.1);
  }

  .nav-toggle:checked ~ .reference-header-actions .reference-utility,
  .nav-toggle:checked ~ .reference-header-actions .reference-header-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    min-height: 2.9rem;
  }

  .nav-toggle:checked ~ .nav-burger span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-burger span::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-burger span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .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.05;
  }

  .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;
  }

  .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.05;
  }

  .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(1.7rem, 9.8vw, 3.45rem);
    line-height: 1.05;
  }

  .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.05;
    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;
  }
}

.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 clamp(0.9rem, 1.4vw, 1.4rem);
  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: 1.05;
  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.05;
  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(12rem, 1fr) auto auto;
  gap: clamp(0.65rem, 1.2vw, 1rem);
  width: min(1180px, 100%);
  margin: 1rem auto 0;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.75rem;
  padding: 0.65rem 0.75rem;
  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;
  align-items: center;
  min-height: 44px;
  display: inline-flex;
  
  min-height: 44px;
  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;
  }
}

.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-giornalino-logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
  margin: 0 0 1rem;
}

.reference-nav-comune .reference-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.reference-nav-comune .reference-logo img {
  width: auto;
  height: clamp(32px, 4.2vw, 42px);
  object-fit: contain;
  
  mix-blend-mode: multiply;
}

.reference-nav-comune .reference-top-nav {
  justify-self: center;
  width: max-content;
  max-width: 100%;
}
.reference-logo-name {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(0.86rem, 1.05vw, 1rem);
  color: #213a59;
  
  max-width: 26ch;
}
@media (max-width: 560px) {
  .reference-logo-name { display: none; }
}

.reference-hero,
.reference-section { scroll-margin-top: 6rem; }

.site-footer-comune {
  background: transparent;
  color: rgba(33, 58, 89, 0.62);
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  padding: 0 var(--page-pad) 1.4rem;
}
.site-footer-comune::before { display: none; }
.site-footer-comune .footer-bottom {
  
  border: 1px solid rgba(33, 58, 89, 0.1);
  border-radius: var(--radius-l, 24px);
  background: #fbf3ee;
  padding: 1.1rem clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.site-footer-comune .footer-links a { color: rgba(33, 58, 89, 0.7); }
.site-footer-comune .footer-links a:hover { color: #213a59; }
.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  
  color: rgba(33, 58, 89, 0.82);
  text-decoration: none;
}
.footer-powered img { height: 24px; width: auto; opacity: 0.92; }
.footer-powered:hover { color: rgba(33, 58, 89, 0.9); }
.site-footer-comune .reference-copyright {
  grid-column: 1 / -1;
  justify-self: center;
  color: rgba(33, 58, 89, 0.72);
  font-size: 0.78rem;
  text-align: center;
}
.site-footer-comune .reference-copyright a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.reference-region-group { margin-top: clamp(1.8rem, 3.4vw, 2.8rem); }
.reference-region-group:first-of-type { margin-top: 0; }
.reference-region-title {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.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-flipbook {
  position: relative;
  margin: 1.1rem 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0f1626;
  box-shadow: 0 18px 52px rgba(33, 58, 89, 0.14);
  aspect-ratio: 16 / 10;
}

.reference-flipbook iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .reference-flipbook {
    aspect-ratio: 3 / 4;
  }
}

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

.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);
}

.reference-privacy-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.15rem;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.reference-privacy-pdf:hover { background: var(--blue-soft); }
.reference-privacy-pdf svg { width: 15px; height: 15px; flex-shrink: 0; }

.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-article {
  width: var(--content);
  margin: 0 auto;
  
  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;
}

.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: 1.05;
  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;
  
  box-shadow: 0 26px 60px -24px rgba(16, 20, 31, 0.45);
}

.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;
}

@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;
  }
}

.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 clamp(1.1rem, 1.7vw, 1.75rem);
}
.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;
}

.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);
}

.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-card-photo {
  display: block;
  width: 100%;
  height: clamp(9rem, 16vw, 12rem);
  margin-top: 0.9rem;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .reference-channels .reference-content > h2 {
    font-size: clamp(1.5rem, 6.4vw, 2rem);
    line-height: 1.15;
  }
}

.edr-mappa { margin: 0.9rem 0 0; }
.edr-mappa img { width: 100%; max-width: 34rem; height: auto; border-radius: 12px; display: block; }
.edr-mappa figcaption,
.edr-qr figcaption { margin-top: 0.4rem; font-size: 0.82rem; color: rgba(33,58,89,0.7); }
.edr-qr { margin: 0.9rem 0 0; }
.edr-qr img { width: clamp(7rem, 12vw, 9rem); height: auto; display: block; border-radius: 10px; }

.edr-home-chooser {
  width: 100%;
  padding-top: clamp(7.5rem, 10vw, 9rem);
  background: #0d1d31;
}
.edr-home-intro {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  color: #fff;
}
.edr-home-intro h1 {
  max-width: 14ch;
  margin: 0.5rem 0 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.edr-home-intro > p:last-child {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}
.edr-service-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(36rem, 72svh, 52rem);
  place-items: center;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) var(--page-pad);
  color: #fff;
  background: #1a2d43;
}
.edr-service-panel-bg,
.edr-service-panel-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.edr-service-panel-bg {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: center;
}
.edr-service-panel--srpn22 .edr-service-panel-bg { object-position: center 48%; }
.edr-service-panel--guadi .edr-service-panel-bg { object-position: center; }
.edr-service-panel-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 16, 28, 0.3), rgba(7, 16, 28, 0.58)),
    linear-gradient(90deg, rgba(7, 16, 28, 0.28), transparent 50%, rgba(7, 16, 28, 0.22));
}
.edr-service-panel-copy {
  display: grid;
  justify-items: center;
  width: min(100%, 76rem);
  text-align: center;
}
.edr-service-panel-label {
  margin: 0 0 0.8rem;
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.edr-service-panel h2 {
  max-width: 22ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5.8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.34);
}
.edr-service-panel-sign {
  display: block;
  width: clamp(4.5rem, 7vw, 6.5rem);
  height: auto;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.26));
}
.edr-service-panel-copy > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--blue-soft);
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}
.edr-service-panel-copy > a:hover,
.edr-service-panel-copy > a:focus-visible {
  background: #ffd34f;
  transform: translateY(-2px);
}
@media (max-width: 720px) {
  .edr-home-intro { padding-block: 2.5rem 3rem; }
  .edr-home-intro h1 { font-size: clamp(2.35rem, 12vw, 3.75rem); }
  .edr-service-panel {
    min-height: 34rem;
    padding-block: 3.5rem;
  }
  .edr-service-panel h2 {
    max-width: 14ch;
    font-size: clamp(2rem, 9.8vw, 3.25rem);
    line-height: 1.04;
  }
  .edr-service-panel--srpn22 .edr-service-panel-bg { object-position: 44% center; }
  .edr-service-panel--guadi .edr-service-panel-bg { object-position: 62% center; }
  .edr-service-panel-copy > a { width: min(100%, 24rem); }
}

.edr-hub-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(28rem, 62svh, 40rem);
  padding-top: clamp(7.5rem, 10vw, 9rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.edr-hub-hero .reference-hero-copy { max-width: 62rem; }
.edr-hub-hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
}
.edr-hub-services { padding-top: clamp(3rem, 6vw, 5rem); }
.edr-hub-lead {
  max-width: 48rem;
  margin: -0.45rem 0 1rem;
  color: rgba(33, 58, 89, 0.76);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.6;
}
.edr-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}
.edr-hub-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border: 1px solid rgba(33, 58, 89, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(33, 58, 89, 0.08);
}
.edr-hub-card-media {
  margin: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid rgba(33, 58, 89, 0.1);
  background: #e8eef4;
}
.edr-hub-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.edr-hub-card-copy { padding: clamp(1.15rem, 2vw, 1.55rem); }
.edr-hub-tag {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.edr-hub-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.edr-hub-card-copy > p:last-child {
  margin: 0.7rem 0 0;
  color: rgba(33, 58, 89, 0.72);
  line-height: 1.55;
}
.edr-hub-status {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 12rem;
  padding: 1rem;
  border-block: 1px solid rgba(33, 58, 89, 0.1);
  background: #f2f6fa;
}
.edr-hub-status > span,
.edr-hub-status-two span {
  color: rgba(33, 58, 89, 0.7);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.edr-hub-status img { width: auto; max-width: 100%; height: 8.5rem; object-fit: contain; }
.edr-hub-status-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.edr-hub-status-two > div { min-width: 0; display: grid; justify-items: center; gap: 0.35rem; }
.edr-hub-status-two img { height: 7.8rem; }
.edr-hub-cta {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.8rem 1.25rem;
  background: var(--blue);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
}
.edr-hub-cta:hover { background: #084daa; }
.edr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.edr-steps article { padding: 1.25rem; border-top: 3px solid var(--blue); background: rgba(255, 255, 255, 0.74); }
.edr-steps article > span { color: var(--blue); font-family: "DM Mono", monospace; font-size: 0.72rem; font-weight: 600; }
.edr-steps h3 { margin: 0.75rem 0 0; font-size: 1.12rem; }
.edr-steps p { margin: 0.5rem 0 0; color: rgba(33, 58, 89, 0.72); line-height: 1.55; }
@media (max-width: 760px) {
  .edr-hub-grid, .edr-steps { grid-template-columns: minmax(0, 1fr); }
  .edr-hub-status { min-height: 10rem; }
  .edr-hub-status img { height: 7rem; }
  .edr-hub-status-two img { height: 6.2rem; }
  .edr-hub-lead { margin-top: 0; }
}

.edr-status-first {
  width: 100%;
  padding: clamp(7.5rem, 10vw, 9rem) var(--page-pad) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(11, 95, 215, 0.12), transparent 24rem),
    #edf2f7;
}
.edr-status-first .reference-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  align-items: center;
  gap: 0.75rem clamp(1.5rem, 4vw, 4rem);
  width: var(--content);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid rgba(33, 58, 89, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(33, 58, 89, 0.1);
}
.edr-status-kicker {
  margin: 0;
  color: var(--orange);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.edr-status-title {
  max-width: 17ch;
  margin: 0;
  color: var(--blue-soft);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.edr-status-first .reference-note-live {
  margin: 0;
  color: rgba(33, 58, 89, 0.66);
  line-height: 1.5;
}
.edr-status-first .reference-content > .reference-live-img {
  grid-column: 2;
  grid-row: 1 / 4;
  justify-self: center;
  width: min(100%, 23rem);
}
.edr-status-first .reference-live-img {
  max-height: 22rem;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.edr-status-first .reference-live-coppia {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
}
.edr-status-first .reference-live-coppia figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem);
  grid-template-areas: "caption status";
  align-items: center;
  gap: 1.25rem;
  min-height: 12rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(33, 58, 89, 0.12);
  border-radius: 18px;
  background: #f7f9fc;
}
.edr-status-first .reference-live-coppia img {
  grid-area: status;
  width: 100%;
  max-height: 11rem;
}
.edr-status-first .reference-live-coppia figcaption {
  grid-area: caption;
  margin: 0;
  color: var(--blue-soft);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
}
.edr-service-hero {
  min-height: clamp(32rem, 66svh, 44rem);
}
.edr-service-hero .reference-hero-media img {
  object-position: center;
}
.edr-service-hero--srpn22 .reference-hero-media img {
  object-position: center 34%;
}
.edr-service-hero h1 {
  font-size: clamp(3rem, 7.2vw, 6.5rem);
}

.edr-context-block {
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(33, 58, 89, 0.14);
}
.edr-context-block > h3 { margin-top: 0.35rem; }
.edr-context-block > p:not(.reference-eyebrow) {
  max-width: 52rem;
  color: rgba(33, 58, 89, 0.76);
  line-height: 1.6;
}
.edr-context-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  margin-top: 1.25rem;
}
.edr-context-gallery figure,
.edr-context-panorama {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(33, 58, 89, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(33, 58, 89, 0.07);
}
.edr-context-gallery img,
.edr-context-panorama img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.edr-context-gallery figcaption,
.edr-context-panorama figcaption {
  padding: 0.75rem 0.9rem;
  color: rgba(33, 58, 89, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}
.edr-context-panorama { margin-top: 1.25rem; }

@media (max-width: 760px) {
  .edr-status-first {
    padding-top: var(--reference-mobile-nav-clearance);
    padding-inline: var(--page-pad);
  }
  .edr-status-first .reference-content {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    padding: 1.1rem;
    border-radius: 18px;
  }
  .edr-status-title { max-width: none; font-size: clamp(2rem, 9.5vw, 3rem); }
  .edr-status-first .reference-content > .reference-live-img {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 19rem);
    margin-top: 0.75rem;
  }
  .edr-status-first .reference-live-coppia figure {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "caption" "status";
    justify-items: center;
    min-height: 0;
  }
  .edr-status-first .reference-live-coppia figcaption { justify-self: start; }
  .edr-status-first .reference-live-coppia img { width: min(100%, 15rem); }
  .edr-service-hero { min-height: auto; }
  .edr-context-gallery { grid-template-columns: minmax(0, 1fr); }
}

.blog-body p,
.blog-body li,
.blog-body a {
  overflow-wrap: anywhere;
}

.legal p,
.legal li,
.legal a,
.legal h1,
.legal h2 {
  overflow-wrap: anywhere;
}

.reference-live .reference-content > h2 {
  max-width: none;
}

.reference-note-live {
  margin: 0 0 1.2rem;
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(16, 20, 31, 0.6);
}

.reference-live-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m, 18px);
  background: #fff;
}

.reference-live-coppia {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.reference-live-coppia figure {
  margin: 0;
}

.reference-live-coppia figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(16, 20, 31, 0.7);
}

.reference-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
}

.reference-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-s, 14px);
}

.edr-alert-groups {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.edr-alert-group {
  min-width: 0;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid rgba(33, 58, 89, 0.16);
}

.edr-alert-group h4 {
  margin: 0;
  color: var(--blue-soft);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.edr-alert-group .reference-gallery { margin-top: 1rem; }
.edr-alert-group figure { min-width: 0; margin: 0; }
.edr-alert-group figcaption {
  margin-top: 0.55rem;
  color: rgba(33, 58, 89, 0.72);
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.reference-qr {
  display: block;
  width: min(160px, 60%);
  height: auto;
  margin: 0.9rem 0;
  border-radius: var(--radius-s, 14px);
}

.reference-qr-label {
  margin: 0.4rem 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange);
}

.reference-reassurance-chiusa {
  margin-top: 0.55rem;
  font-weight: 600;
}

.reference-directory-lead {
  margin: 0 0 0.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.footer-credit {
  margin: 0;
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.42rem;
  max-width: 100%;
  padding: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  white-space: nowrap;
}
.footer-bottom p.footer-credit { color: rgba(255, 255, 255, 0.68); }
.footer-credit a {
  display: block;
  flex: 0 0 auto;
  width: 5.1rem;
  height: 44px;
  overflow: hidden;
  background: url("/dico/righello-logo-white.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  text-decoration: none;
}

.site-footer-comune .footer-bottom p.footer-credit {
  color: rgba(33, 58, 89, 0.68);
}
.site-footer-comune .footer-credit a {
  background: url("/dico/righello-logo-full.png") center / contain no-repeat;
}

@media (min-width: 821px) and (max-width: 1120px) {
  .footer-bottom {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 24px;
  }
  .footer-credit { grid-column: 2 / 4; }
}

@media (max-width: 820px) {
  .footer-credit { justify-self: center; }
}

.campo-esito { display: block; margin: 0.25rem 0 0; font-size: 0.78rem; line-height: 1.35; }
.campo-esito:empty { display: none; }
.campo-esito.ok { color: #1d7a4f; }
.campo-esito.ko { color: #a8322a; font-weight: 600; }
.form-esito { margin: 0.85rem 0 0; font-size: 0.9rem; line-height: 1.5; }
.form-esito:empty { display: none; }
.form-esito.ok { color: #1d7a4f; font-weight: 600; }
.form-esito.ko { color: #a8322a; font-weight: 600; }
