/* =========================================================================
   v4 — «Cabina di comando»
   La home e' un cruscotto: consolle scura a quadretti (la carta millimetrata
   di chi legge i numeri), tessere-strumento con grafici che si disegnano,
   pannelli con l'angolo tagliato a 45 gradi del simbolo DF.
   Colori: solo quelli del marchio (navy e scale gia' in style.css, arancio come
   colore del segnale). Arancio mai come testo su fondo chiaro: --accent-ink.
   Caricato dopo style.css: qui si sovrascrive, non si ricomincia.
   ========================================================================= */

:root {
  --v4-console: var(--navy-900);
  --v4-panel: var(--navy-800);
  --v4-rule-dark: rgba(255, 255, 255, .1);
  --v4-grid-dark: rgba(255, 255, 255, .045);
  --v4-grid-light: rgba(36, 51, 81, .035);
  --v4-grid: 40px;
  --cut: 16px;
  --radius: 0;
  --radius-lg: 0;
  --header-h: 80px;
}

/* quadretti: su consolle scura e su carta chiara */
.v4-hero, .hero--text, .section--dark, .v4-grid-paper, .caso-hero {
  background-image:
    linear-gradient(var(--v4-grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--v4-grid-dark) 1px, transparent 1px);
  background-size: var(--v4-grid) var(--v4-grid);
  background-position: -1px -1px;
}
.v4-grid-paper, .caso-hero {
  background-color: #fff;
  background-image:
    linear-gradient(var(--v4-grid-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--v4-grid-light) 1px, transparent 1px);
}

body { font-variant-numeric: tabular-nums; }

/* occhiello: il glifo a tre barre del simbolo al posto della lineetta */
.eyebrow { letter-spacing: .2em; gap: .75rem; }
.eyebrow::before {
  width: 14px; height: 13px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 100% / 3px 40% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 5px 100% / 3px 70% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 10px 100% / 3px 100% no-repeat;
}

/* ---------- header: consolle ---------- */
.site-header {
  /* navy pieno: il logo negativo ha il fondo #233351 opaco, su un altro blu si vedrebbe il riquadro */
  background: var(--navy);
  border-bottom: 1px solid var(--v4-rule-dark);
}
.site-header[data-scrolled="true"] { border-bottom-color: rgba(243, 146, 0, .35); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .7); }
/* logo negativo via CSS: l'<img> resta per l'alt e le dimensioni, si vede lo sfondo */
.brand {
  background: url("/assets/logo/logo-orizzontale-negativo-800.webp") left center / contain no-repeat;
}
.brand img { opacity: 0; }
.nav__link { color: #fff; }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .3); min-width: 48px; min-height: 44px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: #fff; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
@media (max-width: 1300px) {
  .nav { background: var(--v4-console); border-bottom-color: var(--v4-rule-dark); }
  .nav__list li { border-bottom-color: var(--v4-rule-dark); }
}
/* selettore lingua sulla consolle (dal 05/10/2026 la v4 è il sito in quattro lingue):
   sigle bianche, la lingua corrente in arancio con testo navy (5,35:1) */
.site-header .lang-switch, .site-header .lang-menu summary {
  background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff;
}
.site-header .lang-switch > * + * { border-left-color: rgba(255, 255, 255, .3); }
.site-header .lang-switch > a { background: transparent; color: #fff; }
.site-header .lang-switch > a:hover, .site-header .lang-switch > a:focus-visible { background: var(--v4-panel); color: #fff; }
.site-header .lang-switch__on { background: var(--accent); color: var(--navy); }
/* fra 1301 e ~1340px la CTA in EN/RO va su due righe: righe bilanciate, niente parola orfana */
.nav .btn { text-wrap: balance; }

/* ---------- bottoni: squadrati, carattere del marchio ---------- */
.btn {
  font-family: var(--font-display); font-stretch: 115%; font-weight: 600; font-size: .98rem;
  letter-spacing: 0; min-height: 48px; padding: .95rem 1.6rem; border-radius: 0;
}
.btn--sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .92rem; }
.btn--primary { box-shadow: none; }
.btn:hover { transform: translateY(-1px); }
.card__index { color: var(--accent-ink); }

/* ---------- HERO della home ---------- */
.v4-hero {
  position: relative; overflow: hidden;
  background-color: var(--v4-console); color: var(--on-navy);
  padding: clamp(2.75rem, 1.5rem + 4vw, 5.5rem) 0 0;
}
.v4-hero::before { /* il simbolo come campo grafico: tre barre tagliate, sottili */
  content: ""; position: absolute; right: -4%; bottom: 0; width: min(46vw, 620px); height: 78%;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .035) 50%) 0 100% / 30% 42% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .035) 50%) 50% 100% / 30% 70% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .035) 50%) 100% 100% / 30% 100% no-repeat;
  pointer-events: none;
}
.v4-hero__grid {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 1rem + 3.5vw, 4.5rem); align-items: center;
}
.v4-hero__kicker {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 1.5rem;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: clamp(.78rem, .72rem + .2vw, .86rem); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); line-height: 1.4;
}
.v4-led {
  width: 9px; height: 9px; flex: none; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(243, 146, 0, .18);
  animation: v4-led 2.6s ease-in-out infinite;
}
@keyframes v4-led { 50% { box-shadow: 0 0 0 7px rgba(243, 146, 0, 0); } }
.v4-hero__title {
  color: #fff; margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 1rem + 4.1vw, 4.15rem); line-height: 1; letter-spacing: -.04em;
}
.v4-hero__lead {
  font-size: clamp(1.1rem, 1rem + .45vw, 1.32rem); line-height: 1.55; color: var(--on-navy);
  max-width: 34rem; margin: 0;
}
.v4-hero .hero__actions { margin-top: 2.25rem; }

