/* Neural Films — stile del sito
   Font ospitati sul dominio: nessuna richiesta a server esterni.
   Su computer ogni pagina sta in una sola schermata; su telefono la pagina scorre. */

@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --lime: #cff430;
  --ink: #121212;
  --shadow: var(--lime);
  --night: #0d0d0d;
  --ink-2: #2a2a2a;
  --paper: #f4ecdc;
  --muted: #5b5649;
  --soft: #cfc8b6;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 40px);
  --header: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  font-family: var(--body); font-size: 1rem; line-height: 1.55; color: var(--ink);
  background: var(--lime) url("../img/sfondo-1920.webp") center / cover fixed;
  overflow-x: hidden;
}
@media (max-width: 900px) { body { background: var(--lime) url("../img/sfondo-1000.webp") center top / 1000px auto; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--lime); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--paper); flex: none; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border: 2px solid var(--paper); border-radius: 10px; }
.brand span { font-family: var(--display); font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; }
.nav a { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 7px 10px; border: 1px solid transparent; }
.nav a:hover { border-color: var(--paper); }
.nav a[aria-current="page"] { background: var(--lime); color: var(--ink); }
.nav .yt { background: var(--paper); color: var(--ink); }
.nav .yt:hover { background: var(--lime); border-color: var(--lime); }
@media (max-width: 640px) { .brand span { display: none; } .nav a { padding: 6px 7px; font-size: .68rem; letter-spacing: .02em; } }

/* ---------- Area principale: riempie lo schermo ---------- */
main { flex: 1; display: flex; align-items: center; padding-block: clamp(16px, 3.2vh, 40px); }

/* ---------- Carta e componenti ---------- */
.paper { background: var(--paper); border: 8px solid var(--paper); box-shadow: 8px 8px 0 var(--shadow); position: relative; }
.dark { background-color: var(--ink); color: var(--paper); background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 6px 6px; }
.tag { display: inline-block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--lime); padding: 3px 9px; }
.dark .tag { background: var(--lime); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(2rem, min(4.6vw, 6.4vh), 3.8rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
p { margin: 0 0 .9em; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 10px 15px; border: 3px solid var(--ink); background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 var(--shadow); transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn.alt { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- HOME ---------- */
.home { display: grid; gap: clamp(18px, 3.6vh, 38px); justify-items: center; }
.home-banner { width: min(100%, calc(40vh * 2.357)); border: 6px solid var(--paper); box-shadow: 8px 8px 0 var(--shadow); transform: rotate(-.4deg); }
.home-row { width: 100%; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(16px, 2.2vw, 28px); align-items: stretch; }
.claim { padding: clamp(14px, 2.2vh, 22px) clamp(16px, 1.8vw, 22px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.claim p { margin: 0; font-size: clamp(.95rem, 1.1vw, 1.08rem); line-height: 1.45; }
.tile { display: grid; grid-template-columns: 42% 1fr; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translate(-3px,-3px); box-shadow: 11px 11px 0 var(--shadow); }
.tile figure { margin: 0; overflow: hidden; background: var(--lime); }
.tile figure img { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-body { padding: 10px 6px 6px 16px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.tile p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.tile .go { margin-top: auto; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 980px) { .home-row { grid-template-columns: 1fr 1fr; } .claim { grid-column: 1 / -1; } }
@media (max-width: 600px) { .home-row { grid-template-columns: 1fr; } .home-banner { width: 100%; } .tile { grid-template-columns: 38% 1fr; } }

/* ---------- Pagine a due colonne ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.two.wide-left { grid-template-columns: 1.15fr 1fr; }
.two.wide-right { grid-template-columns: auto 1fr; }
@media (max-width: 900px) { .two, .two.wide-left, .two.wide-right { grid-template-columns: 1fr; } }

/* Ritratto */
.portrait { justify-self: center; }
.portrait img { height: min(calc(100dvh - var(--header) - 170px), 640px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) { .portrait img { height: auto; width: 100%; max-width: 420px; } }

/* ---------- Capitoli sfogliabili ---------- */
.story { padding: clamp(16px, 2.6vh, 28px) clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; }
.story h1 { margin: 10px 0 12px; }
.chapters { display: flex; border-bottom: 3px solid var(--ink); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.chapters button { flex: 1; min-width: max-content; font: inherit; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: none; border: 0; padding: 7px 10px 8px; cursor: pointer; color: var(--muted); text-align: left; }
.chapters button .n { display: block; font-size: .62rem; opacity: .7; }
.chapters button:hover { color: var(--ink); }
.chapters button[aria-selected="true"] { color: var(--ink); background: var(--lime); }
.chapter p { font-size: clamp(.93rem, 1.02vw, 1.02rem); line-height: 1.55; }
.chapter p:last-child { margin-bottom: 0; }
.chapter[hidden] { display: none; }
.story-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.story-nav .arrows { display: flex; gap: 8px; align-items: center; }
.story-nav .arrows button { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.05rem; border: 3px solid var(--ink); background: var(--paper); cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); }
.story-nav .arrows button:disabled { opacity: .3; cursor: default; box-shadow: none; }
.story-nav .count { font-family: var(--mono); font-size: .72rem; color: var(--muted); min-width: 3.5em; text-align: center; }
.chapter-body { position: relative; }

/* ---------- Video ---------- */
.videos-panel { padding: clamp(14px, 2.2vh, 24px); }
.videos-panel .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.videos-panel h2 { font-size: clamp(1.25rem, 2vw, 1.8rem); color: var(--paper); }
.videos-panel .head a { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lime); }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.video { display: flex; flex-direction: column; text-decoration: none; color: var(--paper); border: 2px solid #3a3a3a; background: #1b1b1b; transition: border-color .15s ease, transform .15s ease; }
.video:hover { border-color: var(--lime); transform: translateY(-2px); }
.video .thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--ink-2); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .thumb .play::before { content: ""; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); }
.video .thumb .play::after { content: ""; position: absolute; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); margin-left: 4px; }
.video .slate { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.video .meta { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.video h3 { font-size: .86rem; line-height: 1.15; }
@media (max-width: 480px) { .videos { grid-template-columns: 1fr; } }

/* ---------- Testo legale (questa pagina scorre) ---------- */
.legal { padding: clamp(20px, 4vw, 44px); max-width: 860px; margin-inline: auto; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 12px 0 8px; }
.legal h2 { font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 28px 0 10px; }
.legal .updated { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
main.scroll { align-items: flex-start; }

/* ---------- Footer compatto ---------- */
.site-footer { background: var(--ink); color: var(--soft); flex: none; font-size: .76rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 28px; padding-block: 10px; flex-wrap: wrap; }
.site-footer a { color: var(--paper); }
.site-footer .legal-line { font-family: var(--mono); font-size: .7rem; letter-spacing: .02em; }
.site-footer .notice { text-align: right; line-height: 1.45; }
.site-footer .notice strong { color: var(--lime); font-weight: 600; }
.site-footer .notice span { display: block; }
@media (max-width: 760px) { .site-footer .notice { text-align: left; } }

/* ---------- Telefono e schermi bassi: la pagina scorre normalmente ---------- */
@media (max-width: 900px), (max-height: 600px) { main { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Ritocchi */
.tag { align-self: flex-start; }
.story-nav .arrows { margin-left: auto; }
@media (max-height: 780px) and (min-width: 901px) {
  main { padding-block: 14px; }
  .home { gap: 16px; }
  .home-banner { width: min(100%, calc(33vh * 2.357)); }
  .tile .tile-body { gap: 6px; }
  h1 { font-size: clamp(1.8rem, 5.6vh, 2.8rem); }
  .story { padding: 14px 22px; }
  .story h1 { margin: 8px 0 10px; }
  .chapters { margin-bottom: 10px; }
  .chapter p { font-size: .9rem; line-height: 1.48; margin-bottom: .7em; }
  .story-nav { padding-top: 10px; }
  .videos-panel { padding: 12px; }
  .videos { gap: 10px; }
  .video .slate { padding: 6px 9px 8px; }
  .portrait img { height: calc(100dvh - var(--header) - 120px); }
}

/* ---------- Copertina (home) ---------- */
.splash { align-items: center; }
.splash-inner { display: grid; justify-items: center; gap: clamp(24px, 5vh, 52px); }
.splash-banner { width: min(100%, calc(52vh * 2.357)); border: 6px solid var(--paper); box-shadow: 10px 10px 0 var(--shadow); transform: rotate(-.4deg); }
.enter { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); padding: 14px 22px 14px 18px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.enter:hover { transform: translate(-3px,-3px); box-shadow: 12px 12px 0 var(--shadow); background: var(--lime); border-color: var(--lime); }
.enter-label { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, min(4vw, 6vh), 3rem); line-height: 1; }
.enter-arrow { font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1; transition: transform .2s ease; }
.enter:hover .enter-arrow { transform: translateX(6px); }
@media (max-width: 600px) { .enter .tag { display: none; } }

/* ---------- Pagina di scelta ---------- */
.choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 36px); }
.door { display: flex; flex-direction: column; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.door:nth-child(2) { transform: rotate(.5deg); }
.door:nth-child(3) { transform: rotate(-.5deg); }
.door:nth-child(4) { transform: rotate(.4deg); }
.door:hover { transform: translate(-3px,-3px) rotate(0); box-shadow: 12px 12px 0 var(--shadow); }
.door figure { margin: 0; overflow: hidden; background: var(--lime); height: calc(100dvh - var(--header) - 330px); min-height: 180px; max-height: 420px; position: relative; }
.door figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.door:hover figure img { transform: scale(1.04); }
.door-body { padding: 14px 8px 4px; display: flex; flex-direction: column; gap: 8px; }
.door h2 { font-size: clamp(1.3rem, 2.2vw, 2rem); }
.door p { margin: 0; color: var(--muted); font-size: .95rem; }
.door .go { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); align-self: flex-start; margin-top: 4px; }
.door-yt figure { background-color: var(--ink); background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px); background-size: 6px 6px; display: grid; place-items: center; align-content: center; gap: 16px; }
.yt-play { width: 92px; height: 64px; border-radius: 18px; background: var(--lime); position: relative; box-shadow: 5px 5px 0 #000; transition: transform .2s ease; }
.yt-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent var(--ink); }
.door-yt:hover .yt-play { transform: scale(1.08); }
.yt-handle { font-family: var(--mono); color: var(--paper); font-size: .9rem; letter-spacing: .06em; }
@media (max-width: 900px) { .choose { grid-template-columns: 1fr; } .door figure { height: 220px; } }
@media (max-height: 780px) and (min-width: 901px) { .door figure { height: calc(100dvh - var(--header) - 280px); } .door-body { padding-top: 10px; gap: 6px; } .splash-banner { width: min(100%, calc(48vh * 2.357)); } }
.chapters button { flex: 0 0 auto; min-width: 64px; text-align: center; font-family: var(--display); font-size: 1rem; letter-spacing: .02em; padding: 8px 14px; }

/* ---------- Tipografia dei testi ---------- */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; hyphens: none; }
.chapter p { max-width: 60ch; font-size: clamp(.96rem, 1.05vw, 1.05rem); line-height: 1.62; letter-spacing: .005em; color: #2b2925; }
.chapter p:first-child { font-size: clamp(1.04rem, 1.2vw, 1.16rem); line-height: 1.5; color: var(--ink); font-weight: 400; letter-spacing: 0; }
.chapter p + p { margin-top: .2em; }
.two.wide-right { grid-template-columns: auto minmax(0, 700px); justify-content: center; }
.two.wide-left { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); }
@media (max-height: 780px) and (min-width: 901px) {
  .chapter p { font-size: .92rem; line-height: 1.52; }
  .chapter p:first-child { font-size: .98rem; line-height: 1.45; }
}
@media (max-width: 900px) { .two.wide-right, .two.wide-left { grid-template-columns: 1fr; } }

/* Testo giustificato: righe allineate a sinistra e a destra */
.chapter p, .legal p { text-align: justify; text-justify: inter-word; text-align-last: left; hyphens: none; word-spacing: -.01em; }
/* Tutti i paragrafi uguali */
.chapter p, .chapter p:first-child { font-size: clamp(.98rem, 1.08vw, 1.06rem); line-height: 1.62; color: var(--ink); font-weight: 400; max-width: 62ch; }
@media (max-height: 780px) and (min-width: 901px) { .chapter p, .chapter p:first-child { font-size: .93rem; line-height: 1.52; } }
.portrait img { aspect-ratio: 3 / 4; }
.door figure img[src*="antonello"] { object-position: center 40%; }
.video h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video .thumb img + .play::before { opacity: .92; }
.video .thumb img ~ .play { opacity: 0; transition: opacity .2s ease; }
.video:hover .thumb img ~ .play { opacity: 1; }

/* ================= Ottimizzazione telefono ================= */
@media (max-width: 900px) {
  main { padding-block: 18px 28px; }
  /* testo allineato a sinistra: su colonne strette il giustificato crea buchi */
  .chapter p, .legal p { text-align: left; word-spacing: normal; }
  .story-nav { flex-wrap: wrap; }
  /* pagina di scelta: riquadri orizzontali e compatti */
  .choose { gap: 16px; }
  .door, .door:nth-child(n) { flex-direction: row; transform: none; }
  .door figure { width: 38%; height: auto; min-height: 0; max-height: none; aspect-ratio: 1; flex: none; }
  .door-body { padding: 4px 4px 4px 14px; justify-content: center; gap: 6px; }
  .door h2 { font-size: 1.2rem; }
  .door p { font-size: .86rem; line-height: 1.35; }
  .door .go { font-size: .7rem; }
  /* ritratto più contenuto */
  .portrait img { max-height: 52vh; width: auto; margin-inline: auto; }
}
@media (max-width: 600px) {
  .videos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video .slate { padding: 6px 8px 8px; }
  .video .meta { font-size: .56rem; }
  .video h3 { font-size: .74rem; -webkit-line-clamp: 3; }
  .videos-panel { padding: 12px; }
  .videos-panel h2 { font-size: 1.2rem; }
  .story { padding: 16px; }
  .chapter p { font-size: .98rem; line-height: 1.6; }
  .story-nav .btn { padding: 9px 12px; font-size: .74rem; }
  .splash-banner { border-width: 4px; box-shadow: 6px 6px 0 var(--shadow); }
  .enter { padding: 12px 18px; }
  .legal { padding: 20px 16px; }
  .site-footer .legal-line { font-size: .66rem; }
}

/* ================= News ================= */
@media (min-width: 1101px) { .choose { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) and (min-width: 901px) { .choose { grid-template-columns: repeat(2, 1fr); } .door { flex-direction: row; } .door figure { width: 40%; flex: none; } .door figure { height: auto; aspect-ratio: 1; min-height: 0; max-height: none; } }
.door:nth-child(5) { transform: rotate(-.4deg); }

.news-head { max-width: 760px; margin: 0 auto 26px; }
.news-head h1 { margin: 10px 0 8px; }
.news-head p { margin: 0; font-size: 1.05rem; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.post { display: flex; flex-direction: column; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translate(-3px,-3px); box-shadow: 11px 11px 0 var(--shadow); }
.post figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.post figure img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 14px 6px 6px; display: flex; flex-direction: column; gap: 8px; }
.post h2 { font-size: 1.2rem; line-height: 1.1; }
.post p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.post .go { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); align-self: flex-start; margin-top: 4px; }
.play { pointer-events: none; }
.post figure .play, .yt-facade .play { position: absolute; inset: 0; display: grid; place-items: center; }
.post figure .play::before, .yt-facade .play::before { content: ""; width: 58px; height: 58px; border-radius: 50%; background: var(--lime); box-shadow: 4px 4px 0 var(--shadow); }
.post figure .play::after, .yt-facade .play::after { content: ""; position: absolute; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }

.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.article-meta .sponsor { border: 1px solid var(--muted); padding: 2px 8px; }

.article { max-width: 820px; margin: 0 auto; padding: clamp(20px, 4vw, 52px); }
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin: 14px 0 14px; }
.article-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink); margin: 0 0 26px; text-wrap: pretty; }
.yt-embed { margin: 0 0 30px; }
.yt-facade { position: relative; display: block; width: 100%; padding: 0; border: 3px solid var(--ink); background: var(--ink); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 6px 6px 0 var(--shadow); }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.yt-facade:hover img { transform: scale(1.02); filter: brightness(.9); }
.yt-facade:hover .play::before { transform: scale(1.08); }
.yt-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); background: #000; }
.yt-embed figcaption { font-family: var(--mono); font-size: .7rem; line-height: 1.5; color: var(--muted); margin-top: 12px; letter-spacing: .02em; }
.article-body { max-width: 66ch; margin: 0 auto; }
.article-body h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); margin: 34px 0 12px; }
.article-body p { font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.72; text-align: justify; text-justify: inter-word; text-align-last: left; hyphens: none; margin: 0 0 1.05em; }
.article-foot { margin-top: 34px; padding-top: 22px; border-top: 1px dashed #bdb4a0; }

@media (max-width: 900px) {
  .door:nth-child(5) { transform: none; }
  .article-body p { text-align: left; }
}
@media (max-width: 640px) {

  .nav { gap: 2px; }
  .nav a { padding: 6px 6px; font-size: .64rem; }
  .posts { grid-template-columns: 1fr; }
}

/* Pagina di scelta più larga */
@media (min-width: 1101px) {
  .choose { width: min(100% - 2 * var(--gutter), 1760px); gap: clamp(22px, 2.2vw, 44px); }
  .door figure { height: calc(100dvh - var(--header) - 300px); max-height: 600px; }
  .door-body { padding: 16px 12px 8px; gap: 10px; }
  .door h2 { font-size: clamp(1.5rem, 2.1vw, 2.3rem); }
  .door p { font-size: clamp(.95rem, 1.05vw, 1.1rem); }
  .door .go { font-size: .82rem; }
}
.news-head .back { margin-bottom: 18px; }
.news-head .tag { display: table; }
@media (min-width: 1101px) { .door figure { height: calc(100dvh - var(--header) - 330px); } }
.news-head { margin: 0 0 26px; }

/* Riquadri in formato 3:4, centrati */
@media (min-width: 1101px) {
  .choose { --cw: min(21vw, calc((100dvh - var(--header) - 290px) * .75)); grid-template-columns: repeat(4, var(--cw)); justify-content: center; width: auto; gap: clamp(20px, 2vw, 36px); }
  .door figure { width: 100%; height: auto; aspect-ratio: 3 / 4; max-height: none; min-height: 0; }
  .door h2 { font-size: clamp(1.2rem, 1.6vw, 1.8rem); }
  .door p { font-size: clamp(.86rem, .95vw, 1rem); }
}
.article-body a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Leggi anche */
.related { max-width: 66ch; margin: 36px auto 0; padding-top: 24px; border-top: 3px solid var(--ink); }
.related-label { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; margin-bottom: 14px; }
.related-card { display: grid; grid-template-columns: 42% 1fr; gap: 18px; align-items: center; text-decoration: none; background: #fff8ec; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); padding: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--shadow); }
.related-card figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.related-card figure img { width: 100%; height: 100%; object-fit: cover; }
.related-card figure .play { position: absolute; inset: 0; display: grid; place-items: center; }
.related-card figure .play::before { content: ""; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); box-shadow: 3px 3px 0 var(--shadow); }
.related-card figure .play::after { content: ""; position: absolute; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); margin-left: 4px; }
.related-card h3 { font-size: 1.05rem; line-height: 1.12; margin: 8px 0 6px; }
.related-card p { margin: 0 0 8px; font-size: .88rem; line-height: 1.4; color: var(--muted); text-align: left; }
.related-card .go { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); }
@media (max-width: 600px) { .related-card { grid-template-columns: 1fr; } }

