/* Playfair Display — SIL Open Font License, testo in assets/fonts/OFL-PlayfairDisplay.txt
   Font variabile: un solo file copre tutti i pesi da 400 a 900. */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-var.woff2") format("woff2-variations"),
       url("fonts/playfair-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-var-italic.woff2") format("woff2-variations"),
       url("fonts/playfair-var-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

/* ═══ Vort — stile condiviso delle pagine interne (articoli, analisi, report) ═══ */

:root {
  --paper: #f3f4ee;
  --paper-strong: #fbfbf7;
  --ink: #11130f;
  --ink-soft: #40443e;
  --muted: #696d65;
  --rule: #cfd2c9;
  --signal: #FF6A00;
  --signal-deep: #CC5500;
  --signal-glow: rgba(255, 106, 0, 0.18);
  --green: #0d7a3e;
  --red: #c2402f;
  --metric-bg: #e9ebe4;
  --header-bg: rgba(243, 244, 238, 0.94);
  --dot: rgba(17, 19, 15, 0.11);
  --hover-bg: #e9ebe4;
  --shell: 1660px;
  --read: 720px;
}

[data-theme="dark"] {
  --paper: #0A0A0A;
  --paper-strong: #111111;
  --ink: #e8e8e2;
  --ink-soft: #b8bab2;
  --muted: #7a7d75;
  --rule: #2a2d26;
  --green: #4ade80;
  --red: #ff6b6b;
  --metric-bg: #161616;
  --header-bg: rgba(10, 10, 10, 0.94);
  --dot: rgba(255, 255, 255, 0.08);
  --hover-bg: #1a1a1a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Protezione immagini ──
   Blocca trascinamento, selezione e salvataggio rapido.
   Non e una protezione assoluta: screenshot e strumenti sviluppatore
   restano possibili, ma ferma il salvataggio casuale. */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;   /* il tasto destro non "vede" l'immagine */
}
/* i link contenenti immagini restano cliccabili */
a img, button img { pointer-events: none; }

/* strato invisibile sopra le pagine del report */
.img-scudo {
  position: absolute; inset: 0; z-index: 5;
  display: block; background: transparent;
  pointer-events: auto;
}

/* avviso "contenuto protetto" */
#vort-avviso {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  z-index: 9999; padding: 11px 18px;
  background: var(--ink); color: var(--paper);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  border-left: 3px solid var(--signal);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
#vort-avviso.visibile { opacity: 1; transform: translate(-50%, 0); }

/* in stampa il contenuto sparisce */
@media print {
  body * { visibility: hidden !important; }
  body::before {
    content: "Contenuto protetto — Vort Research";
    visibility: visible; position: fixed; inset: 0;
    display: grid; place-items: center;
    font-size: 22px; font-weight: 700; color: #11130f;
  }
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
  line-height: 1.4;
  transition: background 300ms ease, color 300ms ease;
}

h1, h2, h3, h4, p { margin-top: 0; }
/* Titoli in Playfair Display; il resto dell'interfaccia resta in Sora */
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.005em; }
/* etichettine e voci tecniche: il serif sotto i 18px non regge */
.brand-word, .plan-name, .sez-testa .nota, .kicker, .tag,
.conti .k, .tk-fascia .k, .giudizio .k, .premium-testa .k,
.art-riga, .art-filtro, .cond-btn, .fmt-btn, .nav-link, .member-link,
.intro-nm, .intro-lab, .intro-piede, .disclosure h4, .fonte-riga {
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
}
.intro-tk { font-family: "Space Grotesk", sans-serif; }
button, a, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.shell { width: min(calc(100% - 64px), var(--shell)); margin: 0 auto; }

/* la barra in alto occupa tutta la larghezza: il logo resta a filo sinistro */


.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  line-height: 1.1; text-transform: uppercase;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 240ms ease;
}
.site-header.is-stuck { box-shadow: 0 12px 30px -20px rgba(0,0,0,.55); }

.header-inner {
  display: flex; align-items: stretch;
  min-height: 52px; padding-right: 16px; gap: 0;
}

