/* Sezione SubLens: la scena del Lab con gli accenti oro di SubLens. Stessi vincoli di site.css (webOS: niente gap nei flex). */
.p-sublens { --scene-bg: #0A0A0F; --scene-glow: #262014; --scene-accent: #C9A84C; --scene-accent-ink: #1A1405; --gold: #C9A84C; --gold-soft: rgba(201, 168, 76, .14); --faint: #7A7F8A; }

/* menu della sezione */
.subnav { text-align: center; margin-top: 4px; }
.subnav > ul { display: inline-flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 4px; border: 1px solid var(--glass-line); border-radius: 14px; background: var(--glass); }
.subnav > ul > li + li { margin-left: 2px; }
.subnav a { display: block; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--muted); }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current] { background: var(--gold-soft); color: var(--gold); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #FF5A4E; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(255, 90, 78, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 90, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.tag.gold { background: var(--gold-soft); color: var(--gold); }
.crumbs { margin: 18px 0 0; color: var(--faint); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.meta { margin: 12px auto 0; max-width: 46em; color: var(--muted); font-size: 15px; }
.meta b { color: var(--text); font-weight: 600; }

/* etichette: tipo del TG, dati provvisori, diretta */
.badges { margin: 16px -4px 0; }
.badge { display: inline-block; margin: 4px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid rgba(201, 168, 76, .5); color: var(--gold); }
.badge.full { background: var(--gold); border-color: var(--gold); color: var(--scene-accent-ink); }
.badge.warn { border-color: rgba(255, 255, 255, .25); color: var(--muted); }
.badge.live { border-color: rgba(255, 90, 78, .5); color: #FF8A80; }

/* i quattro numeri della scheda */
.tiles { display: flex; flex-wrap: wrap; margin: 24px -6px 0; }
.tile { width: calc(50% - 12px); margin: 6px; padding: 16px; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); text-align: left; }
@media (min-width: 720px) { .tile { width: calc(25% - 12px); } }
.tile .n { display: block; color: var(--gold); font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .l { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* testo del TG */
.tg { max-width: 760px; margin-left: auto; margin-right: auto; }
.tg .tiles { margin: 0 -6px 8px; }
.tg .actions { margin: 24px -6px 0; }
.tg h2 { margin: 36px 0 10px; padding-left: 12px; border-left: 3px solid var(--gold); font-size: 19px; font-weight: 700; line-height: 1.3; color: #ECEEF1; }
.tg p, .tg li { margin: 0 0 12px; }
.tg ul { padding-left: 20px; }
.tg li::marker { color: var(--gold); }
.tg strong { color: #F1F2F4; font-weight: 650; }
.sources { margin: 32px 0 0; padding: 18px 20px; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); color: var(--faint); font-size: 14px; }
.sources b { color: var(--muted); }
.actions.left { text-align: left; }

/* le edizioni della stessa giornata */
.editions { margin: 20px -4px 0; }
.ed { display: inline-block; margin: 4px; padding: 8px 12px; min-width: 64px; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass); text-align: center; text-decoration: none; line-height: 1.2; }
.ed b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.ed small { display: block; color: var(--faint); font-size: 12px; }
.ed:hover { border-color: rgba(201, 168, 76, .5); }
.ed[aria-current] { border-color: var(--gold); background: var(--gold-soft); }
.ed[aria-current] b, .ed.final b { color: var(--gold); }

/* elenchi di TG: archivio, evento, diretta */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list a { display: flex; align-items: baseline; padding: 12px 4px; text-decoration: none; }
.list a:hover .t { text-decoration: underline; }
.list .h { flex: 0 0 auto; width: 104px; color: var(--gold); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.list .t { flex: 1 1 auto; }
.list [aria-current] .t { color: var(--gold); }
@media (max-width: 480px) { .list a { display: block; } .list .h { display: block; width: auto; } }
.day { margin: 0 0 20px; }
.day > h2 { margin: 0 0 4px; font-size: 20px; }
.day > .small { margin: 0 0 14px; }
.feature { display: block; margin: 0 0 12px; padding: 18px 20px; border: 1px solid rgba(201, 168, 76, .35); border-radius: 16px; background: rgba(201, 168, 76, .06); text-decoration: none; }
.feature .k { display: block; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.feature .t { display: block; margin-top: 6px; font-weight: 700; font-size: 18px; line-height: 1.3; }
.feature:hover .t { text-decoration: underline; }

/* archivio ad albero */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.tree a { display: inline-block; padding: 7px 0; text-decoration: none; font-weight: 600; }
.tree a:hover { text-decoration: underline; }
.tree .c { margin-left: 8px; color: var(--faint); font-size: 14px; font-weight: 400; }
.tree .ev a { color: var(--gold); }

/* diretta */
.live-head { text-align: center; }
.livecard { margin: 8px 0 20px; padding: 24px; border: 1px solid rgba(201, 168, 76, .45); border-radius: 22px; background: linear-gradient(180deg, rgba(201, 168, 76, .10), rgba(201, 168, 76, .02)); box-shadow: 0 0 60px rgba(201, 168, 76, .08); }
@media (min-width: 720px) { .livecard { padding: 32px 36px; } }
.livecard h2 { margin: 10px 0 0; font-size: 24px; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.15; letter-spacing: -.015em; }
.livecard .tiles { margin-top: 18px; }
.livecard .tg h2 { margin-top: 24px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid rgba(255, 90, 78, .35); border-radius: 16px; background: rgba(255, 90, 78, .06); text-decoration: none; }
.banner .t { margin-right: 16px; }
.banner .t b { color: #FF8A80; }
.banner .go { color: var(--gold); font-weight: 700; }
.newbar { position: -webkit-sticky; position: sticky; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--gold); color: var(--scene-accent-ink); font-weight: 600; box-shadow: 0 8px 32px rgba(0, 0, 0, .5); }
.newbar a { padding: 8px 14px; border-radius: 10px; background: var(--scene-accent-ink); color: var(--gold); font-weight: 700; text-decoration: none; }
.cards { display: flex; flex-wrap: wrap; margin: 0 -6px; }
.cards .feature { width: 100%; margin: 6px; }
@media (min-width: 900px) { .cards .feature { width: calc(33.333% - 12px); } }
.cards .feature .s { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.livecard .meta { margin-left: 0; }
.livecard .tg { margin-left: 0; }
.ed.off { border-style: dashed; background: none; color: var(--faint); }
.ed.off b { color: var(--faint); }
.ed small .dot { width: 6px; height: 6px; margin-right: 4px; }
.note { margin-top: 10px; }
.day .tiles { margin: 6px -6px 0; }
.live-day { border-color: rgba(255, 90, 78, .3); }
.live-day .list { margin-top: 4px; }
.live-day .actions { margin-top: 12px; }
.feature .k .dot { width: 7px; height: 7px; }
@media (min-width: 900px) { .cards.two .feature { width: calc(50% - 12px); } }
.newbar[hidden] { display: none; }
.head .newbar { margin-top: 24px; }
/* tendine dell'archivio: la freccia gira quando si apre */
.tree summary { display: flex; align-items: baseline; padding: 7px 0; font-weight: 600; cursor: pointer; list-style: none; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary:hover .n { color: var(--gold); }
.tree summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.tree summary:focus:not(:focus-visible) { outline: none; }
.tree .arr { flex: 0 0 auto; width: 20px; }
.tree .arr::before { content: ""; position: relative; top: -2px; display: inline-block; width: 7px; height: 7px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); -webkit-transform: rotate(-45deg); transform: rotate(-45deg); transition: transform .15s; }
.tree details[open] > summary .arr::before { -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.tree .ev .n { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .tree .arr::before { transition: none; } }
.tree .c { white-space: nowrap; }
@media (max-width: 480px) { .tree ul { margin-left: 6px; padding-left: 10px; } .tree .arr { width: 16px; } }
/* il pallino della diretta sulla tendina chiusa che la contiene; aperta, lo mostra la giornata */
.tree summary > .dot { margin: 0 0 0 8px; }
.tree details[open] > summary > .dot { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tree details[open] > summary > .sr { display: none; }

/* lingua: il globo apre l'elenco senza script (details), sotto il menu della sezione */
.subnav { position: relative; }
.lang { display: inline-block; position: relative; margin: 6px 0 0 8px; vertical-align: top; text-align: left; }
.lang summary { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--glass-line); border-radius: 14px; background: var(--glass); color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { margin-right: 6px; }
.lang summary:hover, .lang[open] summary { color: var(--gold); border-color: rgba(201, 168, 76, .5); }
.lang ul { display: block; position: absolute; right: 0; top: 100%; z-index: 5; min-width: 180px; margin: 6px 0 0; padding: 6px; list-style: none; border: 1px solid var(--glass-line); border-radius: 14px; background: #15151B; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.lang li a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--gold-soft); color: var(--gold); }
.notice { max-width: 760px; margin: 0 auto 16px; padding: 12px 16px; border: 1px solid rgba(201, 168, 76, .35); border-radius: 12px; background: rgba(201, 168, 76, .06); color: var(--text); font-size: 15px; }
/* cinese, giapponese, coreano: Geist non ha questi caratteri, vanno quelli del sistema; niente maiuscoletto spaziato */
:lang(ja) body { font-family: "Geist", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", system-ui, sans-serif; }
:lang(ko) body { font-family: "Geist", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif; }
:lang(zh-Hans) body { font-family: "Geist", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
:lang(ja) .badge, :lang(ko) .badge, :lang(zh-Hans) .badge, :lang(ja) .sec-h, :lang(ko) .sec-h, :lang(zh-Hans) .sec-h { letter-spacing: .02em; }
