/* RisparmioTARI - foglio di stile unico.
   Regole di forma: contenitori 6px, pulsanti e chip pill, tessere del mosaico brand a spigolo vivo.
   Accento unico: verde brand. L'indaco e il colore istituzionale (superfici e pulsanti). */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f6f9;
  --surface: #ffffff;
  --surface-2: #eeedf5;
  --ink: #16132b;
  --ink-2: #46435e;
  --ink-3: #64617c;
  --line: #dcdae7;
  --brand: #281e78;
  --brand-hover: #1d155a;
  --brand-panel: #281e78;
  --on-brand: #f7f6ff;
  --on-brand-2: #c9c5ee;
  --accent: #4daa50;
  --accent-ink: #2f7a33;
  --focus: #4daa50;
  --shadow: 0 1px 2px rgb(40 30 120 / .06), 0 12px 32px -12px rgb(40 30 120 / .18);
  --logo-tile: #ffffff;
  --tile-indigo: #281e78;
  --line-strong: #c5c2d8;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 6px;
  --wrap: 1240px;
  --gutter: 16px;
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0c1c;
    --surface: #16132a;
    --surface-2: #1e1a38;
    --ink: #eeedf6;
    --ink-2: #bdbad2;
    --ink-3: #9a97b3;
    --line: #2d2949;
    --brand: #4b40c4;
    --brand-hover: #5a4fd3;
    --brand-panel: #241b6b;
    --on-brand: #f7f6ff;
    --on-brand-2: #cdc9f2;
    --accent: #6cc46f;
    --accent-ink: #7fd082;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
    --logo-tile: #f3f2f8;
    --tile-indigo: #4b40c4;
    --line-strong: #3c3762;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0c1c;
  --surface: #16132a;
  --surface-2: #1e1a38;
  --ink: #eeedf6;
  --ink-2: #bdbad2;
  --ink-3: #9a97b3;
  --line: #2d2949;
  --brand: #4b40c4;
  --brand-hover: #5a4fd3;
  --brand-panel: #241b6b;
  --on-brand: #f7f6ff;
  --on-brand-2: #cdc9f2;
  --accent: #6cc46f;
  --accent-ink: #7fd082;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  --logo-tile: #f3f2f8;
  --tile-indigo: #4b40c4;
  --line-strong: #3c3762;
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 620; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #0e0c1c; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -.035em; line-height: 1.02; font-weight: 640; }
.h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.85rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--ink-2); }
.measure { max-width: 65ch; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 1.1em; }