/* marchio: blocco arancione a tutta altezza, taglio a destra */
.brand { display: flex; align-self: stretch; text-decoration: none; flex: none; }
.brand-word {
  display: flex; align-items: center; height: 100%;
  padding: 0 34px 0 17px;
  background: var(--signal); color: #170C00;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .26em; line-height: 1;
  text-indent: .26em;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20138%2052%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2C0%20L138.00%2C0.00%20C140.45%2C7.90%20120.25%2C14.23%20107.40%2C19.76%20C110.26%2C27.00%20125.96%2C35.48%20131.20%2C32.24%20C134.19%2C40.14%20109.51%2C46.47%2093.80%2C52.00%20L0%2C52.00%20Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20138%2052%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M0%2C0%20L138.00%2C0.00%20C140.45%2C7.90%20120.25%2C14.23%20107.40%2C19.76%20C110.26%2C27.00%20125.96%2C35.48%20131.20%2C32.24%20C134.19%2C40.14%20109.51%2C46.47%2093.80%2C52.00%20L0%2C52.00%20Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: filter 180ms ease;
}
.brand:hover .brand-word, .brand:focus-visible .brand-word { filter: brightness(1.09); }

/* riga che riempie il vuoto accanto al marchio */
.brand-tag {
  display: flex; align-items: center; flex: none;
  margin-left: 4px; padding-left: 15px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-size: 10px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; white-space: nowrap;
}

/* navigazione al centro */
.header-nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.nav-link {
  position: relative; padding: 7px 0;
  color: var(--muted); text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  transition: color 180ms ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

/* azioni a destra */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-select {
  height: 32px; padding: 0 6px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; transition: border-color 180ms ease;
}
.lang-select:hover { border-color: var(--signal); }
.lang-select option { background: var(--paper-strong); color: var(--ink); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border-radius: 0;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  font-size: 14px; cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}
.theme-toggle:hover { border-color: var(--signal); color: var(--signal); }
.read-link {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border: 1px solid var(--signal); background: var(--signal); color: #160d02;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; transition: background 180ms ease, color 180ms ease;
}
.read-link::before { content: "\2192"; font-size: 13px; line-height: 0; }
.read-link:hover, .read-link:focus-visible { background: transparent; color: var(--signal); }
.member-link {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper-strong);
  font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.member-link:hover, .member-link:focus-visible { background: transparent; color: var(--ink); }

/* barra di avanzamento lettura, sul filo inferiore */
.header-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  pointer-events: none;
}
.header-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--signal);
  transition: width 90ms linear;
}

@media (max-width: 1000px) { .brand-tag { display: none; } }
@media (max-width: 780px) {
  .header-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .read-link { display: none; }
  .brand-word { padding: 0 20px 0 13px; font-size: 13px; }
}

.crumbs { display: flex; gap: 8px; align-items: center; padding: 22px 0 0; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--signal); }

