/* Ediltrasp — servizi integrati
   Concetto: il marchio. Due blocchi pieni (grafite e giallo) che si incastrano attorno a un vuoto,
   con un solo angolo molto arrotondato ciascuno; scritte geometriche, sottotitoli minuscoli e spaziati. */
:root {
  --paper: #f3f4f2;      /* fondo pagina, grigio freddo leggermente verde */
  --surface: #fdfdfc;    /* schede e grafici */
  --ink: #262b30;        /* grafite del marchio */
  --ink-2: #4c525a;      /* testo secondario */
  --muted: #7a8088;      /* etichette, assi */
  --line: #dcdfdb;       /* filetti e griglia */
  --signal: #f9c10b;     /* giallo del marchio, solo superfici e segni */
  --signal-ink: #8a6200; /* giallo scurito per testo su chiaro */
  --band: #262b30;       /* fasce scure */
  --mark-dark: #262b30;  /* blocco grafite del marchio */
  --band-ink: #f3f4f2;
  --band-muted: #a9afb6;
  --good: #1f7a3a;
  --chart-1: #2a78d6; --chart-2: #eb6834; --chart-3: #1baf7a; --chart-4: #eda100;
  --chart-single: #b07d00;
  --font-display: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --font-body: "Lexend", "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Lexend", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.2vw, 4.6rem);
  --radius: 4px;
  --r-big: 22px;        /* angolo arrotondato del marchio */
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16191c; --surface: #1e2226; --ink: #eef0ee; --ink-2: #c3c8cd; --muted: #8d949b;
    --line: #2f343a; --signal: #f9c10b; --signal-ink: #f9c10b; --band: #0f1113; --band-ink: #eef0ee; --mark-dark: #3a4047;
    --band-muted: #9aa1a8; --good: #4cc274;
    --chart-1: #3987e5; --chart-2: #d95926; --chart-3: #199e70; --chart-4: #c98500; --chart-single: #f7c00b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16191c; --surface: #1e2226; --ink: #eef0ee; --ink-2: #c3c8cd; --muted: #8d949b;
  --line: #2f343a; --signal: #f9c10b; --signal-ink: #f9c10b; --band: #0f1113; --band-ink: #eef0ee; --mark-dark: #3a4047;
  --band-muted: #9aa1a8; --good: #4cc274;
  --chart-1: #3987e5; --chart-2: #d95926; --chart-3: #199e70; --chart-4: #c98500; --chart-single: #f7c00b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-stretch: 85%; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-stretch: 88%; }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.prose { max-width: 66ch; color: var(--ink-2); display: grid; gap: 1em; }
.prose strong { color: var(--ink); }
.label {
  font: 500 var(--step--1)/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.label--signal { color: var(--signal-ink); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Testata ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band); }