/* ------------------------------------------------------------ buttons */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 560; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--light { background: var(--on-brand); color: #1d155a; }
.btn--light:hover { background: #fff; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 560; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .25s var(--ease); }
.link-arrow:hover { border-color: var(--accent); }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
@media (min-width: 768px) { .brand img { height: 40px; } }
.footer-brand .brand img { height: 36px; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

.nav { display: none; margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 11px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .header-actions { margin-left: 8px; }
.header-actions .btn { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.header-actions .btn--primary, .header-actions .area-link { display: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn .icon { width: 18px; height: 18px; }
.theme-toggle .i-sun, .menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; } }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

@media (min-width: 1180px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-actions .btn--primary, .header-actions .area-link { display: inline-flex; }
}
@media (min-width: 560px) { .header-actions .btn--primary { display: inline-flex; } }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; background: var(--bg); padding: 24px var(--gutter) 40px; overflow-y: auto; display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.35rem; font-weight: 560; letter-spacing: -.02em; text-decoration: none; }
.mobile-menu .btn { margin-top: 28px; width: 100%; justify-content: center; }
@media (min-width: 1180px) { .mobile-menu { display: none !important; } }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------ hero */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); overflow: clip; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__copy { display: grid; gap: 22px; }
.hero__copy .lead { max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__visual img { width: 100%; height: auto; }
@media (min-width: 960px) {
  .hero { min-height: calc(100dvh - var(--header-h) - 80px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero__grid { grid-template-columns: 1fr 1.08fr; gap: 56px; }
}

/* ------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 20px 28px 0; display: grid; gap: 6px; align-content: start; }
.stat__value { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .45em; letter-spacing: -.01em; font-weight: 560; margin-left: .15em; color: var(--ink-2); }
.stat__label { color: var(--ink-2); font-size: .98rem; max-width: 22ch; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 32px 28px; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
  .stat:nth-child(even) { padding-left: 28px; }
  .stat:nth-child(n+3) { border-top: 0; }
}

/* ------------------------------------------------------------ logo wall */
.lwall { padding-block: clamp(56px, 8vw, 120px); }
.lwall__inner { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.lwall__wall { --cell: 96px; --lg: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); grid-auto-rows: 64px; gap: var(--lg); margin: 0; padding: 0; list-style: none; }
/* il testo resta a sinistra, fermo sotto l'header mentre scorrono i loghi */
.lwall__copy { position: sticky; top: calc(var(--header-h) + 24px); display: grid; justify-items: start; gap: 14px; padding-top: 8px; }
.lwall__copy .h2 { max-width: 9ch; line-height: .98; }
.lwall__lead { color: var(--ink-2); max-width: 38ch; }
.lwall__tile { display: grid; place-items: center; padding: 8px 10px; background: var(--logo-tile); border: 1px solid var(--line); border-radius: 8px; }
.lwall__tile img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }
/* Logo con link al sito del cliente: tutta la tessera è cliccabile. */
.lwall__tile > a { display: grid; place-items: center; align-self: stretch; justify-self: stretch; margin: -8px -10px; padding: 8px 10px; border-radius: inherit; }
.lwall__tile:has(> a) { transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.lwall__tile:has(> a:hover) { border-color: var(--brand); box-shadow: 0 4px 14px -6px rgb(0 0 0 / .25); }
/* ingresso a onda: --d (ritardo) lo calcola site.js in base alla distanza dal titolo */
@media (prefers-reduced-motion: no-preference) {
  .js .lwall__tile { opacity: 0; translate: 0 18px; rotate: -6deg; transition: opacity .6s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s), rotate .8s var(--ease) var(--d, 0s); }
  .js .lwall.is-in .lwall__tile { opacity: 1; translate: 0 0; rotate: 0deg; }
}
@media (max-width: 860px) { .lwall__inner { grid-template-columns: 1fr; gap: 36px; } .lwall__wall { --cell: 92px; grid-auto-rows: 62px; } .lwall__copy { position: static; } .lwall__copy .h2 { max-width: none; } }
@media (max-width: 560px) {
  .lwall__wall { --cell: 76px; --lg: 6px; grid-auto-rows: 52px; }
  .lwall__tile { padding: 6px; } .lwall__tile img { max-height: 32px; } .lwall__tile > a { margin: -6px; padding: 6px; }
}

/* ------------------------------------------------------------ names strip (TARSU > TARI) */
.names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: clamp(1.9rem, 1rem + 4vw, 4.4rem); font-weight: 620; letter-spacing: -.04em; line-height: 1.05; }
.names li { position: relative; color: var(--ink-3); }
.names li::after { content: ""; position: absolute; left: -3%; right: -3%; top: 52%; height: .065em; background: currentColor; transform-origin: left center; }
.names li.is-current { color: var(--ink); }
.names li.is-current:not(:last-child) { margin-right: .18em; }
.names li.is-current::after { top: auto; bottom: -.06em; left: 0; right: 0; height: .1em; background: var(--accent); }
.intro-grid { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.intro-grid figure { margin: 0; }
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; font-size: 1.2rem; font-weight: 560; letter-spacing: -.01em; line-height: 1.45; }

/* ------------------------------------------------------------ bento (competenze) */
.bento { display: grid; gap: 12px; margin-top: 40px; }
.bento__cell { border-radius: var(--r); padding: 28px; background: var(--surface); border: 1px solid var(--line); display: grid; align-content: space-between; gap: 28px; min-height: 220px; }
.bento__cell h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; }
.bento__cell p { color: var(--ink-2); font-size: 1rem; }
.bento__cell .icon { width: 28px; height: 28px; color: var(--accent-ink); }
.bento__cell--brand { background: var(--brand-panel); border-color: transparent; color: var(--on-brand); }
.bento__cell--brand p { color: var(--on-brand-2); }
.bento__cell--brand .icon { color: var(--accent); }
.bento__cell--green { background: var(--accent); border-color: transparent; color: #0f2a10; }
.bento__cell--green p { color: #173d18; }
.bento__cell--green .icon { color: #0f2a10; }
.bento__cell--photo { padding: 0; overflow: hidden; position: relative; min-height: 260px; }
.bento__cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(230px, auto); }
  .bento__cell:nth-child(1) { grid-column: span 3; }
  .bento__cell:nth-child(2) { grid-column: span 3; grid-row: span 2; }
  .bento__cell:nth-child(3) { grid-column: span 3; }
  .bento__cell:nth-child(4) { grid-column: span 2; }
  .bento__cell:nth-child(5) { grid-column: span 2; }
  .bento__cell:nth-child(6) { grid-column: span 2; }
}

/* ------------------------------------------------------------ process (sticky) */
.process { display: grid; gap: 40px; }
.process__head { display: grid; gap: 18px; align-content: start; }
.process__list { list-style: none; margin: 0; padding: 0; position: relative; }
.process__list::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.process__item { position: relative; padding: 0 0 48px 52px; }
.process__item:last-child { padding-bottom: 0; }
.process__item::before { content: ""; position: absolute; left: 4px; top: 10px; width: 16px; height: 16px; border-radius: 999px; background: var(--bg); border: 2px solid var(--accent); }
.process__item h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -.03em; margin-bottom: 10px; }
.process__item p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 960px) {
  .process { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .process__head { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ------------------------------------------------------------ brand panel */
.panel { background: var(--brand-panel); color: var(--on-brand); border-radius: var(--r); padding: clamp(32px, 6vw, 72px); display: grid; gap: 32px; position: relative; overflow: hidden; }
.panel p { color: var(--on-brand-2); }
.panel .h2 { max-width: 20ch; }
.panel__tiles { position: absolute; left: 0; top: 0; display: grid; grid-template-columns: repeat(3, 56px); grid-auto-rows: 56px; opacity: .9; }
.panel__tiles span:nth-child(1) { background: var(--accent); }
.panel__tiles span:nth-child(5) { background: #1a1250; }
.panel__tiles span:nth-child(3) { background: color-mix(in srgb, var(--accent) 55%, transparent); }
@media (min-width: 900px) { .panel { grid-template-columns: 1.1fr .9fr; align-items: end; } .panel__tiles { grid-template-columns: repeat(3, 88px); grid-auto-rows: 88px; } }
@media (max-width: 899px) { .panel__tiles { position: static; margin: calc(-1 * clamp(32px, 6vw, 72px)) 0 0 calc(-1 * clamp(32px, 6vw, 72px)); } }
@media (min-width: 900px) { .panel { padding-top: 220px; } }

/* ------------------------------------------------------------ split */
.split { display: grid; gap: 40px; align-items: center; }
.split figure { margin: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split--rev figure { order: 2; } }

/* ------------------------------------------------------------ italy map */
.italy-map { position: relative; display: grid; justify-items: center; gap: 12px; }
.italy-map__svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.italy-map__land { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.italy-map__dot circle { fill: var(--accent); fill-opacity: .55; stroke: var(--accent-ink); stroke-width: 1; transition: fill-opacity .2s, transform .2s; transform-box: fill-box; transform-origin: center; cursor: pointer; }
.italy-map__dot:hover circle, .italy-map__dot:focus-visible circle, .italy-map__dot.is-active circle { fill-opacity: .9; transform: scale(1.15); }
.italy-map__dot:focus-visible circle { outline: 2px solid var(--brand); outline-offset: 2px; }
.italy-map__caption { font-size: .85rem; text-align: center; }
.italy-map__tooltip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--surface); font-size: .82rem; font-weight: 560; padding: 6px 10px; border-radius: 8px; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.italy-map__tooltip.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .italy-map__dot circle, .italy-map__tooltip { transition: none; } }

/* ------------------------------------------------------------ journal */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 40px; }
.section-head .lead { margin-top: 12px; }
.feature-posts { display: grid; gap: 28px; }
@media (min-width: 960px) { .feature-posts { grid-template-columns: 1.35fr 1fr; gap: 40px; } .feature-posts__side { display: grid; gap: 28px; align-content: start; } }
.post-card { display: grid; gap: 14px; text-decoration: none; color: inherit; align-content: start; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); }
.post-card__title { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
.post-card:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.post-card__excerpt { color: var(--ink-2); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card--big .post-card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.025em; }
.post-card--row { grid-template-columns: 140px 1fr; gap: 18px; align-items: start; }
.post-card--row .post-card__media { aspect-ratio: 1; }
.post-card--row .post-card__title { font-size: 1.05rem; }
@media (min-width: 560px) { .post-card--row { grid-template-columns: 200px 1fr; } .post-card--row .post-card__media { aspect-ratio: 4 / 3; } }

.journal-tools { display: grid; gap: 16px; margin-bottom: 36px; }
.search { position: relative; max-width: 420px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input[type="search"] { padding-left: 46px; border-radius: 999px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: inherit; font-size: .92rem; cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.post-grid { display: grid; gap: 40px 28px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-grid .post-card[hidden] { display: none; }
.empty-state { display: none; padding: 48px 0; text-align: left; color: var(--ink-2); }
.empty-state.is-visible { display: block; }
.load-more { margin-top: 48px; }

/* ------------------------------------------------------------ article */
.article-head { padding-top: clamp(32px, 5vw, 64px); display: grid; gap: 20px; }
.article-head .h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.3rem); max-width: 24ch; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ink-3); font-size: .95rem; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .82rem; text-decoration: none; }
.article-cover { margin: 40px 0 0; }
.article-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--r); }
.article-layout { display: grid; gap: 48px; padding-block: 56px 96px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; } }
.article-aside { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1024px) { .article-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.aside-box { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; background: var(--surface); }
.aside-box h2 { font-size: 1.1rem; letter-spacing: -.01em; }
.aside-box p { color: var(--ink-2); font-size: .95rem; }
.share { display: flex; gap: 8px; }

.prose { max-width: 68ch; font-size: 1.09rem; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.65rem; margin-top: 1.9em; letter-spacing: -.025em; line-height: 1.2; }
.prose h3 { font-size: 1.3rem; margin-top: 1.7em; letter-spacing: -.02em; line-height: 1.25; }
.prose h4 { font-size: 1.1rem; margin-top: 1.5em; line-height: 1.3; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent-ink); }
.prose img { border-radius: var(--r); margin-block: 1.8em; }
.prose blockquote { margin-inline: 0; border-left: 3px solid var(--accent); padding-left: 20px; color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose hr:first-child { display: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose strong { font-weight: 620; }

/* ------------------------------------------------------------ page hero (interne) */
.page-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero__grid { display: grid; gap: 36px; align-items: center; }
.page-hero__copy { display: grid; gap: 18px; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* ------------------------------------------------------------ team */


.figures { display: grid; gap: 12px; }
.figure-box { border-radius: var(--r); padding: 28px; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); }
.figure-box--brand { background: var(--brand-panel); color: var(--on-brand); border-color: transparent; }
.figure-box--brand p { color: var(--on-brand-2); }
.figure-box .stat__value { font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem); }
@media (min-width: 720px) { .figures { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ services */
.svc-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.svc-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .95rem; color: var(--ink-2); background: var(--surface); transition: border-color .2s, color .2s; }
.svc-index a:hover { color: var(--ink); border-color: var(--ink-3); }

.features { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.features li:first-child { border-top: 0; padding-top: 0; }
.features .icon { width: 26px; height: 26px; color: var(--accent-ink); margin-top: 2px; }
.features h3 { font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.3; }
.features p { color: var(--ink-2); font-size: 1rem; margin-top: 4px; }
.features ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: 1rem; }
.features ul li { display: list-item; padding: 2px 0; border: 0; }
@media (min-width: 720px) { .features--2col { grid-template-columns: 1fr 1fr; column-gap: 40px; } .features--2col li:nth-child(2) { border-top: 0; padding-top: 0; } }

/* ------------------------------------------------------------ contacts */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-list { display: grid; gap: 0; margin: 0; }
.contact-list div { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-size: .9rem; color: var(--ink-3); }
.contact-list dd { margin: 0; font-size: 1.2rem; font-weight: 560; letter-spacing: -.01em; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.form legend { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; padding: 0; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: 2fr 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: .95rem; font-weight: 540; color: var(--ink); }
.field .req { color: var(--accent-ink); }
.field .help { font-size: .87rem; color: var(--ink-3); }
.field .error { font-size: .87rem; color: #c22f3c; display: none; }
:root[data-theme="dark"] .field .error { color: #ff8f99; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .error { color: #ff8f99; } }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c22f3c; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input[type="file"] { font: inherit; font-size: .95rem; color: var(--ink-2); width: 100%; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); }
input[type="file"]::file-selector-button { font: inherit; font-size: .9rem; margin-right: 12px; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check a { color: var(--ink); }
.form-note { font-size: .87rem; color: var(--ink-3); }
.form-status { display: none; border-radius: var(--r); padding: 16px 18px; font-size: .98rem; color: var(--ink); }
.form-status.is-ok { display: block; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.form-status.is-err { display: block; background: color-mix(in srgb, #c22f3c 10%, var(--surface)); border: 1px solid color-mix(in srgb, #c22f3c 40%, transparent); }
.form [type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -9999px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }

/* ------------------------------------------------------------ CTA band + footer */
.cta-band { display: grid; gap: 28px; padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: end; } .cta-band__actions { justify-self: end; } }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 64px 32px; font-size: .97rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; } }
.footer-grid h2 { font-size: .9rem; font-weight: 560; color: var(--ink-3); letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { color: var(--ink-2); margin-top: 16px; max-width: 34ch; }
.footer-contact a { color: var(--ink); font-weight: 560; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-3); font-size: .88rem; }
.footer-bottom a { color: var(--ink-3); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 404 */
.notfound { min-height: 60dvh; display: grid; align-content: center; gap: 20px; padding-block: 80px; }

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .hero__copy > *:not(h1) { animation: rise .9s var(--ease) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .08s; }
  .hero__copy > *:nth-child(3) { animation-delay: .16s; }
  .hero__copy > *:nth-child(4) { animation-delay: .24s; }
  .hero__visual { animation: fade 1.2s var(--ease) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

@media print {
  .site-header, .site-footer, .cta-band, .article-aside, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}


/* ============================================================ MOTION LAYER
   Ogni effetto ha uno scopo: gerarchia (titoli, contatori), racconto (TARSU > TARI, processo),
   feedback (riflessi, pulsanti magnetici), identità (mosaico del marchio). */

/* ---------- hero: mosaico vivo */
.mosaic { --mx: 0; --my: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: end; }
.tile { position: relative; min-width: 0; min-height: 0; }
.tile__in { position: absolute; inset: 0; overflow: hidden; translate: calc(var(--mx) * var(--d) * -9px) calc(var(--my) * var(--d) * -9px); transition: translate .9s var(--ease), background-color 1.4s var(--ease); }
.tile--indigo .tile__in { background: var(--tile-indigo); }
.tile--green .tile__in { background: var(--accent); }
.tile--outline .tile__in { border: 1.5px solid var(--line-strong); }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); scale: 1.06; }
.tile--photo:hover img { scale: 1; }
@media (max-width: 959px) { .mosaic { justify-self: stretch; max-width: none; } }

@media (prefers-reduced-motion: no-preference) {
  .tile__in { animation: tile-in 1s var(--ease) both; animation-delay: calc(var(--i) * 75ms + .25s); }
  .tile--photo img { animation: photo-in 1.6s var(--ease) both; animation-delay: calc(var(--i) * 75ms + .25s); }
}
@keyframes tile-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes photo-in { from { scale: 1.35; } to { scale: 1.06; } }

/* ---------- titoli rivelati per parole */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .12em .1em 0; margin: 0 -.12em -.1em 0; }
[data-split] .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-split]:not(.is-split) { visibility: hidden; }
  [data-split].is-split .w > span { transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 55ms); }
  [data-split].is-in .w > span { transform: none; }
}

/* ---------- statistiche: filo verde che si disegna */
.stat { position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--accent); transform-origin: left; }
@media (min-width: 900px) { .stat:not(:first-child)::before { left: 28px; } }
@media (max-width: 899px) { .stat:nth-child(even)::before { left: 20px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .stat::before { transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
  .js .stat.is-visible::before { transform: scaleX(1); }
}

/* ---------- TARSU > TARI fissata allo scroll */
.names-pin { position: relative; }
.names-pin__sticky { padding-block: clamp(64px, 9vw, 120px); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (min-height: 640px) {
    .names-pin { height: 240vh; view-timeline-name: --names; }
    .names-pin__sticky { position: sticky; top: var(--header-h); min-height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding-block: 32px; }
    .names { font-size: clamp(2.4rem, 1rem + 6.2vw, 7rem); }
    .names li { animation: name-dim linear both; animation-timeline: --names; animation-range: contain var(--start) contain var(--end); }
    .names li::after { animation: strike linear both; animation-timeline: --names; animation-range: contain var(--start) contain var(--end); }
    /* "pop" con zoom solo sull'ultimo nome (niente di seguito con cui sovrapporsi):
       gli altri nomi vigenti si limitano a schiarirsi in attivo, senza scalare. */
    .names li.is-current { animation-name: tari-settle; }
    .names li.is-current:last-child { animation-name: tari-pop; transform-origin: left bottom; }
    .names li.is-current::after { animation-range: contain calc(var(--start) + 4%) contain calc(var(--end) + 4%); }
    .names-pin .intro-grid > * { opacity: 1; transform: none; animation: intro-up linear both; animation-timeline: --names; animation-range: contain 58% contain 78%; }
    .names-pin .intro-grid > *:nth-child(2) { animation-range: contain 64% contain 84%; }
  }
}
@keyframes name-dim { from { color: var(--ink); } to { color: var(--ink-3); } }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tari-pop { from { color: var(--ink-3); transform: none; } to { color: var(--ink); transform: scale(1.08); } }
@keyframes tari-settle { from { color: var(--ink-3); } to { color: var(--ink); } }
@keyframes intro-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- riflesso che segue il cursore + sollevamento */
.spot { position: relative; isolation: isolate; transition: transform .5s var(--ease), border-color .3s; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%); }
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (prefers-reduced-motion: no-preference) { .spot:hover { transform: translateY(-4px); } }
.bento__cell .icon { transition: transform .6s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .bento__cell:hover .icon { transform: rotate(-8deg) scale(1.12); } }

/* ---------- pulsanti magnetici */
.btn--primary, .btn--light { transition: background-color .25s var(--ease), color .25s var(--ease), translate .5s var(--ease), transform .2s var(--ease); }
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .22) 50%, transparent 70%); translate: -120% 0; transition: translate .8s var(--ease); }
.btn--primary:hover::after { translate: 120% 0; }