/* ── Intestazione del pezzo ── */
.piece-head { padding: 26px 0 30px; border-bottom: 1px solid var(--ink); }
.piece-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.tag {
  padding: 5px 9px; background: var(--signal); color: #160d02;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.tag.ghost { background: transparent; border: 1px solid var(--rule); color: var(--muted); }
.piece-title { margin: 0 0 16px; font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1.02; }
.piece-lede { max-width: var(--read); margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 22px; color: var(--muted); font-size: 12px; }
.byline strong { color: var(--ink); }

/* ── Corpo dell'articolo ── */
.piece-body { max-width: var(--read); margin: 0 auto; padding: 44px 0 20px; }
.piece-body > p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 22px; }
.piece-body h2 { margin: 44px 0 14px; font-size: 28px; }
.piece-body h3 { margin: 32px 0 10px; font-size: 20px; }
.piece-body ul, .piece-body ol { margin: 0 0 24px; padding-left: 22px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.piece-body li { margin-bottom: 8px; }
.piece-body strong { color: var(--ink); }

/* link nel testo — evidenti */
.piece-body a, .link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size 200ms ease, color 200ms ease;
}
.piece-body a:hover, .link:hover { color: var(--signal-deep); background-size: 100% 100%; }
[data-theme="dark"] .piece-body a:hover, [data-theme="dark"] .link:hover { color: #160d02; }
.link-ext::after { content: " \2197"; font-size: .85em; }

/* ── Figure e immagini ── */
figure { margin: 34px 0; }
figure.wide { width: min(calc(100vw - 48px), 1000px); margin-left: 50%; transform: translateX(-50%); }
figure img { border: 1px solid var(--rule); background: var(--paper-strong); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
figcaption b { color: var(--ink); font-weight: 700; }

/* ── Citazione ── */
blockquote {
  margin: 34px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--signal);
  font-family: "Space Grotesk", sans-serif; font-size: 22px; line-height: 1.4;
}
blockquote p { margin: 0; }
blockquote cite { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; font-style: normal; }

/* ── Riquadro dati ── */
.databox { margin: 34px 0; border: 1px solid var(--ink); background: var(--paper-strong); }
.databox-head { padding: 12px 16px; border-bottom: 1px solid var(--ink); color: var(--muted); }
.databox-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.databox-cell { padding: 16px; border-right: 1px solid var(--rule); }
.databox-cell:last-child { border-right: 0; }
.databox-cell .v { display: block; font-size: 22px; font-weight: 800; }
.databox-cell .k { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ── Rating analisi ── */
.rating-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); margin: 0 0 6px; }
.rating-cell { padding: 18px 16px; border-right: 1px solid var(--rule); background: var(--paper-strong); }
.rating-cell:last-child { border-right: 0; }
.rating-cell .k { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rating-cell .v { display: block; margin-top: 8px; font-size: 26px; font-weight: 800; }
.rating-cell .v.buy { color: var(--green); }
.rating-cell .v.hold { color: var(--signal-deep); }
.rating-cell .v.sell { color: var(--red); }

/* ── Blocco download / formati ── */
.formats { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.fmt-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 18px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}
.fmt-btn:hover { background: var(--ink); color: var(--paper-strong); }
.fmt-btn.primary { background: var(--signal); border-color: var(--signal); color: #160d02; }
.fmt-btn.primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: #fff; }

/* ── Paywall ── */
.paywall {
  position: relative; margin: 10px auto 0; max-width: var(--read);
  padding: 34px 28px; border: 1px solid var(--ink);
  background: var(--paper-strong); text-align: center;
}
.paywall::before {
  content: ""; position: absolute; left: 0; right: 0; top: -120px; height: 120px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.paywall h3 { margin: 0 0 10px; font-size: 24px; }
.paywall p { margin: 0 auto 20px; max-width: 460px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Fonti ── */
.sources { max-width: var(--read); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.sources h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sources ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.sources a { color: var(--ink); }

/* ── Correlati ── */
.related { padding: 60px 0 80px; border-top: 1px solid var(--ink); margin-top: 60px; }
.related h2 { margin: 0 0 24px; font-size: 30px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.rel-card {
  display: block; padding: 20px; background: var(--paper-strong);
  border-right: 1px solid var(--ink); text-decoration: none;
  transition: background 200ms ease;
}
.rel-card:last-child { border-right: 0; }
.rel-card:hover { background: var(--hover-bg); }
.rel-card img { margin-bottom: 14px; border: 1px solid var(--rule); }
.rel-card .k { color: var(--muted); }
.rel-card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.25; }

/* ── Indice pagine report ── */
.pages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 30px 0 0; }
.page-thumb { border: 1px solid var(--rule); background: var(--paper-strong); transition: transform 260ms ease, box-shadow 260ms ease; }
.page-thumb:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10,10,10,.18); }
.page-thumb img { display: block; }
.page-thumb .n { padding: 8px 10px; color: var(--muted); font-size: 11px; font-weight: 700; }

/* ── Footer ── */
.site-footer { padding: 30px 0 40px; background: var(--ink); color: #d4d8cf; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; padding-top: 20px; border-top: 1px solid #5b6058; }
.footer-brand { color: var(--paper-strong); font-size: 20px; font-weight: 900; letter-spacing: .08em; }
[data-theme="dark"] .footer-brand { color: var(--paper); }
.footer-note { max-width: 540px; margin: 6px 0 0; color: #aeb4a9; font-size: 11px; line-height: 1.5; }
.footer-links { display: flex; gap: 16px; align-items: start; font-size: 12px; font-weight: 700; }
.footer-links a { color: #d4d8cf; text-decoration: none; }
.footer-links a:hover { color: var(--signal); }

@media (max-width: 850px) {
  .databox-grid, .rating-strip { grid-template-columns: repeat(2, 1fr); }
  .databox-cell:nth-child(2), .rating-cell:nth-child(2) { border-right: 0; }
  .databox-cell:nth-child(-n+2), .rating-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .rel-grid { grid-template-columns: 1fr; }
  .rel-card { border-right: 0; border-bottom: 1px solid var(--ink); }
  .rel-card:last-child { border-bottom: 0; }
  .pages-grid { grid-template-columns: repeat(2, 1fr); }
  
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .piece-body > p, .piece-body ul, .piece-body ol { font-size: 16px; }
  .piece-lede { font-size: 16px; }
  figure.wide { width: calc(100vw - 32px); }
  .footer-top { display: block; }
  .footer-links { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* formato non ancora disponibile */
.fmt-btn.is-soon {
  opacity: .5; cursor: not-allowed; border-style: dashed;
  display: inline-flex; align-items: center;
}

/* -- Sipario di apertura (ticker e note di ricerca) -- */
.intro {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: var(--paper);
  animation: introSipario 2.25s cubic-bezier(.76,0,.18,1) forwards,
             introFine 0s linear 2.26s forwards;
}
.intro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: .30;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent 78%);
          mask-image: radial-gradient(80% 70% at 50% 50%, #000, transparent 78%);
}
@keyframes introSipario {
  0%, 68% { clip-path: inset(0 0 0 0); }
  100%    { clip-path: inset(0 0 100% 0); }
}
@keyframes introFine { to { visibility: hidden; pointer-events: none; } }
.intro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); opacity: 0;
  animation: introFilo 2.25s cubic-bezier(.76,0,.18,1) forwards;
}
@keyframes introFilo { 0%,66% { opacity: 0; } 72%,100% { opacity: 1; } }

.intro-inner { position: relative; padding: 0 24px; }

/* la scheda: cornice da copertina di report */
.intro-scheda {
  position: relative;
  width: min(430px, 84vw);
  padding: 40px 38px 26px;
  background: var(--paper-strong);
  border: 1px solid var(--ink);
  box-shadow: 0 34px 70px -30px rgba(10,10,10,.35);
  display: grid; justify-items: center;
  opacity: 0; transform: translateY(14px) scale(.985);
  animation: introSu .68s cubic-bezier(.2,.7,.3,1) .04s forwards,
             introVia .44s ease 1.50s forwards;
}
.intro-marchio {
  position: absolute; left: -1px; right: -1px; top: -1px; height: 5px;
  background: var(--marca, var(--signal));
  transform: scaleX(0); transform-origin: left;
  animation: introRiga .70s cubic-bezier(.4,0,.15,1) .22s forwards;
}
@keyframes introRiga { to { transform: scaleX(1); } }
.intro-scheda::before, .intro-scheda::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 2px solid var(--signal); opacity: 0;
  animation: introSu .5s ease .58s forwards;
}
.intro-scheda::before { left: 10px;  bottom: 10px; border-top: 0; border-right: 0; }
.intro-scheda::after  { right: 10px; bottom: 10px; border-top: 0; border-left: 0; }

.intro-logo {
  width: clamp(76px, 9vw, 104px); height: auto; margin-bottom: 22px;
  opacity: 0; transform: translateY(8px);
  animation: introSu .62s cubic-bezier(.2,.7,.3,1) .26s forwards;
}
.intro-tk {
  display: flex; justify-content: center; gap: .04em;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 5.2vw, 54px); font-weight: 700; letter-spacing: .11em;
  line-height: 1; color: var(--ink);
}
.intro-tk span {
  display: inline-block; opacity: 0; transform: translateY(15px);
  animation: introSu .48s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: calc(.34s + var(--i) * .06s);
}
.intro-nm {
  display: block; margin-top: 12px; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; transform: translateY(8px);
  animation: introSu .6s cubic-bezier(.2,.7,.3,1) .56s forwards;
}
.intro-rule {
  width: 100%; height: 3px; margin-top: 30px;
  background: var(--rule); overflow: hidden;
  opacity: 0; animation: introSu .4s ease .30s forwards;
}
.intro-rule i {
  display: block; height: 100%; width: 100%;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  animation: introCarica 1.42s cubic-bezier(.30,0,.10,1) .30s forwards;
}
@keyframes introCarica { to { transform: scaleX(1); } }

.intro-piede {
  display: flex; justify-content: space-between; align-items: baseline;
  width: 100%; margin-top: 12px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; animation: introSu .55s ease .66s forwards;
}
@property --ic { syntax: "<integer>"; initial-value: 0; inherits: false; }
.intro-pc { color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.intro-pc::after {
  counter-reset: ic var(--ic); content: counter(ic) "%";
  animation: introConta 1.42s cubic-bezier(.30,0,.10,1) .30s forwards;
}
@keyframes introConta { from { --ic: 4; } to { --ic: 100; } }

@keyframes introSu  { to { opacity: 1; transform: none; } }
@keyframes introVia { to { opacity: 0; transform: translateY(-10px) scale(.99); } }

.intro ~ main, .intro ~ .site-footer { animation: contenutoEntra .65s ease 1.62s backwards; }
.intro ~ .site-header { animation: contenutoDissolve .65s ease 1.62s backwards; }
@keyframes contenutoEntra    { from { opacity: 0; transform: translateY(10px); } }
@keyframes contenutoDissolve { from { opacity: 0; } }

body.in-uscita { opacity: 0; transition: opacity 170ms ease; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .intro ~ main, .intro ~ .site-footer, .intro ~ .site-header { animation: none; }
  body.in-uscita { opacity: 1; transition: none; }
}

/* ── Landing articoli ── */
.art-testa { padding: 44px 0 30px; border-bottom: 1px solid var(--ink); }
.art-testa h1 { margin: 10px 0 12px; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; font-weight: 800; }
.art-testa p { margin: 0; max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.6; }

.art-filtri { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.art-filtro {
  padding: 8px 14px; border: 1px solid var(--rule); background: transparent; color: var(--muted);
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.art-filtro:hover { border-color: var(--signal); color: var(--ink); }
.art-filtro[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper-strong); }

/* articolo in evidenza */
.art-primo {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--rule);
}
.art-primo .foto-box { position: relative; overflow: hidden; border: 1px solid var(--rule); }
.art-primo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.7,.3,1); }
.art-primo a:hover img { transform: scale(1.03); }
.art-primo h2 { margin: 12px 0 12px; font-size: clamp(24px, 3vw, 38px); line-height: 1.12; }
.art-primo a { text-decoration: none; color: inherit; }
.art-primo a:hover h2 { color: var(--signal); }
.art-primo p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* griglia */
.art-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; padding: 40px 0 70px; }
.art-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.art-card .foto-box { overflow: hidden; border: 1px solid var(--rule); }
.art-card img { display: block; width: 100%; height: auto; aspect-ratio: 25 / 16; object-fit: cover;
  transition: transform 500ms cubic-bezier(.2,.7,.3,1); }
