/* ViviQui · grafica dedicata degli articoli (Curiosità). I colori e il motivo arrivano da lib/temi-articoli.js come variabili. */
.art-t { --t-serif: 'Bodoni Moda', Georgia, serif; --t-sans: 'Instrument Sans', system-ui, sans-serif; color: var(--t-ink); }
.art-t .t-paper { background: var(--t-paper); }
.art-t .crumbs.t-crumbs { margin-bottom: 18px; }
.art-t .t-label { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 700 13px/1 var(--t-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--t-acc); }
.art-t .t-label-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--t-motif-icon) center/60px, color-mix(in srgb, var(--t-acc) 14%, transparent); flex: none; }
.art-t h1 { margin: 0 0 18px; max-width: 18ch; font-size: clamp(42px, 6.6vw, 92px); line-height: .98; letter-spacing: -0.03em; }
.art-t .lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; max-width: 52ch; }
.art-t .byline { font-size: 15px; opacity: .8; }

/* caratteri del titolo (sempre pieni) */
.tt-serif h1, .tt-serif .prose h2 { font-family: var(--t-serif); font-weight: 800; font-variation-settings: 'opsz' 96; }
.tt-italic h1, .tt-italic .prose h2 { font-family: var(--t-serif); font-style: italic; font-weight: 700; font-variation-settings: 'opsz' 96; letter-spacing: -0.02em; }
.tt-sans h1, .tt-sans .prose h2 { font-family: var(--t-sans); font-weight: 700; letter-spacing: -0.035em; }
.tt-cond h1, .tt-cond .prose h2 { font-family: var(--t-sans); font-weight: 700; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.01em; line-height: .92; }
.tt-cond h1 { font-size: clamp(48px, 8vw, 116px); }

/* ---------- apertura · poster: fascia di colore con motivo e titolo grande */
.t-hero-poster { background: var(--t-band) var(--t-motif-band) 0 0/var(--t-motif-size); color: var(--t-band-ink); padding: clamp(48px, 7vw, 104px) 0 clamp(120px, 14vw, 200px); }
.t-hero-poster .t-label { color: var(--t-band-ink); opacity: .9; }
.t-hero-poster .crumbs a, .t-hero-split .crumbs a, .t-hero-cover .crumbs a, .t-hero-notte .crumbs a { color: inherit; }
.t-poster-fig { margin-top: calc(-1 * clamp(96px, 11vw, 160px)); position: relative; z-index: 1; }
.t-poster-fig img { width: 100%; max-height: 600px; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.t-look-poster .t-paper { margin-top: 0; }

/* ---------- apertura · split: metà colore, metà foto */
.t-hero-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(78vh, 720px); background: var(--t-band); color: var(--t-band-ink); }
.t-split-text { position: relative; display: flex; align-items: flex-end; background: var(--t-motif-band) 0 0/var(--t-motif-size); }
.t-split-inner { padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px); max-width: 760px; margin-left: auto; }
.t-hero-split .t-label { color: var(--t-band-ink); }
.t-hero-split h1 { font-size: clamp(40px, 5.2vw, 78px); }
.t-split-img { position: relative; overflow: hidden; }
.t-split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .t-hero-split { grid-template-columns: 1fr; } .t-split-img { min-height: 62vw; order: -1; } .t-split-inner { margin: 0; } }