/* ---------- processo: binario che si riempie */
.process__list::after { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.process__item::before { transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.process__item.is-active::before { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); transform: scale(1.1); }
.process__item h3 { transition: color .5s var(--ease); }
.process__item:not(.is-active) h3 { color: var(--ink-3); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .process__list::after { animation: rail linear both; animation-timeline: view(); animation-range: cover 25% cover 65%; }
  }
}
@supports not (animation-timeline: view()) { .process__list::after { transition: transform 1.6s var(--ease); } .process__list.rail-on::after { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .process__list::after { transform: scaleY(1); } .process__item:not(.is-active) h3 { color: inherit; } }
@keyframes rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- immagini rivelate a tendina e parallasse */
[data-clip] { overflow: clip; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-clip] img { clip-path: inset(100% 0 0 0); scale: 1.18; transition: clip-path 1.3s var(--ease), scale 1.8s var(--ease); }
  .js [data-clip].is-visible img { clip-path: inset(0 0 0 0); scale: 1; }
  .page-hero__visual img { animation: curtain 1.4s var(--ease) .2s both; }
}
@keyframes curtain { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    .mosaic .tile { animation: scatter linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes drift { from { transform: translateY(48px); } to { transform: translateY(-48px); } }
@keyframes scatter { to { transform: translate(calc((var(--d) - 1.8) * 40px), calc(var(--d) * -70px)) rotate(calc((var(--d) - 1.8) * 6deg)); opacity: .15; } }

/* ---------- pannello "salvo buon fine": tessere che entrano */
@media (prefers-reduced-motion: no-preference) {
  .js .panel__tiles span { transform: scale(0); transition: transform .9s var(--ease); }
  .js .panel.is-visible .panel__tiles span { transform: none; }
  .panel__tiles span:nth-child(2) { transition-delay: .08s; } .panel__tiles span:nth-child(3) { transition-delay: .16s; }
  .panel__tiles span:nth-child(4) { transition-delay: .24s; } .panel__tiles span:nth-child(5) { transition-delay: .32s; } .panel__tiles span:nth-child(6) { transition-delay: .4s; }
}

/* ---------- transizioni tra pagine (View Transitions, dove supportate) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- barra di avanzamento lettura (articoli) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) { .read-progress { animation: rail-x linear both; animation-timeline: scroll(root); } }
}
@supports not (animation-timeline: scroll()) { .read-progress { display: none; } }
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }
@keyframes rail-x { to { transform: scaleX(1); } }


/* ============================================================ WIDE LAYOUT
   Contenitore largo, hero a tutto schermo, immagini e pannelli al vivo. */
:root { --wrap: 1760px; --gutter: clamp(16px, 4vw, 72px); --bleed: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gutter)); }
html, body { overflow-x: clip; }
.h1 { font-size: clamp(2.4rem, 1rem + 4.6vw, 6.4rem); }
.h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 4rem); }
.lead { font-size: clamp(1.1rem, .95rem + .45vw, 1.45rem); }
.section { padding-block: clamp(72px, 10vw, 180px); }

/* hero: testo a sinistra, mosaico al vivo fino al bordo destro e a tutta altezza */
@media (min-width: 960px) {
  .hero { min-height: calc(100dvh - var(--header-h)); padding: 0; display: flex; align-items: stretch; }
  .hero > .wrap { max-width: none; padding-right: 0; padding-left: var(--bleed); }
  .hero__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 96px); align-items: stretch; }
  .hero__copy { align-content: center; padding-block: 48px; }
  .hero__copy .lead { max-width: 40ch; }
  .mosaic { max-width: none; aspect-ratio: auto; height: 100%; min-height: calc(100dvh - var(--header-h)); justify-self: stretch; }
}
@media (min-width: 960px) and (max-height: 560px) { .mosaic { min-height: 520px; } }

/* pagine interne: immagine al vivo a destra */
@media (min-width: 960px) {
  .page-hero { padding-top: clamp(40px, 6vw, 96px); }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .page-hero__visual { margin-right: calc(-1 * var(--bleed)); }
  .page-hero__visual img { width: 100%; }
}

/* statistiche e numeri piu grandi */
.stat__value { font-size: clamp(2.4rem, 1.2rem + 3.4vw, 5.2rem); }
.stat__label { font-size: clamp(.95rem, .85rem + .25vw, 1.1rem); }
@media (min-width: 900px) { .stat { padding-block: clamp(32px, 4vw, 64px); } }

/* sezione TARSU > TARI: caratteri giganti */
@media (min-width: 900px) { .names { font-size: clamp(3rem, 1rem + 7.4vw, 10.5rem); } }

/* bento piu alto */
@media (min-width: 1024px) { .bento { grid-auto-rows: minmax(clamp(230px, 18vw, 340px), auto); gap: 16px; } .bento__cell { padding: clamp(28px, 2.4vw, 44px); } .bento__cell h3 { font-size: clamp(1.25rem, 1rem + .6vw, 1.75rem); } .bento__cell p { font-size: clamp(1rem, .9rem + .2vw, 1.15rem); } }

/* processo */
@media (min-width: 960px) { .process { grid-template-columns: 1fr 1fr; gap: clamp(80px, 8vw, 200px); } .process__item h3 { font-size: clamp(1.8rem, 1rem + 2.2vw, 3.4rem); } .process__item p { font-size: clamp(1rem, .9rem + .3vw, 1.25rem); } .process__item { padding-bottom: clamp(48px, 6vw, 96px); } }

/* pannello "salvo buon fine" al vivo, bordo a bordo */
.bleed { width: 100%; }
.bleed .panel { border-radius: 0; padding-inline: var(--bleed); padding-block: clamp(64px, 9vw, 160px); }
.bleed .panel .h2 { font-size: clamp(2.2rem, 1rem + 4vw, 5.6rem); max-width: 16ch; }
.bleed .panel p { font-size: clamp(1rem, .9rem + .3vw, 1.25rem); }
@media (min-width: 900px) {
  .bleed .panel { padding-top: clamp(220px, 20vw, 340px); grid-template-columns: 1.3fr .9fr; gap: clamp(40px, 6vw, 120px); }
  .bleed .panel__tiles { grid-template-columns: repeat(3, clamp(88px, 8vw, 150px)); grid-auto-rows: clamp(88px, 8vw, 150px); }
}
@media (max-width: 899px) { .bleed .panel__tiles { margin: calc(-1 * clamp(64px, 9vw, 160px)) 0 0 calc(-1 * var(--bleed)); } }