.utility { background: var(--band); color: var(--band-muted); font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.04em; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-block: 9px; }
.utility a { color: var(--band-ink); text-decoration: none; }
.utility a:hover { color: var(--signal); }
.utility__links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.sport-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; background: var(--signal); padding: 5px 10px; border-radius: 2px; font-weight: 600; }
.sport-link:hover { filter: brightness(1.06); }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark rect.a { fill: var(--signal); } .brand__mark path { fill: var(--ink); }
.brand__name { font: 800 1.35rem/1 var(--font-display); font-stretch: 112%; letter-spacing: 0.04em; }
.brand__tag { display: block; font: 500 0.66rem/1.2 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand__logo { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 8px 12px; font: 600 0.9rem var(--font-body); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--signal); padding-left: 12px; }
  .nav .btn { margin: 12px 0 0; text-align: center; }
}

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius); font: 600 0.98rem/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--signal); color: #24282d !important; }
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { padding: 8px 14px; font-size: 0.9rem; }
.arrow::after { content: "→"; font-family: var(--font-mono); }
.ext::after { content: "↗"; font-family: var(--font-mono); }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--band { background: var(--band); color: var(--band-ink); }
.section--band .label { color: var(--band-muted); }
.section--band .lead, .section--band .prose { color: var(--band-muted); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 700px) { .section-head--row { grid-template-columns: 1fr; } }
.tab { display: inline-flex; align-items: center; gap: 10px; }
.tab::before { content: ""; width: 14px; height: 14px; background: var(--signal); flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { /* griglia di planimetria */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.55;
  mask-image: linear-gradient(100deg, transparent 0%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 55%, #000 100%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero__copy h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--signal) 62%, var(--signal) 92%, transparent 92%); padding-inline: 2px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.page-hero .wrap { grid-template-columns: 1fr; padding-block: clamp(44px, 6vw, 80px); }
.page-hero h1 { font-size: var(--step-3); max-width: 20ch; }

/* Pannello "quadro di controllo" */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(20, 24, 28, 0.45); overflow: hidden; min-width: 0; }
.panel__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, var(--ink) 10px 20px) top / 100% 5px no-repeat, var(--surface); padding-top: 15px; }
.panel__body { padding: 18px 18px 14px; display: grid; gap: 10px; }
.panel__value { font: 700 var(--step-3)/1 var(--font-display); font-stretch: 85%; }
.panel__value small { font: 500 0.9rem var(--font-mono); color: var(--muted); margin-left: 6px; }
.panel__delta { font: 600 0.95rem var(--font-mono); color: var(--good); }
.panel__chart { height: 150px; position: relative; }
.panel__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill[data-state="live"]::before { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.pill[data-state="saved"]::before { background: var(--signal); }

/* ---------- Griglie ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* Schede servizio */
.service { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 26px 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-width: 0; transition: border-color .2s, transform .2s; }
.service:hover { border-color: var(--ink); transform: translateY(-2px); }
.service__code { display: flex; justify-content: space-between; align-items: center; }
.service__icon { width: 44px; height: 44px; color: var(--ink); }
.service__icon .y { fill: var(--signal); }
.service p { color: var(--ink-2); }
.service__more { font-weight: 600; font-size: 0.95rem; }
.badge { font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--signal); color: #24282d; padding: 5px 7px; border-radius: 2px; }
.badge--out { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }

/* Processo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 22px 22px 8px 0; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 0.85rem var(--font-mono); color: var(--signal-ink); }
.section--band .steps { border-top-color: var(--signal); }
.section--band .steps li::before { color: var(--signal); }
.section--band .steps p { color: var(--band-muted); }

/* Numeri */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.figure { padding: 22px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.figure__n { font: 700 var(--step-3)/1 var(--font-display); font-stretch: 82%; font-variant-numeric: tabular-nums; }
.figure__n sup { font-size: 0.45em; vertical-align: 0.9em; margin-left: 2px; }
.figure p { color: var(--ink-2); font-size: 0.95rem; }
.figure--plan .figure__n { color: var(--signal-ink); }
.section--band .figures, .section--band .figure { border-color: #3a4047; }
.section--band .figure p { color: var(--band-muted); }
.section--band .figure--plan .figure__n { color: var(--signal); }
.note { font-size: var(--step--1); color: var(--muted); max-width: 90ch; }
.section--band .note { color: var(--band-muted); }

/* Callout digitalizzazione */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.checklist li::before { content: ""; width: 12px; height: 12px; margin-top: 0.45em; background: var(--signal); }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 460px; height: auto; }
.diagram .box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.diagram .box-y { fill: var(--signal); stroke: var(--ink); stroke-width: 1.5; }
.diagram text { fill: var(--ink); font: 600 13px var(--font-body); }
.diagram .t-mono { font: 500 11px var(--font-mono); fill: var(--muted); letter-spacing: .04em; }
.diagram .t-dark { fill: #24282d; }
.diagram .wire { stroke: var(--ink); stroke-width: 1.5; fill: none; marker-end: url(#freccia); }
.diagram .wire-d { stroke: var(--muted); stroke-width: 1.2; fill: none; stroke-dasharray: 4 4; }
.diagram marker path { fill: var(--ink); }

/* ---------- News ---------- */
.news-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.news { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.news__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.news h3 { font-size: 1.18rem; line-height: 1.2; }
.news p { color: var(--ink-2); font-size: 0.97rem; }
.news__src { font-size: 0.88rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.news__src a { font-weight: 600; color: var(--ink); }
.cat { font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.cat::before { content: ""; width: 8px; height: 8px; background: var(--signal); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font: 500 0.88rem var(--font-body); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 34px; padding-block: 14px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 91px; top: 22px; width: 12px; height: 12px; background: var(--surface); border: 2px solid var(--ink); }
.timeline li.key::after { background: var(--signal); }
.timeline time { font: 700 1.3rem/1.2 var(--font-display); font-stretch: 85%; text-align: right; font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 4px; }
.timeline p { color: var(--ink-2); font-size: 0.97rem; max-width: 62ch; }
.timeline .src { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 560px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::after { left: 0; top: 20px; }
  .timeline time { text-align: left; }
}

/* ---------- Grafici ---------- */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; display: grid; gap: 12px; min-width: 0; }
.chart-card__head { display: flex; justify-content: space-between; gap: 14px; align-items: start; flex-wrap: wrap; }
.chart-card h3 { font-size: 1.1rem; }
.chart-card .sub { color: var(--ink-2); font-size: 0.92rem; }
.chart { position: relative; height: 300px; }
.chart--short { height: 240px; }
.chart-card__foot { font-size: 0.82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kpi { padding: 18px 20px; border-right: 1px solid var(--line); display: grid; gap: 6px; }
.kpi:last-child { border-right: 0; }
.kpi__n { font: 700 var(--step-2)/1 var(--font-display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.kpi p { font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 640px) { .kpi { border-right: 0; border-bottom: 1px solid var(--line); } .kpi:last-child { border-bottom: 0; } }
details.table-view { font-size: 0.88rem; }
details.table-view summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.table-scroll { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font: 600 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--signal); border-color: var(--ink); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.9rem; color: var(--ink-2); }
.form-status { font-weight: 600; }
.contact-list { display: grid; gap: 18px; }
.contact-list dt { margin-bottom: 2px; }
.contact-list dd { margin: 0; font-size: 1.05rem; }
.copy { font: 500 0.75rem var(--font-mono); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 3px; padding: 3px 7px; cursor: pointer; margin-left: 8px; vertical-align: middle; }

/* ---------- CTA e piede ---------- */
.cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }
.footer { background: var(--band); color: var(--band-muted); padding-block: 56px 28px; font-size: 0.92rem; }
.footer a { color: var(--band-ink); text-decoration: none; }
.footer a:hover { color: var(--signal); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font: 600 0.75rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-ink); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .brand { color: var(--band-ink); }
.footer .brand__mark path { fill: var(--band-ink); }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a4047; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; }
.hazard { height: 6px; background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, #24282d 12px 24px); }

@media (max-width: 640px) { .utility__claim { display: none; } .utility .wrap { justify-content: flex-end; } }


/* ================= Allineamento al marchio ================= */
h1, h2 { font-weight: 800; font-stretch: normal; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.7vw, 2.9rem); }
h3 { font-weight: 700; letter-spacing: -0.01em; }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.3rem); }
body { font-weight: 300; }
.lead { font-weight: 300; }
.prose strong, .news h3, .field label, .btn { font-weight: 500; }
.label { font: 400 0.9rem/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: none; }
.panel__value, .figure__n, .kpi__n, .timeline time { font-family: var(--font-display); font-stretch: normal; font-weight: 800; letter-spacing: -0.02em; }

/* segno del marchio accanto alle etichette di sezione */
.tab::before { display: none; }
.tab { gap: 10px; }
.segno { width: 18px; height: 18px; flex: none; }
.segno .d { fill: var(--mark-dark); } .segno .y { fill: var(--signal); }
.section--band .segno .d { fill: var(--band-ink); }

/* logo */
.brand__logo { height: 46px; width: auto; }
.brand__logo--chiaro { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .header .brand__logo--scuro { display: none; } :root:not([data-theme="light"]) .header .brand__logo--chiaro { display: block; } }
:root[data-theme="dark"] .header .brand__logo--scuro { display: none; }
:root[data-theme="dark"] .header .brand__logo--chiaro { display: block; }
.footer .brand__logo { height: 52px; }
@media (max-width: 420px) { .brand__logo { height: 38px; } }

/* forme: un angolo grande arrotondato in alto a sinistra e uno in basso a destra, come i due blocchi */
.service, .news, .chart-card, .form, .diagram, .panel, .kpis { border-radius: var(--r-big) 4px var(--r-big) 4px; }
.btn { border-radius: 12px 3px 12px 3px; }
.btn--small { border-radius: 10px 3px 10px 3px; }
.sport-link { border-radius: 8px 2px 8px 2px; }
.badge { border-radius: 6px 1px 6px 1px; }
.field input, .field select, .field textarea { border-radius: 10px 3px 10px 3px; }
.figures { border-radius: var(--r-big) 4px var(--r-big) 4px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure { border-right: 1px solid var(--line); }
.section--band .figures { border-color: #3a4047; }
.checklist li::before { border-radius: 4px 1px 4px 1px; }
.cat::before { border-radius: 3px 0 3px 0; }
.timeline li::after { border-radius: 4px 1px 4px 1px; }
.hero__copy h1 em { background: none; position: relative; z-index: 0; }
.hero__copy h1 em::after { content: ""; position: absolute; left: -2px; right: -4px; bottom: 0.06em; height: 0.36em; background: var(--signal); border-radius: 0 0 12px 0; z-index: -1; }

/* hero: il pannello dati si incastra nel marchio ingrandito */
.hero::before { display: none; }
.hero__visual { position: relative; min-width: 0; padding: 28px 0 28px 28px; }
.hero__visual .grande { position: absolute; inset: 0 -40px -20px auto; width: min(560px, 105%); height: auto; pointer-events: none; }
.hero__visual .grande .d { fill: var(--mark-dark); } .hero__visual .grande .y { fill: var(--signal); }
.hero__visual .panel { position: relative; }
@media (max-width: 900px) { .hero__visual { padding: 18px 0 18px 18px; } .hero__visual .grande { inset: 0 -16px -10px auto; } }
.panel__bar { background: var(--surface); padding-top: 12px; }
.page-hero { background: var(--surface); }
.page-hero .wrap { position: relative; }
.page-hero .grande { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: clamp(28px, 4vw, 56px); width: clamp(120px, 16vw, 210px); height: auto; }
.page-hero .grande .d { fill: var(--mark-dark); } .page-hero .grande .y { fill: var(--signal); }
.page-hero .hero__copy { padding-right: clamp(0px, 18vw, 240px); }
@media (max-width: 760px) { .page-hero .grande { display: none; } .page-hero .hero__copy { padding-right: 0; } }

/* piede: niente strisce, filo giallo */
.hazard { height: 6px; background: var(--signal); }