/* ---------- apertura · cover: foto piena con il titolo sopra */
.t-hero-cover { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: var(--t-band); margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.t-hero-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.t-hero-cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--t-band) 92%, transparent) 0%, color-mix(in srgb, var(--t-band) 35%, transparent) 45%, rgba(0,0,0,.15) 100%); }
.t-hero-cover .t-hero-text { padding-bottom: clamp(40px, 6vw, 80px); }
.t-hero-cover .t-label { color: #fff; }
.t-motif-strip { height: 64px; background: var(--t-band) var(--t-motif-band) 0 0/var(--t-motif-size); }

/* ---------- apertura · frame: cornice decorata */
.t-hero-frame { background: var(--t-paper); padding: clamp(32px, 5vw, 72px) 0 0; }
.t-frame-box { position: relative; padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 80px); border: 2px solid var(--t-acc); outline: 1px solid var(--t-acc); outline-offset: 7px; background: var(--t-motif-soft) 0 0/var(--t-motif-size); text-align: center; }
.t-frame-box h1, .t-frame-box .lede { margin-left: auto; margin-right: auto; }
.t-frame-box .t-crumbs { justify-content: center; }
.t-corner { position: absolute; width: 34px; height: 34px; background: var(--t-paper); border: 2px solid var(--t-acc); border-radius: 50%; }
.t-corner.tl { left: -18px; top: -18px; } .t-corner.tr { right: -18px; top: -18px; } .t-corner.bl { left: -18px; bottom: -18px; } .t-corner.br { right: -18px; bottom: -18px; }
.t-frame-fig { margin: clamp(32px, 4vw, 56px) auto 0; max-width: 980px; padding: 14px; background: #fff; box-shadow: 0 30px 70px -40px rgba(0,0,0,.45); border: 1px solid color-mix(in srgb, var(--t-acc) 30%, transparent); }
.t-frame-fig img { width: 100%; max-height: 620px; object-fit: cover; display: block; }

/* ---------- corpo */
.art-t .article-body { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 56px; }
.art-t .prose h2 { color: var(--t-ink); position: relative; padding-top: 22px; margin-top: 1.7em; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; }
.art-t .prose h2::before { content: ''; position: absolute; left: 0; top: 0; width: 64px; height: 6px; border-radius: 3px; background: var(--t-acc); }
.t-num .prose { counter-reset: tsez; }
.t-num .prose h2 { counter-increment: tsez; padding-top: 0; padding-left: 74px; min-height: 58px; }
.t-num .prose h2::before { content: counter(tsez); width: 56px; height: 56px; top: -2px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font: 700 26px/1 var(--t-sans); font-style: normal; text-transform: none; letter-spacing: 0; font-stretch: 100%; }
.art-t .article-body > .prose > p:first-child::first-letter { color: var(--t-acc); font-family: var(--t-serif); font-weight: 800; font-size: 4.6em; }
.tt-sans .article-body > .prose > p:first-child::first-letter, .tt-cond .article-body > .prose > p:first-child::first-letter { font-family: var(--t-sans); font-weight: 700; }
.art-t .prose strong { color: var(--t-ink); }
.art-t .prose a { color: inherit; text-decoration-color: var(--t-acc); text-decoration-thickness: 2px; }
.art-t .prose ul { list-style: none; padding-left: 0; }
.art-t .prose ul li { position: relative; padding-left: 30px; }
.art-t .prose ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 12px; height: 12px; border-radius: 50%; background: var(--t-acc); }
.art-t .prose blockquote { border-left-color: var(--t-acc); background: color-mix(in srgb, var(--t-acc) 7%, transparent); padding: 18px 24px; border-radius: 0 12px 12px 0; }
.art-t .prose blockquote p { color: var(--t-ink); }
.t-aside { align-self: stretch; }
.t-aside-motif { position: sticky; top: calc(var(--header-h) + 24px); height: min(70vh, 560px); border-radius: 20px; background: var(--t-motif-soft) 0 0/var(--t-motif-size); opacity: .9; }
@media (max-width: 900px) { .t-aside { display: none; } }