.v4-hero__side { display: grid; gap: 1rem; align-self: stretch; align-content: center; }
.v4-hero__photo {
  margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--v4-panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}
.v4-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
/* mirino: quattro angoli come su uno strumento */
.v4-hero__photo::before, .v4-hero__photo::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 1; pointer-events: none;
}
.v4-hero__photo::before { left: 12px; top: 12px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.v4-hero__photo::after { right: 12px; top: 12px; border-right: 2px solid #fff; border-top: 2px solid #fff; }

/* la seconda porta: l'autodiagnosi, in evidenza accanto al volto */
.v4-door {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.25rem; align-items: end;
  padding: 1.1rem 1.25rem 1.15rem; text-decoration: none;
  background: #fff; color: var(--text); border-left: 4px solid var(--accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.v4-door:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8); color: var(--text); }
.v4-door__tag {
  grid-column: 1 / -1; font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink);
}
.v4-door__title {
  grid-column: 1 / -1; font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: 1.3rem; color: var(--navy); letter-spacing: -.015em; line-height: 1.2;
}
.v4-door__text { font-size: .95rem; line-height: 1.45; color: var(--muted); }
.v4-door__cta {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; white-space: nowrap;
  font-family: var(--font-display); font-stretch: 115%; font-weight: 600; font-size: .92rem;
  color: var(--accent-ink);
}
.v4-door__cta::after { content: "→"; transition: transform .2s ease; }
.v4-door:hover .v4-door__cta::after { transform: translateX(4px); }

/* il quadro degli strumenti */
.v4-cluster {
  position: relative; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--v4-rule-dark);
}
.v4-cluster__title {
  margin: 0 0 1.25rem; font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: clamp(1rem, .92rem + .4vw, 1.2rem); line-height: 1.35; color: #fff; max-width: 52ch;
  padding-left: .9rem; border-left: 3px solid var(--accent);
}
.v4-cluster__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, .3rem + .8vw, 1rem);
}
.v4-kpi {
  margin: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .15rem .9rem;
  padding: .95rem 1rem .9rem; background: var(--v4-panel); border: 1px solid var(--v4-rule-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.v4-kpi__label {
  grid-column: 1 / -1; font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy);
  overflow-wrap: anywhere;
}
.v4-kpi__value {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 1.12rem;
  color: #fff; line-height: 1.15; letter-spacing: -.01em; align-self: end;
}
.v4-spark { width: 120px; height: auto; display: block; overflow: visible; }
.v4-spark__base { stroke: rgba(255, 255, 255, .22); stroke-width: .8; }
.v4-spark__bar { fill: rgba(255, 255, 255, .26); }
.v4-spark__bar--last { fill: var(--accent); }
.v4-spark__line { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.v4-spark__dot { fill: #fff; stroke: var(--accent); stroke-width: 1.2; }

/* ---------- disegno dei grafici (v4.js mette .v4-anim e poi .is-drawn) ---------- */
.v4-anim [data-v4-draw] .v4-spark__bar,
.v4-anim [data-v4-draw] .dash__bars i,
.v4-anim [data-v4-draw] .dash__pairs i {
  transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%;
  transition: transform .75s cubic-bezier(.2, .7, .3, 1);
  animation: none;
}
.v4-anim [data-v4-draw] .v4-spark__line,
.v4-anim [data-v4-draw] .dash__line {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(.35, .6, .2, 1) .35s;
}
.v4-anim [data-v4-draw] .v4-spark__dot { opacity: 0; transition: opacity .3s ease 1.5s; }
.v4-anim [data-v4-draw] .dash__rows i,
.v4-anim [data-v4-draw] .gauge__fill {
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .9s cubic-bezier(.2, .7, .3, 1) .2s;
}
.v4-anim [data-v4-draw].is-drawn .v4-spark__bar,
.v4-anim [data-v4-draw].is-drawn .dash__bars i,
.v4-anim [data-v4-draw].is-drawn .dash__pairs i,
.v4-anim [data-v4-draw].is-drawn .dash__rows i,
.v4-anim [data-v4-draw].is-drawn .gauge__fill { transform: none; }
.v4-anim [data-v4-draw].is-drawn .v4-spark__line,
.v4-anim [data-v4-draw].is-drawn .dash__line { clip-path: inset(0 0 0 0); }
.v4-anim [data-v4-draw].is-drawn .v4-spark__dot { opacity: 1; }
/* scaglionati: tessera per tessera, barra per barra */
.v4-kpi[data-i="1"] .v4-spark__bar, .v4-kpi[data-i="1"] .v4-spark__line { transition-delay: .12s; }
.v4-kpi[data-i="2"] .v4-spark__bar, .v4-kpi[data-i="2"] .v4-spark__line { transition-delay: .24s; }
.v4-kpi[data-i="3"] .v4-spark__bar, .v4-kpi[data-i="3"] .v4-spark__line { transition-delay: .36s; }
.v4-anim [data-v4-draw] .dash__bars i:nth-child(2) { transition-delay: .04s; } .v4-anim [data-v4-draw] .dash__bars i:nth-child(3) { transition-delay: .08s; }
.v4-anim [data-v4-draw] .dash__bars i:nth-child(4) { transition-delay: .12s; } .v4-anim [data-v4-draw] .dash__bars i:nth-child(5) { transition-delay: .16s; }
.v4-anim [data-v4-draw] .dash__bars i:nth-child(6) { transition-delay: .2s; } .v4-anim [data-v4-draw] .dash__bars i:nth-child(7) { transition-delay: .24s; }
.v4-anim [data-v4-draw] .dash__bars i:nth-child(8) { transition-delay: .28s; } .v4-anim [data-v4-draw] .dash__bars i:nth-child(9) { transition-delay: .32s; }
.v4-anim [data-v4-draw] .dash__bars i:nth-child(10) { transition-delay: .36s; } .v4-anim [data-v4-draw] .dash__bars i:nth-child(11) { transition-delay: .4s; }
.v4-anim [data-v4-draw] .dash__bars i:nth-child(12) { transition-delay: .44s; } .v4-anim [data-v4-draw] .dash__bars i:nth-child(13) { transition-delay: .48s; }
.v4-anim [data-v4-draw] .dash__pairs i:nth-child(2) { transition-delay: .1s; } .v4-anim [data-v4-draw] .dash__pairs i:nth-child(3) { transition-delay: .2s; }
.v4-anim [data-v4-draw] .dash__pairs i:nth-child(4) { transition-delay: .3s; }
.v4-anim [data-v4-draw] .dash__rows li:nth-child(2) i { transition-delay: .32s; } .v4-anim [data-v4-draw] .dash__rows li:nth-child(3) i { transition-delay: .44s; }

/* reduced-motion attivato a pagina aperta, e stampa: grafici sempre completi */
@media (prefers-reduced-motion: reduce), print {
  .v4-led { animation: none; }
  .v4-anim [data-v4-draw] :is(.v4-spark__bar, .v4-spark__line, .v4-spark__dot, .dash__bars i,
    .dash__pairs i, .dash__line, .dash__rows i, .gauge__fill) {
    transform: none; clip-path: none; opacity: 1; transition: none;
  }
}

/* ---------- proof: la riga di stato ---------- */
.proof { background: #fff; border-top: 0; border-bottom: 1px solid var(--line); }
.proof__list { gap: 0; }
.proof__list li { padding: 0 clamp(1rem, .5rem + 1.5vw, 2rem); border-left: 1px solid var(--line); }
.proof__list li:first-child { border-left: 0; padding-left: 0; }
.proof__num { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); }
.proof__num.proof__num--sm { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); line-height: 1.25; }
@media (max-width: 860px) {
  .proof__list { row-gap: 1.75rem; }
  .proof__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- ingresso per situazione ---------- */
.v4-sits {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, .4rem + 1vw, 1.25rem);
}
.v4-sit { margin: 0; }
.v4-sit__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line); padding: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: border-color .2s ease, transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease;
}
.v4-sit__link::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
/* il taglio a 45 gradi ha il suo filo, come il bordo */
.v4-sit__link::after, .v4-caso::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: var(--cut); height: var(--cut);
  background: linear-gradient(to top left, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px));
  pointer-events: none;
}
.v4-caso { position: relative; }
.v4-sit__link:hover { border-color: var(--navy-500); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.v4-sit__link:hover::before { transform: scaleX(1); }
.v4-sit__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; }
.v4-glyph { width: 34px; height: 38px; fill: var(--navy); flex: none; }
.v4-glyph [fill="none"] { stroke: var(--navy); }
.v4-glyph path:last-child { fill: var(--accent); }
.v4-glyph path[fill="none"]:last-child { stroke: var(--accent); fill: none; }
.v4-sit__idx {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; color: var(--accent-ink);
}
.v4-sit__title {
  display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.2; letter-spacing: -.015em;
  color: var(--navy); margin-bottom: .7rem; text-wrap: balance;
}
.v4-sit__text { display: block; font-size: 1rem; line-height: 1.55; color: var(--muted); margin-bottom: 1.25rem; }
.v4-sit__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-family: var(--font-display); font-stretch: 115%; font-weight: 600; font-size: .95rem;
  color: var(--accent-ink);
}
.v4-sit__cta::after { content: "→"; transition: transform .2s ease; }
.v4-sit__link:hover .v4-sit__cta::after, .v4-crisi:hover .v4-sit__cta::after { transform: translateX(5px); }
/* la prima area tiene insieme le altre: pannello scuro */
.v4-sit:first-child .v4-sit__link { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.v4-sit:first-child .v4-sit__title { color: #fff; }
.v4-sit:first-child .v4-sit__text { color: var(--on-navy); }
.v4-sit:first-child .v4-sit__idx, .v4-sit:first-child .v4-sit__cta { color: var(--accent); }
.v4-sit:first-child .v4-glyph { fill: #fff; }
.v4-sit:first-child .v4-glyph path:last-child { fill: var(--accent); }

/* riequilibrio e crisi: stessa grammatica, tono calmo, niente rosso */
.v4-crisi {
  margin-top: clamp(.75rem, .4rem + 1vw, 1.25rem);
  display: grid; grid-template-columns: minmax(230px, .3fr) 1fr auto; gap: 1rem 2rem; align-items: center;
  padding: clamp(1.1rem, .9rem + .8vw, 1.6rem) clamp(1.25rem, 1rem + .9vw, 1.75rem);
  background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--navy-500);
  text-decoration: none; color: var(--text); transition: border-color .2s ease, background-color .2s ease;
}
.v4-crisi:hover { background: #fff; border-color: var(--navy-500); color: var(--text); }
.v4-crisi__head { display: flex; align-items: center; gap: .9rem; }
.v4-crisi .v4-sit__idx { letter-spacing: .12em; line-height: 1.4; }
.v4-crisi__head .v4-glyph { width: 30px; height: 33px; }
.v4-crisi__body .v4-sit__title { margin-bottom: .3rem; }
.v4-crisi__body .v4-sit__text { margin: 0; max-width: 70ch; }
.v4-crisi .v4-sit__cta { margin: 0; }
.v4-more { margin: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 0; }
#aree { padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }

@media (max-width: 1080px) { .v4-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .v4-crisi { grid-template-columns: 1fr; gap: .75rem; }
}
@media (max-width: 560px) { .v4-sits { grid-template-columns: 1fr; } }

/* ---------- il problema, con la foto alla finestra ---------- */
.v4-problema__grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.v4-problema__grid .lead { color: var(--text); }
.v4-problema__grid p:not(.lead):not(.eyebrow) { color: var(--muted); }
.v4-problema__photo {
  margin: 0; position: relative; aspect-ratio: 3 / 4; overflow: hidden; max-height: 620px; background: var(--bg-alt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}
.v4-problema__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.v4-problema__photo::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 6px; background: var(--accent);
}
@media (max-width: 900px) {
  .v4-problema__grid { grid-template-columns: 1fr; }
  .v4-problema__photo { aspect-ratio: 4 / 3; max-width: 560px; }
  .v4-problema__photo img { object-position: 50% 22%; }
}

/* ---------- cabina di comando ---------- */
.section--dark { background-color: var(--v4-console); }
.cabina .dash { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); }
.dash__bar { background: var(--v4-panel); border-bottom: 1px solid rgba(243, 146, 0, .45); }
.dash__dot { clip-path: none; box-shadow: 0 0 0 3px rgba(243, 146, 0, .22); }
.dash__label { font-size: .95rem; }
.dash__sub, .dash__rows li, .gauge__scale, .dash__foot { font-size: .8rem; }
.dash__line { height: 84px; }
.dash__bars { height: 68px; }
.cabina__points li { font-size: 1rem; }
.cabina__points strong { font-size: .78rem; }

/* ---------- statement ---------- */
.statement { background-color: var(--navy); }
.statement::before {
  right: -2%; top: auto; bottom: 0; width: min(40vw, 520px); height: 90%; aspect-ratio: auto;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .06) 50%) 0 100% / 30% 42% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .06) 50%) 50% 100% / 30% 70% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .06) 50%) 100% 100% / 30% 100% no-repeat;
}
.statement .attrib { color: var(--on-navy); }