/* Paginazione News */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.pg-nums { display: flex; gap: 8px; }
.pg { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; font-family: var(--display); text-decoration: none; border: 3px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--shadow); }
.pg.cur { background: var(--ink); color: var(--lime); }
a.pg:hover { background: var(--lime); }
.splash-banner { width: min(100%, calc((100dvh - 230px) * 1.778)); }
@media (max-width: 600px) { .splash-banner { width: 100%; } }

/* News compatta: 3 articoli + frecce in una schermata */
@media (min-width: 901px) {
  .news-head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: end; margin-bottom: 20px; }
  .news-head .back { grid-row: 1 / span 3; align-self: center; margin: 0; }
  .news-head .tag { justify-self: start; }
  .news-head h1 { font-size: clamp(1.8rem, 4.4vh, 2.8rem); margin: 6px 0 4px; }
  .news-head p { font-size: .95rem; }
  .posts { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .post figure { aspect-ratio: 16 / 8.2; }
  .post-body { gap: 6px; }
  .post p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pager { margin-top: 22px; }
}
@media (min-width: 901px) and (max-height: 780px) {
  .news-head { margin-bottom: 14px; }
  .news-head p { display: none; }
  .post figure { aspect-ratio: 16 / 7; }
  .post-body { padding-top: 10px; }
  .post h2 { font-size: 1.05rem; }
  .post p { font-size: .86rem; -webkit-line-clamp: 2; }
  .pager { margin-top: 14px; }
  .pager .btn, .pg { height: 38px; padding-block: 0; }
}

/* Testata News su una riga */
.news-head { display: flex !important; align-items: center; gap: 22px; margin: 4px 0 26px; flex-wrap: wrap; }
.news-head .back { margin: 0; grid-row: auto; }
.news-title { display: flex; align-items: center; gap: 16px; padding: 10px 22px 10px 14px; transform: rotate(-.4deg); box-shadow: 6px 6px 0 var(--shadow); border-width: 6px; }
.news-title .tag { display: inline-block; }
.news-title h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; line-height: 1; }
.news-title p { margin: 0; padding-left: 16px; border-left: 3px solid var(--ink); font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; white-space: nowrap; display: block !important; }
@media (max-width: 1100px) { .news-title { flex-wrap: wrap; } .news-title p { white-space: normal; border-left: 0; padding-left: 0; flex-basis: 100%; } }
@media (min-width: 1101px) {
  .news-head { flex-wrap: nowrap; gap: 18px; margin-bottom: 22px; }
  .news-title { gap: 14px; padding: 8px 18px 8px 12px; }
  .news-title h1 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
  .news-title p { font-size: .76rem; padding-left: 14px; }
}
@media (min-width: 901px) and (max-height: 780px) { .news-head { margin-bottom: 14px; } .news-title p { display: block !important; } }
.news-head .back { white-space: nowrap; flex: none; }

/* News: blocco centrato verticalmente su computer */
@media (min-width: 901px) and (min-height: 601px) {
  main.scroll:has(.posts) { align-items: center; }
}
/* News: testata in alto, articoli e frecce centrati nello spazio restante */
@media (min-width: 901px) and (min-height: 601px) {
  main.scroll:has(.posts) { align-items: stretch; }
  main.scroll:has(.posts) > .wrap { display: flex; flex-direction: column; }
  main.scroll:has(.posts) .posts { margin-top: auto; }
  main.scroll:has(.posts) .pager { margin-bottom: auto; }
  main.scroll:has(.posts) .posts:last-child { margin-bottom: auto; }
}

