/* =====================================================================
   ICO SWISS — design system 2026 «Il mondo ICO»
   Scuro, alpino, sobrio. Un solo foglio condiviso da tutte le pagine
   ridisegnate. Le pagine nuove NON caricano main.css / dark.css.
   ===================================================================== */

:root {
  color-scheme: dark;
  --bg: #060908;
  --bg-1: #0a0f0c;
  --bg-2: #0f1611;
  --bg-3: #151e18;
  --surface: rgba(232, 255, 238, 0.035);
  --surface-2: rgba(232, 255, 238, 0.06);
  --line: rgba(214, 245, 222, 0.09);
  --line-2: rgba(214, 245, 222, 0.17);
  --text: #edf2ee;
  --muted: #a4afa7;
  --dim: #6f7a72;
  --green: #0d9126;          /* verde del logo */
  --green-2: #16b13a;
  --green-hi: #4fdc76;       /* accento leggibile su scuro */
  --green-glow: rgba(22, 177, 58, 0.32);
  --snow: #f3f6f4;
  --on-snow: #08100b;
  --text-2: #cfd7d1;
  --lead-c: #c5cec8;
  --glass: rgba(6, 9, 8, .72);
  --overlay: rgba(6, 9, 8, .97);
  --hero-top: #0d1a12;
  --ghost-bg: rgba(255, 255, 255, .02);
  --ghost-hover: rgba(255, 255, 255, .06);
  --ghost-line: rgba(214, 245, 222, .38);
  --word-off: rgba(237, 242, 238, .16);
  --tile-a: #1a241d;
  --tile-b: #0d130f;
  --chk-a: #1b231d;
  --chk-b: #121914;
  --panel: rgba(15, 22, 17, .82);
  --panel-solid: rgba(15, 22, 17, .94);
  --field-bg: rgba(0, 0, 0, .25);
  --kpi-bg: rgba(10, 15, 12, .8);
  --word-stroke: rgba(214, 245, 222, .14);
  --shadow-float: rgba(0, 0, 0, .55);
  --grain: .05;
  --warn: #ffb547;
  --err: #ff6b6b;

  --f-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-1: 6px;
  --r-2: 12px;
  --r-3: 20px;
  --r-4: 30px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 10001;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--r-2);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grana di fondo, molto leggera: dà materia al nero */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9000; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 13vw, 180px); }