/* split con immagine al vivo */
@media (min-width: 900px) {
  .split--bleed { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .split--bleed figure { margin-right: calc(-1 * var(--bleed)); }
  .split--bleed figure img { width: 100%; }
}

/* journal: piu colonne su schermi larghi */
@media (min-width: 1400px) { .post-grid { grid-template-columns: repeat(4, 1fr); } .feature-posts { grid-template-columns: 1.6fr 1fr; } }
.post-card--big .post-card__title { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.6rem); }

/* articoli: copertina al vivo */
.article-cover { margin-inline: calc(-1 * var(--bleed)); }
.article-cover img { border-radius: 0; max-height: 78vh; width: 100%; }
.article-head .h1 { font-size: clamp(2rem, 1rem + 3.4vw, 4.6rem); max-width: 22ch; }

/* call to action finale piu ampia */
.cta-band .h2 { font-size: clamp(2.2rem, 1rem + 4vw, 5.6rem); max-width: 14ch; }

/* ============================================================ RISULTATI ULTIMO ANNO
   Infografica: numeri chiave + tessere (una per pratica), colori del marchio. */

.results__grid { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
@media (min-width: 1024px) { .results__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.results__intro { display: grid; gap: clamp(28px, 3vw, 44px); }
.kpi { display: grid; gap: 8px; align-content: start; }
.kpi__value { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.8rem); font-weight: 620; letter-spacing: -.04em; line-height: 1; }
.kpi__value small { font-size: .42em; font-weight: 560; letter-spacing: -.01em; margin-left: .2em; color: var(--ink-2); }
.kpi--hero .kpi__value { font-size: clamp(3.6rem, 1.6rem + 7vw, 9.5rem); }
.kpi__label { color: var(--ink-2); font-size: clamp(.98rem, .9rem + .25vw, 1.15rem); }

/* bolle: pratiche accolte che compaiono e scompaiono */
.bubbles { position: relative; }
.bubbles__stage { position: relative; height: clamp(420px, 42vw, 620px); }
.bubble { --s: .5; --d: calc(150px + var(--s) * 110px); position: absolute; width: var(--d); height: var(--d); border-radius: 999px; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 18px; text-align: center; line-height: 1.2; box-shadow: var(--shadow); }
.bubble__comune { font-weight: 640; font-size: clamp(.92rem, .82rem + .3vw, 1.08rem); letter-spacing: -.01em; max-width: 13ch; overflow-wrap: anywhere; }
.bubble__esito { font-size: .74rem; font-weight: 560; letter-spacing: .01em; opacity: .85; }
.bubble__valore { font-weight: 620; font-size: clamp(.86rem, .78rem + .25vw, 1rem); font-variant-numeric: tabular-nums; }
.bubble--brand { background: var(--brand-panel); color: var(--on-brand); }
.bubble--green { background: var(--accent); color: #0f2a10; }
.bubble--light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.bubble--light .bubble__esito { color: var(--accent-ink); opacity: 1; }
/* posizioni fisse per le bolle statiche (no JS / movimento ridotto) */
.bubble.is-static:nth-child(1) { left: 4%; top: 6%; }
.bubble.is-static:nth-child(2) { right: 4%; top: 2%; }
.bubble.is-static:nth-child(3) { left: 30%; top: 40%; }
.bubble.is-static:nth-child(4) { left: 2%; bottom: 2%; }
.bubble.is-static:nth-child(5) { right: 2%; bottom: 6%; }
/* bolle animate (gestite da site.js) */
.bubble.is-live { left: 0; top: 0; transform: translate(var(--x), var(--y)) scale(0); opacity: 0; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1), opacity .5s var(--ease); }
.bubble.is-live.is-in { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
.bubble.is-live.is-out { transform: translate(var(--x), calc(var(--y) - 24px)) scale(.85); opacity: 0; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.bubble.is-live > * { animation: bubble-float 6s ease-in-out infinite alternate; }
@keyframes bubble-float { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@media (max-width: 640px) {
  .bubbles__stage { height: 440px; }
  .bubble { --d: calc(128px + var(--s) * 60px); padding: 12px; }
  .bubble.is-static:nth-child(n+4) { display: none; }
  .bubble.is-static:nth-child(3) { left: 20%; top: auto; bottom: 4%; }
}


/* ---------- menu: gruppo a tendina "Servizi" */
.nav__group { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 11px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: .94rem; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav__toggle:hover, .nav__toggle[aria-expanded="true"], .nav__toggle.is-current { color: var(--ink); background: var(--surface-2); }
.nav__caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav .nav__sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; z-index: 45; }
.nav .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .nav__sub a { border-radius: 8px; padding: 10px 12px; }
.nav__group:hover .nav__sub, .nav__toggle[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__group { border-bottom: 1px solid var(--line); padding: 16px 0 8px; }
.mobile-menu__label { display: block; font-size: .85rem; font-weight: 560; color: var(--ink-3); letter-spacing: .02em; }
.mobile-menu .mobile-menu__group ul { padding-left: 4px; }
.mobile-menu .mobile-menu__group li a { font-size: 1.15rem; padding: 12px 0; border-bottom: 0; }


/* ---------- home: news in formato compatto (secondarie) */
.news-compact { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.news-compact__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 24px; }
.news-compact__title { font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); letter-spacing: -.015em; }
.news-compact__list { display: grid; gap: 20px 32px; }
@media (min-width: 900px) { .news-compact__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-compact .post-card--row { grid-template-columns: 96px 1fr; gap: 14px; }
.news-compact .post-card--row .post-card__media { aspect-ratio: 1; }
.news-compact .post-card__title { font-size: .98rem; line-height: 1.35; font-weight: 560; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-compact .post-card__meta { font-size: .8rem; }
.news-compact .post-card .stack > * + * { margin-top: 6px; }


/* ============================================================ HERO: PUBBLICITÀ OSSERVATORIO TARI
   Identità del sotto-marchio (osservatoriotari.it): verde petrolio, oro, grigio salvia. */
.oss-ad { --oss-bg: #1d2b30; --oss-gold: #e0a126; --oss-muted: #a3b3b5; --oss-light: #e9ede8; position: relative; overflow: hidden; color: var(--oss-light); background-color: var(--oss-bg); background-image: radial-gradient(rgb(255 255 255 / .06) 1px, transparent 1.2px); background-size: 14px 14px; border-radius: var(--r); }
.oss-ad__in { position: relative; height: 100%; display: grid; align-content: space-between; gap: clamp(24px, 3vw, 40px); padding: clamp(28px, 4vw, 64px); }
.oss-ad__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.oss-ad__brand { display: flex; align-items: center; gap: 12px; line-height: 1.15; }
.oss-ad__brand strong { display: block; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.oss-ad__brand small { display: block; font-size: .82rem; color: var(--oss-muted); }
.oss-ad__mark { display: inline-flex; gap: 3px; }
.oss-ad__mark i { width: 18px; height: 26px; border-radius: 4px; background: var(--oss-muted); }
.oss-ad__mark i + i { width: 12px; background: repeating-linear-gradient(135deg, var(--oss-gold) 0 3px, #b98318 3px 5px); }
.oss-ad__title { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.8rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; max-width: 11ch; color: var(--oss-light); }
.oss-ad__title span { color: var(--oss-muted); }
.oss-ad__lead { color: var(--oss-muted); font-size: clamp(1rem, .92rem + .3vw, 1.2rem); max-width: 44ch; }
.oss-ad__compare { margin: 0; display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); }
.oss-ad__compare figcaption { font-size: .9rem; color: var(--oss-muted); }
.oss-bar { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; font-size: .92rem; }
.oss-bar__label { color: var(--oss-light); font-weight: 560; }
.oss-bar__track { height: 14px; border-radius: 4px; overflow: hidden; }
.oss-bar__fill { display: block; height: 100%; width: var(--w); background: var(--oss-muted); border-radius: 0 4px 4px 0; transform-origin: left; }
.oss-bar--hi .oss-bar__fill { background: var(--oss-gold); }
.oss-bar__value { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--oss-light); white-space: nowrap; }
.oss-ad__delta { font-size: 1rem; color: var(--oss-light); }
.oss-ad__delta strong { color: var(--oss-gold); }
@media (prefers-reduced-motion: no-preference) {
  .js .oss-ad__compare .oss-bar__fill { transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
  .js .oss-ad__compare .oss-bar--hi .oss-bar__fill { transition-delay: .55s; }
  .js .oss-ad__compare.is-visible .oss-bar__fill { transform: none; }
}
.oss-ad__cta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--oss-gold); color: var(--oss-bg); font-weight: 700; text-decoration: none; transition: background-color .25s var(--ease), transform .2s var(--ease); }
.oss-ad__cta:hover { background: #ecb441; }
.oss-ad__cta:active { transform: translateY(1px); }
.oss-ad__cta .icon { transition: transform .3s var(--ease); }
.oss-ad__cta:hover .icon { transform: translate(2px, -2px); }
.oss-ad :focus-visible { outline-color: var(--oss-gold); }
@media (min-width: 960px) {
  .hero .oss-ad { border-radius: 0; min-height: calc(100dvh - var(--header-h)); }
  .hero .oss-ad__in { padding-right: var(--bleed); }
}
@media (max-width: 959px) { .hero .oss-ad { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; } }
@media (prefers-reduced-motion: no-preference) { .hero .oss-ad { animation: fade 1.2s var(--ease) .15s both; } }

/* ---------- icone più grandi (competenze in home, servizi, elenchi) */
.bento__cell .icon { width: clamp(52px, 4.4vw, 76px); height: clamp(52px, 4.4vw, 76px); }
.features li { grid-template-columns: 52px 1fr; }
.features .icon { width: 36px; height: 36px; margin-top: 0; }

/* foto a tutta cella nella sezione "I rifiuti sostenibili" */
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .split--bleed .photo-frame img { aspect-ratio: 5 / 4; } }

/* hero pagine interne con foto piena (immagini con licenza libera) */
.page-hero__visual.is-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 40%; }
/* immagine scontornata su sfondo trasparente (es. sede in Contatti): intera, senza ritaglio né fondo */
.page-hero__visual.is-cutout { margin-right: 0; display: grid; place-items: center; }
.page-hero__visual.is-cutout img { width: 100%; max-width: 560px; height: auto; max-height: 72vh; object-fit: contain; border-radius: 0; box-shadow: none; background: none; }
@media (min-width: 960px) { .page-hero__visual.is-photo img { aspect-ratio: 4 / 3; max-height: 70vh; } }


/* ---------- Chi siamo: numeri del team in composizione sovrapposta */
.tstats { position: relative; display: grid; padding-bottom: clamp(8px, 2vw, 24px); }
.tstat { position: relative; border-radius: var(--r); padding: clamp(28px, 3.2vw, 48px); display: grid; gap: 10px; align-content: start; }
.tstat__num { font-size: clamp(4.2rem, 2rem + 6vw, 8.5rem); font-weight: 680; letter-spacing: -.055em; line-height: .9; }
.tstat__label { max-width: 26ch; font-size: clamp(1rem, .92rem + .3vw, 1.2rem); line-height: 1.4; }
.tstat--team { width: 86%; background: var(--brand-panel); color: var(--on-brand); padding-bottom: clamp(110px, 10vw, 160px); }
.tstat--team .tstat__label { color: var(--on-brand-2); }
.tstat--clients { width: 64%; justify-self: end; margin-top: clamp(-120px, -9vw, -80px); background: var(--accent); color: #0f2a10; box-shadow: 0 30px 60px -24px rgb(40 30 120 / .45); z-index: 1; }
.tstat--clients .tstat__label { color: #173d18; }
.tstat__since { position: absolute; top: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #173d18; }
@media (max-width: 560px) { .tstat--team, .tstat--clients { width: 100%; } .tstat--clients { margin-top: -48px; width: 88%; } }

@media (prefers-reduced-motion: no-preference) {
  .js   .js .tstat--team.is-visible }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .tstat--clients { animation: tstat-depth linear both; animation-timeline: view(); animation-range: cover 10% cover 90%; }
  }
}
@keyframes tstat-depth { from { translate: 0 60px; } to { translate: 0 -40px; } }


/* ---------- Chi siamo: gruppo di lavoro, nomi in tipografia grande + pannello presentazione */
.crew { display: grid; gap: 32px; }
.crew__names { list-style: none; margin: 0; padding: 0; }
.crew__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.crew__name { all: unset; display: block; cursor: default; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 640; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.crew__title { display: block; font-size: .8rem; font-weight: 560; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 4px; }
.crew__bio { margin-top: 10px; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.crew__panel { display: none; }
@media (min-width: 1000px) {
  .js .crew { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
  .js .crew__names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 22px 0; }
  .js .crew__item { padding: 0; border: 0; display: inline-flex; align-items: baseline; }
  .js .crew__item:not(:last-child)::after { content: "/"; margin: 0 .35em; font-size: clamp(1.9rem, .7rem + 2.1vw, 3.3rem); font-weight: 300; color: var(--accent); line-height: 1.05; }
  .js .crew__name { cursor: pointer; position: relative; font-size: clamp(1.9rem, .7rem + 2.1vw, 3.3rem); letter-spacing: -.045em; line-height: 1.05; color: var(--ink-3); transition: color .35s var(--ease); }
  .js .crew__title { position: absolute; top: -.9em; left: .1em; font-size: .78rem; margin: 0; opacity: 0; transition: opacity .3s var(--ease); white-space: nowrap; }
  .js .crew__name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .08em; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
  .js .crew__name[aria-pressed="true"] { color: var(--ink); }
  .js .crew__name[aria-pressed="true"] .crew__title { opacity: 1; }
  .js .crew__name[aria-pressed="true"]::after { transform: scaleX(1); }
  .js .crew__name:hover { color: var(--ink); }
  .js .crew__name:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 4px; }
  .js .crew__bio { display: none; }
  .js .crew__panel { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 32px); padding: clamp(28px, 3vw, 44px); background: var(--brand-panel); color: var(--on-brand); border-radius: var(--r); min-height: 280px; align-content: start; }
  .js .crew__panel::before { content: ""; width: 48px; height: 4px; background: var(--accent); margin-bottom: 8px; }
  .crew__panel-title { font-size: .85rem; font-weight: 560; letter-spacing: .04em; color: var(--on-brand-2); min-height: 1em; }
  .crew__panel-name { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
  .crew__panel-bio { color: var(--on-brand-2); font-size: 1.05rem; line-height: 1.65; }
  .crew__panel.is-swapping > * { opacity: 0; transform: translateY(8px); }
  .crew__panel > * { transition: opacity .3s var(--ease), transform .35s var(--ease); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .crew__item { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 60ms); }
  .js .crew.is-visible .crew__item { opacity: 1; transform: none; }
}


/* ---------- Chi siamo: mappa delle società del gruppo */
.gmap { position: relative; display: grid; gap: 16px; margin-top: 8px; }
.gmap__lines { display: none; }
.gmap__hub { display: grid; gap: 4px; justify-items: start; padding: clamp(24px, 3vw, 40px); background: var(--brand-panel); color: var(--on-brand); border-radius: var(--r); }
.gmap__hub-kicker { font-size: .85rem; font-weight: 560; letter-spacing: .04em; color: var(--on-brand-2); }
.gmap__hub-num { font-size: clamp(4rem, 2rem + 5vw, 7rem); font-weight: 680; letter-spacing: -.05em; line-height: .9; }
.gmap__hub-label { font-size: 1.15rem; font-weight: 560; }
.gmap__hub-place { margin-top: 10px; font-size: .85rem; color: var(--on-brand-2); }
.gnode { position: relative; display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; transition: transform .45s var(--ease), border-color .3s var(--ease), box-shadow .45s var(--ease); z-index: 1; }
.gnode:hover, .gnode:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.gnode__sector { justify-self: start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.gnode__logo { display: block; height: 46px; }
.gnode__logo img { height: 100%; width: auto; max-width: 200px; object-fit: contain; object-position: left center; }
.gnode__name { display: inline-flex; align-items: center; gap: 6px; font-size: 1.15rem; font-weight: 620; letter-spacing: -.015em; }
.gnode__name .icon { width: 15px; height: 15px; color: var(--ink-3); transition: transform .3s var(--ease); }
.gnode:hover .gnode__name .icon { transform: translate(2px, -2px); color: var(--accent-ink); }
.gnode__desc { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.gnode__badge { justify-self: start; margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: var(--brand-panel); color: var(--on-brand); font-size: .78rem; font-weight: 600; }

/* mobile: sequenza verticale collegata da una linea */
@media (max-width: 899px) {
  .gmap { padding-left: 22px; }
  .gmap::before { content: ""; position: absolute; left: 6px; top: 24px; bottom: 24px; width: 2px; background: var(--line-strong); }
  .gnode::before, .gmap__hub::before { content: ""; position: absolute; left: -22px; top: 30px; width: 14px; height: 14px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
  .gmap__hub { position: relative; }
}

/* desktop: hub al centro, società agli angoli, linee disegnate in SVG */
@media (min-width: 900px) {
  .gmap { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(48px, 7vw, 140px); row-gap: clamp(40px, 5vw, 80px); align-items: center; }
  .gmap__hub { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-items: center; text-align: center; aspect-ratio: 1; border-radius: 999px; align-content: center; z-index: 1; box-shadow: 0 0 0 14px color-mix(in srgb, var(--brand-panel) 10%, transparent), 0 0 0 30px color-mix(in srgb, var(--brand-panel) 5%, transparent); }
  .gnode--0 { grid-column: 1; grid-row: 1; }
  .gnode--1 { grid-column: 3; grid-row: 1; }
  .gnode--2 { grid-column: 1; grid-row: 2; }
  .gnode--3 { grid-column: 3; grid-row: 2; }
  .gmap__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
  .gmap__lines path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; transition: stroke .3s var(--ease), stroke-width .3s var(--ease); }
  .gmap__lines path.is-hot { stroke: var(--accent); stroke-width: 3; }
  .gmap__lines circle { fill: var(--accent); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .gmap__lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease), stroke .3s var(--ease), stroke-width .3s var(--ease); }
  .js .gmap__lines path:nth-of-type(2) { transition-delay: .15s, 0s, 0s; }
  .js .gmap__lines path:nth-of-type(3) { transition-delay: .3s, 0s, 0s; }
  .js .gmap__lines path:nth-of-type(4) { transition-delay: .45s, 0s, 0s; }
  .js .gmap.is-visible .gmap__lines path { stroke-dashoffset: 0; }
  .js .gmap__hub { transform: scale(.85); opacity: 0; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1), opacity .6s var(--ease); }
  .js .gmap.is-visible .gmap__hub { transform: none; opacity: 1; }
  .js .gnode { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease) .5s, translate .7s var(--ease) .5s, transform .45s var(--ease), border-color .3s var(--ease), box-shadow .45s var(--ease); }
  .js .gmap.is-visible .gnode { opacity: 1; translate: 0 0; }
}


/* ============================================================ CONSULENZA: fascia servizi rapidi + capitoli a carte impilate */
.quick-band { background: var(--brand-panel); color: var(--on-brand); padding-block: clamp(48px, 6vw, 88px); }
.quick-band__in { display: grid; gap: 28px; }
.quick-band__title { font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem); font-weight: 560; color: var(--on-brand-2); letter-spacing: -.01em; }
.quick-band__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.quick-band__list li { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid rgb(255 255 255 / .14); font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.quick-band__list .icon { width: clamp(40px, 3.2vw, 56px); height: clamp(40px, 3.2vw, 56px); color: var(--accent); flex: none; }
@media (min-width: 1000px) {
  .quick-band__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-band__list li { flex-direction: column; align-items: flex-start; gap: 22px; padding: 8px 28px 8px 0; border-top: 0; border-left: 1px solid rgb(255 255 255 / .14); padding-left: 28px; }
  .quick-band__list li:first-child { border-left: 0; padding-left: 0; }
}

.svc-stack-section { padding-block: clamp(64px, 8vw, 120px); }
.svc-stack { display: grid; gap: 28px; }
.svc-card { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) * 2); overflow: hidden; box-shadow: 0 -10px 40px -20px rgb(40 30 120 / .25); }
.svc-card__media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.04); }
.svc-card__body { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 3vw, 48px); }
.svc-card__head { display: grid; gap: 10px; }
.svc-card__head::before { content: ""; width: 48px; height: 4px; background: var(--accent); margin-bottom: 6px; }
.svc-card__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.8rem); letter-spacing: -.035em; line-height: 1.05; }
.svc-card__claim { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); font-weight: 560; color: var(--ink); max-width: 60ch; }
.svc-card__intro { color: var(--ink-2); font-size: .98rem; max-width: 70ch; }
.svc-card__list-title { font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.svc-card__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 28px; }
.svc-card__items li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.svc-card__items .icon { width: 30px; height: 30px; color: var(--accent-ink); }
.svc-card__items h4 { font-size: 1rem; font-weight: 620; letter-spacing: -.01em; line-height: 1.3; }
.svc-card__items p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; margin-top: 2px; }
@media (min-width: 760px) { .svc-card__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .svc-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
  .svc-card__media { aspect-ratio: auto; height: 100%; }
  .svc-card:nth-child(even) { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); }
  .svc-card:nth-child(even) .svc-card__media { order: 2; }
}
/* carte che si impilano allo scroll: solo su schermi abbastanza alti da contenerle */
@media (min-width: 1100px) and (min-height: 860px) {
  .svc-stack { gap: 40px; }
  .svc-card { position: sticky; top: calc(var(--header-h) + 20px + var(--n) * 16px); max-height: calc(100dvh - var(--header-h) - 40px - var(--n) * 16px); }
  .svc-card__body { overflow: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .quick-band__list li { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 90ms); }
  .js .quick-band__list li.is-visible { opacity: 1; transform: none; }
}

