/* ===========================================================================
   FWKS News — foglio di stile del sito pubblico (v5.2.1: rivista di cinema)
   Scuro di default, come una sala: le immagini generate e le foto degli annunci
   sono la cosa più bella che abbiamo, quindi vanno a tutta larghezza e il
   titolo ci sta sopra. Un solo accento, il viola di Frameworks. Due famiglie:
   Bricolage Grotesque per titoli, etichette e numeri; Newsreader per leggere.
   Il tema chiaro (◐) è bianco, non carta.
   =========================================================================== */
/* ---- i font di casa (Frameworks: Neue Haas Grotesk Display; FBF: GT Super) ------------------ */
@font-face { font-family: "Neue Haas Grotesk Display"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/NeueHaasDisplay-Light.woff2") format("woff2"); }
@font-face { font-family: "Neue Haas Grotesk Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/NeueHaasDisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "Neue Haas Grotesk Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/NeueHaasDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "GT Super Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/GTSuperText-Regular.woff2") format("woff2"); }
@font-face { font-family: "GT Super Text"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/GTSuperText-Italic.woff2") format("woff2"); }
@font-face { font-family: "GT Super Text"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/GTSuperText-Medium.woff2") format("woff2"); }
@font-face { font-family: "GT Super Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/GTSuperText-Bold.woff2") format("woff2"); }
@font-face { font-family: "GT Super Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/GTSuperDisplay-Italic.woff2") format("woff2"); }
@font-face { font-family: "GT Super Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/GTSuperDisplay-Medium.woff2") format("woff2"); }
:root {
  --bg: #0d0c12; --surface: #15141b; --surface-2: #1e1c26; --ink: #f3f0f8; --ink-2: #c9c4d6; --muted: #8d879d;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
  --accent: #bf00ff; --accent-ink: #d98aff; --accent-soft: rgba(191, 0, 255, .14); --accent-glow: 0 0 0 1px rgba(191, 0, 255, .35), 0 12px 40px -12px rgba(191, 0, 255, .55);
  --code: #111018; --shadow: 0 20px 50px -24px rgba(0, 0, 0, .9);
  --display: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "GT Super Text", "Iowan Old Style", Georgia, serif;
  --serif-display: "GT Super Display", "GT Super Text", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 18px; --r-s: 10px; --wrap: 1180px; --col: 700px; --wide: 960px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f5f9; --surface: #ffffff; --surface-2: #edebf2; --ink: #15121c; --ink-2: #413c4e; --muted: #736d82;
  --line: rgba(20, 10, 40, .1); --line-2: rgba(20, 10, 40, .22);
  --accent: #9a00d6; --accent-ink: #7a00ab; --accent-soft: rgba(154, 0, 214, .09); --accent-glow: 0 0 0 1px rgba(154, 0, 214, .3), 0 12px 40px -14px rgba(154, 0, 214, .45);
  --code: #f1eff6; --shadow: 0 20px 50px -28px rgba(20, 10, 40, .45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.1; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border-radius: 5px; padding: .08em .35em; }
.nw-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.nw-muted { color: var(--muted); font-family: var(--display); font-size: .92rem; }
.nw-ui { font-family: var(--display); }
.nw-btn { display: inline-flex; align-items: center; gap: .45em; font-family: var(--display); font-size: .98rem; font-weight: 600; background: var(--ink); color: var(--bg); border-radius: 999px; padding: .62em 1.3em; transition: transform .15s, box-shadow .15s; }
.nw-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--bg); }
.nw-btn.accent { background: var(--accent); color: #fff; }
.nw-btn.accent:hover { color: #fff; box-shadow: var(--accent-glow); }
.nw-more { font-family: var(--display); font-size: .95rem; font-weight: 600; color: var(--accent-ink); }
.nw-more:hover { text-decoration: underline; }

/* chip: la riga di contesto (sezione, data, numero) — sentence case, mai maiuscolo */
.nw-chip { display: inline-flex; align-items: center; gap: .5em; font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.nw-chip i { font-style: normal; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(191, 0, 255, .7); flex: 0 0 auto; }
.nw-kicker { font-family: var(--display); font-size: .84rem; font-weight: 700; color: var(--accent-ink); }
.nw-badge { display: inline-block; font-family: var(--display); font-size: .78rem; font-weight: 600; border-radius: 999px; padding: .28em .8em; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.nw-badge.ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.nw-badge.upd { border-color: var(--accent-ink); color: var(--accent-ink); }
.nw-badge.soon { border-style: dashed; color: var(--ink-2); }
.nw-badge.no { color: var(--muted); }

/* ---- testata ------------------------------------------------------------------- */
.nw-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nw-head-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.nw-brand { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.nw-brand b { font-weight: 700; color: var(--accent-ink); }
.nw-brand-a:hover { color: inherit; }
/* v5.4.1 — il logo della testata: «fwks» nel viola Frameworks, «News» nel colore del testo */
.nw-brand-a { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nw-logo { display: block; height: 32px; width: auto; overflow: visible; }
.nw-logo-fwks { fill: #BF00FF; } /* il viola del marchio, uguale nei due temi */
.nw-logo-news { fill: var(--ink); }
.nw-brand-a:hover .nw-logo-fwks { filter: drop-shadow(0 0 12px rgba(191, 0, 255, .55)); }
.nw-nav { display: flex; flex-wrap: nowrap; gap: 2px; margin-left: 10px; font-family: var(--display); }
.nw-nav a { flex: none; white-space: nowrap; line-height: 1.2; padding: 7px 12px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nw-nav a:hover { background: var(--surface-2); color: var(--ink); }
.nw-nav a.on { background: var(--ink); color: var(--bg); font-weight: 600; }
.nw-search { margin-left: auto; }
.nw-search input { appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-family: var(--display); font-size: .92rem; width: 150px; transition: width .2s, border-color .15s; }
.nw-search input:focus { outline: none; border-color: var(--accent); width: 230px; }
.nw-search.big { display: flex; gap: 8px; margin: 0 0 22px; }
.nw-search.big input { width: 100%; max-width: 520px; font-size: 1rem; padding: 11px 16px; }
.nw-search.big button { border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 0 18px; font: inherit; font-family: var(--display); font-weight: 600; cursor: pointer; }
.nw-theme { appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.nw-theme:hover { border-color: var(--accent); color: var(--accent-ink); }
/* v5.18.1 — la testata è SEMPRE su due righe: sopra il marchio con cerca, Chiedi, Segnala, Entra/FAC e tema;
   sotto il menu, intero e scorrevole se stretto. Con sei voci di menu e i pulsanti, una riga sola non ci
   stava nemmeno sui monitor grandi (il contenuto è largo al massimo 1180 px). */
.nw-head-in { flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; padding-bottom: 6px; min-height: 0; }
.nw-nav { order: 3; width: 100%; margin: 0 -4px; padding: 2px 4px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nw-nav::-webkit-scrollbar { display: none; }
.nw-nav a { font-size: .95rem; padding: 6px 12px; }
@media (max-width: 760px) {
  .nw-head-in { gap: 8px 6px; }
  .nw-search { display: none; } /* sul telefono la lente (.nw-search-ico) porta a /cerca: vedi «Chiedi» più sotto */
  .nw-logo { height: 25px; }
  .nw-seg-btn { width: 36px; padding: 0; justify-content: center; } .nw-seg-btn .nw-seg-l { display: none; }
}

/* ---- hero: l'immagine a tutta larghezza, il titolo sopra ----------------------------- */
main.nw-wrap { padding-top: 0; padding-bottom: 72px; }
.nw-hero { position: relative; margin: 0 calc(50% - 50vw) 40px; width: 100vw; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); isolation: isolate; }
.nw-hero-img { position: absolute; inset: 0; }
.nw-hero-img img { width: 100%; height: 100%; object-fit: cover; animation: nw-hero-in 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes nw-hero-in { from { transform: scale(1.04); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.nw-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 12, 18, .18) 0%, rgba(13, 12, 18, .32) 30%, rgba(13, 12, 18, .9) 62%, rgba(13, 12, 18, .96) 85%, var(--bg) 100%); pointer-events: none; }
:root[data-theme="light"] .nw-hero::after { background: linear-gradient(180deg, rgba(10, 8, 18, 0) 0%, rgba(10, 8, 18, .2) 40%, rgba(10, 8, 18, .86) 80%, rgba(10, 8, 18, .92) 100%); }
.nw-hero-t { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px 20px 44px; color: #f6f3fb; }
.nw-hero-t .nw-chip { color: rgba(246, 243, 251, .85); }
.nw-hero-t h1 { max-width: 15ch; margin: 14px 0 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 2px 30px rgba(0, 0, 0, .55); }
.nw-hero-t .nw-kicker, .nw-hero-t .nw-chip, .nw-hero-t .nw-stand { text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 20px rgba(0, 0, 0, .5); }
.nw-hero-t h1 a:hover { color: var(--accent-ink); }
.nw-stand { font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.45; color: inherit; font-weight: 400; max-width: 60ch; }
.nw-hero-t .nw-stand { color: rgba(246, 243, 251, .88); margin-bottom: 22px; }
.nw-hero-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nw-hero-acts .nw-btn { background: #f6f3fb; color: #15121c; }
.nw-hero-acts .nw-muted { color: rgba(246, 243, 251, .7); }
.nw-hero.empty { min-height: 40vh; }
.nw-hero-cred { position: absolute; right: 22px; bottom: 16px; z-index: 1; font-family: var(--display); font-size: .74rem; color: rgba(246, 243, 251, .55); }
@media (max-width: 760px) { .nw-hero { min-height: 72vh; } .nw-hero-t { padding: 90px 20px 28px; } }

/* ---- sezioni della prima pagina ---------------------------------------------------- */
.nw-sec { margin: 0 0 56px; }
.nw-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.nw-sec-h h1, .nw-sec-h h2 { margin: 0; }
.nw-sec-t { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; margin: 56px 0 18px; }

/* le brevi in prima pagina: foto con il titolo sopra */
.nw-hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.nw-hb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); isolation: isolate; }
.nw-hb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.nw-hb:hover img { transform: scale(1.04); }
/* v5.15 — titoli leggibili anche su immagini chiare (screenshot, pagine bianche): velo scuro che parte
   più in alto e sale fino quasi al nero dove sta il testo, più un'ombra sul testo stesso */
.nw-hb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 16, .18) 0%, rgba(10, 8, 16, .3) 25%, rgba(10, 8, 16, .78) 55%, rgba(10, 8, 16, .96) 100%); }
.nw-hb b, .nw-hb .nw-kicker, .nw-card-b h3, .nw-card-b .nw-chip, .nw-card-b p { text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 22px rgba(0, 0, 0, .55); }
.nw-hb > span { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; color: #f6f3fb; }
.nw-hb b { font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.nw-hb .nw-kicker { color: var(--accent-ink); }
.nw-hb .nw-badge { align-self: flex-start; margin-top: 4px; background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .3); color: #fff; }
.nw-hb .nw-badge.ok { background: var(--accent); border-color: var(--accent); }
.nw-hb.nopic { background: linear-gradient(160deg, var(--surface-2), var(--accent-soft)); }
.nw-hb.nopic::after { display: none; }
.nw-hb.nopic > span { color: var(--ink); }

/* edizioni in archivio: foto con titolo sopra, formato 16:9 */
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.nw-card { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--surface-2); isolation: isolate; }
.nw-card img, .nw-card-nocover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.nw-card-nocover { background: linear-gradient(160deg, var(--surface-2), var(--accent-soft)); }
.nw-card:hover img { transform: scale(1.04); }
.nw-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 16, .18) 0%, rgba(10, 8, 16, .3) 25%, rgba(10, 8, 16, .8) 55%, rgba(10, 8, 16, .96) 100%); }
.nw-card-b { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 16px 18px; color: #f6f3fb; display: flex; flex-direction: column; gap: 6px; }
.nw-card-b .nw-chip { color: rgba(246, 243, 251, .8); }
.nw-card-b h3 { font-size: 1.2rem; }
.nw-card-b p { display: none; }
.nw-card.big { grid-column: span 2; aspect-ratio: 16 / 8; }
.nw-card.big h3 { font-size: 1.6rem; }
.nw-card.big .nw-card-b p { display: block; font-family: var(--serif); font-size: 1rem; color: rgba(246, 243, 251, .85); margin: 2px 0 0; max-width: 60ch; }
.nw-card.text { aspect-ratio: auto; min-height: 160px; background: var(--surface); border: 1px solid var(--line); }
.nw-card.text::after { display: none; }
.nw-card.text .nw-card-b h3, .nw-card.text .nw-card-b .nw-chip, .nw-card.text .nw-card-b p { text-shadow: none; } /* v5.17 — le card di testo (Manuale, Normativa) non stanno su una foto */
.nw-card.text .nw-card-b { position: static; color: var(--ink); padding: 20px 22px; }
.nw-card.text .nw-card-b p { display: block; color: var(--ink-2); font-size: .98rem; margin-top: 4px; }
.nw-card.text .nw-chip { color: var(--muted); }
@media (max-width: 600px) { .nw-card.big { grid-column: span 1; aspect-ratio: 16 / 10; } }

/* Weekly: banda larga */
.nw-weekly-teaser .nw-wcard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.nw-wcard img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.nw-wcard > div { padding: 30px 34px; }
.nw-wcard h3 { font-size: 1.9rem; margin: 8px 0 12px; }
.nw-wcard p { color: var(--ink-2); }
.nw-wcard:hover h3 { color: var(--accent-ink); }
.nw-top-mini { margin: 0; padding: 0; list-style: none; font-family: var(--display); font-size: .98rem; counter-reset: tm; }
.nw-top-mini li { counter-increment: tm; display: grid; grid-template-columns: 2.2em 1fr; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line); }
.nw-top-mini li::before { content: counter(tm); font-weight: 700; color: var(--accent-ink); }
@media (max-width: 760px) { .nw-weekly-teaser .nw-wcard { grid-template-columns: 1fr; } .nw-wcard img { aspect-ratio: 16 / 9; min-height: 0; } }

.nw-wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.nw-wiki-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px 18px; }
.nw-wiki-sec h3 { font-size: 1.05rem; margin-bottom: 8px; }
.nw-wiki-sec ul { list-style: none; margin: 0; padding: 0; }
.nw-wiki-sec li { padding: 5px 0; font-size: .98rem; line-height: 1.35; border-top: 1px solid var(--line); }
.nw-wiki-sec li a:hover { color: var(--accent-ink); }

/* ---- edizione ---------------------------------------------------------------------- */
.nw-edition { max-width: var(--col); margin: 0 auto; }
.nw-edition .nw-hero { border-radius: 0; }
.nw-toc { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 40px; }
.nw-toc a { font-family: var(--display); font-size: .9rem; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .4em .95em; }
.nw-toc a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.nw-story { margin: 0 0 60px; }
.nw-story-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.nw-story-t { margin: 0 0 20px; }
.nw-story.lead .nw-story-t { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
.nw-briefs .nw-story-t { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.nw-body { font-size: 1.14rem; line-height: 1.62; color: var(--ink); max-width: 66ch; }
.nw-body p { margin: 0 0 1.15em; text-wrap: pretty; }
.nw-body h3 { margin: 1.5em 0 .5em; }
.nw-body ul, .nw-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.nw-body li { margin: .25em 0; }
.nw-body a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.nw-body a:hover { text-decoration-color: var(--accent-ink); }
.nw-story.lead .nw-body > p:first-of-type { font-size: 1.28rem; line-height: 1.5; }

/* in sintesi: tre righe grandi con una riga viola accanto — l'ingresso del pezzo */
.nw-points { margin: 0 0 26px; padding: 0 0 0 18px; border-left: 3px solid var(--accent); max-width: 60ch; }
.nw-points b { display: block; font-family: var(--display); font-size: .84rem; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; }
.nw-points ul { list-style: none; margin: 0; padding: 0; }
.nw-points li { font-family: var(--serif); font-size: 1.22rem; line-height: 1.35; font-weight: 500; margin: 0 0 .45em; }
/* scheda: i numeri grandi, in fila */
.nw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 10px 0 28px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.nw-facts > div { padding: 14px 18px 14px 0; }
.nw-facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.nw-facts dt { font-family: var(--display); font-size: .82rem; color: var(--muted); margin: 0 0 4px; }
.nw-facts dd { margin: 0; font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.nw-quote { margin: 18px 0 28px; padding: 0; max-width: 60ch; }
.nw-quote p { margin: 0 0 6px; font-family: var(--serif-display); font-size: 1.7rem; line-height: 1.25; font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
.nw-quote p::before { content: none; }
.nw-quote cite { font-style: normal; font-family: var(--display); font-size: .88rem; color: var(--muted); }
.nw-impact { margin: 22px 0 0; padding: 18px 22px; background: var(--accent-soft); border-radius: var(--r-s); font-size: 1.05rem; max-width: 66ch; }
.nw-impact b { display: block; font-family: var(--display); font-size: .88rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 6px; }
.nw-impact p { margin: 0; }
.nw-sources { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--display); font-size: .86rem; color: var(--muted); }
.nw-sources li { padding: 3px 0 3px 16px; position: relative; }
.nw-sources li::before { content: "↗"; position: absolute; left: 0; top: 3px; color: var(--accent-ink); }
.nw-sources a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.nw-sources a:hover { color: var(--ink); }
.nw-sources span { margin-left: 4px; opacity: .8; }
.nw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.nw-tag, .nw-chip-link { display: inline-block; font-family: var(--display); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: .84rem; color: var(--ink-2); }
.nw-tag:hover, .nw-chip-link:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.nw-tag.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nw-chip-link { font-size: .92rem; padding: 7px 14px; }
.nw-chip-link small { color: var(--muted); margin-left: 4px; }

/* immagini dei pezzi: larghe, con il credito piccolo */
.nw-pic { margin: 10px 0 26px; }
.nw-pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--surface-2); box-shadow: var(--shadow); }
.nw-pic figcaption { font-family: var(--display); font-size: .8rem; color: var(--muted); margin-top: 8px; }
.nw-pic figcaption a:hover { color: var(--accent-ink); }
.nw-pic.lead { width: min(var(--wide), 100vw - 40px); margin-left: calc(50% - min(var(--wide), 100vw - 40px) / 2); }
.nw-story-grid { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
.nw-story.has-pic .nw-story-grid { grid-template-columns: minmax(0, 1fr); }
.nw-story.has-pic .nw-pic.side { margin: 0 0 22px; }
.nw-story.has-pic .nw-pic.side img { aspect-ratio: 16 / 8; }

/* spunto del giorno */
.nw-spunto { margin: 40px 0; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.nw-spunto h2, .nw-spunto h3 { margin: 6px 0 12px; }
.nw-spunto-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 26px; align-items: start; }
.nw-spunto-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); }
@media (max-width: 760px) { .nw-spunto-row { grid-template-columns: 1fr; } }
.nw-prompt-box { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--code); }
.nw-prompt-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; font-family: var(--display); font-size: .84rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.nw-prompt { margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: .86rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; background: var(--code); border-radius: var(--r-s); color: var(--ink-2); }
.nw-prompt-box .nw-prompt { border-radius: 0; }
.nw-copy { appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 4px 11px; font: inherit; font-family: var(--display); font-size: .8rem; font-weight: 600; cursor: pointer; }
.nw-copy:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.nw-copy.ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.nw-steps { padding-left: 1.4em; } .nw-steps li { margin: .4em 0; }

/* Wiki-AI: il pannello che risponde — l'unico elemento che brilla */
.nw-ask { margin: 48px 0; padding: 30px 32px; border-radius: var(--r); background: radial-gradient(120% 140% at 0% 0%, rgba(191, 0, 255, .22), transparent 55%), var(--surface); border: 1px solid rgba(191, 0, 255, .35); box-shadow: var(--accent-glow); }
.nw-ask.compact { margin: 0 0 56px; }
.nw-ask-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.nw-ask h2 { margin: 0 0 10px; }
.nw-ask > p { color: var(--ink-2); max-width: 64ch; font-size: 1.05rem; }
.nw-ask-qs { list-style: none; margin: 12px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nw-ask-qs a { display: inline-block; font-family: var(--display); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: .92rem; color: var(--ink); background: var(--surface-2); transition: border-color .15s, transform .15s; }
.nw-ask-qs a:hover { border-color: var(--accent-ink); color: var(--accent-ink); transform: translateY(-1px); }
.nw-ask-f { display: flex; gap: 10px; flex-wrap: wrap; }
.nw-ask-f input { flex: 1 1 280px; appearance: none; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 12px 18px; font: inherit; font-family: var(--display); font-size: 1rem; }
.nw-ask-f input::placeholder { color: var(--muted); }
.nw-ask-f input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.nw-prevnext { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); font-family: var(--display); font-weight: 600; font-size: .98rem; }
.nw-prevnext a:hover { color: var(--accent-ink); }
.nw-pages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; font-family: var(--display); }
.nw-pages a, .nw-pages b { min-width: 34px; text-align: center; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .9rem; }
.nw-pages b { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nw-list { list-style: none; margin: 0; padding: 0; }
.nw-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.nw-list li a { font-weight: 500; }
.nw-list li a:hover { color: var(--accent-ink); }
.nw-list .nw-muted { margin-left: 6px; }

/* ---- Weekly --------------------------------------------------------------------- */
.nw-top-list { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.nw-top-list > li { counter-increment: top; position: relative; padding: 18px 0 18px 72px; border-bottom: 1px solid var(--line); }
.nw-top-list > li::before { content: counter(top); position: absolute; left: 0; top: 10px; font-family: var(--display); font-size: 3rem; font-weight: 700; color: var(--accent-ink); line-height: 1; letter-spacing: -.04em; }
.nw-top-list h3 { margin-bottom: 6px; font-size: 1.35rem; }
.nw-top-list p { margin: 0 0 6px; color: var(--ink-2); }
.nw-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.nw-model { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
.nw-model h3 { margin: 4px 0 8px; }
.nw-model p { font-size: .98rem; color: var(--ink-2); margin: 0; }
.nw-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 34px 0; }
.nw-number { padding: 18px 16px; border-top: 2px solid var(--accent); }
.nw-number b { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.nw-number span { display: block; font-family: var(--display); font-size: .92rem; color: var(--ink-2); }
.nw-number a { display: block; margin-top: 6px; font-family: var(--display); font-size: .78rem; color: var(--muted); text-decoration: underline; }
.nw-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.nw-gal a { display: block; border-radius: var(--r-s); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.nw-gal img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nw-gal span { display: block; padding: 8px 10px; font-family: var(--display); font-size: .86rem; font-weight: 500; }

/* ---- Manuale -------------------------------------------------------------------- */
.nw-wiki-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.nw-wiki-block { margin: 0 0 34px; }
.nw-wiki-block h2 { margin-bottom: 4px; }
.nw-wiki-block > .nw-muted { margin-bottom: 14px; }
.nw-wiki-body h3 { font-size: 1.4rem; margin: 1.6em 0 .5em; padding-top: .4em; border-top: 1px solid var(--line); }
.nw-wiki-foot { margin-top: 30px; }
.nw-wiki-foot .nw-muted { margin-top: 14px; line-height: 1.55; font-family: var(--serif); font-size: .98rem; }
.nw-wiki-foot .nw-muted a { text-decoration: underline; }

/* ---- piè di pagina --------------------------------------------------------------- */
.nw-foot { border-top: 1px solid var(--line); padding: 30px 0 46px; font-family: var(--display); font-size: .9rem; color: var(--muted); background: var(--surface); }
.nw-foot b { color: var(--ink-2); }
.nw-foot a { text-decoration: underline; text-decoration-color: var(--line-2); }
.nw-foot a:hover { color: var(--accent-ink); }
.nw-foot-links { margin: 0; }

::selection { background: var(--accent); color: #fff; }
@media print {
  .nw-head, .nw-foot, .nw-prevnext, .nw-copy, .nw-theme, .nw-search, .nw-ask, .nw-segbox, .nw-seg-btn, dialog.nw-seg { display: none !important; }
  body { background: #fff; color: #000; }
  .nw-edition { max-width: none; }
}

/* pagine senza hero (Weekly, Manuale, archivio): respiro in alto, copertina classica */
main.nw-wrap > .nw-sec:first-child, main.nw-wrap > .nw-edition > .nw-ed-head { padding-top: 40px; }
.nw-ed-head { margin: 0 0 30px; }
.nw-ed-head h1 { margin: 12px 0 14px; }
.nw-ed-head .nw-stand { color: var(--ink-2); margin-bottom: 18px; }
.nw-cover { margin: 22px 0 0; }
.nw-cover img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); background: var(--surface-2); }
.nw-cover figcaption { font-family: var(--display); font-size: .8rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .nw-hero { flex-wrap: wrap; } .nw-hero-cred { position: relative; right: auto; bottom: auto; width: 100%; padding: 0 20px 14px; text-align: right; } }

/* ---- v5.2.2: elementi da rivista ------------------------------------------------- */
/* note a margine: il succo di ogni paragrafo, a sinistra del testo sui grandi schermi */
.nw-body.heads { max-width: none; }
.nw-para { display: grid; grid-template-columns: 1fr; gap: 2px 0; margin: 0 0 1.1em; max-width: 66ch; align-items: start; }
.nw-head { font-family: var(--display); font-weight: 500; font-size: .86rem; line-height: 1.3; color: var(--accent-ink); letter-spacing: 0; }
.nw-para .nw-body p, .nw-para p { margin: 0; }
@media (min-width: 1040px) {
  .nw-para { grid-template-columns: 150px minmax(0, 1fr); gap: 0 22px; margin-left: -172px; max-width: calc(66ch + 172px); }
  .nw-head { text-align: right; padding-top: .3em; color: var(--muted); }
}
/* schemi dai dati: barre, flusso, confronto, cronologia */
.nw-dia { margin: 26px 0 30px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-width: 66ch; }
.nw-dia figcaption { font-family: var(--display); font-weight: 500; font-size: .98rem; margin: 0 0 14px; color: var(--ink); }
.nw-bars { display: grid; gap: 10px; }
.nw-bar { display: grid; grid-template-columns: minmax(90px, 1fr) 3fr auto; gap: 12px; align-items: center; font-family: var(--display); font-size: .92rem; }
.nw-bar span { color: var(--ink-2); }
.nw-bar i { display: block; height: 14px; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-ink)); border-radius: 7px; min-width: 6px; }
.nw-bar b { font-weight: 700; font-variant-numeric: tabular-nums; }
.nw-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: fl; }
.nw-flow li { counter-increment: fl; position: relative; flex: 1 1 140px; background: var(--surface-2); border-radius: var(--r-s); padding: 12px 14px 12px 40px; font-family: var(--display); }
.nw-flow li::before { content: counter(fl); position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nw-flow li b { display: block; font-weight: 700; font-size: .95rem; line-height: 1.2; }
.nw-flow li span { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.nw-compare { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: .92rem; }
.nw-compare th, .nw-compare td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.nw-compare thead th { font-weight: 500; color: var(--muted); font-size: .8rem; }
.nw-compare tbody th { font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.nw-tl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--accent); display: grid; gap: 12px; }
.nw-tl li { position: relative; font-family: var(--display); }
.nw-tl li::before { content: ""; position: absolute; left: -24px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.nw-tl b { display: block; font-weight: 700; font-size: .84rem; color: var(--accent-ink); }
.nw-tl span { font-size: .95rem; line-height: 1.35; }
/* il video dell'annuncio: poster + play, il player arriva al click */
.nw-video { margin: 10px 0 26px; width: min(var(--wide), 100vw - 40px); margin-left: calc(50% - min(var(--wide), 100vw - 40px) / 2); }
.nw-story.has-pic .nw-video, .nw-briefs .nw-video { width: auto; margin-left: 0; }
.nw-video .nw-play, .nw-video iframe, .nw-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000; overflow: hidden; position: relative; padding: 0; cursor: pointer; }
.nw-video .nw-play img, .nw-play-bg { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.nw-play-bg { background: linear-gradient(160deg, var(--surface-2), var(--accent-soft)); }
.nw-video .nw-play:hover img { opacity: 1; transform: scale(1.02); }
.nw-video .nw-play > span { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); box-shadow: 0 10px 40px -8px rgba(191, 0, 255, .8); }
.nw-video .nw-play > span::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.nw-video figcaption { font-family: var(--display); font-size: .8rem; color: var(--muted); margin-top: 8px; }
.nw-video figcaption a { text-decoration: underline; }

/* ---- 🔗 Segnala (v5.5): pulsante in testata, riquadro nelle pagine, finestra con il modulo ---- */
.nw-seg-btn { appearance: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid #BF00FF; background: #BF00FF; color: #fff; font-family: var(--display); font-size: .92rem; font-weight: 600; cursor: pointer; flex: 0 0 auto; transition: box-shadow .15s, transform .15s; }
.nw-seg-btn:hover { box-shadow: 0 0 0 1px rgba(191, 0, 255, .4), 0 10px 30px -10px rgba(191, 0, 255, .8); transform: translateY(-1px); }
.nw-seg-btn:focus-visible, .nw-seg :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.nw-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.nw-btn.ghost:hover { color: var(--ink); border-color: var(--ink-2); box-shadow: none; }
button.nw-btn { border: 0; cursor: pointer; font: inherit; font-family: var(--display); font-size: .98rem; font-weight: 600; }
button.nw-btn.ghost { border: 1px solid var(--line-2); }
button.nw-btn:disabled { opacity: .6; cursor: progress; }

.nw-segbox { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin: 40px 0 56px; padding: 26px 30px; border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--surface); }
.nw-segbox h2 { margin: 4px 0 6px; font-family: var(--display); font-size: 1.45rem; letter-spacing: -.02em; }
.nw-segbox p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.nw-segbox > div { flex: 1 1 420px; }

dialog.nw-seg { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(191, 0, 255, .25); overflow: auto; }
dialog.nw-seg::backdrop { background: rgba(6, 4, 12, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nw-seg-f, .nw-seg-done { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.nw-seg-f[hidden], .nw-seg-done[hidden], .nw-seg-ext[hidden], .nw-seg-me[hidden], .nw-seg-note[hidden] { display: none; }
.nw-seg-head { position: relative; padding-right: 40px; margin-bottom: 6px; }
.nw-seg-head h2 { margin: 2px 0 0; font-family: var(--display); font-size: 1.6rem; letter-spacing: -.02em; }
.nw-seg-x { position: absolute; right: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: .9rem; cursor: pointer; }
.nw-seg-x:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.nw-seg-me { margin: 0 0 6px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-family: var(--display); font-size: .95rem; }
.nw-seg .nw-seg-l { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 4px; font-family: var(--display); font-size: .9rem; font-weight: 600; color: var(--ink); }
.nw-seg .nw-seg-l small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.nw-seg input[type="url"], .nw-seg input[type="text"], .nw-seg input[type="email"], .nw-seg textarea { width: 100%; appearance: none; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 11px 14px; font: inherit; font-family: var(--display); font-size: 1rem; }
.nw-seg textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
.nw-seg input:focus, .nw-seg textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nw-seg-cats { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nw-seg-cats legend { width: 100%; padding: 0; }
.nw-seg-cats label { position: relative; cursor: pointer; }
.nw-seg-cats input { position: absolute; opacity: 0; pointer-events: none; }
.nw-seg-cats span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); font-family: var(--display); font-size: .9rem; color: var(--ink); transition: border-color .12s, background .12s; }
.nw-seg-cats label:hover span { border-color: var(--accent-ink); }
.nw-seg-cats input:checked + span { background: #BF00FF; border-color: #BF00FF; color: #fff; font-weight: 600; }
.nw-seg-cats input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.nw-seg-ext { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.nw-seg-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nw-seg-note { margin: 10px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.nw-seg-msg { margin: 4px 0 0; min-height: 1.2em; font-family: var(--display); font-size: .92rem; color: var(--accent-ink); }
.nw-seg-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.nw-seg-done { align-items: flex-start; padding: 34px 30px 28px; }
.nw-seg-done h2 { margin: 6px 0 2px; font-family: var(--display); font-size: 1.7rem; letter-spacing: -.02em; }
.nw-seg-done p { margin: 0 0 14px; color: var(--ink-2); }
.nw-seg-ok { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #BF00FF; color: #fff; font-size: 1.4rem; box-shadow: 0 10px 30px -8px rgba(191, 0, 255, .8); }
@media (max-width: 560px) { .nw-seg-ext { grid-template-columns: 1fr; } .nw-seg-f, .nw-seg-done { padding: 20px 18px 18px; } .nw-segbox { padding: 22px 20px; } }

/* ---- 💬 Chiedi a FWKS News (v5.6): il pulsante in testata e la pagina /chiedi ---- */
.nw-askbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px 0 12px; border-radius: 999px; border: 1px solid rgba(191, 0, 255, .55); background: var(--accent-soft); color: var(--ink); font-family: var(--display); font-size: .92rem; font-weight: 600; white-space: nowrap; flex: 0 0 auto; transition: border-color .15s, box-shadow .15s, transform .15s; }
.nw-askbtn:hover { border-color: #BF00FF; color: var(--ink); box-shadow: 0 8px 26px -12px rgba(191, 0, 255, .8); transform: translateY(-1px); }
.nw-askbtn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nw-search-ico { display: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; flex: 0 0 auto; }
@media (max-width: 1240px) { .nw-askbtn-l2 { display: none; } }
@media (max-width: 760px) {
  .nw-search-ico { display: inline-flex; margin-left: auto; }
  .nw-askbtn { width: 36px; padding: 0; justify-content: center; } .nw-askbtn .nw-askbtn-l { display: none; }
}
@media (max-width: 960px) and (min-width: 761px) { .nw-nav a { padding: 7px 9px; } .nw-head-in { gap: 12px; } .nw-search input { width: 120px; } }
.nw-ask-h .nw-more { margin-left: auto; }
.nw-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nw-askpage { max-width: var(--wide); margin: 0 auto; padding-bottom: 24px; }
.nw-askhero { position: relative; padding: 72px 0 8px; text-align: center; isolation: isolate; }
.nw-askhero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 10px; width: min(900px, 100vw); height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(191, 0, 255, .28), transparent 72%); filter: blur(10px); pointer-events: none; }
:root[data-theme="light"] .nw-askhero::before { background: radial-gradient(closest-side, rgba(154, 0, 214, .14), transparent 72%); }
.nw-askhero h1 { margin: 10px 0 16px; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.035em; }
.nw-askhero-p { max-width: 62ch; margin: 0 auto 30px; color: var(--ink-2); font-size: 1.12rem; }
.nw-askbox { display: flex; align-items: flex-end; gap: 10px; max-width: 760px; margin: 0 auto; padding: 10px 10px 10px 22px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); text-align: left; transition: border-color .15s, box-shadow .15s; }
.nw-askbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.nw-askbox textarea { flex: 1 1 auto; min-height: 52px; max-height: 200px; resize: none; field-sizing: content; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-family: var(--display); font-size: 1.15rem; line-height: 1.4; padding: 13px 0; }
.nw-askbox textarea::placeholder { color: var(--muted); }
.nw-askbox .nw-btn { border: 0; cursor: pointer; padding: .8em 1.5em; font-size: 1rem; flex: 0 0 auto; }
.nw-askbox .nw-btn:disabled { opacity: .7; cursor: progress; }
.nw-askme { max-width: 760px; margin: 14px auto 0; font-family: var(--display); font-size: .9rem; color: var(--muted); }
.nw-askme.team { color: var(--ink-2); }
.nw-askme b { color: var(--ink); }
.nw-askme.flash { animation: nw-flash 1.2s ease; }
@keyframes nw-flash { 0%, 100% { color: var(--muted); } 30% { color: var(--accent-ink); } }

.nw-askout { scroll-margin-top: 90px; }
.nw-askout:not(:empty) { margin: 44px 0 8px; }
.nw-answer { padding: 34px 38px 26px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.nw-answer.conf-alta { border-color: rgba(191, 0, 255, .45); }
.nw-answer-q h2 { margin: 8px 0 20px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nw-answer-body p { font-size: 1.12rem; line-height: 1.65; color: var(--ink); }
.nw-cite { font-family: var(--display); font-size: .68em; font-weight: 700; margin-left: 1px; }
.nw-cite a { display: inline-block; min-width: 1.5em; padding: 0 .3em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); text-align: center; line-height: 1.5; }
.nw-cite a:hover { background: #BF00FF; color: #fff; }
.nw-answer-box { margin: 22px 0; padding: 20px 24px; border-radius: 16px; background: var(--surface-2); }
.nw-answer-box h3 { font-size: 1.1rem; margin-bottom: 10px; }
.nw-answer-box ol, .nw-answer-box ul { margin: 0; padding-left: 1.3em; }
.nw-answer-box li { margin: 6px 0; line-height: 1.5; }
.nw-answer-box ol li::marker { font-family: var(--display); font-weight: 700; color: var(--accent-ink); }
.nw-answer-box.tests { background: transparent; border: 1px dashed var(--line-2); }
.nw-answer-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.nw-atool { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--display); font-size: .86rem; font-weight: 500; color: var(--ink-2); cursor: help; }
.nw-atool.ok { border-color: rgba(52, 211, 153, .5); color: var(--ink); background: rgba(52, 211, 153, .1); }
.nw-answer-refs { margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.nw-answer-refs h3, .nw-answer-more h3 { font-size: .95rem; text-transform: none; color: var(--muted); margin-bottom: 10px; }
.nw-answer-refs ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nw-answer-refs li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; scroll-margin-top: 100px; border-radius: 10px; }
.nw-answer-refs li:target { background: var(--accent-soft); }
.nw-answer-refs i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-family: var(--display); font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.nw-answer-refs span { display: flex; flex-direction: column; font-family: var(--display); line-height: 1.3; }
.nw-answer-refs small { color: var(--muted); font-size: .78rem; }
.nw-answer-refs a, .nw-answer-refs b { font-weight: 600; font-size: .98rem; }
.nw-answer-refs a:hover { color: var(--accent-ink); }
.nw-answer-more { margin-top: 18px; }
.nw-answer-more .nw-ask-qs { margin: 0; }
.nw-answer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--display); font-size: .85rem; color: var(--muted); }
.nw-answer-foot a { color: var(--accent-ink); font-weight: 600; }
.nw-answer.conf-bassa .nw-conf::before { content: "⚠ "; }
.nw-answer-wait { text-align: center; padding: 40px 30px; }
.nw-answer-wait h2 { margin: 8px auto 18px; max-width: 30ch; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.nw-dots { display: inline-flex; gap: 8px; margin-bottom: 10px; }
.nw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #BF00FF; animation: nw-dot 1.1s ease-in-out infinite; }
.nw-dots i:nth-child(2) { animation-delay: .15s; } .nw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nw-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .35; } 40% { transform: scale(1); opacity: 1; } }
.nw-answer-err { padding: 18px 22px; border-radius: 14px; border: 1px solid rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); font-family: var(--display); }

.nw-asksug { margin-top: 12px; text-align: center; }
.nw-asksug .nw-sec-t { font-size: 1.15rem; color: var(--muted); margin: 48px 0 14px; }
.nw-asksug .nw-ask-qs { justify-content: center; }
.nw-ask-qs a.today { border-color: rgba(191, 0, 255, .5); }
.nw-askrecent .nw-sec-t { font-size: 1.35rem; }
.nw-askrecent-l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nw-askrecent-l li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; padding: 13px 2px; border-bottom: 1px solid var(--line); font-family: var(--display); }
.nw-askrecent-l a { font-weight: 600; font-size: 1.02rem; }
.nw-askrecent-l a:hover { color: var(--accent-ink); }
.nw-askrecent-l span { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.nw-askhow > .nw-sec-t { text-align: center; }
.nw-askhow-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nw-askhow-g > div { padding: 22px 22px 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.nw-askhow-g span { font-size: 1.5rem; }
.nw-askhow-g h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.nw-askhow-g p { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
@media (max-width: 760px) {
  .nw-askhero { padding-top: 40px; }
  .nw-askhero-p { font-size: 1.02rem; }
  .nw-askbox { flex-direction: column; align-items: stretch; padding: 8px 8px 8px 16px; border-radius: 20px; }
  .nw-askbox textarea { font-size: 1.05rem; padding: 10px 6px 4px 0; }
  .nw-askbox .nw-btn { justify-content: center; }
  .nw-answer { padding: 24px 20px 18px; border-radius: 18px; }
  .nw-answer-box { padding: 16px 18px; }
  .nw-askhow-g { grid-template-columns: 1fr; }
}
@media print { .nw-askbox, .nw-askme, .nw-asksug, .nw-askrecent, .nw-askhow, .nw-answer-foot a { display: none !important; } }
.nw-prompt-h .nw-copy { white-space: nowrap; flex: 0 0 auto; }

/* v5.12 — rubrica «Design & Motion» (oltre l'AI) */
.nw-studio-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 56px 0 18px; padding-top: 22px; border-top: 2px solid var(--accent); }
.nw-studio-h .nw-sec-t { margin: 0; }
.nw-studio-h .nw-sec-t::before { content: "◆ "; color: var(--accent-ink); }
.nw-studio-h .nw-muted { margin: 0; }
.nw-studio .nw-impact b::before { content: "✂ "; }
.nw-toc a.studio { border-color: var(--accent-soft); color: var(--accent-ink); }
.nw-hero-briefs.nw-studio .nw-sec-h h2::before { content: "◆ "; color: var(--accent-ink); }
.nw-top.nw-studio .nw-sec-t::before { content: "◆ "; color: var(--accent-ink); }

/* ⚖️ v5.15 — Normativa: hub, lettore dei testi integrali, estratti, FAQ */
.nw-law-hub .nw-stand { max-width: 72ch; }
.nw-law-hub .nw-stand .nw-btn { display: inline-block; margin-left: 8px; }
.nw-card.text.off { opacity: .55; pointer-events: none; }
.nw-law-disc { font-size: .88rem; max-width: 80ch; margin: 28px 0 0; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-s); }
.nw-law-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; margin: 0 0 30px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(135deg, var(--accent-soft), transparent 60%); }
.nw-law-teaser h3 { font-size: 1.35rem; margin: 6px 0 6px; font-family: var(--serif-display); }
.nw-law-teaser .nw-list { margin: 0; }
.nw-law-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 22px; }
.nw-law-nav { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding-right: 6px; font-family: var(--display); font-size: .9rem; }
.nw-law-nav details { border-top: 1px solid var(--line); padding: 8px 0; }
.nw-law-nav summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.nw-law-nav summary::-webkit-details-marker { display: none; }
.nw-law-nav summary small { color: var(--muted); font-weight: 400; }
.nw-law-nav ul { list-style: none; margin: 8px 0 0; padding: 0; }
.nw-law-nav li a { display: block; padding: 4px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; line-height: 1.3; }
.nw-law-nav li a[data-l="2"] { padding-left: 18px; } .nw-law-nav li a[data-l="3"] { padding-left: 30px; font-size: .85rem; }
.nw-law-nav li a:hover { background: var(--surface-2); color: var(--ink); }
.nw-law-nav li a.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nw-law-nav li.hide { display: none; }
.nw-law-filter, .nw-law-find input { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; margin: 0 0 10px; }
.nw-law-find.big { display: flex; gap: 10px; margin: 18px 0 24px; max-width: 640px; } .nw-law-find.big input { margin: 0; }
.nw-law-unit h2 { font-family: var(--serif-display); font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 6px 0 16px; line-height: 1.15; }
.nw-law-text { max-width: 76ch; }
.nw-law-text p { margin: 0 0 .85em; }
.nw-law-pn { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--display); font-size: .92rem; }
.nw-law-hits li { padding: 12px 0; border-bottom: 1px solid var(--line); } .nw-law-hits li p { margin: 4px 0 0; font-size: .92rem; }
.nw-law-box { margin: 26px 0; padding: 20px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.nw-law-box h2 { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); margin: 0 0 10px; }
.nw-law-box.open { border-style: dashed; }
.nw-law-box ol, .nw-law-box ul { margin: 0; padding-left: 20px; } .nw-law-box li { margin: 6px 0; }
.nw-cite, .nw-ref { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.nw-refs { margin: 10px 0 0; font-family: var(--display); font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.nw-refs-l { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.nw-faq { border-top: 1px solid var(--line); padding: 14px 0; }
.nw-faq summary { cursor: pointer; list-style: none; display: grid; gap: 4px; }
.nw-faq summary::-webkit-details-marker { display: none; }
.nw-faq-q { font-family: var(--serif-display); font-size: 1.22rem; line-height: 1.25; }
.nw-faq-s { font-family: var(--display); color: var(--muted); font-size: .92rem; }
.nw-faq[open] .nw-faq-s { display: none; }
.nw-faq .nw-body { margin-top: 12px; max-width: 76ch; }
@media (max-width: 860px) { .nw-law-wrap { grid-template-columns: 1fr; } .nw-law-nav { position: static; max-height: none; } .nw-law-teaser { grid-template-columns: 1fr; } }
.nw-law-text .l-par { margin-top: .9em; } .nw-law-text .l-let { padding-left: 1.6em; } .nw-law-text .l-pt { padding-left: 3.2em; }
.nw-law-text .l-head { font-family: var(--display); font-weight: 600; margin-top: 1.4em; letter-spacing: .02em; }

/* v5.16 — link diretto e «Condividi» per ogni articolo; pagina dell'articolo; sommario */
.nw-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-family: var(--display); font-size: .9rem; }
.nw-share-a { color: var(--muted); }
.nw-share-a:hover { color: var(--accent-ink); }
.nw-share-b { font: inherit; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .4em .95em; cursor: pointer; }
.nw-share-b:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.nw-share-b.ok { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.nw-crumb { font-family: var(--display); font-size: .92rem; margin: 0 0 22px; }
.nw-article .nw-story.lead .nw-story-t { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.nw-others .nw-sec-t { margin-top: 48px; }
.nw-tools { font-family: var(--display); font-size: .92rem; margin: 32px 0 0; }

/* v5.17 — card «a pila»: foto intera sopra, testo sotto (Weekly, rubriche) */
.nw-grid.stack { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px 18px; }
.nw-stack { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.nw-stack:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.nw-stack-img { display: block; aspect-ratio: 16 / 9; background: linear-gradient(160deg, var(--surface-2), var(--accent-soft)); overflow: hidden; }
.nw-stack-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.nw-stack:hover .nw-stack-img img { transform: scale(1.03); }
.nw-stack-b { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; color: var(--ink); }
.nw-stack-b .nw-chip { color: var(--muted); }
.nw-stack-b .nw-kicker { color: var(--accent-ink); }
.nw-stack-b b { font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.nw-stack:hover .nw-stack-b b { color: var(--accent-ink); }
.nw-stack-b p { margin: 2px 0 0; color: var(--ink-2); font-size: .98rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-stack.nopic .nw-stack-img { aspect-ratio: 16 / 5; }
/* intestazioni di sezione cliccabili, con il «tutte →» accanto */
.nw-sec-t a, .nw-sec-h h2 a { color: inherit; }
.nw-sec-t a:hover, .nw-sec-h h2 a:hover { color: var(--accent-ink); }
.nw-sec-all { font-size: .82rem; font-weight: 500; letter-spacing: 0; margin-left: 10px; vertical-align: middle; }
.nw-sec-all a { color: var(--muted); }
.nw-sec-all a:hover { color: var(--accent-ink); }
.nw-kicker .nw-sec-all { font-size: .78rem; text-transform: none; letter-spacing: 0; }
.nw-chip-link.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nw-rubrica .nw-tags { margin: -8px 0 22px; }
.nw-tag.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
/* ⚖️ Normativa: un colore suo, in menu e su tutte le sue pagine */
:root { --law: #0f766e; --law-ink: #0f766e; --law-soft: rgba(15, 118, 110, .12); }
:root:not([data-theme="light"]) { --law: #14b8a6; --law-ink: #5eead4; --law-soft: rgba(20, 184, 166, .16); }
.nw-nav a.law { color: var(--law-ink); }
.nw-nav a.law.on { background: var(--law); color: #fff; }
html[data-kind="law"] { --accent: var(--law); --accent-ink: var(--law-ink); --accent-soft: var(--law-soft); }

/* v5.17 — ⚖️ Normativa: la norma (colore legge) separata dal notiziario (viola) */
.nw-law-lead { max-width: 72ch; margin: -8px 0 16px; }
.nw-law-hub .nw-law-find.big { margin: 8px 0 32px; }
.nw-card.text.law { border-color: var(--law-soft); }
.nw-card.text.law:hover h3 { color: var(--law-ink); }
.nw-card.text.law .nw-chip i { background: var(--law); }
.nw-law-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
.nw-law-cols > .nw-law-hub { min-width: 0; }
.nw-law-news { --accent: #bf00ff; --accent-ink: #d98aff; --accent-soft: rgba(191, 0, 255, .14); position: sticky; top: 80px; margin-top: 40px; padding: 22px 22px 26px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid rgba(191, 0, 255, .25); max-height: calc(100vh - 100px); overflow-y: auto; }
.nw-law-news .nw-sec-h { flex-direction: column; align-items: flex-start; gap: 4px; }
.nw-law-news .nw-sec-h h2 { font-size: 1.25rem; }
.nw-law-news .nw-list li { font-size: .95rem; padding: 8px 0; }
.nw-grid.stack.one { grid-template-columns: 1fr; gap: 12px; }
.nw-grid.stack.one .nw-stack-b { padding: 12px 14px 14px; } .nw-grid.stack.one .nw-stack-b b { font-size: 1.02rem; }
@media (max-width: 900px) { .nw-law-cols { grid-template-columns: 1fr; } .nw-law-news { position: static; max-height: none; order: -1; margin-top: 24px; } }
:root[data-theme="light"] .nw-law-news { --accent: #9a00d6; --accent-ink: #7a00ab; --accent-soft: rgba(154, 0, 214, .09); }
.nw-law-news .nw-sec-h { margin-bottom: 10px; }
.nw-law-news .nw-sec-t.sm { font-size: 1.15rem; margin: 26px 0 10px; }
.nw-law-note { font-family: var(--display); font-size: .95rem; margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--law); background: var(--law-soft); border-radius: 0 var(--r-s) var(--r-s) 0; }
.nw-law-note a { color: var(--law-ink); font-weight: 600; }

/* v5.17 — un solo notiziario: le parti riservate al team (visibili dopo l'accesso a FAC) */
.nw-team { margin: 44px 0 0; padding: 22px 24px 24px; border: 1px dashed var(--accent); border-radius: var(--r); background: var(--accent-soft); }
.nw-team-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.nw-team-h .nw-kicker { font-size: .95rem; }
.nw-team-lock { font-family: var(--display); font-size: .76rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; background: var(--surface); }
.nw-team-note { font-size: .88rem; margin: 14px 0 0; }
.nw-team h4 { font-family: var(--display); font-size: 1rem; margin: 18px 0 8px; }
.nw-toc a.team { border-style: dashed; color: var(--accent-ink); }
.nw-fac-links { font-family: var(--display); font-size: .92rem; margin: 16px 0 0; }
.nw-fac-a { color: var(--accent-ink); font-weight: 600; }
.nw-fac-try { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.nw-ver { display: inline-block; font-family: var(--display); font-size: .78rem; font-weight: 700; color: var(--accent-ink); border: 1px solid var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-right: 6px; background: var(--surface); }
.nw-house { margin-top: 0; }
.nw-house .nw-story-t { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nw-house-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.nw-house-ico { font-size: 1.5rem; line-height: 1; padding-top: 4px; }
.nw-house-item h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 6px; }
.nw-house-meta { margin: 0 0 8px; font-size: .85rem; }
.nw-house-try { font-family: var(--display); font-size: .95rem; padding: 10px 14px; background: var(--surface); border-radius: var(--r-s); }
.nw-house-outro { font-style: italic; margin-top: 18px; }
.nw-req { list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: .95rem; }
.nw-req li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.nw-req-n { font-weight: 700; color: var(--accent-ink); flex: none; }
.nw-req-s { margin-left: auto; font-size: .78rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 9px; flex: none; }
.nw-req-s.ok { color: var(--accent-ink); border-color: var(--accent); }
.nw-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nw-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--surface-2); }
.nw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nw-thumb-play { position: absolute; top: 8px; left: 8px; font-size: .8rem; color: #fff; background: rgba(0, 0, 0, .55); border-radius: 999px; padding: 2px 8px; }
.nw-thumb-star { position: absolute; top: 8px; right: 8px; color: #ffd166; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.nw-thumb-cap { position: absolute; inset: auto 0 0 0; padding: 18px 10px 8px; font-family: var(--display); font-size: .74rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); }
.nw-tlinks { display: grid; gap: 14px; }
.nw-tlink { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.nw-tlink-pic { position: relative; display: block; min-height: 90px; background: var(--surface-2); }
.nw-tlink-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-tlink-pic > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; }
.nw-tlink-pic img + span { display: none; }
.nw-tlink > div { padding: 12px 14px 12px 0; }
.nw-tlink h4 { font-family: var(--display); font-size: 1.05rem; margin: 4px 0 6px; }
.nw-tlink-why { font-size: .95rem; color: var(--ink-2); margin: 0; }
.nw-tlink-why.also { margin-top: 4px; }
.nw-tlink-why i { color: var(--muted); }
.nw-fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 0; }
.nw-fac-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); font-family: var(--display); font-size: .92rem; }
.nw-fac-card b { font-size: 1rem; }
.nw-fac-card span { color: var(--ink-2); }
.nw-props { display: grid; gap: 14px; }
.nw-prop { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--r-s); }
.nw-prop.pr-alta { border-left-color: var(--accent); }
.nw-prop.st-fatta, .nw-prop.st-scartata { opacity: .7; }
.nw-prop-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-family: var(--display); font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.nw-prop-head > span { border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 9px; }
.nw-prop-type { color: var(--ink); }
.nw-prop h4 { font-family: var(--display); font-size: 1.12rem; margin: 0 0 6px; }
.nw-prop-why { margin: 0 0 8px; }
.nw-prop-what { margin: 0 0 8px; padding-left: 20px; font-size: .97rem; }
.nw-prop-note { font-size: .92rem; color: var(--ink-2); }
.nw-prop-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-family: var(--display); font-size: .88rem; }
.nw-vote { font: inherit; font-weight: 700; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.nw-vote.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.nw-prop-src a { color: var(--muted); margin-right: 8px; }
.nw-prop-admin { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nw-prop-admin select { font: inherit; font-size: .84rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.nw-link-b { font: inherit; color: var(--accent-ink); background: none; border: 0; cursor: pointer; padding: 0; }
.nw-adminbar { border-style: solid; border-color: var(--line-2); background: var(--surface-2); }
.nw-admin-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.nw-admin-btns button { font-family: var(--display); font-size: .88rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.nw-admin-btns button:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.nw-admin-btns button:disabled { opacity: .6; cursor: wait; }
.nw-admin-out { margin: 10px 0 0; }
#nw-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 99; max-width: min(92vw, 560px); padding: 10px 16px; background: var(--ink); color: var(--bg); font-family: var(--display); font-size: .92rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#nw-toast.on { opacity: 1; transform: translate(-50%, 0); }
/* dentro il lettore di FAC (?fac=1): testata compatta, niente piè di pagina ingombrante */
html[data-infac] .nw-head { position: static; }
html[data-infac] main.nw-wrap > .nw-sec:first-child, html[data-infac] main.nw-wrap > .nw-edition > .nw-ed-head { padding-top: 16px; }

/* v5.17.1 — edizione: strumenti in testa, brevi a card compatte su due colonne */
.nw-edtools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -10px 0 26px; font-family: var(--display); font-size: .9rem; }
.nw-btn.small { font-size: .9rem; padding: .5em 1.05em; border: 0; cursor: pointer; }
.nw-compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
@media (max-width: 760px) { .nw-compact-grid { grid-template-columns: 1fr; } }
.nw-story.compact { display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.nw-compact-pic { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.nw-compact-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.nw-story.compact:hover .nw-compact-pic img { transform: scale(1.03); }
.nw-compact-b { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.nw-story.compact .nw-story-t { font-size: 1.3rem; margin: 0; line-height: 1.15; }
.nw-story.compact .nw-story-t a { color: inherit; } .nw-story.compact .nw-story-t a:hover { color: var(--accent-ink); }
.nw-story.compact .nw-points { margin: 0; }
.nw-compact-p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nw-compact-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.nw-briefs .nw-story.compact .nw-story-t { font-size: 1.3rem; }

/* v5.17.2 — testata: «Entra» (login di FAC, si resta sul sito) e, da loggati, «FAC ↗» */
.nw-loginbtn, .nw-facbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-family: var(--display); font-size: .9rem; font-weight: 600; white-space: nowrap; flex: none; }
.nw-loginbtn:hover, .nw-facbtn:hover { border-color: var(--accent); color: var(--accent-ink); }
.nw-facbtn { border-color: var(--accent); color: var(--accent-ink); }
html[data-infac] .nw-facbtn, html[data-infac] .nw-loginbtn { display: none; }
@media (max-width: 600px) { .nw-loginbtn { width: 36px; padding: 0; justify-content: center; } .nw-loginbtn-l { display: none; } .nw-facbtn { padding: 0 10px; } }

/* v5.17.4 — testata senza accapo fra 760 e 1100 px (la casella di ricerca si nasconde sotto i 900, resta la lente);
   «FAC ↗» con il pallino verde e il nome di chi è entrato; sommario anche in Home per il team */
@media (max-width: 900px) { .nw-search { display: none; } }
.nw-head-in > :not(.nw-nav):not(.nw-search) { flex: none; }
.nw-search { flex: 0 1 150px; min-width: 90px; } .nw-search input { width: 100%; }
.nw-nav { min-width: 0; }
.nw-facbtn-l { display: none; } /* 5.18.1: il nome sta nel tooltip, il pallino verde dice che si è dentro */
@media (max-width: 520px) { .nw-theme { display: none; } } /* sul telefono il tema segue il sistema: la riga non ci sta */
.nw-on { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.nw-hero-acts .nw-btn.ghost { background: rgba(246, 243, 251, .14); color: #f6f3fb; border: 1px solid rgba(246, 243, 251, .5); backdrop-filter: blur(6px); }
.nw-hero-acts .nw-btn.ghost:hover { background: rgba(246, 243, 251, .26); color: #fff; }
@media (max-width: 600px) { .nw-facbtn-l { display: none; } }