.art-card:hover img { transform: scale(1.04); }
.art-card h3 { margin: 12px 0 8px; font-size: 19px; line-height: 1.25; }
.art-card:hover h3 { color: var(--signal); }
.art-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.art-riga {
  display: flex; gap: 10px; align-items: center; margin-top: 12px;
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.art-riga .cat { color: var(--signal); }
.art-card[aria-disabled] { opacity: .55; pointer-events: none; }
.art-vuoto { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .art-primo { grid-template-columns: 1fr; gap: 22px; }
  .art-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
}
@media (max-width: 560px) { .art-griglia { grid-template-columns: 1fr; } }

/* ── Foto dentro gli articoli ── */
.piece-body figure.foto { margin: 34px 0; }
.piece-body figure.foto img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); background: var(--paper-strong);
}
.piece-body figure.foto figcaption {
  margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--signal);
  color: var(--muted); font-size: 13px; line-height: 1.55;
}
.piece-body figure.foto.larga { margin-left: calc(-1 * min(6vw, 90px)); margin-right: calc(-1 * min(6vw, 90px)); }
.piece-body .foto-coppia { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0; }
.piece-body .foto-coppia figure { margin: 0; }
.piece-body .foto-coppia img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.piece-body .foto-coppia figcaption {
  margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.5;
}
@media (max-width: 700px) {
  .piece-body figure.foto.larga { margin-left: 0; margin-right: 0; }
  .piece-body .foto-coppia { grid-template-columns: 1fr; }
}