/* ============================================================ RENTRI: data gigante + scalinata + carosello */
.rchange { padding-block: clamp(56px, 8vw, 120px); }
.rchange__grid { display: grid; gap: 48px; }
.rchange__date { display: grid; gap: 10px; align-content: start; }
.rchange__title { font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); }
.rchange__kicker { font-size: .95rem; color: var(--ink-3); margin-top: 18px; }
.rchange__day { display: flex; align-items: flex-end; gap: 14px; line-height: .8; color: var(--brand); }
.rchange__day span { font-size: clamp(7rem, 4rem + 10vw, 15rem); font-weight: 700; letter-spacing: -.07em; }
.rchange__day small { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.4rem); font-weight: 640; letter-spacing: -.03em; line-height: 1; padding-bottom: .35em; color: var(--ink); }
.rchange__lead { color: var(--ink-2); max-width: 42ch; margin-top: 14px; }
.rsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; position: relative; }
.rsteps__item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: clamp(22px, 2.4vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) * 2); box-shadow: var(--shadow); }
.rsteps__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 999px; background: var(--brand-panel); color: var(--accent); }
.rsteps__icon .icon { width: 30px; height: 30px; }
.rsteps__item:nth-child(2) .rsteps__icon { background: var(--accent); color: #0f2a10; }
.rsteps__item h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.55rem); letter-spacing: -.02em; line-height: 1.2; }
.rsteps__item p { color: var(--ink-2); margin-top: 6px; font-size: 1rem; }
@media (min-width: 1000px) {
  .rchange__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 120px); }
  .rchange__date { position: sticky; top: calc(var(--header-h) + 40px); }
  .rsteps { gap: 28px; padding-top: 40px; }
  .rsteps__item { margin-left: calc(var(--n) * 12%); }
  .rsteps__item:not(:last-child)::after { content: ""; position: absolute; left: calc(32px + clamp(22px, 2.4vw, 34px)); top: 100%; width: 12%; height: 28px; border-left: 2px dashed var(--line-strong); border-bottom: 2px dashed var(--line-strong); border-bottom-left-radius: 14px; }
}