/* foto nel testo */
.tf-round .prose .md-fig img { border-radius: 16px; background: transparent; }
.tf-square .prose .md-fig img { border-radius: 0; background: transparent; }
.tf-square .prose .md-fig { border-left: 6px solid var(--t-acc); padding-left: 14px; }
.tf-polaroid .prose .md-fig { background: #fff; padding: 12px 12px 4px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); transform: rotate(-.8deg); }
.tf-polaroid .prose .md-fig:nth-of-type(2n) { transform: rotate(.8deg); }
.tf-polaroid .prose .md-fig img { background: transparent; }
.tf-polaroid .prose .md-fig figcaption { font-family: var(--t-serif); font-style: italic; font-size: 16px; padding: 6px 2px 8px; }
.tf-frame .prose .md-fig { padding: 10px; border: 1px solid var(--t-acc); outline: 1px solid var(--t-acc); outline-offset: 4px; background: #fff; }
.tf-frame .prose .md-fig img { background: transparent; }
.tf-arch .prose .md-fig img { border-radius: 260px 260px 16px 16px; background: transparent; max-height: 640px; object-fit: cover; }
.art-t .prose .md-fig figcaption { color: color-mix(in srgb, var(--t-ink) 70%, transparent); }
.t-related { background: var(--paper, #fff); }

/* ================= NOTTE · Superluna e stelle cadenti ================= */
body.t-page-dark { background: #16225E; }
.t-dark { color: var(--t-ink); }
.t-hero-notte { position: relative; overflow: hidden; isolation: isolate; min-height: min(96vh, 900px); display: flex; align-items: flex-end; color: #fff; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
  background: radial-gradient(120% 90% at 75% 10%, #3448A8 0%, #22327F 40%, #16225E 80%); }
.t-moon { position: absolute; top: 0; bottom: 0; right: 0; left: 38%; z-index: -2; -webkit-mask-image: radial-gradient(60% 70% at 62% 58%, #000 35%, transparent 75%); mask-image: radial-gradient(60% 70% at 62% 58%, #000 35%, transparent 75%); }
.t-moon img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; opacity: .92; mix-blend-mode: screen; }
.t-hero-notte::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #16225E 4%, rgba(22,34,94,.5) 40%, rgba(22,34,94,0) 70%); }
.t-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--t-motif-soft); }
.t-sky-1 { background-size: 200px; animation: t-tw 5s ease-in-out infinite; }
.t-sky-2 { background-size: 300px; background-position: 90px 40px; opacity: .5; animation: t-tw 7s ease-in-out -2s infinite; }
.t-sky-3 { background-size: 160px; background-position: 30px 120px; opacity: .35; animation: t-tw 4s ease-in-out -1s infinite; }
@keyframes t-tw { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.t-hero-notte::before { content: ''; position: absolute; z-index: -1; left: 8%; top: 18%; width: 260px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 70%, #F7E2A8); transform: rotate(-24deg); box-shadow: 0 0 12px #fff; opacity: 0; animation: t-shoot 9s ease-in 2s infinite; }
@keyframes t-shoot { 0% { opacity: 0; transform: translate(0,0) rotate(-24deg); } 3% { opacity: 1; } 9% { opacity: 0; transform: translate(420px,-180px) rotate(-24deg); } 100% { opacity: 0; transform: translate(420px,-180px) rotate(-24deg); } }
@media (prefers-reduced-motion: reduce) { .t-sky, .t-hero-notte::before { animation: none; } }
.t-leo { position: absolute; right: 6%; top: calc(var(--header-h) + 40px); width: min(34vw, 360px); z-index: -1; opacity: .9; }
.t-hero-notte .t-hero-text { padding-bottom: clamp(48px, 6vw, 88px); }
.t-hero-notte .t-label { color: #F2CF7A; }
.t-hero-notte .t-label-ico { background: var(--t-motif-icon) center/70px, rgba(242,207,122,.14); }
.t-hero-notte h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.5); max-width: 15ch; }
.t-hero-notte h1::first-line { color: #fff; }
.t-hero-notte .lede { color: rgba(233,236,255,.92); }
.t-hero-notte .byline { color: rgba(233,236,255,.7); }
.t-facts { background: #16225E; padding: 8px 0 0; }
.t-facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.t-fact { display: flex; gap: 26px; align-items: center; padding: 26px 28px; border-radius: 22px; background: linear-gradient(145deg, rgba(143,163,255,.16), rgba(143,163,255,.04)); border: 1px solid rgba(143,163,255,.3); color: #E9ECFF; }
.t-fact.is-moon { background: linear-gradient(145deg, rgba(242,207,122,.2), rgba(242,207,122,.04)); border-color: rgba(242,207,122,.4); }
.t-fact-date { flex: none; width: 128px; height: 128px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #22327F; box-shadow: inset 0 0 0 2px rgba(143,163,255,.5), 0 0 40px rgba(143,163,255,.25); }
.t-fact.is-moon .t-fact-date { background: radial-gradient(circle at 38% 35%, #FFF6D8, #F2CF7A 60%, #C99A3E); color: #2A1E05; box-shadow: 0 0 50px rgba(242,207,122,.45); }
.t-fact-day { font: 700 36px/1 var(--t-sans); letter-spacing: -0.03em; }
.t-fact.is-moon .t-fact-day { font-size: 54px; }
.t-fact-month { font: 700 11px/1 var(--t-sans); letter-spacing: .18em; text-transform: uppercase; margin-top: 6px; }
.t-fact-kick { margin: 0 0 4px; font: 700 12px/1 var(--t-sans); letter-spacing: .2em; text-transform: uppercase; color: #F2CF7A; }
.t-fact h2 { margin: 0 0 6px; font: 800 28px/1.05 var(--t-serif); color: #fff; }
.t-fact p { margin: 0; font-size: 16px; line-height: 1.45; color: rgba(233,236,255,.85); }
.t-fact .t-count { margin-top: 10px; display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(242,207,122,.16); color: #F7E2A8; font: 700 14px/1 var(--t-sans); }
.t-fact .t-count:empty { display: none; }
@media (max-width: 820px) { .t-facts-grid { grid-template-columns: 1fr; } .t-fact-date { width: 104px; height: 104px; } .t-leo { width: 46vw; opacity: .6; } }
.t-dark .t-paper { background-color: #16225E; background-image: linear-gradient(rgba(22,34,94,.93), rgba(22,34,94,.93)), var(--t-motif-soft); background-size: auto, 300px; }
.t-dark .prose p, .t-dark .prose li { color: rgba(233,236,255,.9); }
.t-dark .prose strong { color: #F7E2A8; }
.t-dark .prose h2 { color: #fff; }
.t-dark .prose h2::before { background: linear-gradient(90deg, #F2CF7A, #8FA3FF); }
.t-dark .article-body > .prose > p:first-child::first-letter { color: #F2CF7A; }
.t-dark .prose .md-fig img { box-shadow: 0 0 0 1px rgba(143,163,255,.25), 0 30px 60px -30px rgba(0,0,0,.8); }
.t-dark .prose .md-fig figcaption { color: rgba(233,236,255,.65); }
.t-dark .prose a { color: #F7E2A8; }
.t-dark .crumbs, .t-dark .crumbs a { color: rgba(233,236,255,.8); }
.t-dark .t-aside-motif { background: radial-gradient(circle at 50% 30%, rgba(242,207,122,.25), rgba(242,207,122,0) 45%), var(--t-motif-soft) 0 0/240px; border: 1px solid rgba(143,163,255,.2); }
.t-skymap { margin: 2em 0; }
.t-skymap svg { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(143,163,255,.25); }
.t-skymap figcaption { margin-top: 10px; font-size: 14px; color: rgba(233,236,255,.65); }
.t-page-dark .t-related { background: #1B2A70; }
.t-page-dark .t-related .sub-head { color: #fff; }
.t-page-dark .t-related .story-card, .t-page-dark .t-related a { color: #E9ECFF; }
.t-page-dark .readbar { background: #16225E; color: #fff; }
/* testi dell'apertura sopra le fasce colorate: sempre nel colore della fascia */
.t-hero-poster, .t-hero-split { --muted: currentColor; }
.t-hero-poster .lede, .t-hero-split .lede, .t-hero-cover .lede, .t-hero-poster .byline, .t-hero-split .byline, .t-hero-cover .byline,
.t-hero-poster .crumbs, .t-hero-split .crumbs, .t-hero-cover .crumbs, .t-hero-poster .crumbs span, .t-hero-split .crumbs span, .t-hero-cover .crumbs span { color: inherit; }
.t-hero-poster .lede, .t-hero-split .lede, .t-hero-cover .lede { opacity: .92; }
.t-hero-poster .byline, .t-hero-split .byline, .t-hero-cover .byline { opacity: .75; }
.t-hero-poster h1, .t-hero-split h1, .t-hero-cover h1 { color: inherit; }

/* ---------- leggibilità: caratteri più pieni e contrasti più forti ---------- */
.tt-serif h1, .tt-serif .prose h2, .t-fact h2, .art-t .article-body > .prose > p:first-child::first-letter { font-weight: 900; }
.tt-italic h1, .tt-italic .prose h2 { font-weight: 800; }
.art-t .prose p, .art-t .prose li { font-size: 19px; line-height: 1.68; font-weight: 450; }
.art-t .prose strong { font-weight: 700; }
.art-t .lede { font-weight: 500; opacity: 1 !important; }
.art-t .byline { font: 600 15px/1.4 var(--t-sans); font-style: normal; opacity: .9 !important; letter-spacing: .01em; }
.art-t .byline time { font: inherit; }
.art-t .t-label { font-size: 14px; font-weight: 800; letter-spacing: .16em; }
.art-t .crumbs, .art-t .crumbs a { font-weight: 700; }
.art-t .prose .md-fig figcaption { font-size: 15px; font-weight: 500; line-height: 1.45; }
.tf-polaroid .prose .md-fig figcaption { font-family: var(--t-sans); font-style: normal; font-weight: 600; }
.art-t .prose blockquote p { font-weight: 600; font-variation-settings: 'opsz' 18; }
/* tema notte: testo chiaro pieno */
.t-dark .prose p, .t-dark .prose li { color: #F1F3FF; font-weight: 500; }
.t-dark .prose .md-fig figcaption, .t-skymap figcaption { color: rgba(241,243,255,.85); }
.t-fact p { font-size: 17px; font-weight: 500; color: #F1F3FF; }
.t-fact-kick { font-size: 13px; font-weight: 800; }
.t-hero-notte .lede { color: #F1F3FF; }
.t-hero-notte .byline { color: rgba(241,243,255,.85); }

/* ---------- tutto il sito: il Bodoni con i filetti spessi (taglio ottico 6), mai sottile ---------- */
h1, h2, h3, h4, .hero-title, .place-hero h1, .place-name, .event-date, .about-figures strong, .near-km, .issue-placeholder,
.prose blockquote p, .cover-lines, .art-t h1, .art-t .prose h2, .t-fact h2, .art-t .article-body > .prose > p:first-child::first-letter {
  font-variation-settings: 'opsz' 6 !important; }
h1, h2, h3, .hero-title, .place-hero h1, .place-name { font-weight: 700; }

/* menù del telefono: Bodoni pieno, con i filetti spessi */
.menu-panel nav a { font-family: var(--serif); font-weight: 800; font-variation-settings: 'opsz' 6 !important; font-size: clamp(36px, 10vw, 48px); letter-spacing: -0.01em; }
.menu-panel nav a:nth-last-child(-n+2) { font: 600 20px/1.4 var(--sans); font-variation-settings: normal !important; letter-spacing: 0; }
