/* =========================================================================
   TRAME — Stile delle pagine interne (capitoli, articoli, schede, sezioni).
   Riprende lo standard della landing del Capitolo 1: Montserrat, blu notte,
   azzurro TRAME, fasce diagonali, numeri corsivi grigi, immagini storiche.
   A differenza della landing le misure sono "fluide" (il testo scorre).
   ========================================================================= */

:root {
  --gut: clamp(16px, 4.2vw, 64px);
  --wrap: 1240px;
  --read: 68ch;
  --c-line: #dfe5ea;
  --c-soft: #eef6fb;
  --c-azure-50: #e6f6fe;
  --c-navy-700: #0f2a42;
  --shadow: 0 18px 40px -22px rgba(6, 22, 36, .45);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

body.pg { background: var(--c-paper); color: var(--c-text); font-size: 17px; line-height: 1.65; }
.pg main { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.pg a.u, .prose a, .notes a, .card-list a.u { color: #0a62a3; text-decoration: underline; text-decoration-color: rgba(0, 168, 245, .55); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.pg a.u:hover, .prose a:hover { color: var(--c-accent-deep); text-decoration-color: var(--c-accent); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--c-accent); color: #fff; padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------- Barra di lettura */
.readbar { position: fixed; z-index: 90; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--c-accent), var(--c-accent-deep)); }

/* -------------------------------------------------------- Testata fluida */
.th { position: sticky; top: 0; z-index: 60; background: rgba(6, 22, 36, .96); color: #fff; backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.th__in { display: flex; align-items: center; gap: 24px; min-height: 64px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.th__brand { display: flex; align-items: center; gap: 0; flex: none; }
.th__name { font-weight: 800; font-size: 27px; letter-spacing: -.6px; line-height: 1; }
.th__slash { width: 8px; height: 34px; margin: 0 9px 0 8px; background: var(--c-accent); transform: skewX(-21deg); }
.th__tag { font-weight: 700; font-size: 7.4px; line-height: 9.4px; letter-spacing: .15px; text-transform: uppercase; }
.th__nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.th__nav a { font-weight: 600; font-size: 13.5px; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.th__nav a:hover, .th__nav a[aria-current] { border-bottom-color: var(--c-accent); }
.th__tools { display: flex; gap: 16px; }
.th__tools button { width: 24px; height: 24px; color: #fff; }
.th__tools svg { width: 100%; height: 100%; }
@media (max-width: 980px) { .th__nav { display: none; } .th__tools { margin-left: auto; } }

/* -------------------------------------------------------- Elementi comuni */
.kicker { font-weight: 600; text-transform: uppercase; letter-spacing: .17em; font-size: 12px; line-height: 1.3; }
.kicker b { color: var(--c-accent); font-weight: 700; }
.bar { display: block; background: var(--c-accent); width: 34px; height: 4px; }
.crumbs { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; opacity: .85; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { border-bottom: 1px solid rgba(255,255,255,.35); }
.crumbs a:hover { color: var(--c-accent); border-color: var(--c-accent); }
.crumbs span[aria-hidden] { opacity: .5; }
.btn { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14.5px; padding: 12px 20px; border-radius: 999px; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn svg { width: 16px; height: 16px; }
.btn--solid { background: var(--c-accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 168, 245, .8); }
.btn--solid:hover { background: #0aa0e8; transform: translateY(-2px); }
.btn--ghost { border: 1.6px solid rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.more2 { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; color: var(--c-ink); margin-top: 18px; }
.more2__i { width: 30px; height: 30px; border-radius: 50%; border: 1.4px solid #2b2f35; display: grid; place-items: center; transition: all .25s var(--ease); }
.more2__i svg { width: 12px; height: 12px; }
.more2:hover .more2__i { background: var(--c-accent); border-color: var(--c-accent); color: #fff; transform: rotate(90deg); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 4px 9px; border-radius: 3px; background: var(--c-azure-50); color: #075a8f; }
.tag--persona { background: #fff1e0; color: #8a4b00; }
.tag--documento { background: #e9f7ec; color: #1c6b34; }
.tag--luogo { background: #f1ecff; color: #4d32a3; }
.tag--evento { background: #ffe9ec; color: #a1182f; }
.tag--concetto { background: var(--c-azure-50); color: #075a8f; }
.h-sec { font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.02em; color: var(--c-ink); margin-top: 10px; }
.sec { padding: clamp(48px, 7vw, 96px) 0; position: relative; }
.sec--soft { background: linear-gradient(180deg, #f4f9fc, #fbfcfd); }
.sec--navy { background: var(--c-navy-900); color: #fff; }
.sec--navy .h-sec { color: #fff; }
.lead-txt { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; max-width: 62ch; margin-top: 14px; color: var(--c-muted); }
.sec--navy .lead-txt { color: #c9d3dd; }

/* -------------------------------------------------------- Hero (capitolo e sezioni) */
.ph { position: relative; overflow: hidden; background: var(--c-navy-900); color: #fff; isolation: isolate; }
.ph__img { position: absolute; inset: 0; z-index: -2; }
.ph__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.8); animation: kenburns 28s ease-in-out infinite alternate; }
.ph__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,22,36,.97) 0%, rgba(6,22,36,.86) 38%, rgba(6,22,36,.35) 75%, rgba(6,22,36,.55) 100%), linear-gradient(0deg, rgba(6,22,36,.9), transparent 45%); }
.ph__img--tint img { filter: grayscale(1) sepia(.25) hue-rotate(170deg) saturate(2.2) brightness(.75) contrast(1.1); }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.ph__stripes { position: absolute; z-index: -1; right: -6%; top: 0; bottom: 0; width: 55%; pointer-events: none; }
.ph__stripes i { position: absolute; top: -10%; bottom: -10%; width: 9%; transform: skewX(-21deg); background: linear-gradient(180deg, rgba(0,168,245,.0), rgba(0,168,245,.55) 40%, rgba(12,101,244,.15)); opacity: 0; animation: stripe-in 1.4s var(--ease) forwards; }
.ph__stripes i:nth-child(1) { left: 18%; animation-delay: .15s; }
.ph__stripes i:nth-child(2) { left: 33%; width: 3%; animation-delay: .3s; background: rgba(255,255,255,.18); }
.ph__stripes i:nth-child(3) { left: 41%; width: 16%; animation-delay: .45s; background: linear-gradient(180deg, rgba(0,168,245,.0), rgba(0,168,245,.22) 50%, rgba(0,168,245,0)); }
.ph__stripes i:nth-child(4) { left: 64%; width: 2%; animation-delay: .6s; background: var(--c-accent); }
@keyframes stripe-in { from { opacity: 0; transform: skewX(-21deg) translateY(30px); } to { opacity: 1; transform: skewX(-21deg) translateY(0); } }
.ph__big { position: absolute; z-index: -1; right: var(--gut); bottom: -0.18em; font-weight: 800; font-style: italic; font-size: clamp(120px, 22vw, 340px); line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.14); pointer-events: none; user-select: none; }
.ph__in { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gut) clamp(56px, 8vw, 110px); position: relative; }
.ph .kicker { margin-top: 22px; color: #fff; }
.ph .bar { margin-top: 12px; }
.ph__title { margin-top: 10px; font-weight: 700; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.025em; max-width: 15ch; }
.ph__title--long { max-width: 22ch; font-size: clamp(32px, 4.6vw, 60px); }
.ph__lead { margin-top: 18px; font-weight: 500; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; max-width: 52ch; color: #dbe4ec; }
.ph__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ph__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13px; font-weight: 600; color: #a9bccd; }
.ph__meta b { color: #fff; }
.ph__credit { position: absolute; right: var(--gut); bottom: 14px; font-size: 11.5px; color: #a9bccd; max-width: 46ch; text-align: right; }
.ph__credit a { text-decoration: underline; text-decoration-color: rgba(0,168,245,.7); }
.ph--sm .ph__in { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.ph--sm .ph__title { font-size: clamp(32px, 4.4vw, 56px); max-width: 20ch; }

/* -------------------------------------------------------- Timeline di capitolo (tappe) */
.tappe { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.tappe::before { content: ""; position: absolute; left: 4%; right: 4%; top: 58px; height: 3px; background: linear-gradient(90deg, var(--c-accent-soft), #84c6ec 40%, var(--c-accent-soft)); }
.tappa { position: relative; display: block; text-align: left; }
.tappa__disc { position: relative; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; background: var(--c-navy-800); border: 1px solid #6dbdf0; box-shadow: 0 0 0 6px var(--c-paper); display: grid; place-items: center; transition: transform .35s var(--ease), box-shadow .35s; }
.tappa__disc img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .6s var(--ease); }
.tappa__disc b { font-weight: 800; font-style: italic; color: #fff; font-size: 26px; letter-spacing: -.03em; }
.tappa:hover .tappa__disc { transform: translateY(-4px); box-shadow: 0 0 0 6px var(--c-paper), 0 16px 30px -12px rgba(0,100,180,.6); }
.tappa:hover .tappa__disc img { filter: grayscale(0); transform: scale(1.06); }
.tappa__dot { position: absolute; left: 50px; top: 108px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3.6px solid var(--c-accent); box-shadow: 0 0 0 3px #fff; }
.tappa__when { display: block; margin-top: 26px; font-weight: 800; font-size: 13px; color: var(--c-accent-deep); letter-spacing: .04em; }
.tappa__name { display: block; font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--c-ink); margin-top: 2px; }
.tappa__desc { display: block; font-size: 14px; line-height: 1.45; color: var(--c-muted); margin-top: 4px; }
@media (max-width: 820px) {
  .tappe { grid-template-columns: 1fr; gap: 26px; }
  .tappe::before { left: 57px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: var(--c-accent-soft); }
  .tappa { display: grid; grid-template-columns: 116px 1fr; gap: 20px; align-items: center; }
  .tappa__dot { display: none; }
  .tappa__when { margin-top: 0; }
}

/* -------------------------------------------------------- Fasce "storia" (01-04) */
.stories { counter-reset: st; }
.st { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px; background: #fff; overflow: hidden; }
.st + .st { border-top: 1px solid var(--c-line); }
.st__media { position: relative; overflow: hidden; background: var(--c-navy-800); clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.st__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .8s; }
.st:hover .st__media img { transform: scale(1.1); filter: grayscale(.2); }
.st__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,168,245,.18), transparent 50%); mix-blend-mode: screen; }
.st--r { grid-template-columns: 1fr 1.05fr; }
.st--r .st__media { order: 2; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.st__copy { padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.st__num { font-weight: 700; font-style: italic; color: var(--c-number); font-size: clamp(48px, 6vw, 84px); line-height: .9; letter-spacing: -.04em; }
.st__copy .bar { margin-top: 18px; width: 38px; }
.st__title { margin-top: 14px; font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.015em; color: var(--c-ink); max-width: 20ch; }
.st__when { margin-top: 10px; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-deep); }
.st__body { margin-top: 12px; font-size: 16px; line-height: 1.6; max-width: 46ch; }
.st__src { margin-top: 18px; font-size: 12px; color: var(--c-muted); }
.st__src a { text-decoration: underline; text-decoration-color: rgba(0,168,245,.7); }
.st__src b { color: var(--c-accent); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-right: 4px; }
.poster { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 30% 30%, #12365a, var(--c-navy-900) 70%); color: #fff; overflow: hidden; }
.poster::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-69deg, transparent 0 46px, rgba(0,168,245,.10) 46px 54px, transparent 54px 120px); }
.poster b { position: relative; font-weight: 800; font-style: italic; font-size: clamp(64px, 9vw, 150px); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.6px rgba(255,255,255,.55); }
.poster small { position: absolute; left: 10%; bottom: 12%; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--c-accent); }
@media (max-width: 820px) {
  .st, .st--r { grid-template-columns: 1fr; min-height: 0; }
  .st__media, .st--r .st__media { order: 0; height: 240px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
}

/* -------------------------------------------------------- Schede (card) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 32px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #b9dcf0; }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-navy-800); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .8s var(--ease); }
.card:hover .card__img img { filter: grayscale(0); transform: scale(1.05); }
.card__img .poster b { font-size: 46px; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--c-ink); }
.card__sub { font-size: 13px; font-weight: 600; color: var(--c-accent-deep); }
.card__txt { font-size: 14.5px; line-height: 1.5; color: var(--c-muted); }
.card__go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; color: var(--c-ink); }
.card__go svg { width: 14px; height: 14px; transition: transform .3s; }
.card:hover .card__go svg { transform: translateX(4px); }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--c-accent); z-index: 2; transition: width .5s var(--ease); }
.card:hover::before { width: 100%; }
.sec--navy .card { background: var(--c-navy-800); border-color: rgba(255,255,255,.1); }
.sec--navy .card__title, .sec--navy .card__go { color: #fff; }
.sec--navy .card__txt { color: #b7c6d3; }

/* -------------------------------------------------------- Link esterni */
.ext { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 26px; padding: 0; list-style: none; }
.ext li a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; transition: border-color .25s, background .25s; }
.ext li a:hover { border-color: var(--c-accent); background: var(--c-azure-50); }
.ext__badge { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; background: var(--c-navy-700); letter-spacing: .02em; }
.ext__badge--doc { background: #1c6b34; } .ext__badge--ist { background: #c0392b; } .ext__badge--arc { background: #6b4fbb; } .ext__badge--vid { background: #b5651d; } .ext__badge--gio { background: #4a5a6a; }
.ext__t { font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--c-ink); }
.ext__s { display: block; font-size: 12.5px; color: var(--c-muted); margin-top: 2px; font-weight: 500; }
.ext__arrow { width: 16px; height: 16px; color: var(--c-accent-deep); }
.sec--navy .ext li a { background: transparent; border-color: rgba(255,255,255,.16); }
.sec--navy .ext__t { color: #fff; } .sec--navy .ext__s { color: #a9bccd; }

/* -------------------------------------------------------- Articolo */
.art-hero .ph__title { max-width: 22ch; font-size: clamp(32px, 4.6vw, 60px); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
@media (max-width: 1020px) { .layout { grid-template-columns: 1fr; } .aside { order: -1; position: static !important; } .toc { display: none; } }
.prose { max-width: var(--read); font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p:first-of-type::first-letter { float: left; font-weight: 800; font-size: 4.1em; line-height: .86; margin: .06em .1em 0 0; color: var(--c-accent-deep); }
.prose.no-drop p:first-of-type::first-letter { all: unset; }
.prose h2 { font-weight: 700; font-size: 27px; line-height: 1.2; letter-spacing: -.012em; color: var(--c-ink); margin-top: 2em; scroll-margin-top: 90px; position: relative; padding-top: 18px; }
.prose h2 .h2-sub { display: inline-block; margin-top: 6px; font-size: .74em; line-height: 1.25; color: var(--c-accent-deep); }
.prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 4px; background: var(--c-accent); }
.prose h3 { font-weight: 700; font-size: 20px; color: var(--c-ink); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; } .prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.8em 0; padding: 22px 26px 22px 30px; border-left: 4px solid var(--c-accent); background: linear-gradient(90deg, var(--c-azure-50), rgba(230,246,254,0)); font-size: 20px; line-height: 1.55; font-weight: 500; color: var(--c-ink); font-style: italic; }
.prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--c-muted); letter-spacing: .02em; }
.prose strong { color: var(--c-ink); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 4px; filter: grayscale(.4); }
.prose figcaption, .fig-cap { font-size: 13px; line-height: 1.45; color: var(--c-muted); margin-top: 8px; }
.prose figcaption a, .fig-cap a { text-decoration: underline; }
sup.cit { font-size: .62em; line-height: 0; margin-left: 1px; }
sup.cit a { display: inline-block; min-width: 1.6em; padding: 1px 4px; border-radius: 9px; background: var(--c-azure-50); color: #075a8f !important; text-decoration: none !important; font-weight: 700; text-align: center; transition: background .2s, color .2s; }
sup.cit a:hover, sup.cit a:target { background: var(--c-accent); color: #fff !important; }
.lx { border-bottom: 1.5px dotted var(--c-accent); position: relative; cursor: help; text-decoration: none !important; color: inherit !important; }
.lx:hover { background: var(--c-azure-50); }
.lx-tip { position: absolute; z-index: 80; max-width: 320px; padding: 12px 14px; background: var(--c-navy-900); color: #e6edf3; font-size: 13.5px; line-height: 1.5; border-radius: 6px; box-shadow: var(--shadow); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.lx-tip.is-on { opacity: 1; transform: none; }
.lx-tip b { display: block; color: var(--c-accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.box { border: 1px solid var(--c-line); border-radius: 6px; background: #fff; padding: 18px 20px; }
.box__h { font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--c-muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--c-muted); transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-style: italic; font-weight: 700; color: var(--c-number); }
.toc a:hover, .toc a.is-on { color: var(--c-ink); }
.toc a.is-on::before { color: var(--c-accent); }
.dates { list-style: none; margin: 0; padding: 0; position: relative; }
.dates::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--c-accent-soft); }
.dates li { position: relative; padding: 0 0 12px 22px; font-size: 13.5px; line-height: 1.4; }
.dates li::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.5px solid var(--c-accent); }
.dates b { display: block; font-weight: 800; color: var(--c-accent-deep); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chip { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); transition: all .2s; cursor: pointer; }
.chips a:hover, .chip:hover, .chip.is-on { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.notes { margin-top: 12px; padding-left: 0; list-style: none; counter-reset: n; font-size: 14.5px; line-height: 1.55; }
.notes li { position: relative; padding: 10px 10px 10px 46px; border-radius: 4px; scroll-margin-top: 90px; transition: background .4s; }
.notes li:target { background: var(--c-azure-50); }
.notes__n { position: absolute; left: 6px; top: 9px; min-width: 30px; text-align: center; font-weight: 800; font-size: 13px; color: #075a8f; background: var(--c-azure-50); border-radius: 9px; padding: 1px 6px; }
.notes__back { margin-left: 8px; font-weight: 700; text-decoration: none !important; }
.notes__ref { display: inline-block; margin-left: 8px; font-size: 12.5px; color: var(--c-muted) !important; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn a { display: block; padding: 20px 22px; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; transition: border-color .2s, transform .3s var(--ease); }
.pn a:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.pn small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.pn b { display: block; margin-top: 4px; font-size: 17px; line-height: 1.3; color: var(--c-ink); }
.pn .pn__next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .pn { grid-template-columns: 1fr; } .pn .pn__next { grid-column: auto; } }

/* -------------------------------------------------------- Prossimo capitolo (fluido) */
.nx { position: relative; overflow: hidden; background: radial-gradient(ellipse at 15% 60%, rgba(40,70,100,.45), transparent 55%), linear-gradient(90deg, #08192a, #061321 45%, #0a1a29); color: #fff; }
.nx__in { max-width: var(--wrap); margin: 0 auto; padding: 34px var(--gut); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.nx__thumb { width: 200px; aspect-ratio: 178/88; overflow: hidden; border-radius: 2px; background: var(--c-navy-700); position: relative; }
.nx__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.9); transition: filter .5s; }
.nx:hover .nx__thumb img { filter: grayscale(0); }
.nx__thumb .poster b { font-size: 40px; }
.nx__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.nx__k b { font-weight: 700; }
.nx__t { margin-top: 8px; font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.18; letter-spacing: -.01em; }
.nx__go { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; transition: background .25s, border-color .25s, transform .3s; }
.nx__go svg { width: 18px; height: 18px; }
.nx a:hover .nx__go, .nx__go:hover { background: var(--c-accent); border-color: var(--c-accent); transform: translateX(4px); }
.nx__link { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 640px) { .nx__in { grid-template-columns: 1fr auto; } .nx__thumb { grid-column: 1 / -1; width: 100%; max-width: 260px; } }

/* -------------------------------------------------------- Piè di pagina */
.ft { background: #040f19; color: #b7c6d3; font-size: 14px; line-height: 1.6; }
.ft__in { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gut) 28px; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px; }
.ft__brand { display: flex; align-items: center; color: #fff; }
.ft__about { margin-top: 14px; max-width: 36ch; }
.ft h4 { margin: 0 0 12px; color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li + li { margin-top: 6px; }
.ft a:hover { color: var(--c-accent); }
.ft__base { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut) 34px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .ft__in { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------- Timeline generale */
.tl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tlg { position: relative; margin-top: 40px; }
.tlg::before { content: ""; position: absolute; left: 150px; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--c-accent-soft), var(--c-accent) 50%, var(--c-accent-soft)); }
.tlg__era { position: relative; margin: 46px 0 18px 180px; }
.tlg__era span { font-weight: 800; font-style: italic; font-size: clamp(34px, 4vw, 54px); color: var(--c-number); letter-spacing: -.03em; line-height: 1; }
.tlg__era b { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-deep); }
.tlg__ev { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 10px 0; }
.tlg__y { text-align: right; padding-right: 26px; font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--c-ink); padding-top: 14px; }
.tlg__c { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; padding: 14px 18px; transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.tlg__c::before { content: ""; position: absolute; left: -38px; top: 16px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3.5px solid var(--c-accent); box-shadow: 0 0 0 4px var(--c-paper); }
.tlg__c:hover { border-color: #9fd3f2; box-shadow: var(--shadow); transform: translateX(4px); }
.tlg__t { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--c-ink); }
.tlg__d { font-size: 14px; color: var(--c-muted); margin-top: 3px; line-height: 1.5; }
.tlg__l { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--c-accent-deep); }
.tlg__ev.is-hidden, .tlg__era.is-hidden { display: none; }
@media (max-width: 640px) {
  .tlg::before { left: 8px; }
  .tlg__era { margin-left: 32px; }
  .tlg__ev { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .tlg__y { text-align: left; padding-top: 0; padding-right: 0; }
  .tlg__c::before { left: -31px; top: -18px; }
}

/* -------------------------------------------------------- Archivio */
.gal { columns: 3 300px; column-gap: 18px; margin-top: 30px; }
.gal figure { break-inside: avoid; margin: 0 0 18px; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; }
.gal button { display: block; width: 100%; overflow: hidden; }
.gal img { width: 100%; height: auto; filter: grayscale(.7); transition: filter .5s, transform .8s var(--ease); }
.gal figure:hover img { filter: none; transform: scale(1.03); }
.gal figcaption { padding: 12px 14px 14px; font-size: 13px; line-height: 1.45; color: var(--c-muted); }
.gal figcaption b { display: block; color: var(--c-ink); font-size: 14px; margin-bottom: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(4,14,24,.95); display: none; place-items: center; padding: 40px 16px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: 78vh; width: auto; height: auto; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox p { color: #c9d3dd; font-size: 14px; text-align: center; max-width: 80ch; margin: 14px auto 0; }
.lightbox p a { text-decoration: underline; color: #fff; }

/* -------------------------------------------------------- Lessico e indici */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.az a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 4px; font-weight: 700; border: 1px solid var(--c-line); background: #fff; }
.az a:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.gloss { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.gloss__i { background: #fff; border: 1px solid var(--c-line); border-radius: 6px; padding: 18px 20px; scroll-margin-top: 90px; transition: background .4s, border-color .4s; }
.gloss__i:target { background: var(--c-azure-50); border-color: var(--c-accent); }
.gloss__t { font-weight: 700; font-size: 18px; color: var(--c-ink); }
.gloss__d { margin-top: 6px; font-size: 15px; line-height: 1.6; }
.gloss__m { margin-top: 10px; font-size: 13px; color: var(--c-muted); }
.gloss__m a { text-decoration: underline; text-decoration-color: rgba(0,168,245,.6); }
.gloss__letter { grid-column: 1 / -1; font-weight: 800; font-style: italic; font-size: 44px; color: var(--c-number); margin-top: 18px; line-height: 1; }
.search-results { list-style: none; margin: 24px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.search-results li a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.search-results li a:hover b { color: var(--c-accent); }
.search-results b { display: block; font-size: 17px; }
.search-results small { display: block; font-size: 13px; color: #a9bccd; margin-top: 2px; }
.search-results em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); }

/* -------------------------------------------------------- Piramide (Il Progetto) */
.pyr { display: grid; gap: 10px; margin-top: 34px; max-width: 760px; }
.pyr__l { margin: 0 auto; padding: 16px 20px; color: #fff; text-align: center; border-radius: 3px; background: var(--c-navy-700); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.pyr__l b { display: block; font-size: 17px; }
.pyr__l span { display: block; font-size: 13px; color: #b7c6d3; }
.pyr__l:nth-child(1) { width: 34%; background: var(--c-accent); } .pyr__l:nth-child(1) span { color: #e8f7ff; }
.pyr__l:nth-child(2) { width: 52%; background: #0c65f4; }
.pyr__l:nth-child(3) { width: 70%; background: #0d3f73; }
.pyr__l:nth-child(4) { width: 86%; }
.pyr__l:nth-child(5) { width: 100%; background: var(--c-navy-900); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-top: 36px; }
.stat { border-left: 4px solid var(--c-accent); padding: 4px 0 4px 16px; }
.stat b { display: block; font-weight: 800; font-size: clamp(34px, 4vw, 50px); line-height: 1; color: inherit; letter-spacing: -.03em; }
.stat span { font-size: 13.5px; font-weight: 600; color: var(--c-muted); }
.sec--navy .stat span { color: #a9bccd; }

/* -------------------------------------------------------- Percorsi */
.path { margin-top: 36px; background: #fff; border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; scroll-margin-top: 90px; }
.path__h { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 26px 28px; background: linear-gradient(110deg, var(--c-navy-900), var(--c-navy-700)); color: #fff; align-items: center; }
.path__n { font-weight: 800; font-style: italic; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--c-accent); }
.path__t { font-weight: 700; font-size: 24px; line-height: 1.2; }
.path__w { font-size: 13.5px; color: #a9bccd; margin-top: 4px; }
.path__b { padding: 24px 28px 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
@media (max-width: 820px) { .path__b { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--c-azure-50); color: #075a8f; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--c-line); }
.steps li:last-child::after { display: none; }
.steps a { font-weight: 700; color: var(--c-ink); text-decoration: underline; text-decoration-color: rgba(0,168,245,.5); text-underline-offset: 3px; }
.steps small { display: block; font-size: 14px; color: var(--c-muted); line-height: 1.5; margin-top: 2px; }
.qlist { margin: 0; padding-left: 1.1em; font-size: 15px; line-height: 1.55; }
.qlist li + li { margin-top: 8px; }

/* -------------------------------------------------------- Comparsa allo scorrimento */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .ph__img img { animation: none; }
  .ph__stripes i { animation: none; opacity: 1; }
}
@media print {
  .th, .readbar, .aside, .nx, .ft, .overlay { display: none !important; }
  .ph { background: none; color: #000; } .ph__img, .ph__stripes, .ph__big { display: none; }
  .layout { display: block; }
}

/* 28/11/2026: su schermi stretti i rimandi della pagina Fonti vanno a capo (prima uscivano dallo schermo) */
.src-item { overflow-wrap: anywhere; }
@media (max-width: 820px) { .src-back { white-space: normal; } }
@media (max-width: 760px) { .ph__credit { position: relative; right: auto; bottom: auto; display: block; max-width: none; text-align: left; margin: -28px var(--gut) 0; padding-bottom: 16px; } }

/* ===== v23 (regia, 28/11/2026) ===== */
/* "TRAME" porta a trame.page (tutte le trame); la scritta accanto porta alla home dell'Atlante */
.th__name, .th__tag { color: inherit; }
.th__name:hover, .th__name:focus-visible { color: var(--c-accent); }
.th__tag:hover { opacity: .85; }
/* Telefoni molto piccoli (320 px): il pie' di pagina va su una colonna, niente scorrimento laterale (OPN06) */
@media (max-width: 420px) { .ft__in { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
/* Elenchi di fonti esterne: su schermi stretti una colonna sola, mai piu' larga dello schermo (OPN06) */
.ext { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.ext li a { min-width: 0; }
/* Lessico: stessa regola sugli schermi stretti (OPN06) */
.gloss { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
/* v23b (regia, 28/11/2026): Percorsi formativi, il numero grande sopra una foto vera, in duotono blu */
.card__img--num img { position: absolute; inset: 0; filter: grayscale(1) contrast(1.15) brightness(.85); }
.card__img--num .poster--photo { background: linear-gradient(135deg, rgba(6,22,36,.88) 0%, rgba(10,45,80,.62) 55%, rgba(0,120,190,.35) 100%); transition: background .5s; }
.card__img--num .poster--photo b { font-size: clamp(64px, 6vw, 84px); -webkit-text-stroke: 2px rgba(255,255,255,.9); text-shadow: 0 6px 30px rgba(0,0,0,.35); transition: transform .6s var(--ease); }
.card:hover .card__img--num .poster--photo { background: linear-gradient(135deg, rgba(6,22,36,.7) 0%, rgba(10,45,80,.35) 55%, rgba(0,168,245,.25) 100%); }
.card:hover .card__img--num .poster--photo b { transform: scale(1.06); }
.card__img--num { background: #0a2238; }
.card__img--num img { opacity: .5; transition: opacity .5s, filter .5s, transform .8s var(--ease); }
.card:hover .card__img--num img { opacity: .8; }

/* =========================================================================
   STAMPO WOW · articolo campione (29/11/2026, TRAME-S03)
   Valido solo per <body class="w7"> e per le classi che cominciano con w7-.
   Nessun'altra pagina usa queste classi: il resto dell'Atlante non cambia.
   ========================================================================= */
.w7 .w7-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--c-navy-900); color: #fff; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; }
.w7 .w7-hero__media { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -2; }
.w7 .w7-hero__media figure { position: absolute; top: 0; bottom: 0; overflow: hidden; background: var(--c-navy-800); }
.w7 .w7-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.82); animation: w7-zoom 2.4s var(--ease) both; }
.w7 .w7-hero__a { left: 0; width: 62%; clip-path: polygon(30% 0, 100% 0, 78% 100%, 0 100%); }
.w7 .w7-hero__a img { object-position: 50% 30%; }
.w7 .w7-hero__b { right: 0; width: 52%; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.w7 .w7-hero__b img { animation-delay: .25s; }
.w7 .w7-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-navy-900) 0%, rgba(6,22,36,.55) 22%, rgba(6,22,36,0) 48%), linear-gradient(0deg, rgba(6,22,36,.85), transparent 38%); }
.w7 .w7-hero__stripes { position: absolute; z-index: -1; left: 33%; top: 0; bottom: 0; width: 40%; pointer-events: none; }
.w7 .w7-hero__stripes i { position: absolute; top: -6%; bottom: -6%; transform: skewX(-21deg); opacity: 0; animation: stripe-in 1.4s var(--ease) forwards; }
.w7 .w7-hero__stripes i:nth-child(1) { left: 16%; width: 2.2%; background: var(--c-accent); animation-delay: .5s; }
.w7 .w7-hero__stripes i:nth-child(2) { left: 22%; width: 7%; background: linear-gradient(180deg, rgba(0,168,245,0), rgba(0,168,245,.4) 50%, rgba(12,101,244,.1)); animation-delay: .65s; }
.w7 .w7-hero__stripes i:nth-child(3) { left: 66%; width: 1.2%; background: rgba(255,255,255,.3); animation-delay: .8s; }
.w7 .w7-hero__year { position: absolute; z-index: -1; left: calc(var(--gut) - .06em); bottom: -.2em; font-weight: 800; font-style: italic; font-size: clamp(130px, 26vw, 400px); line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.13); pointer-events: none; user-select: none; animation: w7-fade 1.6s .9s var(--ease) both; }
.w7 .w7-hero__in { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 8vh, 110px) var(--gut) clamp(90px, 14vh, 150px); }
.w7 .w7-hero__in > * { animation: w7-up 1s var(--ease) both; }
.w7 .w7-hero__in > :nth-child(2), .w7 .w7-hero__in > :nth-child(3) { animation-delay: .15s; }
.w7 .w7-hero__in > :nth-child(4) { animation-delay: .3s; }
.w7 .w7-hero__in > :nth-child(5) { animation-delay: .5s; }
.w7 .w7-hero__in > :nth-child(n+6) { animation-delay: .7s; }
.w7 .w7-hero .kicker { margin-top: 22px; color: #fff; }
.w7 .w7-hero .bar { margin-top: 12px; }
.w7 .w7-hero__title { margin-top: 14px; font-weight: 800; font-size: clamp(44px, 7.4vw, 112px); line-height: .95; letter-spacing: -.035em; max-width: 9ch; }
.w7 .w7-hero__lead { margin-top: 22px; font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; max-width: 44ch; color: #dbe4ec; }
.w7 .w7-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 30px; font-weight: 700; font-size: 15px; padding-bottom: 6px; border-bottom: 2px solid var(--c-accent); }
.w7 .w7-go svg { width: 22px; height: 20px; }
.w7 .w7-hero__credit { position: absolute; right: var(--gut); bottom: 14px; max-width: 52ch; text-align: right; font-size: 11.5px; color: #a9bccd; }
.w7 .w7-hero__credit a, .w7 .w7-cap a, .w7 .w7-tl__src a { text-decoration: underline; text-decoration-color: rgba(0,168,245,.7); text-underline-offset: 2px; }

.w7 figure, .w7 blockquote { margin: 0; }
.w7 .w7-prose { margin: 0 auto; }
.w7 .w7-intro { padding: clamp(48px, 6vw, 88px) 0 0; }
.w7 .w7-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.w7 .w7-intro .w7-prose { margin: 0; font-size: 20px; }
.w7 .w7-side__h { font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--c-muted); margin-bottom: 12px; }
.w7 .w7-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: w7t; }
.w7 .w7-toc li { counter-increment: w7t; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--c-line); }
.w7 .w7-toc li::before { content: counter(w7t, decimal-leading-zero); font-weight: 800; font-style: italic; font-size: 24px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--c-accent-deep); }
.w7 .w7-toc a { font-weight: 700; font-size: 15px; color: var(--c-ink); }
.w7 .w7-toc a:hover { color: var(--c-accent-deep); }
.w7 .w7-side__kw { margin-top: 26px; }
.w7 .w7-txt { padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 5vw, 64px); }
.w7 .w7-txt--last { padding-bottom: clamp(56px, 7vw, 96px); }

.w7 .w7-cap { background: var(--c-navy-900); color: #dbe4ec; border-top: 4px solid var(--c-accent); font-size: 14px; line-height: 1.5; padding: 14px max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); }
.w7 .w7-cap b { color: #fff; }
.w7 .w7-fascia { margin: clamp(8px, 2vw, 24px) 0 0; }
.w7 .w7-fascia__grid { display: grid; grid-template-columns: 56% 1fr; background: #fff; border-bottom: 1px solid var(--c-line); }
.w7 .w7-fascia__img { position: relative; overflow: hidden; background: var(--c-navy-800); height: clamp(340px, 40vw, 580px); clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.w7 .w7-fascia__img img, .w7 .w7-band__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.06); transition: transform 1.6s var(--ease); }
.w7 .w7-fascia__img.is-in img, .w7 .w7-band__img.is-in img { transform: none; }
.w7 .w7-quote { align-self: center; padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 80px) clamp(32px, 5vw, 72px) clamp(8px, 2vw, 24px); }
.w7 .w7-quote p { font-weight: 800; font-size: clamp(32px, 4vw, 60px); line-height: 1.04; letter-spacing: -.03em; color: var(--c-ink); max-width: 11ch; }
.w7 .w7-quote footer { margin-top: 22px; padding-top: 14px; border-top: 4px solid var(--c-accent); max-width: 40ch; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.w7 .w7-quote cite { font-style: italic; }

.w7 .w7-tl { list-style: none; margin: 46px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; }
.w7 .w7-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 42px; height: 3px; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-deep)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--ease); }
.w7 .w7-tl.is-in::before { transform: none; }
.w7 .w7-tl__it { position: relative; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * .2s); }
.w7 .w7-tl.is-in .w7-tl__it { opacity: 1; transform: none; }
.w7 .w7-tl__disc { position: relative; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; overflow: hidden; background: var(--c-navy-900); border: 1px solid #6dbdf0; box-shadow: 0 0 0 6px #f4f9fc; }
.w7 .w7-tl__disc b { font-weight: 800; font-style: italic; font-size: 20px; letter-spacing: -.03em; color: #fff; }
.w7 .w7-tl__disc img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.w7 .w7-tl__when { display: block; margin-top: 18px; font-weight: 800; font-size: 13px; color: var(--c-accent-deep); }
.w7 .w7-tl__what { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--c-text); }
.w7 .w7-tl__src { margin-top: 30px; font-size: 12.5px; color: var(--c-muted); }

.w7 .w7-num { position: relative; overflow: hidden; background: var(--c-navy-900); color: #fff; padding: clamp(80px, 10vw, 150px) 0; clip-path: polygon(0 clamp(24px, 4vw, 64px), 100% 0, 100% calc(100% - clamp(24px, 4vw, 64px)), 0 100%); margin-top: -1px; }
.w7 .w7-num::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-69deg, transparent 0 70px, rgba(0,168,245,.06) 70px 78px, transparent 78px 190px); pointer-events: none; }
.w7 .w7-num .wrap { position: relative; }
.w7 .w7-num__q p { font-weight: 800; font-size: clamp(34px, 5.6vw, 84px); line-height: 1; letter-spacing: -.035em; max-width: 14ch; }
.w7 .w7-num__q footer { margin-top: 20px; font-size: 14px; color: #a9bccd; max-width: 60ch; }
.w7 .w7-n__list { list-style: none; margin: clamp(44px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 80px); }
.w7 .w7-n { border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
.w7 .w7-n__v { display: block; font-weight: 800; font-style: italic; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.w7 .w7-n__v small { display: block; font-size: 13px; font-style: normal; font-weight: 700; letter-spacing: .02em; color: var(--c-accent); margin-bottom: 6px; }
.w7 .w7-n__v b { font-size: clamp(40px, 5.8vw, 88px); color: transparent; -webkit-text-stroke: 1.6px var(--c-accent); font-variant-numeric: tabular-nums; }
.w7 .w7-n__l { display: block; margin-top: 12px; font-size: 15px; line-height: 1.5; color: #c9d3dd; max-width: 38ch; }
.w7 .w7-num sup.cit a, .w7 .w7-cap sup.cit a { background: rgba(0,168,245,.2); color: #e6f6fe !important; }
.w7 .w7-num sup.cit a:hover, .w7 .w7-num sup.cit a:target { background: var(--c-accent); color: #fff !important; }

.w7 .w7-band { margin-top: clamp(40px, 5vw, 72px); }
.w7 .w7-band__img { overflow: hidden; background: var(--c-navy-800); height: clamp(260px, 52vw, 760px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(16px, 3vw, 48px))); }
.w7 .w7-band__img img { object-position: 50% 40%; }
.w7 .w7-after { border-top: 1px solid var(--c-line); }

@keyframes w7-zoom { from { transform: scale(1.07); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes w7-up { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes w7-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .w7 .w7-intro__grid { grid-template-columns: 1fr; }
  .w7 .w7-tl { grid-template-columns: 1fr; gap: 22px; }
  .w7 .w7-tl::before { left: 42px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; transform-origin: 50% 0; transform: scaleY(0); }
  .w7 .w7-tl__it { display: grid; grid-template-columns: 86px 1fr; column-gap: 18px; align-items: center; }
  .w7 .w7-tl__disc { grid-row: span 2; }
  .w7 .w7-tl__when { margin-top: 0; align-self: end; }
  .w7 .w7-tl__what { align-self: start; }
}
@media (max-width: 820px) {
  .w7 .w7-fascia__grid { grid-template-columns: 1fr; }
  .w7 .w7-fascia__img { height: 64vw; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .w7 .w7-quote { padding: 28px var(--gut) 36px; }
  .w7 .w7-n__list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .w7 .w7-hero { display: block; min-height: 0; }
  .w7 .w7-hero__media { position: relative; inset: auto; width: 100%; height: 78vw; max-height: 460px; }
  .w7 .w7-hero__media::after { background: linear-gradient(0deg, var(--c-navy-900) 0%, rgba(6,22,36,0) 45%); }
  .w7 .w7-hero__a { width: 64%; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
  .w7 .w7-hero__b { width: 52%; clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); }
  .w7 .w7-hero__stripes { left: 30%; height: 78vw; max-height: 460px; bottom: auto; }
  .w7 .w7-hero__in { margin-top: -40px; padding-top: 0; padding-bottom: 36px; }
  .w7 .w7-hero__year { bottom: auto; top: 46vw; font-size: 34vw; }
  .w7 .w7-hero__credit { position: relative; right: auto; bottom: auto; text-align: left; padding: 0 var(--gut) 18px; max-width: none; }
  .w7 .w7-intro .w7-prose { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .w7 .w7-hero__media img, .w7 .w7-hero__in > *, .w7 .w7-hero__year { animation: none; opacity: 1; transform: none; }
  .w7 .w7-hero__stripes i { animation: none; opacity: 1; }
  .w7 .w7-fascia__img img, .w7 .w7-band__img img { transform: none; transition: none; }
  .w7 .w7-tl::before, .w7 .w7-tl__it { transform: none; opacity: 1; transition: none; }
}

/* ===== STAMPO WOW v2 (29/11/2026, ordine 1755): aggiunte, solo classi .w7 ===== */
/* stampo WOW v2 (29/11/2026): testo accanto alla foto nella fascia, citazione isolata */
.w7 .w7-fascia__txt { align-self: center; padding: clamp(28px, 4vw, 64px) clamp(24px, 5vw, 80px) clamp(28px, 4vw, 64px) clamp(8px, 2vw, 24px); font-size: 17px; }
.w7 .w7-fascia__txt h2 { margin-top: 0; }
.w7 .w7-solo { padding: clamp(48px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.w7 .w7-quote--solo { padding: 0; max-width: 980px; margin: 0 auto; }
.w7 .w7-quote--solo p { max-width: 18ch; font-size: clamp(34px, 5vw, 76px); }
@media (max-width: 820px) { .w7 .w7-fascia__txt { padding: 28px var(--gut) 36px; } }

/* stampo WOW v2: varianti per tutti gli articoli */
.w7 .w7-tl { grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
.w7 .w7-hero__title--long { font-size: clamp(36px, 5.4vw, 80px); max-width: 14ch; }
.w7 .w7-hero__b--poster .poster b { font-size: clamp(48px, 7vw, 120px); }
.w7 .w7-num__h { font-weight: 800; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; max-width: 18ch; color: #fff; }
.w7 .w7-fascia__grid--r { grid-template-columns: 1fr 56%; }
.w7 .w7-fascia__grid--r .w7-fascia__img { order: 2; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.w7 .w7-fascia__grid--r .w7-fascia__txt { padding: clamp(28px, 4vw, 64px) clamp(8px, 2vw, 24px) clamp(28px, 4vw, 64px) clamp(24px, 5vw, 80px); }
@media (max-width: 900px) { .w7 .w7-tl { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .w7 .w7-fascia__grid--r { grid-template-columns: 1fr; }
  .w7 .w7-fascia__grid--r .w7-fascia__img { order: 0; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .w7 .w7-fascia__grid--r .w7-fascia__txt { padding: 28px var(--gut) 36px; }
}

/* ===== STAMPO WOW v3 (tranche 2): citazione gigante su schermi stretti, parole lunghe senza sbordare ===== */
@media (max-width: 400px) { .w7 .w7-quote--solo p { font-size: 28px; } }

/* ===== STAMPO WOW v4 (voce 10): ritratti piccoli nel testo ===== */
.w7 .w7-volti { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 4px 0 18px; }
.w7 .w7-volto { display: flex; align-items: center; gap: 12px; margin: 0; max-width: 300px; }
.w7 .w7-volto img { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1); border: 1px solid #6dbdf0; box-shadow: 0 0 0 4px var(--c-paper); }
.w7 .w7-volto figcaption { font-size: 12.5px; line-height: 1.45; color: var(--c-muted); }
.w7 .w7-volto figcaption a { text-decoration: underline; text-decoration-color: rgba(0,168,245,.7); text-underline-offset: 2px; }
/* ===== STAMPO WOW v5 (voce 10, aggiunta): foto di gruppo accanto ai ritratti ===== */
.w7 .w7-volto--gruppo { max-width: 460px; flex-wrap: wrap; }
.w7 .w7-volto--gruppo img { width: 200px; height: auto; border-radius: 3px; object-fit: contain; box-shadow: none; }
.w7 .w7-volto--gruppo figcaption { flex: 1 1 200px; }