/* Pagina unica Il progetto + Chi sono */
.choose { grid-template-columns: repeat(3, var(--cw, 1fr)); }
@media (min-width: 1101px) { .choose { --cw: min(26vw, calc((100dvh - var(--header) - 290px) * .75)); } }
@media (max-width: 1100px) and (min-width: 901px) { .choose { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
@media (max-width: 900px) { .choose { grid-template-columns: 1fr; } }
.about-img img { background: #cef325; }
.about-img img[data-part="progetto"] { object-fit: cover; object-position: center; }
.about-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.switch { display: flex; gap: 10px; }
.switch button { font-family: var(--display); text-transform: uppercase; font-size: .95rem; padding: 9px 16px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); }
.switch button[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.switch button:hover { transform: translate(-1px,-1px); }
[data-part][hidden] { display: none !important; }

/* Capitoli divisi in gruppi: Il progetto | Chi sono */
.chapters.grouped { align-items: stretch; }
.chapters.grouped .grp { display: flex; align-items: center; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 8px 0 0; white-space: nowrap; }
.chapters.grouped .grp:not(:first-child) { margin-left: 10px; padding-left: 14px; border-left: 3px solid var(--ink); }
.chapters.grouped button { min-width: 46px; padding: 8px 10px; }

/* Pagina Il progetto: due sezioni a tutto schermo, una sotto l'altra */
html { scroll-behavior: smooth; }
main.stack { display: block; padding: 0; }
.about-sec { position: relative; min-height: calc(100vh - var(--header)); min-height: calc(100dvh - var(--header)); display: flex; align-items: center; padding-block: 28px 64px; scroll-margin-top: 0; }
.about-sec .portrait img { object-fit: cover; object-position: center; background: #cef325; }
.about-sec + .about-sec { border-top: 3px dashed rgba(18,18,18,.25); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; background: var(--ink); color: var(--lime); padding: 8px 14px; box-shadow: 4px 4px 0 #000; }
.scroll-hint span { display: inline-block; margin-left: 6px; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-hint span { animation: none; } }
@media (max-width: 900px) { .about-sec { min-height: 0; padding-block: 20px 70px; } }

/* ===== Telefono: pagina Il progetto pensata per il mobile =====
   Ogni sezione = una schermata: immagine a manifesto, titolo su striscia di carta,
   capitoli come carte da sfogliare col dito. */
@media (max-width: 900px) {
  .about-sec { min-height: calc(100dvh - var(--header)); padding: 0 0 54px; display: block; }
  .about-sec .two { display: block; width: 100%; padding: 0; }
  .about-sec .portrait { display: block; width: 100%; margin: 0 !important; transform: none !important; border: 0; box-shadow: none; background: transparent; }
  .about-sec .portrait img { width: 100%; height: 46dvh; max-width: none; aspect-ratio: auto; object-fit: cover; border-bottom: 4px solid var(--ink); }
  #progetto .portrait img { object-position: center 45%; }
  #chi-sono .portrait img { object-position: center 30%; }

  .about-sec .story { background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: -34px; position: relative; }
  .about-sec .story > .tag { position: relative; z-index: 2; margin-left: 16px; transform: rotate(-2deg); font-size: .64rem; padding: 3px 8px; }
  .about-sec .story h1 { position: relative; z-index: 2; display: inline-block; margin: 2px 16px 0; padding: 6px 12px 4px; background: var(--paper); box-shadow: 5px 5px 0 var(--shadow); transform: rotate(-1deg); font-size: clamp(1.5rem, 7.4vw, 2rem); }

  /* capitoli: carte orizzontali da sfogliare */
  .about-sec .chapters { order: 2; justify-content: center; gap: 8px; border: 0; margin: 12px 0 0; overflow: visible; }
  .about-sec .chapters button { flex: none; min-width: 0; width: 9px; height: 9px; padding: 0; border-radius: 50%; background: rgba(18,18,18,.25); font-size: 0; color: transparent; }
  .about-sec .chapters button[aria-selected="true"] { background: var(--ink); width: 26px; border-radius: 6px; }
  .about-sec .chapter-body { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 16px 10px; scrollbar-width: none; min-height: 0 !important; -webkit-overflow-scrolling: touch; }
  .about-sec .chapter-body::-webkit-scrollbar { display: none; }
  .about-sec .chapter, .about-sec .chapter[hidden] { display: block !important; flex: 0 0 86%; scroll-snap-align: center; background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow); padding: 14px 15px; }
  .about-sec .chapter::before { content: attr(data-n); display: block; font-family: var(--display); font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
  .about-sec .chapter p { font-size: .92rem; line-height: 1.5; text-align: left; margin-bottom: .6em; }
  .about-sec .chapter p:last-child { margin-bottom: 0; }

  .about-sec .story { display: flex; flex-direction: column; }
  .about-sec .story > .tag, .about-sec .story h1 { align-self: flex-start; }
  .about-sec .story-nav { order: 3; justify-content: center; padding: 10px 16px 0; }
  .about-sec .story-nav .arrows { display: none; }
  .about-sec .story-nav .btn { font-size: .68rem; padding: 8px 12px; box-shadow: 3px 3px 0 var(--shadow); }
  .swipe-hint { display: block; text-align: center; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
  .scroll-hint { bottom: 12px; font-size: .68rem; padding: 6px 12px; }
}
@media (min-width: 901px) { .swipe-hint { display: none; } }
@media (max-width: 900px) {
  .about-sec .portrait img { height: 38dvh; }
  .about-sec .chapter-body { order: 1; padding-top: 14px; align-items: stretch; }
  .about-sec .chapters { order: 2; margin: 6px 0 0; display: flex !important; }
  .about-sec .swipe-hint { order: 3; }
  .about-sec .story-nav { order: 4; }
  .about-sec .chapter, .about-sec .chapter[hidden] { height: calc(100dvh - var(--header) - 38dvh - 215px); min-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
  .about-sec .chapters button { display: block; }
}
@media (max-width: 900px) and (max-height: 720px) { .about-sec .story-nav { padding-top: 6px; } .about-sec { padding-bottom: 60px; } }

/* ===== Telefono: pagina Il progetto, layout B (immagine intera + riquadro con capitoli) ===== */
@media (max-width: 900px) {
.about-sec{min-height:0!important;padding:20px 0 34px!important;display:block!important}
.about-sec .two{display:block!important;width:calc(100% - 32px)!important;margin:0 auto!important}
.about-sec .portrait{display:block!important;width:100%!important;margin:0 0 20px!important;transform:rotate(-1deg)!important;border:6px solid var(--paper)!important;box-shadow:6px 6px 0 var(--shadow)!important}
.about-sec .portrait img{width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;border:0!important}
.about-sec .story{margin:0!important;background:var(--paper)!important;border:6px solid var(--paper)!important;box-shadow:6px 6px 0 var(--shadow)!important;padding:18px 16px!important;display:block!important}
.about-sec .story>.tag{margin:0!important;transform:none!important}
.about-sec .story h1{display:block!important;margin:8px 0 12px!important;padding:0!important;background:none!important;box-shadow:none!important;transform:none!important;font-size:1.9rem!important}
.about-sec .chapters{display:flex!important;border-bottom:3px solid var(--ink)!important;margin:0 0 12px!important;justify-content:flex-start!important;gap:0!important}
.about-sec .chapters button{width:auto!important;height:auto!important;flex:1!important;border-radius:0!important;background:none!important;font-size:1rem!important;color:var(--muted)!important;padding:8px 4px!important;font-family:var(--display)!important}
.about-sec .chapters button[aria-selected="true"]{background:var(--lime)!important;color:var(--ink)!important;width:auto!important}
.about-sec .swipe-hint{display:none!important}
.about-sec .chapter-body{display:block!important;overflow:visible!important;padding:0!important}
.about-sec .chapter{height:auto!important;min-height:0!important;overflow:visible!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
.about-sec .chapter[hidden]{display:none!important}
.about-sec .chapter::before{display:none!important}
.about-sec .chapter p{font-size:1rem!important;line-height:1.62!important;text-align:left!important}
.about-sec .story-nav{display:flex!important;justify-content:space-between!important;padding:12px 0 0!important}
.about-sec .story-nav .arrows{display:flex!important}
.scroll-hint{position:static!important;transform:none!important;display:table!important;margin:22px auto 0!important}
#chi-sono .portrait{transform:rotate(1deg)!important}
}

/* Telefono: titolo, poi immagine, poi capitoli e testo */
.story-img { display: none; }
@media (max-width: 900px) {
  .about-sec .two > .portrait { display: none !important; }
  .about-sec .story-img { display: block; margin: 4px 0 16px; border: 5px solid #fff8ec; box-shadow: 5px 5px 0 var(--shadow); transform: rotate(-.8deg); background: #cef325; }
  #chi-sono .story-img { transform: rotate(.8deg); }
  .about-sec .story-img img { width: 100%; height: auto; display: block; }
}

/* Telefono: versione compatta della pagina Il progetto */
@media (max-width: 900px) {
  .about-sec { padding: 12px 0 18px !important; }
  .about-sec .two { width: calc(100% - 24px) !important; }
  .about-sec .story { padding: 12px 13px 12px !important; border-width: 5px !important; box-shadow: 5px 5px 0 var(--shadow) !important; }
  .about-sec .story > .tag { font-size: .6rem !important; padding: 2px 7px !important; }
  .about-sec .story h1 { font-size: 1.45rem !important; margin: 5px 0 8px !important; }
  .about-sec .story-img { margin: 0 auto 10px !important; width: 74%; border-width: 4px !important; box-shadow: 4px 4px 0 var(--shadow) !important; }
  .about-sec .chapters { margin: 0 0 8px !important; }
  .about-sec .chapters button { font-size: .85rem !important; padding: 5px 4px !important; }
  .about-sec .chapter p { font-size: .9rem !important; line-height: 1.5 !important; margin: 0 0 .6em !important; }
  .about-sec .chapter p:last-child { margin-bottom: 0 !important; }
  .about-sec .story-nav { padding-top: 8px !important; }
  .about-sec .story-nav .btn { font-size: .64rem !important; padding: 7px 10px !important; box-shadow: 3px 3px 0 var(--shadow) !important; }
  .about-sec .story-nav .arrows button { width: 32px !important; height: 32px !important; font-size: .85rem !important; }
  .about-sec .story-nav .count { font-size: .64rem !important; }
  .scroll-hint { margin: 12px auto 0 !important; font-size: .64rem !important; padding: 6px 12px !important; }
}

/* Pagina di scelta Il progetto / Antonello Ruzzu */
.choose.two-doors { grid-template-columns: repeat(2, var(--cw, 1fr)); justify-content: center; }
@media (min-width: 1101px) { .choose.two-doors { --cw: min(28vw, calc((100dvh - var(--header) - 260px) * .75)); } }
@media (max-width: 1100px) and (min-width: 901px) { .choose.two-doors { grid-template-columns: repeat(2, 1fr); max-width: 760px; } .choose.two-doors .door { flex-direction: column; } .choose.two-doors .door figure { width: 100%; aspect-ratio: 3/4; } }
.choose-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.choose-back { align-self: center; }
@media (max-width: 900px) { .choose.two-doors { grid-template-columns: 1fr 1fr; gap: 14px; } .choose.two-doors .door { flex-direction: column; } .choose.two-doors .door figure { width: 100%; aspect-ratio: 3 / 4; } .choose.two-doors .door-body { padding: 10px 4px 4px; } .choose.two-doors .door h2 { font-size: 1rem; } }

/* Pagine singole: Indietro a sinistra, altra pagina a destra */
.about-sec.single { min-height: calc(100dvh - var(--header) - 40px); }
.about-sec.single > .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.page-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
@media (min-width: 901px) and (max-height: 780px) { .page-nav { margin-top: 14px; } .about-sec.single { padding-block: 14px 18px; } .about-sec.single .portrait img { height: calc(100dvh - var(--header) - 190px); } }
@media (max-width: 900px) {
  .about-sec.single > .wrap { width: 100%; }
  .about-sec.single .two { margin: 0 auto !important; }
  .page-nav { width: calc(100% - 24px); margin: 16px auto 0; }
  .page-nav .btn { font-size: .66rem; padding: 8px 11px; box-shadow: 3px 3px 0 var(--shadow); }
}
@media (min-width: 901px) {
  .about-sec.single { min-height: 0; padding-block: 20px 16px; }
  .about-sec.single .portrait img { height: min(calc(100dvh - var(--header) - 200px), 620px); }
  .page-nav { margin-top: 18px; }
}

/* Telefono: testo a blocco (giustificato) in tutte le pagine */
@media (max-width: 900px) {
  .chapter p, .about-sec .chapter p,
  .article-body p, .article-lead, .legal p, .post p, .related-card p, .yt-embed figcaption {
    text-align: justify !important;
    text-justify: inter-word;
    text-align-last: left;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    hyphenate-limit-chars: 6 3 3;
    word-spacing: normal !important;
    text-wrap: wrap;
  }
}
@media (max-width: 900px) { .article { padding: 18px 14px !important; } .article-body p { font-size: .98rem; } }

/* Telefono: pagina di scelta Il progetto / Antonello Ruzzu, riquadri al centro e Indietro in basso */
@media (max-width: 900px) {
  main:has(.choose-wrap) { display: flex; align-items: stretch; padding-block: 18px 22px; }
  main:has(.choose-wrap) > .choose-wrap { width: calc(100% - 32px); margin-inline: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .choose-wrap .choose.two-doors { margin-top: auto; margin-bottom: auto; width: 100%; }
  .choose-wrap .choose-back { margin-top: 18px; }
}

/* paginazione compatta news */
.pg-nums { flex-wrap: wrap; justify-content: center; align-items: center; }
.pg-gap { font-family: var(--display); padding: 0 2px; }
@media (max-width: 600px) {
  .pager { justify-content: space-between; }
  .pager .pg-nums { order: -1; width: 100%; justify-content: center; }
}

/* articolo: tasto indietro in alto */
.article-top { max-width: 820px; margin: 0 auto 18px; }
@media (max-width: 900px) { .article-top { margin-bottom: 12px; } }

/* banner categorie news */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 12px; background: var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.25); }
.cat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; color: var(--paper); border: 2px solid var(--paper); white-space: nowrap; }
.cat span { font-size: .68rem; opacity: .65; }
.cat:hover { background: var(--paper); color: var(--ink); }
.cat.cur { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cat.cur span { opacity: .8; }
.cat:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
a.tag { text-decoration: none; }
a.tag:hover { background: var(--lime); color: var(--ink); }
@media (max-width: 900px) {
  .cats { gap: 6px; padding: 10px; margin-bottom: 16px; }
  .cat { padding: 6px 9px; font-size: .68rem; gap: 6px; letter-spacing: .03em; }
  .cat span { font-size: .62rem; }
}

/* home: video animato al posto dell'immagine */
video.splash-banner { display: block; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--lime); }

/* ===== Entra: quattro riquadri, 2 sopra e 2 sotto ===== */
.choose.four-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100% - 2 * var(--gutter, 32px), 1080px); margin-inline: auto; gap: clamp(16px, 2vw, 28px); justify-content: stretch; }
.choose.four-doors .door { flex-direction: row; }
.choose.four-doors .door figure { flex: none; width: auto; height: calc((100dvh - var(--header) - 170px) / 2); max-height: 340px; min-height: 150px; aspect-ratio: 3 / 4; }
.choose.four-doors .door-body { padding: 12px 16px; justify-content: center; }
.choose.four-doors .door h2 { font-size: clamp(1.2rem, 1.8vw, 1.9rem); }
.choose.four-doors .door p { font-size: clamp(.86rem, 1vw, 1rem); }
@media (max-width: 900px) {
  .choose.four-doors { grid-template-columns: 1fr 1fr; gap: 14px; width: calc(100% - 32px); }
  .choose.four-doors .door, .choose.four-doors .door:nth-child(n) { flex-direction: column; transform: none; }
  .choose.four-doors .door figure { width: 100%; height: auto; max-height: none; min-height: 0; aspect-ratio: 3 / 4; }
  .choose.four-doors .door-body { padding: 10px 4px 4px; }
  .choose.four-doors .door h2 { font-size: 1rem; }
  .choose.four-doors .door p { font-size: .78rem; line-height: 1.3; }
}

/* ===== Film AI: catalogo in stile streaming ===== */
body:has(main.cinema) { background: #0d0d0d; }
main.cinema { background: #0d0d0d; color: var(--paper); padding-block: 22px 48px; }
main.cinema .wrap { display: flex; flex-direction: column; gap: 28px; }
.cinema-top { display: flex; align-items: center; gap: 18px; }
.cinema-top h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--lime); margin: 0; }
.fhero { position: relative; overflow: hidden; border: 3px solid #222; aspect-ratio: 21 / 9; min-height: 320px; display: flex; align-items: flex-end; }
.fhero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.7) 38%, rgba(10,10,10,0) 70%), linear-gradient(0deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,0) 45%); }
.fhero-txt { position: relative; z-index: 1; max-width: 560px; padding: clamp(18px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.fhero-txt h1, .fhero-txt h2 { font-size: clamp(1.9rem, 4.2vw, 3.8rem); line-height: .95; color: var(--paper); margin: 0; }
.fhero-txt p { margin: 0; font-size: clamp(.95rem, 1.2vw, 1.12rem); color: #e6e2d6; }
.fhero-txt .tag { align-self: flex-start; background: var(--lime); color: var(--ink); }
.fmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lime); }
.cinema .btn-row { margin-top: 6px; }
.cinema .btn { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.cinema .btn.alt { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: none; }
.cinema .btn.alt:hover { background: var(--paper); color: var(--ink); }
.cinema .cinema-top .btn.alt { box-shadow: none; }
button.btn { cursor: pointer; font: inherit; }
.frow { display: flex; flex-direction: column; gap: 12px; }
.frow-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.frow-head h2 { font-size: clamp(1.05rem, 1.6vw, 1.4rem); color: var(--paper); margin: 0; }
.frow-nav { display: flex; gap: 8px; }
.frow-btn { width: 40px; height: 40px; border: 2px solid var(--paper); background: transparent; color: var(--paper); font-size: 1.1rem; cursor: pointer; }
.frow-btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.frow-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23%, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.fcard { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; scroll-snap-align: start; border: 2px solid #222; text-decoration: none; color: var(--paper); background: #1a1a1a; transition: transform .2s ease, border-color .2s ease; }
.fcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 55%); }
.fcard-info { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.fcard-info b { font-family: var(--display); font-size: 1rem; text-transform: uppercase; line-height: 1.05; }
.fcard-info small { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--lime); }
.fcard:hover, .fcard:focus-visible { border-color: var(--lime); outline: none; }
.fcard:hover img { transform: scale(1.05); }
.fplayer .yt-embed { margin: 0; }
.fplayer figcaption { color: #bdb9ad; }
.fsyn { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.fsyn h2 { font-size: 1.3rem; color: var(--lime); margin: 0; }
.fsyn p { margin: 0; color: #e6e2d6; line-height: 1.6; }
.fdl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; margin: 12px 0 0; border-top: 1px solid #333; padding-top: 14px; }
.fdl dt { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #9a978d; }
.fdl dd { margin: 2px 0 0; }
@media (max-width: 900px) {
  main.cinema { padding-block: 14px 32px; }
  main.cinema .wrap { gap: 20px; }
  .fhero { aspect-ratio: auto; min-height: 0; flex-direction: column; align-items: stretch; }
  .fhero-bg { position: relative; aspect-ratio: 16 / 9; height: auto; }
  .fhero::after { background: linear-gradient(0deg, rgba(10,10,10,1) 0%, rgba(10,10,10,1) 48%, rgba(10,10,10,0) 62%); }
  .fhero-txt { padding: 0 16px 18px; margin-top: -40px; }
  .frow-nav { display: none; }
  .frow-track { grid-auto-columns: 72%; }
  .fsyn p { text-align: left; }
}
@media (min-width: 901px) { .fhero { aspect-ratio: auto; height: min(56vh, 520px); min-height: 300px; } .fhero-bg { object-position: 70% center; } }

/* Film AI: sfondo rete neurale */
.neural-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body > header, body > main, body > footer, body > .site-header, body > .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 3 !important; }
main.cinema { position: relative; z-index: 1; background: transparent; }


/* ===== Tema unico scuro, come la sezione Film AI ===== */
html, body { background: var(--night) !important; }
@media (max-width: 900px) { body { background: var(--night) !important; } }
.pg-gap { color: var(--paper); }
.cinema-top h1, .news-head h1 { }
.cats { border: 2px solid #2a2a2a; }

/* Il progetto / Antonello Ruzzu: contenuto centrato in verticale su computer */
@media (min-width: 901px) {
  main.stack:has(.about-sec.single) { display: flex; flex-direction: column; }
  main.stack .about-sec.single { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
}

/* ricerca articoli dentro la barra categorie */
.cat-search { flex: 1 1 220px; display: flex; min-width: 200px; }
.cat-search input { width: 100%; font-family: var(--mono); font-size: .8rem; letter-spacing: .03em; padding: 7px 12px 7px 34px; border: 2px solid var(--paper); background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cff430' stroke-width='2.5'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8'/%3E%3C/svg%3E") no-repeat 11px center; color: var(--paper); border-radius: 0; -webkit-appearance: none; appearance: none; }
.cat-search input::placeholder { color: #9a978d; text-transform: uppercase; }
.cat-search input:focus { outline: none; border-color: var(--lime); }
.search-info { margin: -8px 0 16px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lime); }
@media (max-width: 900px) { .cat-search { flex-basis: 100%; } .cat-search input { font-size: 16px; } }
.cat-search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(2.2); cursor: pointer; }

/* ===== Sinapsi, assistente AI ===== */
.nfchat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 3px solid var(--ink); background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; box-shadow: 4px 4px 0 var(--paper); transition: transform .15s ease; }
.nfchat-btn:hover { transform: translate(-2px, -2px); }
.nfchat-btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.nfchat-ico { width: 18px; height: 18px; background: radial-gradient(circle at 50% 50%, var(--ink) 0 3px, transparent 3.5px), radial-gradient(circle at 15% 20%, var(--ink) 0 2px, transparent 2.5px), radial-gradient(circle at 85% 25%, var(--ink) 0 2px, transparent 2.5px), radial-gradient(circle at 25% 85%, var(--ink) 0 2px, transparent 2.5px), radial-gradient(circle at 85% 80%, var(--ink) 0 2px, transparent 2.5px); position: relative; }
.nfchat-btn.on .nfchat-lbl::after { content: ""; }
.nfchat { position: fixed; right: 18px; bottom: 82px; z-index: 50; width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: #121212; color: var(--paper); border: 3px solid var(--lime); box-shadow: 8px 8px 0 rgba(0,0,0,.5); }
.nfchat[hidden] { display: none; }
.nfchat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--lime); color: var(--ink); }
.nfchat-head b { display: block; font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; line-height: 1; }
.nfchat-head span { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.nfchat-x { border: 2px solid var(--ink); background: transparent; width: 32px; height: 32px; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.nfchat-note { margin: 0; padding: 8px 14px; font-size: .72rem; line-height: 1.4; color: #b9b5a8; border-bottom: 1px solid #2a2a2a; }
.nfchat-note a { color: var(--lime); }
.nfchat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.nfchat-msg { max-width: 88%; padding: 9px 12px; font-size: .9rem; line-height: 1.45; word-wrap: break-word; }
.nfchat-msg.bot { align-self: flex-start; background: var(--paper); color: var(--ink); }
.nfchat-msg.bot a { color: var(--ink); font-weight: 700; }
.nfchat-msg.me { align-self: flex-end; background: var(--lime); color: var(--ink); }
.nfchat-msg.err { background: #2a2a2a; color: var(--paper); }
.nfchat-msg.wait { opacity: .7; animation: nfpulse 1s ease-in-out infinite; }
@keyframes nfpulse { 50% { opacity: .35; } }
.nfchat-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.nfchat-sugg button { border: 1.5px solid var(--lime); background: transparent; color: var(--lime); font-family: var(--body); font-size: .78rem; padding: 6px 9px; cursor: pointer; text-align: left; }
.nfchat-sugg button:hover { background: var(--lime); color: var(--ink); }
.nfchat-form { display: flex; border-top: 2px solid #2a2a2a; }
.nfchat-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: #0d0d0d; color: var(--paper); font: inherit; font-size: 16px; }
.nfchat-form input:focus { outline: none; background: #161616; }
.nfchat-form button { width: 52px; border: 0; background: var(--lime); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 600px) {
  .nfchat-btn { right: 12px; bottom: 12px; padding: 11px; }
  .nfchat-lbl { display: none; }
  .nfchat { right: 8px; left: 8px; width: auto; bottom: 72px; height: min(70dvh, 560px); }
}
@media (prefers-reduced-motion: reduce) { .nfchat-msg.wait { animation: none; } }
.nfchat-sugg[hidden] { display: none; }

/* scheda film con locandina da mostrare intera (es. Colors): immagine 16:9 senza tagli, testo sotto */
.fhero.intera, .fhero.intera[class] { aspect-ratio: auto; height: auto; min-height: 0; flex-direction: column; align-items: stretch; }
@media (min-width: 901px) { .fhero.intera { height: auto; } .fhero.intera .fhero-bg { object-position: center; } }
.fhero.intera .fhero-bg { position: relative; inset: auto; aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: #000; }
.fhero.intera::after { display: none; }
.fhero.intera .fhero-txt { max-width: none; background: #0f0f0f; border-top: 3px solid #222; }
/* anteprime degli articoli: testo a blocco come nel resto del sito */
.post p { text-align: justify; text-justify: inter-word; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 3; text-wrap: wrap; }
/* Film AI: locandina di Colors intera (16:9) a destra, alta quanto il riquadro; il testo resta a sinistra come prima */
@media (min-width: 901px) {
  .fhero.poster { --h: min(56vh, 470px, 32vw); height: var(--h); background: #0a0a0a; }
  .fhero.poster .fhero-bg { left: auto; right: 0; width: calc((var(--h) - 6px) * 16 / 9); height: 100%; object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%); mask-image: linear-gradient(90deg, transparent 0, #000 7%); }
  .fhero.poster::after { display: none; }
  .fhero.poster .fhero-txt { max-width: calc(100% - (var(--h) - 6px) * 16 / 9 + 20px); }
}
@media (max-width: 900px) { .fhero.poster::after { display: none; } .fhero.poster .fhero-txt { margin-top: 0; padding-top: 16px; } }
.fhero.poster { background: #0a0a0a; }

/* ---------- Film AI: vetrina a scorrimento */
.fcar { position: relative; }
.fcar-track { display: grid; }
.fcar-track > .fhero { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.fcar-track > .fhero.on { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }
.fcar-track > .fhero .fhero-txt { transform: translateY(14px); opacity: 0; transition: transform .7s ease .25s, opacity .7s ease .25s; }
.fcar-track > .fhero.on .fhero-txt { transform: none; opacity: 1; }
.fcar-track > .fhero.on .fhero-bg { animation: fcar-zoom 7s ease-out both; }
@keyframes fcar-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (min-width: 901px) { .fcar .fhero, .fcar .fhero.poster { --h: min(56vh, 470px, 32vw); height: var(--h); aspect-ratio: auto; } }
.fcar-arr { position: absolute; top: 50%; z-index: 3; width: 44px; height: 64px; margin-top: -32px; border: 0; background: rgba(10,10,10,.55); color: var(--paper); font-size: 2rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.fcar-arr.prev { left: 3px; } .fcar-arr.next { right: 3px; }
.fcar:hover .fcar-arr, .fcar-arr:focus-visible { opacity: 1; }
.fcar-arr:hover { background: var(--lime); color: var(--ink); }
.fcar-dots { position: absolute; right: 18px; bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.fcar-dot { width: 22px; height: 4px; padding: 0; border: 0; background: rgba(244,236,220,.35); cursor: pointer; transition: background .2s, width .3s; }
.fcar-dot.on { width: 38px; background: var(--lime); }
@media (max-width: 900px) { .fcar-dots { position: static; justify-content: center; margin-top: 10px; } .fcar-arr { display: none; } }
@media (prefers-reduced-motion: reduce) { .fcar-track > .fhero, .fcar-track > .fhero .fhero-txt { transition: none; } .fcar-track > .fhero.on .fhero-bg { animation: none; } }

/* "Vedi tutti" accanto a Tutti i film */
.frow-head { justify-content: flex-start; }
.frow-head .frow-nav { margin-left: auto; }
.frow-all { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--lime); color: var(--lime); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.frow-all:hover { background: var(--lime); color: var(--ink); }

/* pagina Tutti i film: 3 per riga */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fgrid .fcard { scroll-snap-align: none; }
.fgrid .fcard-info b { font-size: clamp(1rem, 1.5vw, 1.3rem); }
@media (max-width: 900px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
/* copertine mai ritagliate né ingrandite: niente zoom nella vetrina */
.fcar-track > .fhero.on .fhero-bg { animation: none; }
.fhero.poster .fhero-bg { transform: none; }
/* passaggio più morbido tra la parte nera con le info e la copertina */
@media (min-width: 901px) {
  .fhero.poster .fhero-bg {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 4%, rgba(0,0,0,.22) 9%, rgba(0,0,0,.42) 14%, rgba(0,0,0,.64) 19%, rgba(0,0,0,.82) 24%, rgba(0,0,0,.94) 29%, #000 34%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 4%, rgba(0,0,0,.22) 9%, rgba(0,0,0,.42) 14%, rgba(0,0,0,.64) 19%, rgba(0,0,0,.82) 24%, rgba(0,0,0,.94) 29%, #000 34%);
  }
}
/* schede dei film: testi giustificati (a blocco) come nel resto del sito */
.fsyn p, .fhero-txt p { text-align: justify; text-justify: inter-word; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }

/* ================= Entra: porte a scorrimento orizzontale infinito ================= */
main.porte-main { flex-direction: column; justify-content: center; align-items: stretch; padding-block: clamp(10px, 2.4vh, 28px) clamp(14px, 3vh, 30px); overflow: hidden; }
.porte-main > .porte, .porte-main > .porte-nav { width: 100%; }
.porte { --cw: min(30vw, 620px, calc((100dvh - var(--header) - 340px) / 1.2)); --gap: clamp(40px, 4vw, 90px); position: relative; }
/* senza JavaScript: semplice fila che si scorre di lato */
.porte-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 18px; }
.porte .door, .porte .door:nth-child(n) { flex: none; width: var(--cw); flex-direction: column; transform: none; scroll-snap-align: center; }
.porte .door figure, .porte .door:nth-child(n) figure { width: 100%; height: auto; aspect-ratio: 5 / 6; max-height: none; min-height: 0; }
.porte .door-body { padding: 14px 8px 4px; gap: 8px; }
.porte .door h2 { font-size: clamp(1.3rem, 2vw, 2.1rem); }
.porte .door p { font-size: clamp(.9rem, 1vw, 1.05rem); }
.porte-btn, .porte-dots { display: none; }
/* con JavaScript: carosello infinito */
.js-porte .porte-track { display: block; overflow: visible; padding: 0; position: relative; height: calc(var(--cw) * 1.2 + 190px); }
.js-porte .porte .door { position: absolute; left: 50%; top: 4px; margin-left: calc(var(--cw) / -2); will-change: transform;
  transition: transform .6s cubic-bezier(.22,.7,.18,1), opacity .5s ease, box-shadow .2s ease; }
.js-porte .porte .door.lato { cursor: pointer; }
.js-porte .porte .door.lato figure img { transform: none; }
.js-porte .porte .door.via { opacity: 0; pointer-events: none; }
.js-porte .porte .door.salta { transition: none; }
.js-porte .porte .door.attiva:hover { box-shadow: 12px 12px 0 var(--shadow); }
.porte-nav { display: none; }
.js-porte .porte-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 28px); margin-top: clamp(8px, 2vh, 22px); }
.js-porte .porte-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 1.15rem var(--mono); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.js-porte .porte-btn:hover { background: var(--lime); }
.js-porte .porte-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.js-porte .porte-dots { display: flex; justify-content: center; gap: 12px; }
.porte-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid var(--paper); background: transparent; cursor: pointer; transform: rotate(45deg); }
.porte-dots button.on { background: var(--lime); }
@media (max-width: 700px) {
  .porte { --cw: min(70vw, calc((100dvh - var(--header) - 280px) / 1.2)); --gap: 22px; }
  .js-porte .porte-btn { width: 40px; height: 40px; font-size: 1rem; }
  .porte .door h2 { font-size: 1.25rem; } .porte .door p { font-size: .88rem; }
}
/* Academy: pagina in arrivo */
.academy-wip .back { margin-bottom: 22px; }
.academy-card { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(18px, 3vw, 44px); align-items: center; max-width: 980px; }
.academy-card img { width: 100%; height: auto; display: block; }
.academy-card h1 { margin: 10px 0 12px; }
.academy-card p { color: var(--muted); max-width: 52ch; }
@media (max-width: 700px) { .academy-card { grid-template-columns: 1fr; } .academy-card img { max-width: 280px; } }
.porte .door figure img.intera { object-fit: contain; }
.porte .door-body { padding: 16px 12px 16px; }
.porte .door h2 { line-height: 1.05; }
.porte .door p { line-height: 1.45; }
/* titoli delle porte su una riga sola, misurati sulla larghezza della porta */
.porte .door h2 { white-space: nowrap; font-size: min(clamp(1.3rem, 2vw, 2.1rem), calc(var(--cw) * .072)); }
.porte .door p { min-height: 2.9em; }

/* Schede film: trama e informazioni occupano tutta la larghezza del banner */
.fsyn-main { display: flex; flex-direction: column; gap: 10px; }
.fsyn-txt { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 901px) {
  .fsyn { max-width: none; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0 clamp(32px, 4vw, 64px); align-items: start; }
  .fsyn-txt { display: block; }
  .fsyn-txt p { margin: 0 0 12px; }
  .fsyn p { font-size: 1.04rem; line-height: 1.65; }
  .fdl > div:first-child { grid-column: 1 / -1; }
  .fdl dd { font-size: 1.08rem; }
  .fdl { grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 0; align-content: start; border-top: 0; border-left: 1px solid #333; padding: 6px 0 6px clamp(20px, 2vw, 32px); align-self: stretch; }
}

/* ================= Entra: indice da titoli di testa ================= */
main.indice-main { align-items: center; padding-block: clamp(16px, 3vh, 40px); }
.indice { width: min(100% - 2 * var(--gutter), 1640px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 110px); align-items: center; }
.indice-lista { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.indice-voce { display: grid; grid-template-columns: clamp(2.6em, 4vw, 4.2em) minmax(0, 1fr); align-items: start; padding: clamp(10px, 1.9vh, 22px) 0; border-bottom: 1px solid #2c2c2c; text-decoration: none; color: #6f6b62; outline: none; }
.indice-lista li:first-child .indice-voce { border-top: 1px solid #2c2c2c; }
.indice-mini { display: none; }
.indice-n { font-family: var(--mono); font-size: .85rem; padding-top: clamp(.5em, 1.4vw, 1.3em); transition: color .25s; }
.indice-t { display: flex; flex-direction: column; min-width: 0; }
.indice-t .tag { display: none; }
.indice-voce h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.6rem); line-height: 1.02; color: inherit; white-space: nowrap; transition: color .25s, transform .35s cubic-bezier(.2,.7,.2,1); }
.indice-voce p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; color: #a7a397; font-size: clamp(.95rem, 1.1vw, 1.12rem); transition: max-height .35s ease, opacity .3s ease, margin .35s ease; }
.indice-voce.on { color: var(--paper); }
.indice-voce.on .indice-n { color: var(--lime); }
.indice-voce.on h2 { transform: translateX(12px); }
.indice-voce.on p { max-height: 3em; opacity: 1; margin: 8px 0 0 12px; }
.indice-voce:focus-visible h2 { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 6px; }
.indice-anteprima { position: relative; display: block; justify-self: center; width: min(100%, calc((100dvh - var(--header) - 140px) * 5 / 6)); aspect-ratio: 5 / 6; border: 8px solid var(--paper); box-shadow: 14px 14px 0 var(--lime); background: var(--lime); overflow: hidden; }
.indice-anteprima img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .45s ease, transform .9s ease; }
.indice-anteprima img.on { opacity: 1; transform: none; }
.indice-anteprima:hover img.on { transform: scale(1.02); }
/* telefono e tablet: elenco con miniatura e descrizione sempre visibile */
@media (max-width: 900px) {
  main.indice-main { align-items: flex-start; }
  .indice { grid-template-columns: 1fr; }
  .indice-anteprima { display: none; }
  .indice-voce, .indice-voce.on { grid-template-columns: 84px minmax(0, 1fr); gap: 0 14px; align-items: center; color: var(--paper); padding: 12px 0; }
  .indice-mini { display: block; grid-row: 1; width: 84px; height: auto; aspect-ratio: 5 / 6; object-fit: cover; border: 4px solid var(--paper); }
  .indice-n { display: none; }
  .indice-t .tag { display: inline-block; align-self: flex-start; margin-bottom: 6px; }
  .indice-voce h2, .indice-voce.on h2 { font-size: clamp(1.25rem, 6vw, 1.7rem); transform: none; white-space: normal; }
  .indice-voce p, .indice-voce.on p { max-height: none; opacity: 1; margin: 4px 0 0; font-size: .9rem; }
}
body:has(main.indice-main) .site-header .wrap { width: min(100% - 2 * var(--gutter), 1640px); max-width: none; }

/* ================= AI Film Academy ================= */
main.indice-main { flex-direction: column; justify-content: center; align-items: stretch; }
.indice-top { width: min(100% - 2 * var(--gutter), 1640px); margin: 0 auto clamp(14px, 3vh, 34px); display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.indice-top h1 { margin: 0; color: var(--lime); font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.indice-top p { margin: 0; color: #a7a397; }
.indice-top + .indice .indice-voce h2 { font-size: clamp(1.5rem, 2.5vw, 3.3rem); }
.indice-top + .indice .indice-anteprima { width: min(100%, calc((100dvh - var(--header) - 230px) * 5 / 6)); }
.guida-head { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: clamp(18px, 3vw, 34px); align-items: center; margin-bottom: 26px; }
.guida-head img { width: 100%; height: auto; display: block; border: 6px solid var(--ink); box-shadow: 6px 6px 0 var(--lime); }
.guida-head h1 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin: 14px 0 12px; }
.guida-head .article-lead { margin: 0; }
.guida-lista { margin: 0 0 1.2em; padding: 16px 20px 16px 38px; background: rgba(207, 244, 48, .18); border-left: 4px solid var(--ink); }
.guida-lista li { margin: 6px 0; line-height: 1.55; }
.guida-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding-top: 22px; border-top: 1px dashed #bdb4a0; }
@media (max-width: 600px) { .guida-head { grid-template-columns: 1fr; } .guida-head img { max-width: 220px; } .guida-nav { justify-content: center; } }
.guida-head .article-lead { text-align: justify; text-justify: inter-word; text-align-last: left; text-wrap: wrap; hyphens: auto; -webkit-hyphens: auto; }

/* ================= Lettore video di Neural Films (film ospitati sul sito) ================= */
.nfp { position: relative; aspect-ratio: 16 / 9; background: #000; border: 3px solid #222; box-shadow: 8px 8px 0 var(--lime); overflow: hidden; outline: none; }
.nfp:focus-visible { border-color: var(--lime); }
.nfp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.nfp.pieno { border: 0; box-shadow: none; aspect-ratio: auto; }
.nfp-grande { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0,0,0,.25); cursor: pointer; transition: opacity .3s ease; }
.nfp-grande .play { position: absolute; inset: 0; display: grid; place-items: center; }
.nfp-grande .play::before { content: ""; width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); border-radius: 50%; background: var(--lime); box-shadow: 5px 5px 0 #000; transition: transform .2s ease; }
.nfp-grande .play::after { content: ""; position: absolute; border-style: solid; border-width: clamp(12px, 1.4vw, 17px) 0 clamp(12px, 1.4vw, 17px) clamp(20px, 2.3vw, 28px); border-color: transparent transparent transparent var(--ink); margin-left: 6px; }
.nfp-grande:hover .play::before { transform: scale(1.07); }
.nfp.iniziato .nfp-grande { opacity: 0; pointer-events: none; }
.nfp.iniziato:not(.va) .nfp-grande { opacity: 1; pointer-events: auto; background: rgba(0,0,0,.15); }
.nfp-carica { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 4px solid rgba(207,244,48,.25); border-top-color: var(--lime); border-radius: 50%; opacity: 0; pointer-events: none; animation: nfpGira .8s linear infinite; }
.nfp.carica .nfp-carica { opacity: 1; }
@keyframes nfpGira { to { transform: rotate(360deg); } }
.nfp-barra { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); padding: 26px clamp(10px, 1.6vw, 18px) clamp(8px, 1.2vw, 12px); background: linear-gradient(transparent, rgba(0,0,0,.85)); color: var(--paper); font: .8rem var(--mono); transition: opacity .35s ease, transform .35s ease; }
.nfp.va:not(.attivo) .nfp-barra { opacity: 0; transform: translateY(8px); pointer-events: none; }
.nfp.va:not(.attivo) video { cursor: none; }
.nfp-barra button { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--paper); cursor: pointer; }
.nfp-barra button:hover, .nfp-barra button:focus-visible { color: var(--lime); }
.nfp-barra svg { width: 22px; height: 22px; fill: currentColor; }
.nfp .i-pausa, .nfp.va .i-play { display: none; } .nfp.va .i-pausa { display: inline; }
.nfp .i-muto, .nfp.muto .i-onde { display: none; } .nfp.muto .i-muto { display: inline; }
.nfp-tempo, .nfp-durata { flex: none; min-width: 3.4em; text-align: center; }
.nfp-barra input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--lime) var(--p, 0%), rgba(244,236,220,.28) var(--p, 0%)); cursor: pointer; margin: 0; }
.nfp-avanz { flex: 1; min-width: 60px; }
.nfp-vol { flex: none; width: clamp(60px, 7vw, 100px); }
.nfp-barra input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 2px solid #000; }
.nfp-barra input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2px solid #000; }
@media (max-width: 600px) { .nfp-vol, .nfp-durata { display: none; } .nfp-barra button { width: 34px; height: 34px; } }
.fdl .fdl-wide { grid-column: 1 / -1; }
.autore-ig { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.autore-ig:hover { text-decoration-thickness: 2px; }
.fdl .autore-ig { color: var(--lime); }
.ig-nota { font-family: var(--mono); font-size: .68rem; color: #9a978d; margin-left: 6px; }

/* ================= Scheda autore della community ================= */
.autore-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(20px, 3vw, 40px); border: 3px solid #222; background: #121212; }
.autore-av { width: clamp(110px, 13vw, 180px); aspect-ratio: 1; display: grid; place-items: center; background: var(--lime); color: var(--ink); font: clamp(3rem, 6vw, 5.5rem) var(--display); box-shadow: 8px 8px 0 #000; border: 4px solid var(--paper); }
.autore-info h1 { margin: 10px 0 4px; font-size: clamp(2rem, 4.5vw, 3.8rem); color: var(--paper); }
.autore-num { margin: 0 0 14px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lime); }
.autore-bio { max-width: 70ch; color: #e6e2d6; line-height: 1.65; }
.autore-bio p { margin: 0 0 10px; text-align: justify; text-align-last: left; }
.autore-bio .autore-attesa { color: #a7a397; font-style: italic; }
.autore-info .btn-row { margin-top: 16px; }
.autore-film h2 { font-size: 1.3rem; color: var(--lime); margin: 0 0 16px; }
a.ig-nota { text-decoration: none; }
a.ig-nota:hover { color: var(--lime); }
@media (max-width: 600px) { .autore-head { grid-template-columns: 1fr; } }
.fhero-txt .fsub { display: block; margin: -4px 0 10px; font-family: var(--display); text-transform: uppercase; font-size: clamp(1rem, 1.6vw, 1.5rem); letter-spacing: .08em; color: var(--paper); opacity: .85; }
.fhero-txt .lungo { font-size: clamp(1.5rem, 2.5vw, 2.4rem); line-height: 1.04; }
.fhero-txt .lungo + .fsub { font-size: clamp(.9rem, 1.2vw, 1.15rem); }
/* copertina dei film: se il testo è lungo il riquadro si allunga invece di tagliarlo; la locandina resta intera e centrata */
@media (min-width: 901px) {
  .fhero.poster, .fcar .fhero, .fcar .fhero.poster { height: auto; min-height: var(--h); align-items: center; }
  .fhero.poster .fhero-bg { top: 50%; bottom: auto; height: calc(var(--h) - 6px); margin-top: calc((var(--h) - 6px) / -2); }
  .fhero.poster .fhero-txt { padding-block: clamp(18px, 2.6vw, 34px); gap: 10px; }
}
/* "Vedi tutti" accanto al titolo di ogni categoria, sempre alla stessa distanza */
.frow-head h2 + .frow-all { margin-left: clamp(24px, 2.6vw, 40px); }
.cinema-top .cat-num { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #a7a397; }
/* titoli delle categorie cliccabili: al passaggio diventano verdi */
.frow-tit { color: inherit; text-decoration: none; transition: color .2s ease; }
.frow-tit:hover, .frow-tit:focus-visible { color: var(--lime); }
.autore-foto { object-fit: cover; padding: 0; display: block; }
.autore-studio { margin: 0 0 6px; font-size: 1.05rem; color: #e6e2d6; }
.autore-foto { width: clamp(150px, 17vw, 240px); }
.btn-social { display: inline-flex; align-items: center; gap: 10px; }
.btn-social svg { width: 20px; height: 20px; flex: none; }
.btn-social:hover svg path[fill^="var"] { fill: var(--lime); }
/* home: anche il rettangolo animato porta dentro il sito */
.splash-link { display: block; cursor: pointer; }
.splash-link:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
/* scheda film: visualizzazioni e condivisione */
.fviste::before { content: "👁 "; }
.fshare { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 0; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.fshare-l { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #a7a397; }
.fshare-btn { display: flex; flex-wrap: wrap; gap: 10px; }
.fshare-b { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 2px solid #3a3a3a; background: transparent; color: var(--paper); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.fshare-b:hover, .fshare-b:focus-visible { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.fshare-b svg { width: 20px; height: 20px; }
.fshare-ok { font-family: var(--mono); font-size: .75rem; color: var(--lime); }

/* ================= Scheda film: tutto in una schermata ================= */
@media (min-width: 901px) {
  main.cinema:has(.fsyn) { padding-block: 14px 40px; }
  main.cinema:has(.fsyn) .wrap { gap: clamp(12px, 2vh, 22px); }
  .fsyn ~ .frow { margin-top: 18px; }
  .cinema-top .back, .cinema-top .cinema-dx { padding-block: 8px; }
  .fhero.poster { --h: clamp(250px, calc(100dvh - var(--header) - 400px), 470px); }
  .fhero.poster .fhero-txt { gap: 8px; }
  .fhero-txt h1 { font-size: clamp(1.9rem, min(4.2vw, 7.5vh), 3.8rem); }
  .fhero-txt h1.lungo { font-size: clamp(1.4rem, min(2.5vw, 5vh), 2.4rem); }
  .fsyn { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .fsyn h2 { font-size: 1.15rem; }
  .fsyn p { font-size: clamp(.92rem, min(1.05vw, 2vh), 1.04rem); line-height: 1.55; }
  .fsyn-txt p { margin: 0 0 8px; }
  .fside { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid #333; padding: 4px 0 4px clamp(20px, 2vw, 32px); }
  .fside .fdl { border-left: 0; padding: 0; gap: 10px 24px; }
  .fside .fdl dd { font-size: 1rem; }
  .fside .fshare { border: 0; padding: 12px 0 0; border-top: 1px solid #333; gap: 8px 14px; }
  .fside .fshare-b { width: 36px; height: 36px; }
  .fside .fshare-b svg { width: 17px; height: 17px; }
}
@media (max-width: 900px) { .fside .fshare { margin-top: 16px; } }
@media (min-width: 901px) {
  .fside .fdl-wide dd { font-size: .88rem; color: #cfcab9; }
  .fhero.poster { --h: clamp(220px, calc(100dvh - var(--header) - 400px), 470px); }
}
.fsyn .fstrum { margin: 6px 0 0; font-size: .88rem; color: #cfcab9; }
.fstrum span { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #9a978d; margin-right: 8px; }
@media (min-width: 901px) and (max-height: 720px) {
  .fhero.poster { --h: clamp(190px, calc(100dvh - var(--header) - 360px), 470px); }
  .fhero.poster .fhero-txt { padding-block: 12px; gap: 6px; }
  .fhero-txt p { font-size: .9rem; }
  .fhero-txt .btn { padding-block: 8px; }
  main.cinema:has(.fsyn) .wrap { gap: 10px; }
  .fsyn p { font-size: .88rem; line-height: 1.45; }
  .fside { gap: 8px; } .fside .fdl { gap: 6px 20px; } .fside .fdl dd { font-size: .92rem; }
  .fside .fshare { padding-top: 8px; }
}

/* ================= Scheda film: blocco crediti (riordinato) ================= */
.fsyn .fside { --lab: 6.6rem; display: flex; flex-direction: column; gap: 0; background: #121212; border: 1px solid #2a2a2a; padding: 14px 18px 14px; align-self: start; }
.fcred { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid #2e2e2e; color: var(--paper); text-decoration: none; }
.fcred img, .fcred-ini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lime); }
.fcred-ini { display: grid; place-items: center; background: var(--lime); color: var(--ink); font: 1.3rem var(--display); }
.fcred-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fcred-nome { font-size: 1.1rem; font-weight: 600; color: var(--lime); line-height: 1.15; }
.fcred-ruolo { font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: #9a978d; line-height: 1.3; }
.fcred-vai { font-family: var(--mono); font-size: .7rem; color: #9a978d; white-space: nowrap; transition: color .2s, transform .2s; }
.fcred:hover .fcred-vai, .fcred:focus-visible .fcred-vai { color: var(--lime); transform: translateX(3px); }
.fcred:hover .fcred-nome { text-decoration: underline; text-underline-offset: 3px; }
.fsyn .fside .fdl { display: block; margin: 0; padding: 2px 0 0; border: 0; }
.fsyn .fside .fdl > div { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 7px 0; border-bottom: 1px solid #262626; grid-column: auto; }
.fsyn .fside .fdl dt { margin: 0; font-size: .66rem; }
.fsyn .fside .fdl dd { margin: 0; font-size: 1rem; line-height: 1.3; }
.fsyn .fside .fshare { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; gap: 6px 14px; border: 0; padding: 10px 0 0; margin: 0; }
.fsyn .fside .fshare-l { font-size: .66rem; letter-spacing: .05em; color: #9a978d; line-height: 1.3; }
.fsyn .fside .fshare-btn { gap: 5px; }
.fsyn .fside .fshare-b { width: 31px; height: 31px; border-width: 1px; }
.fsyn .fside .fshare-b svg { width: 15px; height: 15px; }
.fsyn .fside .fshare-ok { grid-column: 2; }
.fsyn .fside .fshare-ok:empty { display: none; }
@media (max-width: 900px) { .fsyn .fside { margin-top: 18px; } .fsyn .fside .fshare { grid-template-columns: 1fr; } .fsyn .fside .fshare-ok { grid-column: 1; } .fsyn .fside .fshare-b { width: 36px; height: 36px; } }
@media (min-width: 901px) and (max-height: 820px) {
  .fsyn .fside { padding: 11px 16px 11px; }
  .fcred { padding-bottom: 9px; grid-template-columns: 38px minmax(0, 1fr) auto; } .fcred img, .fcred-ini { width: 38px; height: 38px; }
  .fcred-nome { font-size: 1.02rem; }
  .fsyn .fside .fdl > div { padding: 5px 0; } .fsyn .fside .fdl dd { font-size: .94rem; }
  .fsyn .fside .fshare { padding-top: 8px; }
}

/* ================= Commenti delle schede film ================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fcom { display: flex; flex-direction: column; gap: 16px; max-width: 860px; scroll-margin-top: calc(var(--header, 60px) + 16px); }
.fcom[hidden] { display: none; }
.fcom-head { display: flex; align-items: baseline; gap: 12px; }
.fcom-head h2 { margin: 0; font-size: 1.3rem; color: var(--lime); }
.fcom-n { font-family: var(--mono); font-size: .8rem; color: #9a978d; }
.fcom-box { background: #121212; border: 1px solid #2a2a2a; padding: 16px 18px; }
.fcom-l { display: block; font-weight: 600; font-size: 1.02rem; }
.fcom-nota { margin: 4px 0 12px; color: #9a978d; font-size: .9rem; }
.fcom-riga { display: flex; gap: 10px; flex-wrap: wrap; }
.fcom input:not(.fcom-trappola), .fcom textarea { flex: 1 1 220px; width: 100%; background: #0b0b0b; color: var(--paper); border: 1px solid #3a3a3a; padding: 11px 12px; font: inherit; font-size: 1rem; border-radius: 0; }
.fcom textarea { display: block; resize: vertical; min-height: 84px; line-height: 1.5; }
.fcom input:focus, .fcom textarea:focus { outline: none; border-color: var(--lime); }
.fcom-btn { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 11px 18px; border: 2px solid var(--lime); background: var(--lime); color: var(--ink); cursor: pointer; }
.fcom-btn:hover { filter: brightness(1.08); }
.fcom-btn:disabled { opacity: .55; cursor: wait; }
.fcom-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fcom-come { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .95rem; color: #cfcab9; }
.fcom-come b { color: var(--paper); }
.fcom-cambia { margin-left: auto; background: none; border: 0; padding: 0; color: #9a978d; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fcom-cambia:hover { color: var(--lime); }
.fcom-piede { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.fcom-conta { font-family: var(--mono); font-size: .7rem; color: #77746b; }
.fcom-err { flex: 1; margin: 0; color: #ff8a80; font-size: .88rem; }
.fcom-firma .fcom-err:not(:empty) { margin-top: 8px; }
.fcom-piede .fcom-btn { margin-left: auto; }
.fcom-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #262626; border: 1px solid #3a3a3a; color: var(--lime); font-family: var(--display); font-size: 1rem; overflow: hidden; }
.fcom-av img { width: 100%; height: 100%; object-fit: cover; }
.fcom-come .fcom-av { width: 30px; height: 30px; font-size: .85rem; }
.fcom-lista, .fcom-risposte { list-style: none; margin: 0; padding: 0; }
.fcom-lista { display: flex; flex-direction: column; }
.fcom-c { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #222; }
.fcom-lista > .fcom-c:first-child { padding-top: 4px; }
.fcom-corpo { flex: 1; min-width: 0; }
.fcom-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.fcom-meta b { font-weight: 600; color: var(--paper); }
.fcom-meta time { font-family: var(--mono); font-size: .7rem; color: #77746b; }
.fcom-badge { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; background: var(--lime); color: var(--ink); padding: 2px 6px; }
.fcom-elimina { margin-left: auto; background: none; border: 0; padding: 0; color: #77746b; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.fcom-elimina:hover { color: #ff8a80; }
.fcom-t { margin: 6px 0 0; color: #e6e2d6; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.fcom-risposte { margin-top: 12px; border-left: 2px solid var(--lime); padding-left: 14px; }
.fcom-risposte .fcom-c { padding: 6px 0; border: 0; }
.fcom-vuoto { margin: 0; color: #9a978d; }
@media (max-width: 600px) { .fcom-box { padding: 14px; } .fcom-c { gap: 10px; } .fcom-av { width: 30px; height: 30px; font-size: .85rem; } }
.fcom-lista { background: #121212; border: 1px solid #2a2a2a; padding: 0 18px; }
.fcom-lista:empty { display: none; }
.fcom-lista > .fcom-c:first-child { padding-top: 16px; }
.fcom-lista > .fcom-c:last-child { border-bottom: 0; }
.fcom-vuoto { background: #121212; border: 1px solid #2a2a2a; padding: 14px 18px; }
@media (max-width: 600px) { .fcom-lista { padding: 0 14px; } }

/* ================= File di film: sfumatura ai bordi e "Tutti i film" su due righe ================= */
.frow-track { --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.frow-track.fade-l { --fl: clamp(48px, 9vw, 140px); }
.frow-track.fade-r { --fr: clamp(48px, 9vw, 140px); }
.frow-track-2 { grid-template-rows: repeat(2, auto); }
.cat-desc { margin: -6px 0 6px; max-width: 760px; color: #cfcab9; font-size: 1.02rem; line-height: 1.55; }

/* ================= /film: pulsante in fondo e pagina "Tutti gli autori" ================= */
.film-fondo { display: flex; justify-content: center; padding: clamp(18px, 3vw, 34px) 0 6px; border-top: 1px solid #262626; margin-top: 8px; }
.autori-btn { font-size: .95rem; padding: 16px 30px; }
.agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.acard { display: grid; grid-template-columns: clamp(110px, 12vw, 170px) minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); align-items: start; padding: clamp(16px, 2vw, 22px); background: #121212; border: 1px solid #2a2a2a; color: var(--paper); text-decoration: none; transition: border-color .2s, transform .2s; }
.acard:hover, .acard:focus-visible { border-color: var(--lime); transform: translateY(-2px); }
.acard-foto { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--paper); box-shadow: 6px 6px 0 #000; display: block; }
.acard-ini { display: grid; place-items: center; background: var(--lime); color: var(--ink); font: clamp(2.4rem, 4vw, 3.6rem) var(--display); }
.acard-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acard-ruolo { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lime); }
.acard-nome { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.acard-num { font-family: var(--mono); font-size: .74rem; color: #a7a397; text-transform: uppercase; letter-spacing: .05em; }
.acard-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.acard-mini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: 1px solid #2a2a2a; }
.acard-vai { margin-top: 4px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #a7a397; transition: color .2s; }
.acard:hover .acard-vai { color: var(--lime); }
@media (max-width: 900px) { .agrid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .acard { grid-template-columns: 90px minmax(0, 1fr); } .acard-foto { box-shadow: 4px 4px 0 #000; } }
@media (max-width: 600px) { .cinema-top { flex-wrap: wrap; gap: 10px 14px; } .cinema-top .cat-num { flex-basis: 100%; } .cinema-top .back { white-space: nowrap; } }
.cinema-top .cinema-dx { margin-left: auto; white-space: nowrap; }
@media (max-width: 600px) { .cinema-top .cinema-dx { order: 3; margin-left: 0; } }
.cinema .cinema-top .btn.alt.cinema-dx { color: var(--lime); border-color: var(--lime); }
.cinema .cinema-top .btn.alt.cinema-dx:hover, .cinema .cinema-top .btn.alt.cinema-dx:focus-visible { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.fsyn .fcrediti { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #262626; }
.fcrediti .fcr { white-space: nowrap; }
.fsyn .fcrediti .fcr { font-family: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; color: #e6e2d6; margin: 0; }
.acard-foto, .autore-head .autore-av { border-color: var(--lime); }

/* Nomi degli autori su una sola riga (il JS rimpicciolisce quelli lunghi); box degli autori tutti alti uguali */
.nome-fit { display: block; white-space: nowrap; overflow: hidden; max-width: 100%; }
.agrid { grid-auto-rows: 1fr; }

/* ================= News: vetrina, colonna "Dal mondo", schede uniformi ================= */
.ncar { background: var(--paper); border: 8px solid var(--paper); box-shadow: 8px 8px 0 var(--shadow); margin: 0 0 26px; }
.ncar[hidden] { display: none; }
.ncar-track { display: grid; }
.ncar-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 34px); align-items: center; color: var(--ink); text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.ncar-slide.on { opacity: 1; visibility: visible; }
.ncar-slide figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.ncar-slide figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ncar-slide:hover figure img { transform: scale(1.025); }
.ncar-slide figure .play { position: absolute; inset: 0; display: grid; place-items: center; }
.ncar-slide figure .play::before { content: ""; width: 66px; height: 66px; border-radius: 50%; background: var(--lime); box-shadow: 4px 4px 0 var(--shadow); }
.ncar-slide figure .play::after { content: ""; position: absolute; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ink); margin-left: 6px; }
.ncar-txt { display: flex; flex-direction: column; gap: 12px; padding: 6px clamp(4px, 1.4vw, 18px) 6px 0; min-width: 0; }
.ncar-kicker { align-self: flex-start; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; background: var(--lime); color: var(--ink); padding: 3px 9px; }
.ncar-txt h2 { font-size: clamp(1.35rem, 2.3vw, 2.1rem); line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ncar-txt p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncar-txt .go { align-self: flex-start; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); }
.ncar-nav { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #bdb4a0; }
.ncar-dots { flex: 1; display: flex; gap: 6px; }
.ncar-dot { flex: 1; max-width: 60px; height: 6px; padding: 0; border: 0; background: #cfc6b2; cursor: pointer; }
.ncar-dot.on { background: var(--ink); }
.ncar-dot:hover { background: var(--lime); }
.ncar-arr { width: 38px; height: 38px; display: grid; place-items: center; font-size: 1rem; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--shadow); }
.ncar-arr:hover { background: var(--lime); }
.ncar-nav .ncar-arr:first-child { order: 2; }
.ncar-dots { order: 1; }
.ncar-nav .ncar-arr:last-child { order: 3; }

.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.news-main { min-width: 0; }
.news-main .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 0; }
.news-main .post-body { flex: 1; }
/* titolo + estratto occupano sempre lo stesso numero di righe (--righe): se il titolo è corto, l'estratto ha una riga in più (js/site.js) */
.news-main .posts { --righe: 6; }
.news-main .post { --lh: 1.4rem; }
.news-main .post h2 { line-height: var(--lh); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-main .post p { line-height: var(--lh); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-main .post .go { margin-top: auto; }

.news-side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 22px; }
.gnews { background: var(--paper); border: 8px solid var(--paper); box-shadow: 8px 8px 0 var(--shadow); }
.gnews-head { display: flex; align-items: flex-start; gap: 12px; background: var(--ink); color: var(--paper); padding: 14px 14px 13px; margin: -8px -8px 0; }
.gnews-head h2 { font-size: 1.25rem; color: var(--lime); }
.gnews-head p { margin: 5px 0 0; font-size: .82rem; line-height: 1.4; color: #cfcab9; }
.gnews-live { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(207,244,48,.6); animation: gnews-pulse 2s infinite; }
@keyframes gnews-pulse { 0% { box-shadow: 0 0 0 0 rgba(207,244,48,.55); } 70% { box-shadow: 0 0 0 9px rgba(207,244,48,0); } 100% { box-shadow: 0 0 0 0 rgba(207,244,48,0); } }
@media (prefers-reduced-motion: reduce) { .gnews-live { animation: none; } }
.gnews-list { list-style: none; margin: 0; padding: 0 4px; max-height: min(560px, calc(100dvh - 300px)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #bdb4a0 transparent; }
.gnews-list li { border-bottom: 1px dashed #bdb4a0; }
.gnews-list li:last-child { border-bottom: 0; }
.gnews-list a { display: flex; flex-direction: column; gap: 5px; padding: 12px 2px; color: var(--ink); text-decoration: none; }
.gnews-list a:hover .gnews-tit { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gnews-meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.gnews-meta b { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gnews-meta time { flex: none; }
.gnews-tit { font-size: .94rem; line-height: 1.38; font-weight: 500; }
.gnews-ph { display: flex; flex-direction: column; gap: 7px; padding: 14px 2px; }
.gnews-ph span { display: block; height: 10px; background: linear-gradient(90deg, #e6dcc6 0%, #f4ecdc 50%, #e6dcc6 100%); background-size: 200% 100%; animation: gnews-ph 1.4s infinite linear; }
.gnews-ph span:first-child { width: 40%; height: 8px; }
.gnews-ph span:last-child { width: 70%; }
@keyframes gnews-ph { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.gnews-err { padding: 16px 2px; font-size: .9rem; color: var(--muted); }
.gnews-foot { margin: 0; padding: 10px 4px 2px; border-top: 3px solid var(--ink); font-family: var(--mono); font-size: .62rem; letter-spacing: .03em; color: var(--muted); }
.side-yt { display: flex; flex-direction: column; gap: 7px; padding: 18px 18px 16px; background: var(--ink); border: 3px solid var(--lime); box-shadow: 8px 8px 0 var(--shadow); color: var(--paper); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.side-yt:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--shadow); }
.side-yt-k { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); }
.side-yt b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.05; text-transform: uppercase; }
.side-yt-t { font-size: .88rem; line-height: 1.45; color: #cfcab9; }
.side-yt .go { align-self: flex-start; margin-top: 4px; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lime); border-bottom: 2px solid var(--lime); }

@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; gap: 30px; }
  .news-side { position: static; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 700px) { .news-side { display: flex; } }
.news-main .post .article-meta { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
@media (max-width: 900px) {
  .ncar-slide { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .ncar-txt { padding: 0 2px 4px; gap: 10px; }
  .ncar-txt h2 { -webkit-line-clamp: 3; }
  .ncar-txt p { -webkit-line-clamp: 2; font-size: .94rem; }
  .news-layout { grid-template-columns: 1fr; gap: 30px; }
  .news-side { position: static; }
  .gnews-list { max-height: 460px; }
}
@media (max-width: 640px) {
  .news-main .posts { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-height: 780px) {
  .news-main .posts { --righe: 5; }
  .news-main .post { --lh: 1.3rem; }
}

/* Nota di trasparenza sull'AI in fondo agli articoli */
.ai-nota { max-width: 66ch; margin: 30px auto 0; display: flex; gap: 14px; align-items: flex-start; background: #fff8ec; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow); padding: 14px 16px; }
.ai-nota-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.ai-nota p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink); text-align: left; }
.ai-nota b { font-weight: 700; }

/* ================= News: colonna "Dal mondo" (versione scura, più leggibile) ================= */
.gnews { background: var(--ink); border: 3px solid var(--lime); box-shadow: 8px 8px 0 var(--shadow); color: var(--paper); display: flex; flex-direction: column; }
.gnews-head { display: block; background: none; margin: 0; padding: 18px 20px 16px; border-bottom: 1px solid #2c2c2c; }
.gnews-top { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.gnews-live { margin: 0; width: 9px; height: 9px; }
.gnews-k { color: var(--lime); }
.gnews-agg { margin-left: auto; color: #8f8b80; letter-spacing: .04em; }
.gnews-head h2 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); line-height: 1; color: var(--paper); margin: 12px 0 8px; }
.gnews-head p { margin: 0; font-size: .86rem; line-height: 1.45; color: #b9b4a6; }
.gnews-list { counter-reset: gn; padding: 0; margin: 0; max-height: none; overflow: visible; }
.gnews-list li { counter-increment: gn; border-bottom: 1px solid #2c2c2c; }
.gnews-list li:last-child { border-bottom: 0; }
.gnews-list a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 15px 20px 15px 16px; color: var(--paper); text-decoration: none; transition: background .2s ease; }
.gnews-list a::before { content: counter(gn, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--display); font-size: 1.3rem; line-height: 1.1; color: var(--lime); }
.gnews-list a:hover { background: #1b1b1b; }
.gnews-list a:hover .gnews-tit { color: var(--lime); text-decoration: none; }
.gnews-tit { order: 1; font-size: .98rem; line-height: 1.4; font-weight: 500; color: var(--paper); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s ease; }
.gnews-meta { order: 2; justify-content: flex-start; gap: 10px; font-size: .62rem; letter-spacing: .07em; color: #8f8b80; }
.gnews-meta b { color: var(--ink); background: var(--lime); padding: 2px 6px; font-weight: 700; max-width: 60%; }
.gnews-list li:first-child .gnews-tit { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.12rem; line-height: 1.2; }
.gnews-ph { padding: 16px 20px; }
.gnews-ph span { background: linear-gradient(90deg, #222 0%, #333 50%, #222 100%); background-size: 200% 100%; }
.gnews-err { padding: 18px 20px; color: #b9b4a6; }
.gnews-foot { margin: 0; padding: 12px 20px 14px; border-top: 1px solid #2c2c2c; color: #8f8b80; font-size: .62rem; }

/* pagina principale degli Articoli: la colonna è alta quanto le due righe di articoli */
.news-layout.home { align-items: stretch; }
.news-layout.home .news-side { position: static; height: 100%; }
.news-layout.home .gnews { height: 100%; min-height: 0; }
.news-layout.home .gnews-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
.news-tutti { display: flex; justify-content: center; margin-top: 28px; }
.news-tutti-btn { font-size: .9rem; padding: 14px 26px; background: var(--lime); color: var(--ink); border-color: var(--ink); }
.news-tutti-btn span { font-size: .72rem; opacity: .7; }
@media (max-width: 1100px) {
  .news-layout.home .news-side, .news-layout.home .gnews { height: auto; }
  .news-layout.home .gnews-list { max-height: 640px; }
  .news-side { display: flex; }
}
@media (min-width: 1101px) {
  /* la colonna non allunga la pagina: prende l'altezza delle due righe di articoli + pulsante */
  .news-layout.home .news-side { position: relative; top: 0; height: auto; width: 100%; justify-self: stretch; }
  .news-layout.home .gnews { position: absolute; inset: 0; height: auto; }
}
.news-title h1 { white-space: nowrap; }
@media (max-width: 640px) { .news-title h1 { white-space: normal; } }
.news-title .news-num { white-space: nowrap; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
/* Tutti gli articoli e categorie: niente colonna laterale, 3 articoli per riga */
.news-layout:not(.home) { grid-template-columns: 1fr; }
@media (min-width: 1101px) { .news-layout:not(.home) .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* pulsante "Tutti gli articoli" sotto la colonna degli articoli, fuori dal box notizie: i due blocchi finiscono alla stessa altezza */
.news-tutti-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.news-tutti-row .news-tutti { margin-top: 30px; }
@media (max-width: 1100px) { .news-tutti-row { grid-template-columns: 1fr; } .news-layout.home .news-side { order: 3; } }
.news-tutti.solo-mobile { display: none; }
@media (max-width: 1100px) { .news-tutti-row.solo-desktop { display: none; } .news-tutti.solo-mobile { display: flex; } }
/* schede autore: il nome su una riga non deve allargare la colonna (su telefono tagliava il testo) */
.autore-info { min-width: 0; }
.autore-head { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 700px) { .autore-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .cinema-top .back + .cinema-dx { margin-left: auto; } }

/* articoli: percorso (briciole), firma, precedente/successivo */
.article-top { display: flex; align-items: center; gap: 14px; }
.crumbs { margin-left: auto; min-width: 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #a7a294; white-space: nowrap; overflow: hidden; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--lime); text-decoration: underline; }
.crumbs a:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.article-meta .byline { color: var(--muted); }
.article-meta .byline a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.article-meta .byline a:hover { border-bottom-width: 2px; }
.related-list { display: grid; gap: 14px; }
@media (min-width: 601px) { .related-list { grid-auto-rows: 1fr; } }
@media (max-width: 600px) {
        .crumbs a:first-child, .crumbs a:first-child + span { display: none; }
}

/* titolo articolo: la parola più lunga non deve mai uscire dal riquadro (schermi stretti) */
.article-head h1[style*="--lw"] { font-size: min(clamp(1.9rem, 4.4vw, 3.2rem), calc((100vw - 92px) / var(--lw))); }
@media (max-width: 600px) {
  .article-foot.btn-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .article-foot .btn { width: 100%; justify-content: center; text-align: center; margin: 0; }
}

/* link nel testo degli articoli: evidenziati come un pennarello, con anteprima al passaggio del mouse */
.article-body a.xlink { color: var(--ink); text-decoration: none; font-weight: 600; background: linear-gradient(transparent 58%, var(--lime) 58%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 2px; transition: background-size .2s ease; }
.article-body a.xlink:hover, .article-body a.xlink:focus-visible { background: var(--lime); outline: none; }
.xpv { position: fixed; z-index: 80; width: 320px; max-width: calc(100vw - 24px); background: #fff8ec; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); padding: 10px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.xpv.on { opacity: 1; transform: none; }
.xpv figure { margin: 0 0 10px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.xpv figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xpv .article-meta { margin-bottom: 6px; }
.xpv b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--display); text-transform: uppercase; font-size: .95rem; line-height: 1.2; color: var(--ink); }
.xpv p { margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; line-height: 1.45; color: var(--muted); text-align: left; }

/* sigla d'apertura (solo home, una volta per visita) */
.sigla-ov { display: none; }
html.sigla, html.sigla body { overflow: hidden; }
html.sigla .sigla-ov { display: block; position: fixed; inset: 0; z-index: 1000; background: #000; transition: opacity .6s ease; }
html.sigla .sigla-ov.via { opacity: 0; pointer-events: none; }
.sigla-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media (orientation: portrait) { .sigla-v { object-fit: contain; } }
.sigla-audio { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--lime); border: 3px solid var(--ink); box-shadow: 4px 4px 0 #000; padding: 9px 14px; cursor: pointer; }
.sigla-audio[aria-pressed="true"] { background: #fff8ec; }
.sigla-ico { width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* vetrina articoli casuale: il blocco di testo ha sempre l'altezza del caso più lungo, contenuto centrato */
.ncar-txt { min-height: var(--ncar-txt-h, 0); justify-content: center; }
@media (max-width: 900px) { .ncar-txt { justify-content: flex-start; } }

/* articoli: visualizzazioni accanto alla firma */
.article-meta .aviste { white-space: nowrap; }
.article-meta .aviste::before { content: "👁 "; }

/* vetrina articoli con molti articoli: barra a segmenti su computer, contatore 1 / 30 su telefono */
.ncar-dots { gap: 3px; }
.ncar-num { display: none; order: 1; flex: 1; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 600px) { .ncar-dots { display: none; } .ncar-num { display: block; } }

/* ================= AI Film Academy: pannelli, indice dei capitoli, presentazioni a slide ================= */
.acad-main { flex: 1; display: flex; align-items: center; padding: 26px 0 40px; }
.acad-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 22px; }
.acad-tit { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); padding: 10px 18px; }
.acad-tit h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1; text-transform: uppercase; }
.acad-top > p { flex: 1 1 320px; margin: 0; font-family: var(--mono); font-size: .82rem; line-height: 1.55; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); padding: 11px 16px; align-self: stretch; display: flex; align-items: center; }
.acad-k { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.acad-pannelli { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.acad-pannello { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); padding: 10px; transition: transform .2s ease, box-shadow .2s ease; }
a.acad-pannello:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--shadow); }
.acad-pannello figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.acad-pannello figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acad-p-txt { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 10px 8px; }
.acad-p-txt h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.05; text-transform: uppercase; }
.acad-p-txt p { margin: 0; color: var(--muted); }
.acad-p-txt .go { margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); }
.acad-arrivo { cursor: default; }
.acad-arrivo figure img { filter: grayscale(1) contrast(.9); opacity: .55; }
.acad-arrivo .go { border-bottom-color: transparent; color: var(--muted); }
.acad-badge { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; background: var(--lime); color: var(--ink); border: 3px solid var(--ink); padding: 5px 10px; }
.acad-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 30px; }
.acad-cap { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); padding: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.acad-cap:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--shadow); }
.acad-cap figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.acad-cap figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acad-cap > div { padding: 12px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.acad-cap h2 { margin: 0; font-size: 1.12rem; line-height: 1.15; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acad-cap p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.45em); }
@media (max-width: 1000px) { .acad-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .acad-pannelli, .acad-griglia { grid-template-columns: minmax(0, 1fr); } .acad-main { align-items: flex-start; } }

/* presentazione a slide */
.deck-main .wrap { padding-bottom: 34px; }
.deck-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.deck-cap { min-width: 0; flex: 1; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--paper); background: var(--ink); padding: 9px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-cnt { flex: none; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: var(--lime); color: var(--ink); border: 3px solid var(--ink); padding: 6px 12px; min-width: 128px; text-align: center; }
.deck { background: var(--paper); border: 8px solid var(--paper); box-shadow: 8px 8px 0 var(--shadow); }
.deck-track { display: grid; }
.deck .slide { grid-area: 1 / 1; align-content: start; display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 34px); align-items: start; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.deck .slide.on { opacity: 1; visibility: visible; }
.slide-media { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.slide-media img, .slide-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-schema { background: var(--paper); border: 3px solid var(--ink); }
.slide-schema svg { width: 100%; height: 100%; display: block; }
.slide-video-tag { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--lime); color: var(--ink); padding: 3px 8px; }
.terzi { position: absolute; inset: 0; pointer-events: none; }
.terzi i { position: absolute; background: rgba(207, 244, 48, .9); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.terzi i:nth-child(1) { left: 33.333%; top: 0; bottom: 0; width: 2px; } .terzi i:nth-child(2) { left: 66.666%; top: 0; bottom: 0; width: 2px; }
.terzi i:nth-child(3) { top: 33.333%; left: 0; right: 0; height: 2px; } .terzi i:nth-child(4) { top: 66.666%; left: 0; right: 0; height: 2px; }
.slide-txt { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 4px clamp(2px, 1vw, 12px) 6px 0; }
.slide-n { align-self: flex-start; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--lime); padding: 3px 9px; }
.slide-txt h1, .slide-txt h2 { margin: 2px 0 0; font-size: clamp(1.35rem, 2.3vw, 2.05rem); line-height: 1.05; text-transform: uppercase; }
.slide-txt h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.slide-txt p { margin: 0; font-size: .97rem; line-height: 1.55; }
.slide-txt ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.slide-txt li { position: relative; padding-left: 20px; font-size: .95rem; line-height: 1.5; }
.slide-txt li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--lime); border: 2px solid var(--ink); }
.slide-tip { background: #fff8ec; border: 2px solid var(--ink); border-left: 8px solid var(--lime); padding: 9px 12px; font-size: .92rem !important; }
.slide-tip b { display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 400; margin-bottom: 2px; }
.slide-lead { font-size: 1.02rem !important; }
.slide-indice { margin: 4px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 18px; }
.slide-indice li { break-inside: avoid; padding: 0; }
.slide-indice li::before { display: none; }
.slide-indice a { display: flex; gap: 8px; padding: 3px 0; font-size: .86rem; line-height: 1.35; color: var(--ink); text-decoration: none; border-bottom: 1px dashed #c9bfaa; }
.slide-indice a span { font-family: var(--mono); font-size: .72rem; color: var(--muted); padding-top: 2px; }
.slide-indice a:hover { background: var(--lime); }
.slide-inizia, .slide-ricomincia { align-self: flex-start; margin-top: 4px; }
.slide-fine .btn-row { margin-top: 4px; }
/* pagina di sceneggiatura */
.scr-pagina { position: absolute; inset: 6% 18%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 4% 6%; font-family: "Courier New", Courier, var(--mono); font-size: clamp(.5rem, .78vw, .82rem); line-height: 1.45; color: #111; overflow: hidden; }
.scr-pagina p { margin: 0 0 .9em; }
.scr-int { font-weight: 700; text-transform: uppercase; }
.scr-nome { margin: 0 0 0 40% !important; text-transform: uppercase; }
.scr-par { margin: 0 0 0 32% !important; }
.scr-batt { margin: 0 18% .9em 24% !important; }
@media (max-width: 900px) {
  .deck-top .back { padding-inline: 10px; }
}
@media (max-width: 600px) {
  .deck-cap { display: none; }
  .deck-top { justify-content: space-between; }
  .scr-pagina { inset: 4% 6%; font-size: .5rem; }
}

.acad-tit .tag { white-space: nowrap; }
.deck-back-m { display: none; }
@media (max-width: 600px) { .acad-tit .tag { display: none; } .deck-back-d { display: none; } .deck-back-m { display: inline; } }


/* Academy · presentazione: immagine in alto, testo sotto, barra di avanzamento in percentuale */
.deck-main .wrap { width: min(100% - 2 * var(--gutter), max(700px, calc(46vh * 16 / 9 + 20px)), 940px); padding-bottom: 40px; }
.deck-top { align-items: stretch; gap: 14px; margin-bottom: 18px; }
.deck-top > * { box-sizing: border-box; min-height: 46px; display: flex; align-items: center; }
.deck-cap { color: var(--ink); background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--shadow); padding: 0 16px; display: block; line-height: 40px; }
.deck-cnt { justify-content: center; padding: 0 14px; box-shadow: 4px 4px 0 var(--shadow); min-width: 118px; }
.deck { border-width: 10px; }
.deck-track { display: block; }
.deck .slide { display: none; grid-template-columns: none; gap: 0; opacity: 1; visibility: visible; transition: none; }
.deck .slide.on { display: block; animation: deckIn .4s ease both; }
@keyframes deckIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .deck .slide.on { animation: none; } }
.slide-txt { gap: 14px; padding: clamp(18px, 2.4vw, 28px) clamp(6px, 2.4vw, 30px) clamp(16px, 2vw, 24px); }
.slide-txt h1, .slide-txt h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.05; }
.slide-txt h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.slide-txt p, .slide-txt li, .slide-tip { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.slide-txt p { font-size: 1rem; line-height: 1.68; }
.slide-txt li { font-size: clamp(.98rem, 1.05vw, 1.04rem); line-height: 1.6; }
.slide-txt ul { gap: 8px; }
.slide-tip { margin-top: 4px !important; padding: 12px 16px !important; }
.slide-lead { font-size: clamp(1.05rem, 1.25vw, 1.15rem) !important; }
.slide-indice { columns: 2; column-gap: 34px; margin-top: 6px; }
.slide-indice a { text-align: left; font-size: .95rem; padding: 6px 0; }
.slide-inizia, .slide-ricomincia { margin-top: 8px; }

/* barra di navigazione: resta visibile in fondo allo schermo mentre leggi */
.deck-nav { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); margin: 0 -10px -10px; padding: 14px clamp(12px, 2.4vw, 22px) 16px; background: var(--paper); border-top: 2px solid var(--ink); }
.deck-arr { flex: none; min-width: 132px; justify-content: center; padding: 11px 16px; }
.deck-arr:disabled { opacity: .3; cursor: default; transform: none; box-shadow: 4px 4px 0 var(--shadow); }
.deck-arr span[aria-hidden] { font-size: 1rem; line-height: 1; }
.deck-prog { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.deck-prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); white-space: nowrap; }
.deck-prog-t { overflow: hidden; text-overflow: ellipsis; }
.deck-pct { color: var(--ink); font-size: .86rem; font-weight: 700; letter-spacing: .04em; }
.deck-rail { position: relative; height: 14px; border: 2px solid var(--ink); background: #e4dbc7; cursor: pointer; padding: 0; width: 100%; display: block; }
.deck-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lime); border-right: 2px solid var(--ink); transition: width .45s cubic-bezier(.3,.7,.2,1); }
.deck-fill.zero { border-right-color: transparent; }
.deck-fill.pieno { border-right: 0; }
body:has(.deck) .nfchat-btn { position: absolute; top: 7px; bottom: auto; }
@media (max-width: 600px) {
  .deck-cap { display: none; }
  .deck { border-width: 8px; }
  .deck-nav { margin: 0 -8px -8px; padding: 12px 10px 14px; gap: 10px; }
  .deck-arr { min-width: 0; width: 46px; height: 46px; padding: 0; }
  .deck-arr-l { display: none; }
  .slide-indice { columns: 1; }
  .slide-txt { padding-inline: 6px; }
  body:has(.deck) .nfchat-btn { top: 8px; }
}
.deck-arr { font-family: var(--mono); font-size: .8rem; }
.deck-top { justify-content: flex-start; }
body:has(.deck) .nfchat { top: 72px; bottom: auto; z-index: 60; }

/* Academy · impaginazione "rivista": immagine piccola a sinistra, testo che le scorre intorno */
.deck-main .wrap { width: min(100% - 2 * var(--gutter), 1060px); }
.riv { padding: clamp(18px, 3vw, 40px) clamp(10px, 3vw, 44px) clamp(20px, 2.6vw, 30px); }
.riv::after { content: ""; display: block; clear: both; }
.riv-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.riv-h .slide-n { flex: none; }
.riv-h h1, .riv-h h2 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.02; text-transform: uppercase; }
.riv-h h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.riv-fig { float: left; width: min(46%, 440px); margin: 4px 30px 12px 0 !important; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); }
.riv-fig.slide-schema { background: var(--paper); }
.riv p, .riv li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; font-size: 1.02rem; line-height: 1.7; }
.riv > p { margin: 0 0 14px; }
.riv > ul { list-style: none; padding: 0; margin: 0 0 14px; display: flow-root; }
.riv > ul li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.riv > ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: var(--lime); border: 2px solid var(--ink); }
.riv .slide-tip { clear: both; margin: 8px 0 0 !important; padding: 12px 16px !important; font-size: .97rem !important; line-height: 1.6; }
.riv .slide-lead { font-size: 1.1rem; line-height: 1.65; }
.riv .slide-indice { clear: both; columns: 2; column-gap: 34px; padding: 6px 0 0; margin: 0 0 6px; list-style: none; }
.riv .slide-indice li { text-align: left; }
.riv .slide-inizia, .riv .slide-ricomincia { margin-top: 12px; }
.riv .btn-row { margin: 4px 0 0; }
.slide-fine .riv .slide-ricomincia { display: inline-flex; margin-left: 0; }
@media (max-width: 700px) {
  .riv-fig { float: none; width: 100%; margin: 0 0 16px !important; }
  .riv .slide-indice { columns: 1; }
  .riv-h { flex-wrap: wrap; gap: 8px 12px; }
}
.deck button.btn { font-family: var(--mono); font-size: .8rem; }
.riv .slide-lead { margin: 0 0 20px; }
.riv .slide-cop .slide-indice, .slide-cop .riv .slide-indice { clear: none; columns: 1; display: flow-root; padding: 0; }
.slide-cop .riv .slide-indice a { padding: 7px 0; }
.slide-cop .riv .slide-inizia { clear: both; margin-top: 18px; }
.riv .btn-row { clear: none; flex-wrap: wrap; gap: 12px; }
.riv .slide-ricomincia { margin-top: 0 !important; }
/* Academy · ingrandimento di immagini, video e schemi */
.riv-fig { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.riv-fig:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--shadow); }
.riv-fig:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.riv-fig::after { content: "⤢"; position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; display: grid; place-items: center; font-size: 1rem; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); opacity: 0; transition: opacity .2s ease; }
.riv-fig:hover::after, .riv-fig:focus-visible::after { opacity: 1; }
.zoom { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(8, 8, 8, .86); opacity: 0; transition: opacity .2s ease; cursor: zoom-out; }
.zoom.on { opacity: 1; }
.zoom[hidden] { display: none; }
.zoom-frame { position: relative; width: min(70vw, calc(70vh * 16 / 9)); aspect-ratio: 16 / 9; background: var(--ink); border: 4px solid var(--paper); box-shadow: 10px 10px 0 var(--lime); transform: scale(.96); transition: transform .2s ease; cursor: default; overflow: hidden; }
.zoom.on .zoom-frame { transform: none; }
.zoom-frame img, .zoom-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.zoom-frame.zoom-schema { background: var(--paper); }
.zoom-frame.zoom-schema svg { width: 100%; height: 100%; display: block; }
.zoom-frame .scr-pagina { font-size: clamp(.6rem, 1.15vw, 1.05rem); }
.zoom-frame .slide-video-tag { display: none; }
.zoom-x { position: fixed; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.7rem; line-height: 1; background: var(--lime); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--paper); cursor: pointer; }
.zoom-x:hover { transform: translate(-2px, -2px); }
html.zoom-aperto { overflow: hidden; }
@media (max-width: 700px) { .zoom-frame { width: 92vw; } .riv-fig::after { opacity: 1; width: 28px; height: 28px; } }
/* Academy · tutte le slide della stessa grandezza: il riquadro occupa l'altezza dello schermo */
.deck-main .wrap { width: min(100% - 2 * var(--gutter), 1240px); }
.riv-fig { width: min(46%, 520px); }
.riv p, .riv li { font-size: 1.05rem; }
@media (min-width: 701px) {
  .deck { display: flex; flex-direction: column; min-height: max(560px, calc(100vh - 186px)); }
  .deck-track { flex: 1; }
  .deck-nav { margin-top: auto; }
}
/* stessa altezza per tutte le slide del capitolo: sono sovrapposte, il riquadro prende la più alta */
.deck-track { display: grid; }
.deck .slide { display: block; grid-area: 1 / 1; visibility: hidden; opacity: 0; animation: none; }
.deck .slide.on { visibility: visible; opacity: 1; animation: deckIn .4s ease both; }
.slide-cop .riv .slide-indice.indice-2 { columns: 2; column-gap: 26px; }
@media (max-width: 700px) { .slide-cop .riv .slide-indice.indice-2 { columns: 1; } }
@media (max-width: 700px) { .riv-fig { width: 100%; } }
/* Academy · testo più grande che riempie meglio le schede */
@media (min-width: 701px) {
  .riv { padding: clamp(24px, 3vw, 44px) clamp(14px, 3.4vw, 52px) clamp(22px, 2.6vw, 32px); }
  .riv-h { margin-bottom: 22px; }
  .riv-h h1, .riv-h h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
  .riv-h h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
  .riv-fig { width: min(48%, 580px); margin: 6px 34px 14px 0 !important; }
  .riv p, .riv li { font-size: clamp(1.08rem, 1.05vw + .35rem, 1.22rem); line-height: 1.72; }
  .riv > p { margin-bottom: 18px; }
  .riv .slide-tip { font-size: clamp(1.02rem, .9vw + .35rem, 1.12rem) !important; padding: 14px 18px !important; margin-top: 10px !important; }
  .riv .slide-tip b { font-size: .74rem; margin-bottom: 4px; }
  .riv .slide-lead { font-size: clamp(1.15rem, 1.1vw + .4rem, 1.32rem); }
  .slide-cop .riv .slide-indice a { font-size: clamp(1rem, .9vw + .3rem, 1.1rem); padding: 9px 0; }
  .riv .slide-n { font-size: .8rem; padding: 4px 10px; }
}
@media (max-width: 700px) { .riv p, .riv li { font-size: 1.04rem; } }
.slide-cop .riv .slide-indice a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 701px) { .slide-cop .riv .slide-indice a { padding: 5px 0; font-size: 1.02rem; } .slide-cop .riv .slide-inizia { margin-top: 14px; } }
.riv strong { font-weight: 700; } .slide-tip em { font-style: italic; }
.zoom-dl { position: fixed; top: 18px; right: 82px; height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--lime); cursor: pointer; }
.zoom-dl[hidden] { display: none; }
.zoom-dl:hover { transform: translate(-2px, -2px); background: var(--lime); }
.zoom-dl span { font-size: 1.05rem; }

/* Articoli: scheda in evidenza e anteprime più compatte su computer (21 ott 2026) */
@media (min-width: 901px) {
  .ncar-slide { grid-template-columns: auto minmax(0, 1fr); }
  .ncar-slide figure { height: clamp(130px, 18vh, 165px); width: auto; aspect-ratio: 16 / 9; }
  .ncar { border-width: 6px; }
  .ncar-slide { gap: 22px; }
  .ncar-txt p { -webkit-line-clamp: 2; }
  .ncar-slide figure .play::before { width: 44px; height: 44px; }
  .ncar-slide figure .play::after { border-width: 9px 0 9px 15px; margin-left: 4px; }
  .ncar-slide { position: relative; }
  .ncar-kicker { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: .62rem; padding: 2px 7px; }
  .ncar-arr { width: 32px; height: 32px; }
  .ncar-slide figure .play::before { width: 56px; height: 56px; }
  .ncar-txt { gap: 7px; }
  .ncar-txt h2 { font-size: clamp(1.05rem, 1.45vw, 1.35rem); -webkit-line-clamp: 2; }
  .ncar-txt p { font-size: .88rem; line-height: 1.4; }
  .ncar-nav { margin-top: 6px; padding-top: 6px; }
  .news-main .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .news-main .post { --lh: 1.28rem; }
  .news-main .post h2 { font-size: 1.02rem; }
  .news-main .post p { font-size: .86rem; }
  .news-main .post-body { padding: 11px 4px 4px; gap: 6px; }
  .news-main .post figure .play::before { width: 46px; height: 46px; }
  .news-main .post figure .play::after { border-width: 9px 0 9px 15px; margin-left: 4px; }
  .news-main .post .article-meta { font-size: .64rem; gap: 6px 8px; letter-spacing: .03em; }
  .news-main .post .article-meta .tag { font-size: .62rem; padding: 2px 6px; letter-spacing: .04em; }
}

/* Schede articolo più larghe su computer (21 ott 2026) */
@media (min-width: 901px) {
  .article, .article-top { max-width: 1100px; }
  .article-body, .related { max-width: none; }
  .article > .yt-embed { max-width: 600px; margin-inline: auto; }
  .article-head h1, .article-head h1[style*="--lw"] { font-size: clamp(1.6rem, 2.5vw, 2.35rem); }
}

/* Anteprime video negli articoli con angoli arrotondati (21 ott 2026) */
/* tutte le anteprime video: vetrina, elenchi articoli, correlati, player */
.yt-facade, .yt-embed iframe, .ncar-slide figure, .post figure, .related-card figure, .video .thumb { border-radius: 16px; }
.post figure, .related-card figure, .video .thumb { border-radius: 12px; }
@media (max-width: 600px) { .yt-facade, .yt-embed iframe, .ncar-slide figure { border-radius: 12px; } }

/* Articoli: titolo e riassunto al massimo su 2 righe; vetrina senza barra, frecce in alto (22 ott 2026) */
.news-main .post h2 { -webkit-line-clamp: 2; line-clamp: 2; min-height: calc(var(--lh) * 2); }
.news-main .post p { -webkit-line-clamp: 2; line-clamp: 2; }
@media (min-width: 901px) {
  .ncar { position: relative; }
  .ncar-nav { position: absolute; top: 4px; right: 4px; margin: 0; padding: 0; border: 0; gap: 8px; z-index: 3; }
  .ncar-dots, .ncar-num { display: none !important; }
  .ncar-txt { padding-right: 90px; }
}
/* vetrina: play più piccolo, "In evidenza" in basso a destra a colori invertiti (22 ott 2026) */
@media (min-width: 901px) {
  .ncar-slide figure .play::before { width: 34px; height: 34px; box-shadow: 3px 3px 0 var(--shadow); }
  .ncar-slide figure .play::after { border-width: 7px 0 7px 11px; margin-left: 3px; }
  .ncar-slide { position: static; }
  .ncar-kicker { left: auto; top: auto; right: 4px; bottom: 4px; background: var(--ink); color: var(--lime); }
}
/* raccolta sotto la vetrina (solo pagina News): play più piccolo (22 ott 2026) */
@media (min-width: 901px) {
  .news-layout.home .post figure .play::before { width: 34px; height: 34px; box-shadow: 3px 3px 0 var(--shadow); }
  .news-layout.home .post figure .play::after { border-width: 7px 0 7px 11px; margin-left: 3px; }
}
/* pagina News: 3 righe di anteprime e colonna "Dal mondo" alta quanto le anteprime (22 ott 2026) */
@media (min-width: 1101px) {
  .news-layout.home { align-items: stretch; }
  .news-layout.home .news-side { position: relative; top: auto; }
  .news-layout.home .news-side > .gnews { position: absolute; inset: 0; display: flex; flex-direction: column; }
  .news-layout.home .gnews-list { flex: 1; min-height: 0; max-height: none; }
}
/* frase sotto il titolo degli articoli in corsivo (22 ott 2026) */
.article-lead { font-style: italic; }
