:root {
  --format-dark: #090e18;
  --format-dark-soft: #151c28;
  --format-ink: #171717;
  --format-muted: #666;
  --format-surface: #f5f5f3;
  --format-line: #deded9;
}

.format-page {
  background: #fff;
  color: var(--format-ink);
}

.format-page main {
  background: #fff;
}

.format-container {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding-left: clamp(24px, 5.4vw, 84px);
  padding-right: clamp(24px, 5.4vw, 84px);
}

/* HERO */
.format-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 45%, rgba(16, 74, 166, .24), transparent 42%),
    linear-gradient(120deg, #04070d 0%, #09101b 48%, #050812 100%);
}

.format-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto 0;
  height: clamp(86px, 7.5vw, 116px);
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding: 0 clamp(28px, 4.3vw, 66px);
  background: linear-gradient(180deg, rgba(0,0,0,.88), rgba(0,0,0,.34) 72%, transparent);
}

.format-brand {
  display: block;
  width: min(100%, 255px);
  text-decoration: none;
}

.format-brand img {
  width: 100%;
  height: auto;
}

.format-primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.25vw, 38px);
}

.format-primary-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(.72rem, .84vw, .92rem);
  font-weight: 600;
  letter-spacing: .035em;
}

.format-primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 3px;
  background: transparent;
}

.format-primary-nav a:hover::after,
.format-primary-nav a:focus-visible::after,
.format-primary-nav a.is-active::after {
  background: var(--accent);
}

.format-primary-nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 7px;
}

.format-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.format-menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.format-hero__inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.format-hero__copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: clamp(150px, 12vw, 190px) clamp(34px, 5.2vw, 80px) clamp(70px, 7vw, 108px);
  background: linear-gradient(90deg, rgba(2,5,10,.98) 0%, rgba(3,8,15,.97) 76%, rgba(3,8,15,.72) 100%);
}

.format-kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  font-weight: 700;
  letter-spacing: .115em;
}

.format-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.15rem, 5.2vw, 6rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.045em;
}

.format-rule {
  display: block;
  width: clamp(66px, 6vw, 96px);
  height: 5px;
  margin: clamp(24px, 2.6vw, 38px) 0;
  background: var(--accent);
}

.format-hero__copy > p:last-of-type {
  max-width: 43ch;
  margin: 0 0 clamp(28px, 3.2vw, 46px);
  color: #ececec;
  font-size: clamp(1.02rem, 1.28vw, 1.34rem);
  line-height: 1.58;
}

.format-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .055em;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.format-button:hover,
.format-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(.94);
}

.format-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.format-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #030814;
}

.format-hero__visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,5,10,.78) 0%, rgba(2,5,10,.16) 18%, transparent 44%),
    linear-gradient(180deg, rgba(0,0,0,.35), transparent 26%, transparent 74%, rgba(0,0,0,.22));
  pointer-events: none;
}

.format-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.95) contrast(1.03);
}

/* TITOLI DI SEZIONE */
.format-section-heading {
  text-align: center;
  margin-bottom: clamp(30px, 3.6vw, 54px);
}

.format-section-heading--left {
  text-align: left;
  margin-bottom: clamp(24px, 2.7vw, 40px);
}

.format-section-heading h2 {
  margin: 0;
  color: var(--format-ink);
  font-size: clamp(1.85rem, 3.05vw, 3.15rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.format-section-heading p {
  margin: 10px 0 0;
  color: var(--format-muted);
  font-size: clamp(.88rem, 1vw, 1.02rem);
  line-height: 1.5;
}

.format-section-heading--left > span {
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 15px;
  background: var(--accent);
}

.format-intro-title-line {
  display: inline;
}

/* INTRO */
.format-intro {
  background: #fff;
  padding: clamp(60px, 6.5vw, 100px) 0 clamp(58px, 6.1vw, 92px);
}

.format-intro__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 7vw, 112px);
}

.format-intro__columns p {
  margin: 0;
  color: #343434;
  font-size: clamp(1rem, 1.32vw, 1.28rem);
  line-height: 1.65;
}

.format-charity-callout {
  margin-top: clamp(34px, 4vw, 58px);
  padding: clamp(20px, 2.4vw, 32px) clamp(22px, 3vw, 42px);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  border: 1px solid var(--format-line);
  border-radius: 12px;
  background: var(--format-surface);
}