.section--tight { padding-block: clamp(64px, 9vw, 120px); }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  line-height: .98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.display em, .hl { font-style: normal; color: var(--green-hi); }
.title-3 {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.1;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 12px var(--green-hi); }
.kicker--plain::before { display: none; }
.mono { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; color: var(--dim); }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 920px; }
.section-head--split { max-width: none; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- bottoni ---------- */
.btn {
  --bh: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .35s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .35s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 34px -10px var(--green-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:hover { background: var(--green-2); box-shadow: 0 16px 44px -10px rgba(22,177,58,.55), inset 0 1px 0 rgba(255,255,255,.22); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: var(--ghost-bg); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ghost-line); background: var(--ghost-hover); }
.btn--light { background: var(--snow); color: var(--on-snow); }
.btn--light:hover { filter: brightness(1.08); }
.btn--sm { --bh: 42px; padding: 0 18px; font-size: .9rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color .2s, border-color .2s, gap .3s var(--ease-out);
}
.link-arrow:hover { color: var(--green-hi); border-color: var(--green-hi); gap: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .86rem; color: var(--muted); background: var(--surface);
}

/* ---------- header ---------- */
.nx-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, border-color .4s, transform .45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nx-header.is-scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.nx-header.is-hidden { transform: translateY(-100%); }
.nx-header__bar { display: flex; align-items: center; gap: 24px; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.nx-brand { display: flex; align-items: center; flex-shrink: 0; }
.nx-brand img { height: 34px; width: auto; }
.nx-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nx-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: .93rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nx-nav a:hover, .nx-nav a[aria-current="page"], .nx-nav a.is-active { color: var(--text); background: var(--surface-2); }
.nx-nav__extra { display: none; }
.nx-tools { display: flex; align-items: center; gap: 10px; }
.nx-lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.nx-lang .lang-btn {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--dim);
  padding: 6px 9px; border-radius: 999px; transition: color .2s, background .2s;
}
.nx-lang .lang-btn:hover { color: var(--text); }
.nx-lang .lang-btn.active { color: #fff; background: var(--green); }
.nx-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nx-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease-out), opacity .2s; }
.nx-burger span:nth-child(1) { top: 17px; }
.nx-burger span:nth-child(2) { top: 25px; }
.nav-open .nx-burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nx-burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nx-burger { display: block; }
  .nx-tools .btn { display: none; }
  .nx-nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--overlay); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .nav-open .nx-nav { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
  .nav-open .nx-header { background: transparent; border-color: transparent; backdrop-filter: none; }
  .nx-nav a {
    font-family: var(--f-display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em;
    color: var(--text); padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important;
    transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s, color .2s;
  }
  .nx-nav a:hover { color: var(--green-hi); }
  .nav-open .nx-nav a { transform: none; opacity: 1; }
  .nav-open .nx-nav a:nth-child(2) { transition-delay: .03s; } .nav-open .nx-nav a:nth-child(3) { transition-delay: .06s; }
  .nav-open .nx-nav a:nth-child(4) { transition-delay: .09s; } .nav-open .nx-nav a:nth-child(5) { transition-delay: .12s; }
  .nav-open .nx-nav a:nth-child(6) { transition-delay: .15s; } .nav-open .nx-nav a:nth-child(7) { transition-delay: .18s; }
  .nav-open .nx-nav a:nth-child(8) { transition-delay: .21s; }
  .nx-nav__extra { display: grid; gap: 14px; margin-top: 28px; }
  .nx-nav__extra .btn { width: 100%; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .nx-brand img { height: 28px; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   HERO — le Alpi del logo
   ===================================================================== */
.nx-hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 0%, var(--hero-top) 0%, var(--bg) 62%);
}
.nx-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.nx-hero__fallback { position: absolute; inset: auto 0 0 0; height: 55%; z-index: -2; opacity: .7;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%), url("assets/img/world/ridge.svg") bottom / cover no-repeat; }
.nx-hero__content { position: relative; padding-bottom: clamp(36px, 6vh, 72px); }
.nx-hero__title {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.045em; line-height: .9;
  font-size: clamp(3.3rem, 10.5vw, 10.5rem); font-variation-settings: "opsz" 96;
  margin: 22px 0 28px;
}
.nx-hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.nx-hero__title .line > * { display: inline-block; }
.nx-hero__title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--green-hi); text-stroke: 1.5px var(--green-hi); }
.js .nx-hero__title .line > * { transform: translateY(105%); animation: lineUp 1.2s var(--ease-out) forwards; }
.js .nx-hero__title .line:nth-child(2) > * { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }
.nx-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.nx-hero__lead { max-width: 44ch; color: var(--lead-c); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.nx-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.js .nx-hero [data-intro] { opacity: 0; transform: translateY(16px); animation: introUp 1s var(--ease-out) forwards; animation-delay: var(--d, .5s); }
@keyframes introUp { to { opacity: 1; transform: none; } }
.nx-hero__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 20px; border-top: 1px solid var(--line);
}
.nx-hero__meta .mono { color: var(--muted); }
.nx-scroll { display: inline-flex; align-items: center; gap: 12px; }
.nx-scroll i { width: 1px; height: 34px; background: linear-gradient(var(--green-hi), transparent); position: relative; overflow: hidden; }
.nx-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--snow); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 700px) {
  .nx-hero__meta .hide-sm, .nx-hero__meta > .mono:first-child { display: none; }
  .nx-hero__meta { justify-content: center; }
  .nx-hero__ctas { width: 100%; }
  .nx-hero__ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .nx-hero__title .line > *, .js .nx-hero [data-intro] { animation: none; transform: none; opacity: 1; }
  .nx-scroll i::after { animation: none; }
}

/* =====================================================================
   MANIFESTO — parole che si accendono
   ===================================================================== */
.nx-manifesto { padding-block: clamp(100px, 16vw, 220px); }
.nx-manifesto__text {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08;
  font-size: clamp(1.9rem, 4.6vw, 4.2rem); max-width: 22ch; text-wrap: balance;
}
.nx-manifesto__text .w { color: var(--word-off); transition: color .5s; }
.nx-manifesto__text .w.on { color: var(--text); }
.nx-manifesto__text .w.on.g { color: var(--green-hi); }
.nx-manifesto__foot { display: flex; flex-wrap: wrap; gap: 28px 64px; margin-top: clamp(48px, 7vw, 96px); }
.nx-stat { display: grid; gap: 4px; }
.nx-stat b { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; }
.nx-stat > span { color: var(--muted); font-size: .92rem; }

/* =====================================================================
   TERRITORI — scroll orizzontale su desktop
   ===================================================================== */