.rplatform { padding-block: clamp(56px, 7vw, 104px); background: var(--surface-2); overflow: hidden; }
.rplatform__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.rtrack__nav { display: flex; gap: 8px; }
.rtrack__nav .icon-btn { width: 52px; height: 52px; background: var(--surface); }
.rtrack__nav .icon-btn:disabled { opacity: .35; cursor: default; }
.rtrack { list-style: none; margin: 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--bleed); padding: 4px var(--bleed) 24px; scrollbar-width: none; outline-offset: -4px; }
.rtrack::-webkit-scrollbar { display: none; }
.rtrack__card { flex: none; width: clamp(270px, 26vw, 360px); scroll-snap-align: start; display: grid; align-content: start; gap: 14px; padding: clamp(24px, 2.4vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) * 2); transition: transform .45s var(--ease), border-color .3s var(--ease), box-shadow .45s var(--ease); }
.rtrack__card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.rtrack__card .icon { width: 44px; height: 44px; color: var(--accent-ink); margin-bottom: 10px; }
.rtrack__card h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; }
.rtrack__card p { color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
.rtrack__card:nth-child(4n+1) { background: var(--brand-panel); border-color: transparent; color: var(--on-brand); }
.rtrack__card:nth-child(4n+1) p { color: var(--on-brand-2); }
.rtrack__card:nth-child(4n+1) .icon { color: var(--accent); }
.rtrack__progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.rtrack__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, .1)); transition: transform .3s var(--ease); }

/* ============================================================ FIXCITY: verbi giganti + foto al vivo con schede sovrapposte */
.fverbs { padding-block: clamp(56px, 8vw, 120px); }
.fverbs__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.fverbs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.fverbs__item { display: grid; gap: 10px; align-content: start; position: relative; }
.fverbs__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.fverbs__icon .icon { width: 28px; height: 28px; }
.fverbs__word { font-size: clamp(2.6rem, 1rem + 5vw, 6rem); font-weight: 700; letter-spacing: -.055em; line-height: .95; color: var(--line-strong); transition: color .5s var(--ease); }
.fverbs__item p { color: var(--ink-2); max-width: 34ch; }
.fverbs__item.is-active .fverbs__word { color: var(--ink); }
.fverbs__item.is-active .fverbs__icon { background: var(--accent); color: #0f2a10; transform: scale(1.08); }
.fverbs__link { margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 1000px) {
  .fverbs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
  .fverbs__word { font-size: clamp(2.2rem, .5rem + 3.1vw, 4.4rem); }
  .fverbs__item:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 76px; right: 12px; height: 2px; background: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%) 0 0 / 12px 2px repeat-x; }
}
@media (prefers-reduced-motion: reduce) { .fverbs__item .fverbs__word { color: var(--ink); } }

.fwhy { position: relative; padding-bottom: clamp(56px, 8vw, 120px); }
.fwhy__media { margin: 0; height: clamp(320px, 52vw, 720px); overflow: hidden; }
.fwhy__media img { width: 100%; height: 100%; object-fit: cover; }
.fwhy__in { position: relative; display: grid; gap: 24px; margin-top: clamp(-260px, -16vw, -120px); }
.fwhy__head { justify-self: start; display: grid; gap: 12px; max-width: 620px; padding: clamp(24px, 3vw, 44px); background: var(--bg); border-radius: calc(var(--r) * 2) calc(var(--r) * 2) 0 0; }
.fwhy__cards { display: grid; gap: 16px; }
.fwhy__card { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 2.6vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) * 2); box-shadow: var(--shadow); }
.fwhy__card .icon { width: 44px; height: 44px; color: var(--accent-ink); }
.fwhy__card h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
.fwhy__card p { color: var(--ink-2); }
.fwhy__card:nth-child(2) { background: var(--brand-panel); color: var(--on-brand); border-color: transparent; }
.fwhy__card:nth-child(2) p { color: var(--on-brand-2); }
.fwhy__card:nth-child(2) .icon { color: var(--accent); }
@media (min-width: 1000px) {
  .fwhy__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .fwhy__card:nth-child(2) { margin-top: 48px; }
  .fwhy__card:nth-child(3) { margin-top: 96px; }
}