/* ---------- casi: numero grande, prima -> dopo ---------- */
.v4-casi__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, .5rem + 1.2vw, 1.5rem);
}
.v4-caso {
  container-type: inline-size; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy);
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.v4-caso__flag {
  margin: 0 0 .35rem; font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.v4-caso__settore { margin: 0 0 1.4rem; font-size: .92rem; line-height: 1.45; color: var(--text); }
.v4-caso__metric {
  margin: 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: clamp(2rem, 13cqi, 3.4rem); line-height: 1; letter-spacing: -.045em; color: var(--navy);
  white-space: nowrap;
}
.v4-caso__metric-label {
  margin: .5rem 0 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.v4-caso__title { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.25; margin: 0 0 1.1rem; }
.v4-caso__pd { margin-bottom: 1rem; }
.v4-caso__pd ul { list-style: none; margin: 0; padding: 0; }
.v4-pd__head, .v4-pd {
  display: grid; grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr); column-gap: .5rem;
}
.v4-pd__head {
  margin: 0 0 .35rem; font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.v4-pd { margin: 0; padding: .6rem 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.v4-pd__k { grid-column: 1 / -1; font-size: .9rem; color: var(--text); line-height: 1.35; margin-bottom: .2rem; }
.v4-pd__a { font-weight: 600; color: var(--muted); font-size: 1.02rem; }
.v4-pd__b {
  font-family: var(--font-display); font-stretch: 115%; font-weight: 700; color: var(--navy); font-size: 1.08rem;
}
.v4-pd__arrow::before { content: "→"; color: var(--accent-ink); font-weight: 700; }
.v4-caso__cta { margin: auto 0 0; }
.v4-casi .casi__nota { font-size: .9rem; color: var(--text); }
@media (max-width: 1000px) { .v4-casi__grid { grid-template-columns: 1fr; } }
@media (min-width: 620px) and (max-width: 1000px) {
  .v4-caso { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 2rem; }
  .v4-caso > * { grid-column: 1; }
  .v4-caso__title, .v4-caso__pd, .v4-caso__cta { grid-column: 2; }
  .v4-caso__title { grid-row: 1 / span 2; }
  .v4-caso__pd { grid-row: 3 / span 2; }
  .v4-caso__cta { grid-row: 5; }
}

/* ---------- autodiagnosi in home: la seconda porta, in chiaro caldo ---------- */
.v4-test.section--navy { background: var(--accent-soft); color: var(--text); border-top: 4px solid var(--accent); }
.v4-test h2 { color: var(--navy); }
.v4-test .eyebrow--light { color: var(--accent-ink); }
.v4-test .lead { color: var(--text); }
.v4-test .test-band__aree {
  background: #fff; border: 1px solid rgba(158, 93, 0, .22); padding: .4rem 1.25rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}
.v4-test .test-band__aree li { color: var(--navy); border-top-color: var(--line); }
.v4-test .test-band__aree li:first-child { border-top: 0; }
.v4-test .test-band__aree li:last-child { border-bottom: 0; }
.v4-test .test-band__aree span { color: var(--accent-ink); }

/* ---------- metodo in home e sezioni navy ---------- */
.section--navy { background-color: var(--navy); }
.metodo-home {
  background-image:
    linear-gradient(var(--v4-grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--v4-grid-dark) 1px, transparent 1px);
  background-size: var(--v4-grid) var(--v4-grid);
}
.fase-home { background: rgba(22, 32, 58, .55); padding: 1.5rem 1.25rem 1.4rem; }

/* ---------- primi 60 giorni: barra di avanzamento ---------- */
.fase60 { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--line); padding: 1.3rem 1.2rem 1.4rem; }
.section:not(.section--alt) .fase60 { background: var(--bg-alt); }

/* ---------- HERO delle pagine interne: stessa consolle ---------- */
.hero--text {
  background-color: var(--v4-console); color: var(--on-navy);
  padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(2.75rem, 1.75rem + 4vw, 5rem);
  border-bottom: 3px solid var(--accent);
}
.hero--text { position: relative; overflow: hidden; }
.hero--text > .wrap { position: relative; }
.hero--text::before { /* le tre barre del simbolo, come nella home */
  content: ""; position: absolute; right: -3%; bottom: 0; width: min(34vw, 460px); height: 82%;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .04) 50%) 0 100% / 30% 42% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .04) 50%) 50% 100% / 30% 70% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .04) 50%) 100% 100% / 30% 100% no-repeat;
  pointer-events: none;
}
.hero--text h1 { color: #fff; max-width: 24ch; font-size: clamp(2.2rem, 1.2rem + 3.2vw, 3.9rem); line-height: 1.04; }
.hero--text .eyebrow { color: var(--accent); }
.hero--text .lead { color: rgba(255, 255, 255, .82); }
.hero--text .quote { color: #fff; }
.hero--text .btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero--text .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero--text .post__meta { color: var(--on-navy); }
.hero--text .post__cat { color: var(--accent); }
.hero--text .post__author { color: #fff; }
/* pagina in una sola lingua (/it/laboratorio/): il menu del telefono non apre un riquadro vuoto */
.lang-menu__list:empty { display: none; }
.hero--text a:not(.btn) { color: #fff; }

/* sezioni, card, blocchi */
.section--alt { background-color: var(--bg-alt); }
.card { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.card::after { height: 3px; }
.caso { --cut: 20px; }
.caso__head { background: var(--v4-console); }
.caso-hero__metric { background: var(--v4-console); }
.caso-hero .caso__flag { color: var(--accent-ink); }
.block__num { font-variant-numeric: tabular-nums; }
.faq__item summary { min-height: 44px; }
.faq__item[open] { border-left-color: var(--accent); }

/* modulo e footer. Footer navy pieno: il logo negativo ha il fondo #233351 opaco
   e sul navy-900 di style.css si vedeva il riquadro. */
.contact::before {
  left: auto; right: -2%; bottom: 0; width: min(34vw, 440px); height: 70%; aspect-ratio: auto;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .04) 50%) 0 100% / 30% 42% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .04) 50%) 50% 100% / 30% 70% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .04) 50%) 100% 100% / 30% 100% no-repeat;
}
.field input, .field textarea, .field select { border-radius: 0; }
.site-footer { background: var(--navy); border-top: 3px solid var(--accent); color: rgba(255, 255, 255, .72); }

/* ---------- responsive della home ---------- */
@media (max-width: 1100px) {
  .v4-cluster__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  .v4-hero__grid { grid-template-columns: 1fr; }
  .v4-hero__side { max-width: 640px; }
}
@media (max-width: 560px) {
  .v4-door { grid-template-columns: 1fr; }
  .v4-kpi { grid-template-columns: 1fr; }
  .v4-spark { width: 100%; max-width: 120px; }
  .v4-hero__photo { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
}
@media (max-width: 355px) {
  .v4-cluster__list { grid-template-columns: 1fr; }
}
.v4-caso__metric-nota {
  display: block; margin-top: .35rem; font-family: var(--font-body); font-stretch: 100%;
  font-weight: 400; font-size: .9rem; letter-spacing: 0; text-transform: none; line-height: 1.4; color: var(--text);
}