.nx-worlds { position: relative; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 30%, var(--bg-1) 100%); }
.nx-worlds__head { padding-top: clamp(80px, 11vw, 150px); }
.nx-worlds__pin { position: relative; }
.nx-worlds__track { display: grid; gap: 20px; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); max-width: var(--maxw); margin-inline: auto; }
.nx-world {
  position: relative; overflow: hidden; border-radius: var(--r-4); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 85% 10%, rgba(22,177,58,.10), transparent 55%), var(--bg-2);
  display: grid; grid-template-columns: 1fr 1.05fr; min-height: 560px;
}
.nx-world__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 56px); }
.nx-world__num { font-family: var(--f-mono); font-size: .8rem; color: var(--green-hi); letter-spacing: .12em; }
.nx-world h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: .98; font-size: clamp(2.1rem, 3.4vw, 3.3rem); text-wrap: balance; }
.nx-world p { color: var(--muted); max-width: 42ch; }
.nx-world ul { display: grid; gap: 10px; margin-top: 4px; }
.nx-world li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-size: .96rem; }
.nx-world li::before { content: ""; flex: 0 0 14px; height: 1px; background: var(--green-hi); transform: translateY(-4px); }
.nx-world__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 12px; align-items: center; }
.nx-world__visual { position: relative; min-height: 340px; }
.nx-world__visual::before { /* orizzonte del lago */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 18%; height: 60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22,177,58,.28), transparent); filter: blur(10px);
}
.nx-float {
  position: absolute; width: var(--w, 34%); left: var(--x, 30%); top: var(--y, 20%);
  filter: drop-shadow(0 30px 30px var(--shadow-float));
  transform: translate3d(calc(var(--px, 0) * var(--depth, 1) * 1px), calc(var(--py, 0) * var(--depth, 1) * 1px), 0) rotate(var(--r, 0deg));
  transition: transform .9s var(--ease-out);
  animation: bob var(--t, 7s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s);
}
.nx-float img { width: 100%; height: auto; }
.nx-float--far { filter: drop-shadow(0 20px 20px rgba(0,0,0,.5)) blur(1.2px) brightness(.75); }
@keyframes bob { from { translate: 0 -8px; } to { translate: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .nx-float { animation: none; } }

/* visual Web: finestra browser con anteprime reali dei lavori */
.nx-browser {
  position: absolute; inset: 12% 8% auto 10%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2);
  background: #0b0f0d; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7);
}
.nx-browser__bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #101612; }
.nx-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a332d; }
.nx-browser__bar span { margin-left: 10px; font-family: var(--f-mono); font-size: .7rem; color: var(--dim); }
.nx-browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.nx-browser__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 1s; }
.nx-browser__screen img.on { opacity: 1; }
.nx-phone {
  position: absolute; right: 6%; bottom: 8%; width: 24%; aspect-ratio: 9 / 18.5; border-radius: 22px; overflow: hidden;
  border: 5px solid #1a211c; background: #000; box-shadow: 0 30px 60px -10px rgba(0,0,0,.8);
}
.nx-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* visual Marketing: cruscotto KPI vivo */
.nx-dash { position: absolute; inset: 10% 8% 10% 8%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 12px; }
.nx-kpi { border: 1px solid var(--line-2); border-radius: 16px; background: var(--kpi-bg); padding: 16px 18px; backdrop-filter: blur(6px); }
.nx-kpi small { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.nx-kpi b { display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.04em; margin-top: 4px; }
.nx-kpi .up { color: var(--green-hi); font-size: .8rem; font-family: var(--f-mono); }
.nx-kpi--chart { grid-column: 1 / -1; display: flex; flex-direction: column; }
.nx-kpi--chart svg { flex: 1; width: 100%; min-height: 120px; margin-top: 10px; overflow: visible; }
.nx-line { fill: none; stroke: var(--green-hi); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease-out); }
.nx-area { fill: url(#gArea); opacity: 0; transition: opacity 1.4s .6s; }
.is-in .nx-line, .nx-world.is-active .nx-line { stroke-dashoffset: 0; }
.is-in .nx-area, .nx-world.is-active .nx-area { opacity: 1; }

/* desktop: binario orizzontale agganciato */
@media (min-width: 1024px) {
  .nx-worlds.is-pinned .nx-worlds__pin { height: var(--pin-h, 400vh); }
  .nx-worlds.is-pinned .nx-worlds__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
  .nx-worlds.is-pinned .nx-worlds__track {
    display: flex; gap: 28px; max-width: none; margin: 0; padding: 0 0 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    will-change: transform;
  }
  .nx-worlds.is-pinned .nx-world { flex: 0 0 min(1120px, 82vw); height: min(640px, 76vh); min-height: 0; }
  .nx-worlds.is-pinned .nx-world:last-child { margin-right: var(--gutter); }
  .nx-worlds__progress { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(320px, 40vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .nx-worlds__progress i { position: absolute; inset: 0; background: var(--green-hi); transform-origin: left; transform: scaleX(var(--p, 0)); }
}
.nx-worlds:not(.is-pinned) .nx-worlds__progress { display: none; }
@media (max-width: 860px) {
  .nx-world { grid-template-columns: 1fr; min-height: 0; }
  .nx-world__visual { min-height: 300px; order: -1; }
}

/* =====================================================================
   CATALOGO — portali + nastro prodotti
   ===================================================================== */
.nx-catalog { overflow: hidden; }
.nx-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 22px; margin-top: 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--ghost-bg); max-width: 620px;
  transition: border-color .25s, box-shadow .25s;
}
.nx-search:focus-within { border-color: var(--green-hi); box-shadow: 0 0 0 5px rgba(79,220,118,.12); }
.nx-search svg { width: 20px; height: 20px; color: var(--dim); flex-shrink: 0; }
.nx-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 1.02rem; padding: 10px 4px; }
.nx-search input::placeholder { color: var(--dim); }
.nx-search .btn { --bh: 46px; }
.nx-search__hint { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nx-search__hint button { font-size: .84rem; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; transition: color .2s, border-color .2s; }
.nx-search__hint button:hover { color: var(--text); border-color: var(--line-2); }

.nx-marquee { position: relative; display: grid; gap: 18px; margin-block: clamp(48px, 7vw, 90px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.nx-marquee__row { display: flex; width: max-content; gap: 18px; animation: marquee var(--speed, 60s) linear infinite; }
.nx-marquee__row--rev { animation-direction: reverse; }
.nx-marquee:hover .nx-marquee__row { animation-play-state: paused; }
.nx-tile {
  --ts: clamp(140px, 15vw, 200px);
  flex: 0 0 auto; width: var(--ts); height: var(--ts); border-radius: var(--r-3);
  background: radial-gradient(80% 80% at 50% 40%, var(--tile-a), var(--tile-b)); border: 1px solid var(--line);
  display: grid; place-items: center; padding: 22px; transition: border-color .3s, transform .4s var(--ease-out);
}
.nx-tile:hover { border-color: var(--line-2); transform: translateY(-4px); }
.nx-tile img { max-height: 100%; max-width: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,.5)); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nx-marquee__row { animation: none; } }

.nx-portals { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.nx-portal {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate; grid-column: span 4;
  display: flex; flex-direction: column; gap: 14px; min-height: 380px; padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-4); border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .3s, transform .5s var(--ease-out);
}
.nx-portal::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(79,220,118,.13), transparent 60%); }
.nx-portal:hover { border-color: var(--line-2); transform: translateY(-4px); }
.nx-portal:hover::before { opacity: 1; }
.nx-portal--wide { grid-column: span 8; }
.nx-portal__count { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 6vw, 5.4rem); letter-spacing: -0.05em; line-height: .9; }
.nx-portal__count small { font-size: .32em; letter-spacing: 0; color: var(--muted); font-family: var(--f-body); font-weight: 500; margin-left: 6px; }
.nx-portal h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.05; }
.nx-portal p { color: var(--muted); max-width: 40ch; }
.nx-portal__go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nx-portal__arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg-2); transition: background .3s, border-color .3s, transform .5s var(--ease-out); }
.nx-portal__arrow svg { width: 20px; height: 20px; }
.nx-portal:hover .nx-portal__arrow { background: var(--green); border-color: var(--green); transform: rotate(-45deg); }
.nx-portal > :not(.nx-portal__art) { position: relative; z-index: 1; }
.nx-portal--wide > :not(.nx-portal__art):not(.nx-portal__go) { max-width: 54%; }
.nx-portal__art { position: absolute; z-index: 0; right: 4%; bottom: -4%; width: 34%; pointer-events: none; transition: transform .8s var(--ease-out); }
.nx-portal--wide .nx-portal__art { width: 40%; right: 3%; bottom: -3%; }
.nx-portal:hover .nx-portal__art:not(.nx-portal--lab .nx-portal__art) { transform: translateY(-8px) rotate(-2deg); }
.nx-portal__art img { filter: drop-shadow(0 24px 26px rgba(0,0,0,.55)); }
.nx-portal__art--stack { display: flex; align-items: flex-end; gap: 0; }
.nx-portal__art--stack img { width: 38%; margin-left: -10%; }
.nx-portal__art--stack img:first-child { margin-left: 0; }
.nx-portal__art--shoes { width: 50%; right: 16%; bottom: 3%; display: grid; }
.nx-portal__art--shoes img { grid-area: 1 / 1; width: 78%; }
.nx-portal__art--shoes img:last-child { margin: 26% 0 0 22%; transform: rotate(-4deg); }
/* Logo Lab: scacchiera trasparenza */
.nx-portal--lab .nx-portal__art { width: 34%; right: 5%; bottom: 50%; transform: translateY(50%); aspect-ratio: 1.25; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2);
  background: conic-gradient(var(--chk-a) 25%, var(--chk-b) 0 50%, var(--chk-a) 0 75%, var(--chk-b) 0) 0 0 / 22px 22px; display: grid; place-items: center; }