/* ============================================================ CONTATTI: canali giganti + mappa sede + newsletter in fascia */
.channels { padding-block: clamp(48px, 7vw, 104px); }
.channels__title { font-size: clamp(1.1rem, 1rem + .4vw, 1.4rem); font-weight: 600; color: var(--ink-2); margin-bottom: 20px; }
.channels__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.channel { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.channel__link { position: relative; flex: 1; min-width: 0; display: grid; gap: 6px; padding: clamp(20px, 2.6vw, 34px) 0; text-decoration: none; color: var(--ink); isolation: isolate; }
.channel__link::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--brand-panel); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.channel__label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 560; color: var(--ink-3); transition: color .3s var(--ease); }
.channel__label .icon { width: 18px; height: 18px; }
.channel__value { font-size: clamp(1.5rem, .6rem + 4vw, 4.4rem); font-weight: 660; letter-spacing: -.045em; line-height: 1.05; overflow-wrap: anywhere; transition: color .3s var(--ease), transform .55s var(--ease); }
.channel__arrow { position: absolute; right: 0; top: 50%; width: clamp(24px, 2.4vw, 40px); height: clamp(24px, 2.4vw, 40px); translate: 0 -50%; color: var(--ink-3); transition: color .3s var(--ease), transform .45s var(--ease); }
.channel:has(.channel__copy) .channel__arrow { display: none; }
.channel__link:hover::before, .channel__link:focus-visible::before { transform: scaleX(1); }
.channel__link:hover .channel__value, .channel__link:focus-visible .channel__value { color: var(--on-brand); transform: translateX(clamp(8px, 1.4vw, 24px)); }
.channel__link:hover .channel__label, .channel__link:focus-visible .channel__label { color: var(--on-brand-2); }
.channel__link:hover .channel__arrow { color: var(--accent); transform: translate(4px, -4px); }
.channel__copy { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin-left: 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 560; cursor: pointer; transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease); }
.channel__copy .icon { width: 18px; height: 18px; }
.channel__copy:hover { border-color: var(--ink-3); color: var(--ink); }
.channel__copy.is-copied { background: var(--accent); border-color: var(--accent); color: #0f2a10; }
@media (max-width: 640px) { .channel { flex-wrap: wrap; } .channel__copy { margin: 0 0 16px; } .channel__copy span { display: none; } .channel { padding-right: 0; } }

.where { padding-block: clamp(56px, 7vw, 104px); background: var(--surface-2); }
.where__grid { display: grid; gap: 40px; align-items: center; }
.where__text { display: grid; gap: 22px; align-content: start; }
.where__address { font-size: clamp(1.6rem, 1rem + 2.4vw, 3.2rem); font-weight: 640; letter-spacing: -.035em; line-height: 1.1; }
.where__legal { color: var(--ink-3); font-size: .92rem; max-width: 52ch; }
.where__figure { position: relative; margin: 0; justify-self: center; width: min(100%, 460px); }
.where__map { display: block; width: 100%; height: auto; }
.where__land { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.where__dot { fill: var(--brand); stroke: var(--surface); stroke-width: 4; }
.where__pulse { fill: var(--accent); transform-box: fill-box; transform-origin: center; opacity: .55; }
@media (prefers-reduced-motion: no-preference) { .where__pulse { animation: where-pulse 2.4s ease-out infinite; } }
@keyframes where-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(4.5); opacity: 0; } }
.where__pin { position: absolute; transform: translate(14px, -130%); padding: 6px 12px; border-radius: 999px; background: var(--brand-panel); color: var(--on-brand); font-size: .82rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); }
@media (min-width: 960px) { .where__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(48px, 6vw, 120px); } }

.nlband { background: var(--brand-panel); color: var(--on-brand); padding-block: clamp(40px, 5vw, 72px); }
.nlband__in { display: grid; gap: 24px; align-items: center; }
.nlband__title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); letter-spacing: -.03em; }
.nlband__text p { color: var(--on-brand-2); margin-top: 8px; }
.nlband__form { gap: 12px; }
.nlband__row { display: grid; gap: 12px; align-items: end; }
.nlband .field label { color: var(--on-brand); }
.nlband .check { color: var(--on-brand-2); }
.nlband .check a { color: var(--on-brand); }
.nlband .field .error { color: #ffb4bb; }
@media (min-width: 640px) { .nlband__row { grid-template-columns: minmax(0, 1fr) auto; } .nlband__row .btn { min-height: 50px; } .nlband__row .field .error, .nlband__row .help { position: absolute; } .nlband__row .field { position: relative; } }
@media (min-width: 960px) { .nlband__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 120px); } }

