: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;
  width: min(100%, var(--content-max));
  min-height: clamp(720px, 72vw, 880px);
  margin: 0 auto;
  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);
}

/* 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 {
    min-height: auto;
  }

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

}