.nx-portal--lab .nx-portal__art img { width: 72%; filter: none; }
.nx-portal--lab .nx-portal__art .lab-white { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; clip-path: inset(0 0 0 var(--wipe, 55%)); transition: clip-path 1.2s var(--ease-out); z-index: 1; }
.nx-portal--lab .nx-portal__art .lab-white img { width: 72%; }
.nx-portal--lab:hover .lab-white { clip-path: inset(0 0 0 100%); }
.nx-portal--lab .lab-line { position: absolute; top: 0; bottom: 0; left: var(--wipe, 55%); width: 2px; background: var(--green-hi); z-index: 2; box-shadow: 0 0 14px var(--green-hi); transition: left 1.2s var(--ease-out); }
.nx-portal--lab:hover .lab-line { left: 100%; }

@media (max-width: 1024px) {
  .nx-portal, .nx-portal--wide { grid-column: span 6; }
  .nx-portal--wide { grid-column: span 12; }
}
@media (max-width: 680px) {
  .nx-portal, .nx-portal--wide { grid-column: span 12; min-height: 0; }
  .nx-portal--wide > :not(.nx-portal__art):not(.nx-portal__go) { max-width: none; }
  .nx-portal .nx-portal__art, .nx-portal--wide .nx-portal__art, .nx-portal--lab .nx-portal__art { position: relative; right: auto; bottom: auto; transform: none; width: 70%; margin: 4px auto -8px; order: 9; }
  .nx-portal--lab .nx-portal__art { width: 100%; margin: 8px 0 0; }
  .nx-portal__art--stack img { width: 34%; }
}