/* ── Condividi ── */
.condividi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 34px 0 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.condividi-lab {
  margin-right: 6px; font-size: 10px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.cond-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  font-family: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.cond-btn:hover { border-color: var(--signal); color: var(--signal); }
.cond-btn.fatto { border-color: var(--signal); background: var(--signal); color: #170C00; }

/* ── Aggancio: chi arriva da X non deve uscire a mani vuote ── */
.aggancio {
  margin: 40px 0 0; padding: 28px 30px;
  border: 1px solid var(--ink); background: var(--paper-strong);
  border-left: 5px solid var(--signal);
}
.aggancio .k {
  display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--signal);
}
.aggancio h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.aggancio p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 560px; }

/* ── Pulsante riservato agli iscritti ── */
.fmt-btn.bloccato {
  position: relative; padding-left: 40px;
  border-style: dashed; color: var(--muted);
}
.fmt-btn.bloccato::before {
  content: ""; position: absolute; left: 15px; top: 50%;
  width: 14px; height: 14px; transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%223.5%22%20y%3D%2210%22%20width%3D%2217%22%20height%3D%2211.5%22%20rx%3D%221.8%22%20fill%3D%22%23000%22%2F%3E%3Cpath%20d%3D%22M7.6%2010V6.9a4.4%204.4%200%200%201%208.8%200V10%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.4%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%223.5%22%20y%3D%2210%22%20width%3D%2217%22%20height%3D%2211.5%22%20rx%3D%221.8%22%20fill%3D%22%23000%22%2F%3E%3Cpath%20d%3D%22M7.6%2010V6.9a4.4%204.4%200%200%201%208.8%200V10%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.4%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
.fmt-btn.bloccato:hover, .fmt-btn.bloccato:focus-visible {
  border-color: var(--signal); color: var(--signal); border-style: solid;
}
.fmt-btn.bloccato .sblocca {
  margin-left: 9px; padding-left: 9px; border-left: 1px solid currentColor;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  opacity: .85;
}

/* ── Il resto dell'articolo e per gli iscritti ── */
#resto-articolo { min-height: 60px; }
.paywall-art {
  position: relative;
  margin: 10px 0 20px;
  padding: 32px 30px;
  border: 1px solid var(--ink);
  background: var(--paper-strong);
  border-left: 5px solid var(--signal);
}
/* sfumatura sopra il riquadro: il testo sembra continuare e poi svanire */
.paywall-art::before {
  content: ""; position: absolute; left: 0; right: 0; top: -110px; height: 110px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.paywall-art .k {
  display: block; margin-bottom: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal);
}
.paywall-art h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.paywall-art p {
  margin: 0 0 20px; max-width: 520px;
  color: var(--muted); font-size: 14.5px; line-height: 1.6;
}
.paywall-art .azioni { display: flex; flex-wrap: wrap; gap: 10px; }

/* articolo riservato: si vede dall'elenco, prima di aprirlo */
.art-riservato {
  margin-left: auto; padding: 2px 7px;
  border: 1px solid var(--signal); color: var(--signal);
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
}