/* ============================================================ PREVENTIVO: binario di avanzamento + schede + aree di caricamento */
.qform { padding-block: clamp(40px, 6vw, 96px); }
.qform__grid { display: grid; gap: 36px; }
.qrail { display: grid; gap: 22px; align-content: start; }
.qrail__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); letter-spacing: -.03em; }
.qrail__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.qrail__steps::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 26px; width: 2px; background: var(--line); }
.qrail__steps a { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 10px 12px 10px 0; text-decoration: none; color: var(--ink-2); border-radius: 12px; transition: color .3s var(--ease); }
.qrail__steps strong { display: block; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.qrail__steps small { display: block; font-size: .88rem; color: var(--ink-3); }
.qrail__dot { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: var(--bg); border: 2px solid var(--line-strong); color: transparent; transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); z-index: 1; }
.qrail__dot .icon { width: 20px; height: 20px; }
.qrail__steps a.is-active .qrail__dot { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); transform: scale(1.05); }
.qrail__steps a.is-done .qrail__dot { background: var(--accent); border-color: var(--accent); color: #0f2a10; }
.qrail__note { padding: 20px 22px; border-radius: calc(var(--r) * 2); background: var(--brand-panel); color: var(--on-brand-2); font-size: .95rem; }
.qrail__note strong { color: var(--on-brand); }
.qform__form { gap: 20px; }
.qcard { position: relative; padding: clamp(24px, 3vw, 44px) !important; background: var(--surface); border: 1px solid var(--line) !important; border-radius: calc(var(--r) * 2); box-shadow: var(--shadow); transition: border-color .35s var(--ease); }
.qcard:focus-within { border-color: var(--brand) !important; }
.qcard legend { float: left; width: 100%; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); letter-spacing: -.02em; margin-bottom: 8px; }
.qcard legend + * { clear: both; }
.drop__zone { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 150px; padding: 20px; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--bg); text-align: center; color: var(--ink-2); transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.drop__zone .icon { width: 34px; height: 34px; color: var(--accent-ink); }
.drop__zone u { text-decoration-color: var(--accent); text-underline-offset: 3px; color: var(--ink); }
.drop__zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.drop__zone:hover, .drop__zone.is-over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--bg)); }
.drop__zone:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.drop.has-file .drop__zone { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.drop__text { font-size: .95rem; overflow-wrap: anywhere; }
.qsend { display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 32px); border-radius: calc(var(--r) * 2); background: var(--surface-2); }
.qsend__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (min-width: 1000px) {
  .qform__grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
  .qrail { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ============================================================ OSSERVATORIO TARI (identità del sotto-marchio) */
.ohero, .ofact--dark, .octa { --oss-bg: #1d2b30; --oss-gold: #e0a126; --oss-muted: #a3b3b5; --oss-light: #e9ede8; }
.ohero { background-color: var(--oss-bg); background-image: radial-gradient(rgb(255 255 255 / .06) 1px, transparent 1.2px); background-size: 14px 14px; color: var(--oss-light); padding-block: clamp(56px, 8vw, 128px); }
.ohero__grid { display: grid; gap: 48px; align-items: center; }
.ohero__copy { display: grid; gap: 24px; justify-items: start; }
.ohero__title { font-size: clamp(2.8rem, 1.2rem + 5.4vw, 7rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; color: var(--oss-light); max-width: 12ch; }
.ohero__title > span:first-child { color: var(--oss-muted); }
.ohero__lead { color: var(--oss-muted); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); max-width: 50ch; }
.ohero__stat { display: grid; gap: clamp(28px, 2.8vw, 44px); justify-items: start; }
.ohero__big { font-size: clamp(7rem, 4rem + 11vw, 17rem); font-weight: 800; letter-spacing: -.07em; line-height: 1; color: var(--oss-gold); }
.ohero__cap { font-size: clamp(1rem, .9rem + .4vw, 1.3rem); color: var(--oss-light); font-weight: 560; }
@media (min-width: 1000px) { .ohero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); } }

.ofacts { padding-block: clamp(64px, 8vw, 128px); }
.ofacts__lead { margin: 8px 0 clamp(32px, 4vw, 56px); }
.obento { display: grid; gap: 16px; }
.ofact { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 2.8vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) * 2); }
.ofact h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.8rem); letter-spacing: -.025em; line-height: 1.15; }
.ofact__sub { color: var(--ink-2); font-size: .98rem; }
.ofact__note { color: var(--ink-2); font-size: .98rem; margin-top: 4px; }
.ofact__note strong { color: var(--ink); }
.ofact--dark { background: var(--oss-bg); border-color: transparent; color: var(--oss-light); }
.ofact--dark .ofact__sub, .ofact--dark .ofact__note { color: var(--oss-muted); }
.ofact__big { font-size: clamp(5rem, 3rem + 6vw, 10rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: #e0a126; margin-bottom: 8px; }
.ofact__big small { font-size: .3em; letter-spacing: -.01em; margin-left: .15em; color: var(--oss-light, #e9ede8); }
.ofact--gold { background: #e0a126; border-color: transparent; color: #1d2b30; }
.ofact--gold .ofact__sub { color: #3a3a24; }
.obar { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; margin-top: 4px; }
.obar__label { font-weight: 600; }
.obar__track { height: 22px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.obar__fill { display: block; height: 100%; width: var(--w); background: #a3b3b5; border-radius: 0 6px 6px 0; transform-origin: left; }
.obar--hi .obar__fill { background: #e0a126; }
.obar__value { font-weight: 640; font-variant-numeric: tabular-nums; white-space: nowrap; }
.osplit { display: grid; grid-template-columns: 48fr 52fr; height: 64px; border-radius: 10px; overflow: hidden; margin-top: 6px; font-size: .9rem; font-weight: 600; }
.osplit span { display: grid; place-items: center; }
.osplit__fixed { background: var(--surface-2); color: var(--ink-2); }
.osplit__var { background: repeating-linear-gradient(135deg, #e0a126 0 10px, #d29413 10px 20px); color: #1d2b30; }
.ocols { display: flex; align-items: flex-end; gap: 28px; height: 220px; margin-top: 8px; }
.ocol { flex: 1; height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 6px; text-align: center; }
.ocol__bar { align-self: end; height: var(--h); min-height: 10px; background: #a3b3b5; border-radius: 8px 8px 0 0; transform-origin: bottom; }
.ocol--hi .ocol__bar { background: #e0a126; }
.ocol strong { font-size: 1.6rem; letter-spacing: -.03em; }
.ocol span:last-child { font-size: .9rem; color: var(--ink-2); }
.otrend { display: grid; gap: 14px; margin-top: 6px; }
.otrend p { display: flex; align-items: center; gap: 14px; font-size: 1.15rem; }
.otrend strong { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.2rem); letter-spacing: -.04em; line-height: 1; }
.otrend__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; background: #1d2b30; color: #e0a126; }
.otrend__icon--down { background: rgb(29 43 48 / .15); color: #1d2b30; }
.otrend__icon .icon { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .obento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ofact { grid-column: span 2; }
  .ofact--wide { grid-column: span 4; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .ofact .obar__fill { transform: scaleX(0); transition: transform 1.3s var(--ease) .3s; }
  .js .ofact .obar--hi .obar__fill { transition-delay: .55s; }
  .js .ofact.is-visible .obar__fill { transform: none; }
  .js .ofact .ocol__bar { transform: scaleY(0); transition: transform 1.2s var(--ease) .3s; }
  .js .ofact .ocol--hi .ocol__bar { transition-delay: .5s; }
  .js .ofact.is-visible .ocol__bar { transform: none; }
  .js .ofact .osplit__var { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease) .3s; }
  .js .ofact.is-visible .osplit__var { clip-path: inset(0 0 0 0); }
}

.ofinds { padding-block: clamp(56px, 7vw, 104px); background: var(--surface-2); }
.ofinds__list { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.ofind { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border-radius: calc(var(--r) * 2); border-top: 4px solid #e0a126; }
.ofind .icon { width: 40px; height: 40px; color: var(--ink); }
.ofind h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; }
.ofind p { color: var(--ink-2); font-size: .97rem; }
@media (min-width: 760px) { .ofinds__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ofinds__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ofind:nth-child(even) { transform: translateY(32px); } }

.owho { padding-block: clamp(72px, 9vw, 140px) clamp(56px, 7vw, 104px); }
.owho__grid { display: grid; gap: 36px; }
.owho__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.owho__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.owho__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 999px; background: #1d2b30; color: #e0a126; }
.owho__icon .icon { width: 26px; height: 26px; }
.owho__item h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.8rem); letter-spacing: -.025em; }
.owho__item p { color: var(--ink-2); margin-top: 2px; }
@media (min-width: 1000px) { .owho__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 120px); align-items: start; } }

.octa { background: #e0a126; color: #1d2b30; padding-block: clamp(48px, 6vw, 96px) 24px; }
.octa__in { display: grid; gap: 28px; align-items: center; }
.octa__title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: .98; margin: 16px 0 12px; }
.octa__in p { max-width: 56ch; font-size: 1.05rem; }
.octa__in a:not(.octa__btn) { color: #1d2b30; font-weight: 640; }
.octa__btn { justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 28px; border-radius: 999px; background: #1d2b30; color: #e9ede8; font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: transform .2s var(--ease), background-color .25s var(--ease); }
.octa__btn:hover { background: #2a3d44; }
.octa__btn:active { transform: translateY(1px); }
.octa__fine { margin-top: clamp(32px, 4vw, 56px); font-size: .82rem; color: #3a3a24; }
@media (min-width: 1000px) { .octa__in { grid-template-columns: minmax(0, 1.4fr) auto; } .octa__btn { justify-self: end; } }

/* ============================================================ NEWS: indice editoriale */
.nhead { padding-block: clamp(40px, 6vw, 96px) clamp(28px, 4vw, 56px); }
.nhead__in { display: grid; gap: 20px; }
.nhead__title { font-size: clamp(3.6rem, 1.4rem + 9vw, 11rem); font-weight: 760; letter-spacing: -.06em; line-height: .9; }
.nhead__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.nhead__count { font-size: 1.1rem; color: var(--ink-2); }
.nhead__count strong { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); color: var(--ink); letter-spacing: -.03em; margin-right: 6px; }
.nhead__lead { max-width: 56ch; }
@media (min-width: 1000px) { .nhead__in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; column-gap: 64px; } .nhead__title { grid-row: span 2; } .nhead__meta { grid-column: 2; } .nhead__lead { grid-column: 2; } }

.nfeat { padding-bottom: clamp(48px, 6vw, 96px); }
.nfeat__link { display: grid; text-decoration: none; color: inherit; }
.nfeat__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.nfeat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.nfeat__link:hover .nfeat__media img { transform: scale(1.03); }
.nfeat__body { display: grid; gap: 14px; align-content: center; padding: clamp(24px, 3vw, 48px) var(--gutter); }
.nfeat__kicker { font-size: .9rem; color: var(--ink-3); font-weight: 560; }
.nfeat__title { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.6rem); font-weight: 680; letter-spacing: -.04em; line-height: 1.05; }
.nfeat__link:hover .nfeat__title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nfeat__excerpt { color: var(--ink-2); font-size: 1.05rem; max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nfeat__cta { justify-self: start; }
@media (min-width: 1000px) {
  .nfeat__link { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .nfeat__media { aspect-ratio: auto; min-height: 520px; height: 100%; }
  .nfeat__body { padding-inline: clamp(40px, 5vw, 96px) var(--bleed); }
}

.nlist { padding-bottom: clamp(64px, 9vw, 140px); }
.nyear { display: grid; gap: 8px; padding-top: clamp(32px, 4vw, 56px); }
.nyear__label { font-size: clamp(3rem, 1.6rem + 4vw, 6.4rem); font-weight: 760; letter-spacing: -.06em; line-height: .9; color: var(--line-strong); }
@media (min-width: 1000px) {
  .nyear { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
  .nyear__label { position: sticky; top: calc(var(--header-h) + 90px); }
}
.nindex { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nindex li { border-bottom: 1px solid var(--line); }
.nrow { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb title" "thumb meta"; gap: 4px 16px; align-items: center; padding: 18px 0; text-decoration: none; color: inherit; isolation: isolate; }
.nrow__thumb { grid-area: thumb; width: 64px; height: 64px; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.nrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nrow__title { grid-area: title; font-size: clamp(1.05rem, .95rem + .7vw, 1.6rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; transition: transform .45s var(--ease); }
.nrow__date { grid-area: meta; font-size: .85rem; color: var(--ink-3); white-space: nowrap; }
.nrow__date b { font-weight: 640; color: var(--ink-2); }
.nrow__arrow { display: none; }
.nrow::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1; border-radius: 12px; background: var(--surface); opacity: 0; transition: opacity .3s var(--ease); }
.nrow:hover::before, .nrow:focus-visible::before { opacity: 1; }
@media (min-width: 760px) {
  .nrow { grid-template-columns: 90px minmax(0, 1fr) 32px; grid-template-areas: "date title arrow"; gap: 24px; padding: 22px 0; }
  .nrow__thumb { display: none; }
  .nrow__date { grid-area: date; font-size: .9rem; }
  .nrow__date b { display: block; font-size: 1.6rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
  .nrow__arrow { display: block; grid-area: arrow; width: 24px; height: 24px; color: var(--ink-3); transition: transform .35s var(--ease), color .3s var(--ease); }
  .nrow:hover .nrow__title { transform: translateX(10px); }
  .nrow:hover .nrow__arrow { color: var(--accent-ink); transform: translate(3px, -3px); }
}
.npreview { position: fixed; left: 0; top: 0; z-index: 35; width: 200px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; pointer-events: none; opacity: 0; scale: .9; box-shadow: var(--shadow); transition: opacity .25s var(--ease), scale .35s var(--ease); }
.npreview img { width: 100%; height: 100%; object-fit: cover; }
.npreview.is-on { opacity: 1; scale: 1; }
@media (max-width: 999px), (hover: none) { .npreview { display: none; } }

/* ---------- fine articolo: rimando all'elenco news */
.back-news { padding-bottom: clamp(64px, 8vw, 120px); }
.back-news__link { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.back-news__link .icon { width: clamp(36px, 3vw, 52px); height: clamp(36px, 3vw, 52px); flex: none; color: var(--accent-ink); transition: transform .4s var(--ease); }
.back-news__link span { display: grid; gap: 4px; font-size: clamp(1.6rem, 1rem + 2.4vw, 3.4rem); font-weight: 680; letter-spacing: -.04em; line-height: 1.05; }
.back-news__link small { font-size: .9rem; font-weight: 560; letter-spacing: 0; color: var(--ink-3); }
.back-news__link:hover .icon { transform: translateX(-8px); }
.back-news__link:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* ------------------------------------------------------------ banner dei cookie (Google Analytics, site.js) */
.consenso { position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); max-width: 440px; margin-left: auto;
  padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 50px -12px rgb(22 19 43 / .3); opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.consenso.is-visible { opacity: 1; transform: none; }
.consenso__titolo { font-size: 1.05rem; font-weight: 640; letter-spacing: -.01em; padding-right: 28px; }
.consenso__testo { margin-top: 8px; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.consenso__testo a { color: var(--brand); }
.consenso__azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consenso__azioni .btn { justify-content: center; }
.consenso__chiudi { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none;
  color: var(--ink-3); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.consenso__chiudi:hover { background: var(--surface-2); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .consenso { transition: none; } }
.footer-link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.footer-link-btn:hover { text-decoration: underline; }
