/* NEURAMA · menu hamburger, pagine legali e pagina "Il progetto".
   Usa le variabili del sito (--ink, --bone, --hot...) con un fallback, così funziona anche fuori dalla landing. */
:root { --ink: #050507; --ink-2: #0b0b10; --bone: #ebe6dc; --mute: #8d8a84; --line: rgba(235, 230, 220, .14); --hot: #ff4a24; --cool: #6fe3d6; --amber: #ffb347;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif; --f-serif: "Instrument Serif", Georgia, serif; --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --gut: clamp(16px, 3.2vw, 56px); }

/* ---------- pulsante hamburger ---------- */
.nrm-btn { width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: rgba(5, 5, 7, .55); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; color: var(--bone); transition: border-color .25s; }
.nrm-btn:hover, .nrm-btn:focus-visible { border-color: rgba(235, 230, 220, .55); outline: 0; }
.nrm-btn i { display: block; width: 16px; height: 1.5px; background: currentColor; }

/* ---------- pannello del menu ---------- */
.nrm { position: fixed; inset: 0; z-index: 300; background: rgba(5, 5, 7, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; padding: 22px var(--gut) 28px; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; color: var(--bone); font-family: var(--f-display); }
.nrm.on { opacity: 1; visibility: visible; }
.nrm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.nrm-top .nrm-lang { display: flex; gap: 6px; }
.nrm-top .nrm-lang button { background: none; border: 0; color: var(--mute); font: inherit; letter-spacing: inherit; padding: 6px 7px; cursor: pointer; }
.nrm-top .nrm-lang button[aria-pressed="true"] { color: var(--bone); border-bottom: 1px solid var(--hot); }
.nrm-x { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--bone); cursor: pointer; font-size: 20px; line-height: 1; }
.nrm-main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; flex: 1; align-content: center; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 0; }
.nrm-big a { display: block; font-weight: 700; font-size: clamp(34px, 6vw, 78px); letter-spacing: -.035em; line-height: 1.1; color: var(--bone); text-decoration: none; padding: 3px 0; opacity: 0; transform: translateY(16px); transition: transform .55s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 55ms), opacity .55s calc(var(--i, 0) * 55ms), color .2s; }
.nrm.on .nrm-big a { opacity: 1; transform: none; }
.nrm-big a:hover, .nrm-big a:focus-visible { color: var(--hot); outline: 0; }
.nrm-big a em { font-family: var(--f-serif); font-weight: 400; font-style: italic; }
.nrm-side h3 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 400; margin: 0 0 10px; }
.nrm-side div + h3 { margin-top: 30px; }
.nrm-side a { display: block; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: rgba(235, 230, 220, .78); text-decoration: none; padding: 6px 0; }
.nrm-side a:hover, .nrm-side a:focus-visible { color: var(--bone); text-decoration: underline; text-decoration-color: var(--hot); text-underline-offset: 4px; outline: 0; }
.nrm-foot { border-top: 1px solid var(--line); padding-top: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--mute); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.nrm-foot a { color: inherit; }
html.nrm-lock { overflow: hidden; }
@media (max-width: 760px) { .nrm-main { grid-template-columns: 1fr; gap: 26px; align-content: start; } }
@media (prefers-reduced-motion: reduce) { .nrm, .nrm-big a { transition: none; } }

/* ---------- pagine (privacy, cookie, termini, progetto) ---------- */
body.page { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--f-display); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.page *, body.page *::before, body.page *::after { box-sizing: border-box; }
.page a { color: inherit; }
.nrh { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--gut); position: sticky; top: 0; z-index: 50; background: rgba(5, 5, 7, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nrh .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; text-decoration: none; }
.nrh .right { display: flex; align-items: center; gap: 16px; }
.nrh .lang { display: flex; gap: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; }
.nrh .lang button { background: none; border: 0; color: var(--mute); font: inherit; letter-spacing: inherit; padding: 6px 7px; cursor: pointer; }
.nrh .lang button[aria-pressed="true"] { color: var(--bone); border-bottom: 1px solid var(--hot); }
[hidden] { display: none !important; }