/* =====================================================================
   METODO — il sentiero verso la vetta
   ===================================================================== */
.nx-path { position: relative; }
.nx-path__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nx-path__svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 90px; pointer-events: none; overflow: visible; }
.nx-path__svg path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 7; }
.nx-path__svg path.draw { stroke: var(--green-hi); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.nx-step { position: relative; padding-top: 110px; }
.nx-step__dot { position: absolute; top: var(--top, 60px); left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: border-color .4s, box-shadow .4s, background .4s; }
.nx-step.is-in .nx-step__dot { border-color: var(--green-hi); background: var(--green); box-shadow: 0 0 0 6px rgba(79,220,118,.12), 0 0 22px var(--green-glow); }
.nx-step .mono { color: var(--green-hi); }
.nx-step h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.55rem; letter-spacing: -0.03em; margin: 10px 0 8px; }
.nx-step p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) {
  .nx-path__steps { grid-template-columns: 1fr; gap: 0; padding-left: 34px; border-left: 1px dashed var(--line-2); margin-left: 8px; }
  .nx-path__svg { display: none; }
  .nx-step { padding: 0 0 40px; }
  .nx-step__dot { top: 4px; left: -44px; }
}

/* =====================================================================
   PACCHETTI
   ===================================================================== */
.nx-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.nx-pack {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 3vw, 38px);
  border-radius: var(--r-4); border: 1px solid var(--line); background: var(--bg-2);
}
.nx-pack--featured { background: radial-gradient(120% 80% at 50% 0%, rgba(22,177,58,.22), transparent 60%), var(--bg-3); border-color: rgba(79,220,118,.35); }
.nx-pack__badge { position: absolute; top: 22px; right: 22px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-hi); border: 1px solid rgba(79,220,118,.35); padding: 5px 10px; border-radius: 999px; }
.nx-pack h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.03em; }
.nx-pack__price { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; }
.nx-pack ul { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.nx-pack li { position: relative; padding-left: 28px; color: var(--text-2); font-size: .96rem; }
.nx-pack li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--green-hi); border-bottom: 2px solid var(--green-hi); transform: rotate(-45deg); }
.nx-pack details { border-top: 1px solid var(--line); padding-top: 14px; }
.nx-pack summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .92rem; }
.nx-pack summary::-webkit-details-marker { display: none; }
.nx-pack summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .3s; }
.nx-pack details[open] summary::after { transform: rotate(45deg); }
.nx-pack details p { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.nx-pack .btn { margin-top: auto; width: 100%; }
.nx-event {
  margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: center;
  padding: clamp(26px, 3.4vw, 44px); border-radius: var(--r-4); border: 1px solid var(--line);
  background: linear-gradient(110deg, var(--bg-3), var(--bg-2));
}
.nx-event ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.nx-event li { position: relative; padding-left: 20px; color: var(--text-2); font-size: .94rem; }
.nx-event li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 2px; background: var(--green-hi); transform: rotate(45deg); }
.nx-trust { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; color: var(--muted); font-size: .92rem; }
.nx-trust span { display: inline-flex; gap: 10px; align-items: center; }
.nx-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-hi); }
@media (max-width: 1024px) { .nx-packs { grid-template-columns: 1fr; } .nx-event { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .nx-event ul { grid-template-columns: 1fr; } }

/* =====================================================================
   LAVORI (markup generato da lavori.js)
   ===================================================================== */
.ico-works-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.ico-works-filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .9rem; transition: all .2s; }
.ico-works-filter:hover { color: var(--text); }
.ico-works-filter.is-active { background: var(--snow); color: var(--on-snow); border-color: var(--snow); }
.ico-works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.ico-works-empty { color: var(--muted); padding: 40px 0; }
.ico-works-card { position: relative; display: block; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; isolation: isolate; }
.ico-works-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ico-works-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.ico-works-card:hover .ico-works-card-media img { transform: scale(1.05); }
.ico-works-card-media--link { display: grid; place-items: center; background: var(--bg-3); }
.ico-works-link-favicon { width: 64px; height: 64px; }
.ico-works-link-host { position: absolute; top: 16px; left: 16px; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.ico-works-card-cat { position: absolute; top: 14px; left: 14px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(6,9,8,.72); backdrop-filter: blur(8px); color: #edf2ee; }
.ico-works-link-arrow { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(6,9,8,.72); color: #edf2ee; backdrop-filter: blur(8px); transition: background .3s, transform .4s var(--ease-out); }
.ico-works-card:hover .ico-works-link-arrow { background: var(--green); transform: rotate(45deg); }
.ico-works-card-overlay { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-top: 1px solid var(--line); }
.ico-works-card-title { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.ico-works-card-meta { color: var(--dim); font-size: .86rem; font-family: var(--f-mono); }
.ico-works-card-cue { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.ico-works-lightbox { position: fixed; inset: 0; z-index: 9500; background: rgba(4,6,5,.94); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 60px 70px; }
.ico-works-lightbox-figure { max-width: 1100px; width: 100%; display: grid; gap: 18px; }
.ico-works-lightbox-img { max-height: 70vh; width: auto; margin-inline: auto; border-radius: var(--r-2); }
.ico-works-lightbox-caption { text-align: center; color: var(--muted); }
.ico-works-lightbox-title { font-family: var(--f-display); color: var(--text); font-size: 1.4rem; }
.ico-works-lightbox-close, .ico-works-lightbox-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); font-size: 1.6rem; display: grid; place-items: center; background: rgba(255,255,255,.04); }
.ico-works-lightbox-close { top: 18px; right: 18px; }
.ico-works-lightbox-nav--prev { left: 14px; top: 50%; }
.ico-works-lightbox-nav--next { right: 14px; top: 50%; }
@media (max-width: 640px) { .ico-works-lightbox { padding: 70px 12px; } .ico-works-lightbox-nav { top: auto; bottom: 18px; } }

/* =====================================================================
   TEAM
   ===================================================================== */
.nx-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nx-person { position: relative; border-radius: var(--r-4); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.nx-person__img { aspect-ratio: 4 / 5; background-size: cover; background-position: center 20%; filter: grayscale(1) contrast(1.05); transition: filter .7s, transform 1.2s var(--ease-out); }
.nx-person:hover .nx-person__img { filter: grayscale(0); transform: scale(1.03); }
.nx-person figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(6,9,8,.92)); }
.nx-person h3 { color: #edf2ee; font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 600; }
.nx-person p { color: #b7c2ba; font-size: .9rem; }
.nx-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 860px) { .nx-team { grid-template-columns: 1fr 1fr; } .nx-team .nx-person:first-child { grid-column: 1 / -1; } .nx-team .nx-person:first-child .nx-person__img { aspect-ratio: 16 / 12; } }
@media (max-width: 480px) { .nx-team { grid-template-columns: 1fr; } }

/* =====================================================================
   CONTATTI
   ===================================================================== */
.nx-contact { position: relative; overflow: hidden; }
.nx-contact::before { content: ""; position: absolute; inset: auto -10% -30% -10%; height: 70%; background: radial-gradient(50% 60% at 50% 100%, rgba(22,177,58,.22), transparent 70%); pointer-events: none; }
.nx-contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.nx-contact__info { display: grid; gap: 28px; }
.nx-contact__big { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.045em; line-height: .92; font-size: clamp(3rem, 7.4vw, 7rem); text-wrap: balance; }
.nx-contact__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.nx-contact__list a, .nx-contact__list div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding .4s var(--ease-out); }
.nx-contact__list a:hover { color: var(--green-hi); padding-left: 8px; }
.nx-contact__list small { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.nx-social { display: flex; gap: 10px; }
.nx-social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.nx-social a:hover { background: var(--green); border-color: var(--green); }
.nx-social svg { width: 19px; height: 19px; }

.nx-form { display: grid; gap: 16px; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-4); border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(14px); }
.nx-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nx-field { display: grid; gap: 8px; }
.nx-field > span { font-size: .84rem; color: var(--muted); }
.nx-field input, .nx-field select, .nx-field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--field-bg); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.nx-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.nx-field select option { background: var(--bg-2); }
.nx-field textarea { resize: vertical; min-height: 130px; }
.nx-field input:focus, .nx-field select:focus, .nx-field textarea:focus { border-color: var(--green-hi); box-shadow: 0 0 0 4px rgba(79,220,118,.12); }
.nx-check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.nx-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.nx-check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.nx-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ico-contact-honeypot { display: none !important; }
.ico-contact-optional { color: var(--dim); }
.ico-contact-feedback { font-size: .92rem; }
.ico-contact-feedback.is-success, .ico-contact-feedback.success { color: var(--green-hi); }
.ico-contact-feedback.is-error, .ico-contact-feedback.error { color: var(--err); }
@media (max-width: 960px) { .nx-contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .nx-form__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.nx-footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.nx-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.nx-footer h4 { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.nx-footer ul { display: grid; gap: 10px; }
.nx-footer li a { color: var(--muted); transition: color .2s; }
.nx-footer li a:hover { color: var(--text); }
.nx-footer__brand img { height: 36px; width: auto; margin-bottom: 18px; }
.nx-footer__brand p { color: var(--muted); max-width: 34ch; font-size: .95rem; }
.nx-footer__word {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.06em; line-height: .8; white-space: nowrap;
  font-size: clamp(4.5rem, 19vw, 18rem); margin-top: clamp(48px, 7vw, 90px); text-align: center; user-select: none;
  color: transparent; -webkit-text-stroke: 1px var(--word-stroke);
  background: linear-gradient(180deg, rgba(79,220,118,.16), transparent 75%); -webkit-background-clip: text; background-clip: text;
}
.nx-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: .84rem; }
.nx-footer__base a:hover { color: var(--text); }
@media (max-width: 900px) { .nx-footer__grid { grid-template-columns: 1fr 1fr; } .nx-footer__brand { grid-column: 1 / -1; } }

/* =====================================================================
   COOKIE BANNER (markup di cookies.js) — versione scura
   ===================================================================== */
.cookie-banner {
  background: var(--panel-solid) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8) !important; font-family: var(--f-body) !important; border-radius: var(--r-3) !important;
}
.cookie-content h3 { font-family: var(--f-display); letter-spacing: -0.02em; }
.cookie-content p { color: var(--muted) !important; font-size: .92rem !important; }
.cookie-btn { border-radius: 999px !important; padding: 10px 16px !important; font-weight: 600 !important; }
.cookie-btn.accept { background: var(--green) !important; color: #fff !important; }
.cookie-btn.reject { background: transparent !important; border: 1px solid var(--line-2) !important; color: var(--text) !important; }
.cookie-btn.info { background: transparent !important; color: var(--muted) !important; }

/* =====================================================================
   PAGINE INTERNE — testata condivisa
   ===================================================================== */
.nx-pagehead { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 7vw, 90px); overflow: hidden; isolation: isolate; }
.nx-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 80% 0%, rgba(22,177,58,.16), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(22,177,58,.06), transparent 70%); }
.nx-pagehead__ridge { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: -1; opacity: .5; pointer-events: none; }
.nx-pagehead h1 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.045em; line-height: .94; font-size: clamp(2.8rem, 7.5vw, 6.6rem); margin: 18px 0 22px; text-wrap: balance; }
.nx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.nx-crumbs a:hover { color: var(--text); }
.nx-crumbs span[aria-hidden] { opacity: .5; }