.format-charity-callout svg {
  width: 50px;
  color: var(--accent);
}

.format-charity-callout p {
  margin: 0;
  color: #333;
  font-size: clamp(.96rem, 1.22vw, 1.18rem);
  line-height: 1.5;
}

.format-charity-callout strong {
  color: var(--accent);
  font-size: 1.08em;
}

.format-charity-callout span {
  margin-left: .32em;
}

/* PROCESSO */
.format-process {
  background: var(--format-surface);
  padding: clamp(60px, 6.5vw, 96px) 0 clamp(66px, 7vw, 110px);
}

.format-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 26px);
}

.format-step {
  min-height: 390px;
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--format-line);
  border-radius: 12px;
  background: #fff;
}

.format-step__number {
  color: var(--accent);
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
}

.format-step h3 {
  min-height: 2.7em;
  margin: 20px 0 0;
  color: var(--format-ink);
  font-size: clamp(.83rem, .95vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
}

.format-step__line {
  width: 42px;
  height: 3px;
  margin: 13px 0 20px;
  background: var(--accent);
}

.format-step p {
  margin: 0;
  color: #555;
  font-size: clamp(.83rem, .9vw, .94rem);
  line-height: 1.55;
}

.format-step__icon {
  width: 54px;
  height: 54px;
  margin: auto auto 0;
  color: var(--accent);
}

/* SISTEMA RELAZIONALE */
.format-network {
  background: #fff;
  padding: clamp(64px, 7vw, 108px) 0 clamp(54px, 6vw, 88px);
}

.network-map {
  position: relative;
  min-height: 610px;
  margin: 0 auto;
  max-width: 1120px;
}

.network-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-lines line {
  stroke: #c7c7c4;
  stroke-width: 2;
}

.network-node,
.network-core {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.network-node {
  width: min(235px, 22vw);
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--format-line);
  border-radius: 11px;
  background: #f7f7f5;
  color: #262626;
  font-size: clamp(.7rem, .82vw, .86rem);
  font-weight: 700;
  line-height: 1.35;
}

.network-node--top { left: 50%; top: 11%; }
.network-node--upper-left { left: 16%; top: 27%; }
.network-node--upper-right { left: 84%; top: 27%; }
.network-node--left { left: 11%; top: 53%; }
.network-node--right { left: 89%; top: 53%; }
.network-node--lower-left { left: 25%; top: 84%; }
.network-node--lower-right { left: 75%; top: 84%; }

.network-core {
  left: 50%;
  top: 50%;
  width: clamp(170px, 16vw, 220px);
  aspect-ratio: 1;
  flex-direction: column;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 44px rgba(239,31,47,.22);
}

.network-core strong {
  font-size: clamp(1.45rem, 2vw, 2.15rem);
}

.network-core span {
  margin-top: 7px;
  font-size: clamp(.62rem, .7vw, .76rem);
  font-weight: 600;
  letter-spacing: .075em;
}

.network-outcomes {
  margin-top: 18px;
  padding: 15px 24px;
  border-radius: 8px;
  background: var(--format-dark);
  color: #fff;
  text-align: center;
  font-size: clamp(.72rem, .88vw, .94rem);
  font-weight: 700;
  letter-spacing: .035em;
}

/* VALORE */
.format-value {
  background: var(--format-dark);
  color: #fff;
  padding: clamp(62px, 6.5vw, 96px) 0 clamp(70px, 7.2vw, 112px);
}

.format-section-heading--light h2 {
  color: #fff;
}

.format-section-heading--light p {
  color: #abb2bf;
}

.format-value__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.format-value-card {
  min-height: 270px;
  padding: clamp(26px, 2.8vw, 40px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: var(--format-dark-soft);
}

.format-value-card h3 {
  margin: 0;
  color: #ff8a93;
  font-size: clamp(.9rem, 1.05vw, 1.08rem);
  font-weight: 700;
}

.format-value-card > span {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px 0 22px;
  background: var(--accent);
}

.format-value-card p {
  margin: 0;
  color: #e4e6ea;
  font-size: clamp(.88rem, .98vw, 1rem);
  line-height: 1.65;
}

/* AMBITI */
.format-fields {
  background: var(--format-surface);
  padding: clamp(62px, 6.5vw, 98px) 0 clamp(68px, 7vw, 106px);
}

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

.format-fields__grid > div {
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--format-line);
  border-radius: 10px;
  background: #fff;
  color: #242424;
  font-size: clamp(.78rem, .88vw, .92rem);
  font-weight: 700;
}

.format-fields__grid > div > span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.format-fields__strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.format-fields__strip img {
  width: 100%;
  height: clamp(96px, 9.2vw, 145px);
  object-fit: cover;
  border-radius: 8px;
}

.format-fields__strip img:nth-child(2) { object-position: center 32%; }
.format-fields__strip img:nth-child(4) { object-position: center 20%; }

/* RESPONSIVE */
@media (max-width: 1120px) {
  .format-header {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 26px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .format-primary-nav {
    gap: 20px;
  }

  .format-primary-nav a {
    font-size: .72rem;
  }

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

  .format-step {
    min-height: 330px;
  }

  .network-map {
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .format-hero {
  }

  .format-header {
    position: absolute;
    height: 88px;
    grid-template-columns: minmax(160px, 230px) auto;
    justify-content: space-between;
  }

  .format-menu-toggle {
    display: block;
    justify-self: end;
    position: relative;
    z-index: 12;
  }

  .format-primary-nav {
    position: absolute;
    z-index: 11;
    top: 88px;
    right: 0;
    width: min(86vw, 380px);
    display: grid;
    gap: 0;
    padding: 10px 24px 18px;
    background: rgba(2,5,10,.985);
    border-top: 1px solid rgba(255,255,255,.14);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .format-primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .format-primary-nav a {
    padding: 15px 0;
    font-size: .84rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .format-primary-nav a:last-child { border-bottom: 0; }
  .format-primary-nav a::after { display: none; }

  .format-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .format-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .format-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .format-hero__inner {
    grid-template-columns: 1fr;
  }

  .format-hero__copy {
    min-height: 620px;
    padding-top: 150px;
    background:
      linear-gradient(90deg, rgba(2,5,10,.98), rgba(2,5,10,.93)),
      radial-gradient(circle at 80% 50%, rgba(26,86,181,.16), transparent 40%);
  }

  .format-hero__visual {
    min-height: 470px;
  }

  .format-hero__visual::before {
    background: linear-gradient(180deg, rgba(2,5,10,.62), transparent 25%, transparent 80%, rgba(2,5,10,.2));
  }

  .format-intro__columns {
    gap: 38px;
  }

  .network-map {
    min-height: 540px;
  }

  .network-node {
    width: min(210px, 24vw);
  }

  .format-value__grid {
    grid-template-columns: 1fr;
  }

  .format-value-card {
    min-height: 0;
  }

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

@media (max-width: 720px) {
  .format-container {
    padding-left: 22px;
    padding-right: 22px;
  }

  .format-header {
    height: 78px;
    padding-left: 20px;
    padding-right: 15px;
  }

  .format-brand {
    width: 190px;
  }

  .format-primary-nav {
    top: 78px;
  }

  .format-hero__copy {
    min-height: 560px;
    padding: 128px 24px 62px;
  }

  .format-hero h1 {
    font-size: clamp(2.7rem, 12.6vw, 4.15rem);
  }

  .format-hero__copy > p:last-of-type {
    font-size: 1rem;
  }

  .format-hero__visual {
    min-height: 360px;
  }

  .format-intro__columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .format-charity-callout {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .format-charity-callout svg {
    width: 40px;
  }

  .format-charity-callout span {
    display: block;
    margin: 5px 0 0;
  }

  .format-process__grid {
    grid-template-columns: 1fr;
  }

  .format-step {
    min-height: 0;
  }

  .format-step h3 {
    min-height: 0;
  }

  .format-step__icon {
    margin-top: 28px;
  }

  .network-map {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .network-lines {
    display: none;
  }

  .network-node,
  .network-core {
    position: static;
    transform: none;
    width: 100%;
  }

  .network-core {
    order: -1;
    width: 190px;
    margin: 0 auto 14px;
  }

  .network-node {
    min-height: 62px;
    font-size: .8rem;
  }

  .network-outcomes {
    line-height: 1.6;
  }

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

  .format-fields__strip img:last-child {
    grid-column: 1 / -1;
  }

}

@media (max-width: 500px) {
  .format-brand {
    width: 164px;
  }

  .format-hero__copy {
    min-height: 520px;
  }

  .format-hero__visual {
    min-height: 310px;
  }

  .format-section-heading h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .format-fields__grid {
    grid-template-columns: 1fr;
  }

  .format-fields__strip {
    grid-template-columns: 1fr;
  }

  .format-fields__strip img,
  .format-fields__strip img:last-child {
    grid-column: auto;
    height: 150px;
  }

}


/* REVISIONE 4 — normalizzazione strutturale pagina IL FORMAT */
.format-page,
.format-page main {
  width: 100%;
  max-width: none;
}

/* Hero: fondo a piena pagina, composizione interna sulla griglia master. */
.format-hero {
  max-width: none;
  background:
    radial-gradient(circle at 76% 45%, rgba(16, 74, 166, .24), transparent 42%),
    linear-gradient(120deg, #04070d 0%, #09101b 48%, #050812 100%);
}

.format-header {
  left: 50%;
  right: auto;
  width: min(100%, var(--content-max));
  transform: translateX(-50%);
  height: clamp(86px, 7.2vw, 110px);
  grid-template-columns: minmax(180px, 255px) minmax(0, 1fr);
  padding-left: clamp(28px, 4.3vw, 66px);
  padding-right: clamp(28px, 4.3vw, 66px);
}

/* Corpo, peso e spaziatura del menu identici alla HOME. */
.format-primary-nav {
  width: 100%;
  justify-content: space-between;
  gap: clamp(14px, 1.8vw, 34px);
}

.format-primary-nav a {
  font-size: clamp(10px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}

.format-hero__inner {
  width: min(100%, var(--content-max));
  min-height: clamp(620px, 44vw, 680px);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
}

.format-hero__copy {
  padding: clamp(128px, 10vw, 156px) clamp(34px, 4.4vw, 68px) clamp(54px, 5vw, 76px);
  overflow: hidden;
}

.format-hero h1 {
  max-width: 100%;
  font-size: clamp(2.85rem, 4.25vw, 4.65rem);
  line-height: .97;
  overflow-wrap: normal;
}

.format-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #030814;
}

.format-hero__visual::before {
  background:
    linear-gradient(90deg, rgba(2,5,10,.42) 0%, rgba(2,5,10,.08) 12%, transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 22%, transparent 78%, rgba(0,0,0,.16));
}

.format-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(.95) contrast(1.03);
}

/* Tutti gli sfondi delle sezioni coprono l'intera finestra. */
.format-intro,
.format-process,
.format-network,
.format-value {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Spaziature più compatte e coerenti. */
.format-intro {
  padding-top: clamp(52px, 5.2vw, 78px);
  padding-bottom: clamp(50px, 5vw, 74px);
}

.format-process {
  padding-top: clamp(52px, 5.2vw, 78px);
  padding-bottom: clamp(58px, 5.8vw, 86px);
}

.format-step {
  min-height: 310px;
  padding: clamp(22px, 2.1vw, 30px);
}

.format-step h3 {
  margin-top: 17px;
}

.format-step__line {
  margin: 12px 0 17px;
}

.format-step__icon {
  width: 48px;
  height: 48px;
  margin-top: 26px;
}

.format-network {
  padding-top: clamp(54px, 5.5vw, 82px);
  padding-bottom: clamp(48px, 5vw, 72px);
}

.network-map {
  min-height: 560px;
  max-width: 1160px;
}

.network-node {
  width: min(238px, 22vw);
  min-height: 72px;
}

.network-core {
  width: clamp(178px, 15vw, 218px);
}

.format-value {
  padding-top: clamp(54px, 5.5vw, 82px);
  padding-bottom: clamp(58px, 5.8vw, 88px);
}

.format-value-card {
  min-height: 225px;
}

/* Tablet: due colonne per il processo e hero impilata senza ritaglio. */
@media (max-width: 1120px) {
  .format-header {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  }

  .format-primary-nav a {
    font-size: clamp(10px, 1.05vw, 16px);
  }

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

  .format-step {
    min-height: 285px;
  }
}

@media (max-width: 900px) {
  .format-header {
    left: 50%;
    right: auto;
    width: min(100%, var(--content-max));
    transform: translateX(-50%);
  }

  .format-primary-nav a {
    font-size: 14px;
    line-height: 1;
  }

  .format-hero__inner {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .format-hero__copy {
    min-height: 0;
    padding: 140px clamp(28px, 7vw, 64px) 62px;
  }

  .format-hero__visual {
    min-height: 0;
    aspect-ratio: 1672 / 941;
  }

  .format-hero__visual::before {
    background: linear-gradient(180deg, rgba(2,5,10,.25), transparent 18%, transparent 86%, rgba(2,5,10,.12));
  }

  .format-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

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

  .format-value-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .format-header {
    height: 78px;
  }

  .format-primary-nav {
    top: 78px;
  }

  .format-hero__copy {
    padding: 122px 24px 54px;
  }

  .format-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .format-process__grid,
  .format-value__grid {
    grid-template-columns: 1fr;
  }

  .format-value-card:last-child {
    grid-column: auto;
  }

  .format-step,
  .format-value-card {
    min-height: 0;
  }

  .network-map {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-core {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 500px) {
  .network-map {
    grid-template-columns: 1fr;
  }

  .network-core {
    grid-column: auto;
  }
}

/* REVISIONE 5 — header realmente allineato alla HOME e hero proporzionata */
.format-hero {
  background:
    radial-gradient(circle at 78% 45%, rgba(16, 74, 166, .22), transparent 40%),
    linear-gradient(120deg, #04070d 0%, #09101b 50%, #050812 100%);
}

/* La barra usa la stessa geometria del menu HOME: 34,5% logo + 65,5% navigazione. */
.format-header {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  transform: none;
  width: min(100%, var(--content-max));
  height: 116px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 34.5% 65.5%;
  gap: 0;
  padding: 0;
  background: #02060c;
}

.format-brand {
  width: 330px;
  max-width: calc(100% - 56px);
  margin-left: 28px;
  align-self: center;
  justify-self: start;
}

.format-brand img {
  width: 100%;
  height: auto;
}

.format-primary-nav {
  width: 100%;
  height: 100%;
  padding: 0 3.2% 0 4.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.8vw, 34px);
}

.format-primary-nav a {
  font-size: clamp(10px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}

.format-primary-nav a::after {
  bottom: -13px;
}

/* La hero non ha più un'altezza fissa: la governa il rapporto naturale dell'immagine. */
.format-hero__inner {
  width: min(100%, var(--content-max));
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 38% 62%;
  align-items: stretch;
}

.format-hero__copy {
  min-width: 0;
  min-height: 0;
  padding: clamp(46px, 4vw, 64px) clamp(38px, 4.2vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(90deg, rgba(2,5,10,.99), rgba(3,8,15,.96));
}

.format-kicker {
  margin-bottom: 16px;
  font-size: clamp(.96rem, 1.05vw, 1.16rem);
}

.format-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.85rem, 3.65vw, 3.72rem);
  line-height: .98;
  letter-spacing: -.042em;
}

.format-hero h1 span {
  display: block;
  white-space: nowrap;
}

.format-rule {
  width: clamp(62px, 5vw, 84px);
  height: 4px;
  margin: clamp(22px, 2vw, 30px) 0;
}

.format-hero__copy > p:last-of-type {
  max-width: 39ch;
  margin-bottom: clamp(24px, 2.4vw, 34px);
  font-size: clamp(.98rem, 1.12vw, 1.16rem);
  line-height: 1.56;
}

.format-button {
  min-height: 50px;
  padding: 0 28px;
}

.format-hero__visual {
  min-width: 0;
  min-height: 0;
  margin: 0;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #030814;
}

.format-hero__visual::before {
  background: linear-gradient(90deg, rgba(2,5,10,.18), transparent 15%);
}

.format-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1120px) {
  .format-header {
    height: 96px;
    grid-template-columns: 31% 69%;
  }

  .format-brand {
    width: 250px;
    max-width: calc(100% - 36px);
    margin-left: 18px;
  }

  .format-primary-nav {
    padding-left: 3.4%;
    padding-right: 2.8%;
  }

  .format-primary-nav a {
    font-size: clamp(10px, 1.05vw, 14px);
  }

  .format-hero__inner {
    grid-template-columns: 40% 60%;
  }

  .format-hero h1 {
    font-size: clamp(2.35rem, 4.5vw, 3.25rem);
  }
}

@media (max-width: 900px) {
  .format-header {
    position: relative;
    width: 100%;
    height: 88px;
    grid-template-columns: minmax(170px, 240px) 1fr;
    padding: 0 18px 0 20px;
  }

  .format-brand {
    width: 220px;
    max-width: 100%;
    margin-left: 0;
  }

  .format-menu-toggle {
    display: block;
    justify-self: end;
    position: relative;
    z-index: 12;
  }

  .format-primary-nav {
    position: absolute;
    z-index: 11;
    top: 88px;
    right: 0;
    width: min(86vw, 380px);
    height: auto;
    display: grid;
    gap: 0;
    padding: 10px 24px 18px;
    background: rgba(2,5,10,.985);
    border-top: 1px solid rgba(255,255,255,.14);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .format-primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .format-primary-nav a {
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .format-primary-nav a:last-child { border-bottom: 0; }
  .format-primary-nav a::after { display: none; }

  .format-hero__inner {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .format-hero__copy {
    padding: clamp(48px, 7vw, 68px) clamp(28px, 7vw, 64px);
  }

  .format-hero h1 {
    font-size: clamp(2.75rem, 8vw, 4rem);
  }

  .format-hero__visual {
    width: 100%;
    aspect-ratio: 1672 / 941;
  }
}

@media (max-width: 720px) {
  .format-header {
    height: 78px;
    grid-template-columns: minmax(150px, 210px) 1fr;
    padding-left: 16px;
    padding-right: 12px;
  }

  .format-brand {
    width: 190px;
  }

  .format-primary-nav {
    top: 78px;
  }

  .format-hero__copy {
    padding: 42px 24px 48px;
  }

  .format-hero h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.35rem);
  }

  .format-hero h1 span {
    white-space: normal;
  }
}

@media (max-width: 500px) {
  .format-brand {
    width: 164px;
  }

  .format-hero h1 {
    font-size: clamp(2.05rem, 10.8vw, 2.85rem);
  }
}

/* REVISIONE 5.1 — corrispondenza geometrica puntuale con l'header HOME */
@media (min-width: 1121px) {
  .format-header {
    height: 107.125px;
    overflow: visible;
  }

  .format-brand {
    width: 336px;
    max-width: none;
    margin-left: 29px;
    margin-top: 21px;
    align-self: start;
    position: relative;
    z-index: 12;
  }

  .format-primary-nav {
    height: 107.125px;
    padding-left: clamp(43px, 4.3vw, 66px);
    padding-right: clamp(32px, 3.2vw, 49px);
  }
}

.format-hero__copy {
  align-items: flex-start;
}

.format-button {
  align-self: flex-start;
  width: auto;
  min-width: 180px;
}
@media (min-width: 1121px) {
  .format-primary-nav {
    align-self: start;
  }
}

/* REVISIONE 6 — l'header è ora il componente globale condiviso e separato dalla hero. */
.format-page > .site-header {
  background: #000;
}

/* REVISIONE 7 — IL FORMAT: fascia esterna nera e raccordo destro dell'immagine. */
.format-hero {
  background: #000;
}

.format-hero__visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(18px, 2.2vw, 42px);
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, .18) 42%,
    rgba(0, 0, 0, .62) 78%,
    #000 100%
  );
}

@media (max-width: 900px) {
  .format-hero__visual::after {
    width: 18px;
  }
}

/* REVISIONE 14 — hero e rete relazionale realmente responsive */
.format-hero__mobile-action {
  display: none;
}

@media (max-width: 900px) {
  .format-page,
  .format-page main {
    overflow-x: clip;
  }

  .format-hero__copy .format-button {
    display: none;
  }

  .format-hero__mobile-action {
    display: flex;
    width: 100%;
    padding: 24px clamp(24px, 7vw, 64px) 38px;
    background: #000;
  }

  .format-button--mobile {
    display: inline-flex;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .network-map {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    margin-inline: 0;
  }

  .network-lines {
    display: none !important;
  }

  .network-node,
  .network-core {
    position: static !important;
    transform: none !important;
    box-sizing: border-box;
  }

  .network-core {
    grid-column: 1 / -1 !important;
    order: -1;
    width: min(190px, 58vw) !important;
    margin: 0 auto 10px !important;
  }

  .network-node {
    width: 100% !important;
    min-width: 0;
    min-height: 88px;
    padding: 16px 14px;
    font-size: clamp(.72rem, 2.15vw, .86rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

}

@media (max-width: 720px) {
  .format-hero__copy {
    padding: 38px 24px 34px !important;
  }

  .format-hero h1 {
    font-size: clamp(2.15rem, 10.4vw, 3.15rem) !important;
    line-height: 1.02;
  }

  .format-rule {
    margin-block: 20px;
  }

  .format-hero__copy > p:last-of-type {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .format-hero__visual {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: 1672 / 941;
  }

  .format-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .format-hero__mobile-action {
    padding: 22px 24px 34px;
  }

  .format-button--mobile {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .network-map {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .network-core {
    grid-column: auto !important;
    width: min(176px, 56vw) !important;
  }

  .network-node {
    min-height: 78px;
    padding: 15px 18px;
    font-size: .82rem;
  }
}


/* V102 — correzioni pagina IL FORMAT richieste dall'utente */
.format-kicker,
.format-hero__copy .format-button,
.format-hero__mobile-action {
  display: none !important;
}

/* Mostra la hero intera senza sfumature/coperture sull'immagine */
.format-hero__visual::before,
.format-hero__visual::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.format-hero__visual {
  background: #000;
}

.format-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Desktop: geometria della hero invariata, solo pulizia contenuti */
@media (min-width: 901px) {
  .format-hero__inner {
    grid-template-columns: 38% 62%;
  }
}

/* Tablet: immagine sopra, testo sotto, immagine più leggibile e spazi più compatti */
@media (max-width: 900px) and (min-width: 721px) {
  .format-hero__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .format-hero__visual {
    order: 1;
    width: 100%;
    aspect-ratio: 1672 / 941;
    min-height: 0;
  }

  .format-hero__copy {
    order: 2;
    min-height: 0;
    padding: 34px 42px 26px;
    justify-content: flex-start;
    background: #000;
  }

  .format-hero h1 {
    font-size: clamp(2.65rem, 6.1vw, 3.28rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .format-rule {
    margin: 18px 0 20px;
  }

  .format-hero__copy > p:last-of-type {
    max-width: 32ch;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
  }

  .format-intro {
    padding-top: 30px;
  }
}

/* V103 — IL FORMAT smartphone: immagine sopra, testo sotto, spazi compatti */
@media (max-width: 720px) {
  .format-hero__inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
  }

  .format-hero__visual {
    order: 1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1672 / 941;
    background: #000;
  }

  .format-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .format-hero__copy {
    order: 2;
    min-height: 0;
    padding: 26px 20px 18px !important;
    justify-content: flex-start;
    background: #000;
  }

  .format-hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.7rem) !important;
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .format-rule {
    margin: 14px 0 16px !important;
  }

  .format-hero__copy > p:last-of-type {
    max-width: none;
    margin-bottom: 0 !important;
    font-size: 1rem;
    line-height: 1.5;
  }

  .format-intro {
    padding-top: 18px;
  }

  #format-intro-title {
    font-size: clamp(1.46rem, 7.15vw, 1.9rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  #format-intro-title .format-intro-title-line {
    display: block;
  }

  .format-intro__columns {
    gap: 16px;
  }

  .format-section-heading--left {
    margin-bottom: 18px;
  }
}

@media (max-width: 500px) {
  .format-hero__copy {
    padding: 24px 18px 16px !important;
  }

  .format-hero h1 {
    font-size: clamp(1.92rem, 9.2vw, 2.48rem) !important;
  }

  .format-rule {
    width: 52px;
    height: 4px;
  }

  .format-hero__copy > p:last-of-type {
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .format-intro {
    padding-top: 14px;
  }
}

/* V104 — elimina l'altezza fissa residua della hero su smartphone */
@media (max-width: 720px) {
  .format-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .format-hero__inner {
    height: auto !important;
    min-height: 0 !important;
  }

  .format-hero__copy,
  .format-hero__visual {
    height: auto !important;
  }
}


/* V112 — IL FORMAT: nuovo titolo del blocco introduttivo su due righe */
#format-intro-title .format-intro-title-line {
  display: block;
}

@media (max-width: 720px) {
  #format-intro-title {
    font-size: clamp(1.26rem, 5.65vw, 1.48rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  #format-intro-title .format-intro-title-line {
    display: block;
    white-space: nowrap;
  }
}

/* =========================================================
   V0151 — IL FORMAT TABLET
   Centra l'ultimo nodo MEDIA, SPONSOR E ISTITUZIONI sotto le coppie.
   Nessuna modifica a dimensioni, stile o smartphone/desktop.
   ========================================================= */
@media (min-width: 721px) and (max-width: 900px) {
  .network-node--lower-right {
    grid-column: 1 / -1 !important;
    width: calc((100% - 14px) / 2) !important;
    justify-self: center;
  }
}