.doc { max-width: 780px; margin: 0 auto; padding: clamp(44px, 9vh, 104px) var(--gut) 90px; }
.eyebrow-s { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.doc h1 { font-size: clamp(36px, 6.2vw, 70px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0 0 20px; text-wrap: balance; }
.doc h1 em, .pj h1 em { font-family: var(--f-serif); font-weight: 400; color: var(--hot); }
.lede { font-size: clamp(18px, 2vw, 22px); color: rgba(235, 230, 220, .86); line-height: 1.5; margin: 0 0 8px; }
.doc .meta { font-family: var(--f-mono); font-size: 12px; color: var(--mute); margin: 18px 0 34px; letter-spacing: .02em; }
.doc h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.15; font-weight: 700; margin: 50px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.doc h3 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cool); margin: 30px 0 8px; font-weight: 500; }
.doc p, .doc li { color: rgba(235, 230, 220, .86); }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 10px 0; }
.doc li { margin: 7px 0; }
.doc a { text-decoration: underline; text-decoration-color: var(--hot); text-underline-offset: 3px; }
.doc strong { color: var(--bone); font-weight: 600; }
.box { border: 1px solid var(--line); background: rgba(11, 11, 16, .75); padding: 20px 24px; margin: 30px 0; border-radius: 2px; }
.box h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 20px; }
.box ul { margin: 6px 0 0; }
.toc { columns: 2; column-gap: 40px; font-size: 15px; margin: 8px 0 0; padding-left: 1.2em; }
.toc li { break-inside: avoid; margin: 5px 0; }
.todo { background: rgba(255, 179, 71, .14); outline: 1px dashed rgba(255, 179, 71, .6); padding: 0 4px; border-radius: 2px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
@media (max-width: 640px) {
  .toc { columns: 1; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .doc td { border: 0; padding: 3px 0; }
  .doc td[data-k]::before { content: attr(data-k); display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
}

.nrf { border-top: 1px solid var(--line); padding: 26px var(--gut) 36px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--mute); display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; }
.nrf nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nrf a { color: inherit; text-decoration: none; }
.nrf a:hover { color: var(--bone); }

/* ---------- pagina "Il progetto" ---------- */
.pj { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut) 90px; }
.pj-hero { padding: clamp(56px, 12vh, 150px) 0 clamp(36px, 7vh, 80px); }
.pj h1 { font-size: clamp(44px, 9vw, 128px); line-height: .96; letter-spacing: -.045em; font-weight: 800; margin: 0 0 28px; text-wrap: balance; max-width: 14ch; }
.pj .lede { max-width: 34ch; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; }
.pj-sec { padding: clamp(36px, 7vh, 80px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 5fr 7fr; gap: 40px 60px; align-items: start; }
.pj-sec h2 { font-size: clamp(28px, 4vw, 54px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0; text-wrap: balance; }
.pj-sec h2 em { font-family: var(--f-serif); font-weight: 400; color: var(--hot); }
.pj-sec .eyebrow-s { margin-bottom: 14px; }
.pj-body p { font-size: clamp(17px, 1.5vw, 20px); color: rgba(235, 230, 220, .86); margin: 0 0 16px; max-width: 56ch; }
.pj-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.pj-steps li { counter-increment: s; padding: 18px 0 18px 54px; position: relative; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.5vw, 20px); color: rgba(235, 230, 220, .86); max-width: 56ch; }
.pj-steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 21px; font-family: var(--f-mono); font-size: 12px; color: var(--hot); letter-spacing: .1em; }
.pj-steps b { display: block; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; color: var(--bone); margin-bottom: 4px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips li { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 5, 7, .55); }
.pj-qa dt { font-weight: 700; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -.01em; margin-top: 22px; }
.pj-qa dd { margin: 6px 0 0; color: rgba(235, 230, 220, .84); max-width: 56ch; }
.pj-cta { text-align: center; padding: clamp(60px, 12vh, 140px) 0 20px; border-top: 1px solid var(--line); }
.pj-cta h2 { font-size: clamp(34px, 6vw, 86px); letter-spacing: -.04em; line-height: 1; font-weight: 800; margin: 0 auto 22px; max-width: 16ch; text-wrap: balance; }
.pj-cta h2 em { font-family: var(--f-serif); font-weight: 400; color: var(--hot); }
.pj-cta p { color: rgba(235, 230, 220, .84); max-width: 50ch; margin: 0 auto 26px; font-size: 19px; }
.btnx { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 16px 28px; border-radius: 999px; border: 1px solid rgba(235, 230, 220, .4); background: transparent; color: var(--bone); cursor: pointer; text-decoration: none !important; transition: background .25s, color .25s; }
.btnx.solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btnx:hover { background: rgba(235, 230, 220, .12); }
.btnx.solid:hover { background: #fff; }
.pj-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pj-who { font-family: var(--f-mono); font-size: 12px; color: var(--mute); margin-top: 30px; letter-spacing: .04em; line-height: 1.8; }
@media (max-width: 860px) { .pj-sec { grid-template-columns: 1fr; } }

/* ---------- foglietto illustrativo ---------- */
.leaf { max-width: 1040px; margin: 0 auto; padding: clamp(28px, 6vh, 72px) var(--gut) 90px; }
.leaf-sheet { border: 1px solid rgba(235, 230, 220, .28); background: rgba(11, 11, 16, .72); padding: clamp(22px, 4vw, 52px); position: relative; }
.leaf-sheet::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(235, 230, 220, .12); pointer-events: none; }
.leaf-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.leaf h1 { font-size: clamp(38px, 7vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin: 26px 0 10px; text-wrap: balance; }
.leaf h1 em { font-family: var(--f-serif); font-weight: 400; color: var(--hot); }
.leaf .sub { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--cool); margin: 0 0 22px; }
.leaf-warn { border: 1px dashed rgba(255, 179, 71, .7); background: rgba(255, 179, 71, .07); padding: 14px 18px; margin: 22px 0; font-size: 15px; color: rgba(235, 230, 220, .92); }
.leaf-warn b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 4px; font-weight: 500; }
.leaf-id { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); margin: 22px 0 34px; }
.leaf-id div { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.leaf-id div:nth-child(odd) { border-right: 1px solid var(--line); }
.leaf-id div:nth-last-child(-n+2) { border-bottom: 0; }
.leaf-id small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 3px; }
.leaf-cols { columns: 2; column-gap: 46px; }
.leaf-sec { break-inside: avoid; margin: 0 0 26px; }
.leaf-sec h2 { font-size: 18px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 8px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.leaf-sec h2 i { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--hot); letter-spacing: .1em; }
.leaf-sec p, .leaf-sec li { font-size: 15.5px; line-height: 1.6; color: rgba(235, 230, 220, .86); margin: 6px 0; }
.leaf-sec ul { padding-left: 1.2em; margin: 6px 0; }
.leaf-sec strong { color: var(--bone); font-weight: 600; }
.leaf-sec .fr { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cool); }
.leaf-figs { margin: 36px 0 8px; border-top: 1px solid var(--line); padding-top: 22px; }
.leaf-figs > p { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.leaf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.leaf-grid figure { margin: 0; }
.leaf-grid canvas { display: block; width: 100%; aspect-ratio: 4 / 5; background: #08080b; border: 1px solid var(--line); }
.leaf-grid figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--mute); margin-top: 8px; line-height: 1.5; }
.leaf-grid figcaption b { color: var(--bone); font-weight: 500; }
.leaf-foot { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; font-family: var(--f-mono); font-size: 12px; line-height: 1.8; color: var(--mute); }
.leaf-foot a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--hot); text-underline-offset: 3px; }
.leaf-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .leaf-cols { columns: 1; } .leaf-grid { grid-template-columns: repeat(2, 1fr); } .leaf-id { grid-template-columns: 1fr; } .leaf-id div:nth-child(odd) { border-right: 0; } .leaf-id div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