/* =====================================================================
   TEMA CHIARO — «giorno sulle Alpi»
   ===================================================================== */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f0;
  --bg-1: #eaeee7;
  --bg-2: #ffffff;
  --bg-3: #f7f9f5;
  --surface: rgba(12, 40, 20, .035);
  --surface-2: rgba(12, 40, 20, .065);
  --line: rgba(12, 40, 20, .10);
  --line-2: rgba(12, 40, 20, .18);
  --text: #0d1510;
  --muted: #4b5a50;
  --dim: #75827a;
  --green-hi: #0b8a23;
  --green-glow: rgba(13, 145, 38, .28);
  --snow: #0d1510;
  --on-snow: #ffffff;
  --text-2: #27332b;
  --lead-c: #2a362d;
  --glass: rgba(243, 245, 240, .8);
  --overlay: rgba(243, 245, 240, .97);
  --hero-top: #e6efe4;
  --ghost-bg: rgba(255, 255, 255, .55);
  --ghost-hover: rgba(255, 255, 255, .95);
  --ghost-line: rgba(12, 40, 20, .35);
  --word-off: rgba(13, 21, 16, .13);
  --tile-a: #ffffff;
  --tile-b: #edf1ea;
  --chk-a: #e2e8e0;
  --chk-b: #f6f8f4;
  --panel: rgba(255, 255, 255, .86);
  --panel-solid: rgba(255, 255, 255, .97);
  --field-bg: #ffffff;
  --kpi-bg: rgba(255, 255, 255, .9);
  --word-stroke: rgba(12, 40, 20, .16);
  --shadow-float: rgba(20, 40, 25, .28);
  --grain: .035;
}
[data-theme="light"] .nx-world { background: radial-gradient(120% 90% at 85% 10%, rgba(13,145,38,.10), transparent 55%), var(--bg-2); }
[data-theme="light"] .nx-pack--featured { background: radial-gradient(120% 80% at 50% 0%, rgba(13,145,38,.14), transparent 60%), var(--bg-2); border-color: rgba(13,145,38,.4); }
[data-theme="light"] .nx-event { background: linear-gradient(110deg, var(--bg-2), var(--bg-3)); }
[data-theme="light"] .nx-portal::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(13,145,38,.10), transparent 60%); }
[data-theme="light"] .nx-contact::before { background: radial-gradient(50% 60% at 50% 100%, rgba(13,145,38,.14), transparent 70%); }
[data-theme="light"] .nx-footer__word { background: linear-gradient(180deg, rgba(13,145,38,.16), transparent 75%); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .nx-hero__title em { color: #0a7a1f; -webkit-text-stroke: 0; }
[data-theme="light"] .nx-person__img { filter: grayscale(.9) contrast(1.02); }
[data-theme="light"] .nx-world__visual::before { background: radial-gradient(closest-side, rgba(13,145,38,.18), transparent); }

/* logo: due versioni, visibile quella del tema */
.logo-for-light { display: none; }
[data-theme="light"] .logo-for-light { display: block; }
[data-theme="light"] .logo-for-dark { display: none; }

/* transizione morbida dei colori durante il cambio tema */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 2s var(--ease), color 2s var(--ease), border-color 2s var(--ease), fill 2s, stroke 2s, -webkit-text-stroke-color 2s !important;
}

/* interruttore sole/luna */
.nx-theme {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; overflow: hidden; color: var(--text); transition: border-color .25s, background .25s;
}
.nx-theme:hover { border-color: var(--ghost-line); background: var(--surface-2); }
.nx-theme svg { position: absolute; width: 20px; height: 20px; transition: transform .8s var(--ease-out), opacity .5s; }
.nx-theme .i-sun { transform: translateY(26px) rotate(-90deg); opacity: 0; color: #f0a020; }
.nx-theme .i-moon { transform: none; opacity: 1; }
[data-theme="light"] .nx-theme .i-sun { transform: none; opacity: 1; }
[data-theme="light"] .nx-theme .i-moon { transform: translateY(-26px) rotate(90deg); opacity: 0; }
@media (max-width: 420px) { .nx-theme { width: 40px; height: 40px; } .nx-lang .lang-btn { padding: 6px 7px; } }

/* icone social ufficiali (simple-icons), colori di marca */
.soc { display: inline-flex; align-items: center; gap: 10px; }
.soc svg { width: 18px; height: 18px; flex-shrink: 0; }
.soc--wa svg { color: #25D366; }
.soc--ig svg { color: #E4405F; }
.soc--li svg { color: #0A66C2; }
[data-theme="dark"] .soc--li svg, :root:not([data-theme]) .soc--li svg { color: #3b8fe0; }
.nx-social .soc { justify-content: center; gap: 0; }
.nx-social .soc svg { width: 20px; height: 20px; }
.nx-social .soc:hover { background: var(--surface-2); border-color: var(--line-2); }
.nx-social .soc--wa:hover { border-color: #25D366; }
.nx-social .soc--ig:hover { border-color: #E4405F; }
.nx-social .soc--li:hover { border-color: #0A66C2; }
/* il footer chiude con la base, senza scritte decorative */
.nx-footer__grid { padding-bottom: clamp(48px, 6vw, 80px); }
