/* GM Politica · Mappa delle notizie
   Identità «Taccuino» (carta a puntini, senape, blu notte, Anton/Mono/Serif corsivo)
   fusa con un HUD olografico. */
@font-face { font-family: "Anton"; src: url(fonti/Anton-Regular.ttf); font-display: swap; }
@font-face { font-family: "SpaceMono"; src: url(fonti/SpaceMono-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair"; src: url(fonti/PlayfairDisplay-Italic.ttf); font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonti/InterDisplay-Regular.otf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonti/InterDisplay-SemiBold.otf); font-weight: 600; font-display: swap; }

:root {
  --notte: #070707;
  --blu: #1A1A1A;
  --blu2: #222;
  --senape: #FFC82C;
  --senape-ch: #FFE07A;
  --senape-sc: #E0A800;
  --carta: #F5F1E7;
  --carta2: #EAE3D3;
  --ink: #111111;
  --grigio: #9A9A9A;
  --linea: rgba(255, 200, 44, .55);
  --linea-t: rgba(255, 200, 44, .18);
  --testo-hud: #EDEDED;
  --bianco: #F4F4F4;
  --mono: "SpaceMono", ui-monospace, Menlo, monospace;
  --titolo: "Anton", Impact, "Arial Narrow", sans-serif;
  --corpo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair", Georgia, serif;
  --pannello: 460px;
  --alto: 64px;
  --basso: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--notte);
  color: var(--testo-hud);
  font-family: var(--corpo);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* fondo: carta a puntini «in negativo» + alone */
/* sfondo: luci gialle che si muovono piano + pavimento olografico in prospettiva */
#sfondo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #141109 0%, #070707 55%, #030303 100%);
}
#sfondo .luce { position: absolute; border-radius: 50%; will-change: transform; }
#sfondo .l1 { width: 70vmax; height: 70vmax; left: -20vmax; top: -25vmax; background: radial-gradient(circle, rgba(255,200,44,.16), rgba(255,200,44,0) 65%); animation: deriva1 38s ease-in-out infinite alternate; }
#sfondo .l2 { width: 60vmax; height: 60vmax; right: -22vmax; bottom: -28vmax; background: radial-gradient(circle, rgba(255,140,20,.13), rgba(255,140,20,0) 65%); animation: deriva2 46s ease-in-out infinite alternate; }
#sfondo .l3 { width: 40vmax; height: 40vmax; left: 30vw; top: 20vh; background: radial-gradient(circle, rgba(255,224,122,.07), rgba(255,224,122,0) 60%); animation: deriva3 30s ease-in-out infinite alternate; }
@keyframes deriva1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes deriva2 { to { transform: translate(-24vw, -18vh) scale(.9); } }
@keyframes deriva3 { to { transform: translate(-20vw, 25vh) scale(1.3); } }
#sfondo .pavimento {
  position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 62vh;
  background-image: linear-gradient(rgba(255,200,44,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,200,44,.22) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(420px) rotateX(68deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%);
  animation: avanza 6s linear infinite; opacity: .55;
}
@keyframes avanza { to { background-position: 0 64px, 0 0; } }
#sfondo .vignetta { position: absolute; inset: 0; background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(0,0,0,.75) 100%); }
#sfondo::after { /* linea di scansione che scende */
  content: ""; position: absolute; left: 0; right: 0; height: 160px; top: -160px;
  background: linear-gradient(180deg, transparent, rgba(255,200,44,.06) 70%, rgba(255,200,44,.18) 100%);
  animation: scendi 7s linear infinite;
}
@keyframes scendi { to { transform: translateY(calc(100vh + 160px)); } }
#grana {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- avvio ---------- */
#avvio {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: var(--notte); transition: opacity .6s ease, visibility .6s;
}
#avvio.via { opacity: 0; visibility: hidden; }
.avvio-box { width: min(420px, 84vw); }
.avvio-logo span {
  display: inline-block; font-family: var(--titolo); font-size: 56px; line-height: 1;
  background: var(--senape); color: var(--ink); padding: 8px 14px 4px; transform: rotate(-3deg);
  box-shadow: 6px 6px 0 rgba(255,200,44,.25); animation: timbro .5s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes timbro { from { transform: rotate(-12deg) scale(1.8); opacity: 0; } }
.avvio-righe { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; margin: 22px 0 14px; min-height: 92px; color: var(--senape-ch); }
.avvio-righe div { white-space: nowrap; overflow: hidden; animation: scrivi .35s steps(28) both; }
.avvio-righe div::before { content: "› "; color: var(--grigio); }
@keyframes scrivi { from { width: 0; } to { width: 100%; } }
.avvio-barra { height: 3px; background: var(--linea-t); overflow: hidden; }
.avvio-barra i { display: block; height: 100%; width: 0; background: var(--senape); box-shadow: 0 0 12px var(--senape); animation: carica 1.5s ease-in-out forwards; }
@keyframes carica { to { width: 100%; } }

/* ---------- testata ---------- */
#testata {
  position: fixed; top: 0; left: 0; right: 0; height: var(--alto); z-index: 30;
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(6,6,6,.95), rgba(6,6,6,.0));
}
#testata::after { /* linea che si disegna */
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 6px; height: 1px;
  background: linear-gradient(90deg, var(--senape), var(--linea-t) 40%, var(--linea-t) 60%, var(--senape));
  transform-origin: left; animation: disegna 1.4s .3s cubic-bezier(.6,0,.2,1) both;
}
@keyframes disegna { from { transform: scaleX(0); } }
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.marchio-gm {
  font-family: var(--titolo); font-size: 24px; line-height: 1; background: var(--senape); color: var(--ink);
  padding: 6px 8px 3px; transform: rotate(-3deg); box-shadow: 3px 3px 0 rgba(255,200,44,.3);
}
.marchio-testo { display: flex; flex-direction: column; line-height: 1.05; }
.marchio-testo b { font-family: var(--titolo); font-weight: 400; font-size: 20px; letter-spacing: .06em; color: var(--bianco); }
.marchio-testo small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grigio); }

.cerca { position: relative; flex: 1; max-width: 420px; margin: 0 auto; }
.cerca .ico { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--senape); stroke-width: 2; }
.cerca input {
  width: 100%; height: 38px; padding: 0 40px 0 36px; border-radius: 2px;
  background: rgba(18,18,18,.7); color: var(--bianco); border: 1px solid var(--linea);
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; outline: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cerca input::placeholder { color: #7A7A7A; }
.cerca input:focus { border-color: var(--senape); background: rgba(18,18,18,.95); box-shadow: inset 0 0 0 1px var(--senape), 0 0 24px rgba(255,200,44,.25); }
.cerca input::-webkit-search-cancel-button { display: none; }
.cerca kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 10px; color: var(--grigio); border: 1px solid var(--linea-t); padding: 1px 6px; }
#suggerimenti {
  list-style: none; margin: 6px 0 0; padding: 4px; position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(10,10,10,.97); border: 1px solid var(--linea); max-height: 50vh; overflow: auto; display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
#suggerimenti.aperto { display: block; animation: apri .18s ease-out; }
@keyframes apri { from { opacity: 0; transform: translateY(-6px); } }
#suggerimenti li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; cursor: pointer; font-size: 14px; }
#suggerimenti li small { font-family: var(--mono); color: var(--grigio); font-size: 11px; }
#suggerimenti li.su, #suggerimenti li:hover { background: var(--senape); color: var(--ink); }
#suggerimenti li.su small, #suggerimenti li:hover small { color: var(--ink); }

.orologi { display: flex; gap: 16px; font-family: var(--mono); flex: none; }
.orologi div { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.orologi small { font-size: 9px; letter-spacing: .14em; color: var(--grigio); }
.orologi b { font-size: 14px; color: var(--bianco); font-variant-numeric: tabular-nums; }
.stato { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--senape-ch); flex: none; }
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--senape); box-shadow: 0 0 8px var(--senape); animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { opacity: .25; } }
.stato.errore { color: #FF8A6B; } .stato.errore .led { background: #FF6B4A; box-shadow: 0 0 8px #FF6B4A; }

/* ---------- scena e globo ---------- */
#scena { position: fixed; inset: 0; z-index: 10; }
#globo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
/* gli effetti animati stanno su livelli separati: così la mappa non si ridisegna a ogni fotogramma */
.strato { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; }
#dietro { z-index: 0; } #globo { z-index: 1; } #sopra { z-index: 2; }
#globo.trascina { cursor: grabbing; }
#reticolato { fill: none; stroke: rgba(255,200,44,.13); stroke-width: .7; }
#bordoSfera { fill: none; stroke: var(--senape); stroke-opacity: .7; stroke-width: 1.2; pointer-events: none; }
#spazzata { pointer-events: none; }
.paese {
  fill: rgba(44,44,44,.94); stroke: rgba(255,200,44,.62); stroke-width: .6; stroke-linejoin: round;
  transition: fill .25s ease;
}
.paese:hover, .paese.sopra { fill: rgba(255,200,44,.42); stroke: var(--senape-ch); cursor: pointer; }
.paese.caldo { fill: rgba(255,200,44,.20); }
.paese.scelto { fill: var(--senape); stroke: #FFF6D6; }
.intro .paese { stroke-dasharray: 1; stroke-dashoffset: 1; fill: rgba(26,26,26,0); animation: traccia 1.6s cubic-bezier(.5,0,.2,1) forwards, riempi .8s 1.2s forwards; }
@keyframes traccia { to { stroke-dashoffset: 0; } }
@keyframes riempi { to { fill: rgba(44,44,44,.94); } }
#selezione { fill: none; stroke: var(--senape-ch); stroke-width: 2; pointer-events: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
#selezione.disegna { animation: tracciaSel 1.1s cubic-bezier(.6,0,.2,1) both; }
@keyframes tracciaSel { from { stroke-dashoffset: 1; } }
@keyframes gira { to { transform: rotate(360deg); } }
.punto-caldo circle { fill: var(--senape); pointer-events: none; }
.punto-caldo .onda1 { fill: none; stroke: var(--senape); stroke-width: 1.5; animation: pulsa 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulsa { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

#mirino { pointer-events: none; opacity: 0; transition: opacity .3s; }
#mirino.attivo { opacity: 1; }
#mirino * { fill: none; stroke: var(--senape-ch); }
#mirino .m-giro { stroke-width: 1.4; stroke-dasharray: 12 8; animation: gira 6s linear infinite; transform-origin: 0 0; }
#mirino .m-giro2 { stroke-width: 1; stroke-opacity: .5; stroke-dasharray: 2 5; animation: gira 12s linear infinite reverse; transform-origin: 0 0; }
#mirino .m-croce { stroke-width: 1.6; }
#mirino .m-angoli { stroke-width: 2.2; }
#mirino .m-centro { fill: var(--senape-ch); stroke: none; }
#mirino.aggancio .m-angoli { animation: stringi .7s cubic-bezier(.3,1.5,.5,1) both; transform-origin: 0 0; }
#mirino.aggancio .m-croce { animation: stringi .9s cubic-bezier(.3,1.5,.5,1) both; transform-origin: 0 0; }
@keyframes stringi { from { transform: scale(2.6) rotate(45deg); opacity: 0; } }

.etichetta {
  position: fixed; z-index: 25; pointer-events: none; opacity: 0; transform: translate(14px, -50%);
  display: flex; align-items: center; gap: 8px; padding: 6px 10px 5px;
  background: rgba(10,10,10,.92); border: 1px solid var(--senape); color: var(--bianco);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: opacity .15s;
}
.etichetta.vis { opacity: 1; }
.etichetta .e-cod { font-family: var(--mono); font-size: 10px; background: var(--senape); color: var(--ink); padding: 1px 4px; }
.etichetta .e-nome { font-family: var(--titolo); font-weight: 400; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }

/* HUD a sinistra */
#hud { position: fixed; left: 20px; top: calc(var(--alto) + 24px); z-index: 20; width: 200px; display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.hud-blocco {
  position: relative; padding: 10px 12px; background: rgba(10,10,10,.82); border: 1px solid var(--linea-t);
  
  animation: entraSx .7s cubic-bezier(.2,.8,.2,1) both;
}
.hud-blocco:nth-child(2) { animation-delay: .12s; } .hud-blocco:nth-child(3) { animation-delay: .24s; }
@keyframes entraSx { from { opacity: 0; transform: translateX(-24px); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hud-blocco::before, .hud-blocco::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--senape); }
.hud-blocco::before { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.hud-blocco::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.hud-tit { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: var(--senape); margin-bottom: 6px; }
.hud-riga { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; padding: 2px 0; }
.hud-riga span { color: var(--grigio); } .hud-riga b { color: var(--bianco); font-variant-numeric: tabular-nums; }
.hud-nome { font-family: var(--titolo); font-size: 22px; letter-spacing: .04em; color: var(--bianco); text-transform: uppercase; line-height: 1.05; }
.onda { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-top: 8px; }
.onda i { flex: 1; background: var(--senape); opacity: .7; animation: barre 1.1s ease-in-out infinite alternate; height: 20%; }
.onda i:nth-child(3n) { animation-delay: -.3s; } .onda i:nth-child(3n+1) { animation-delay: -.7s; } .onda i:nth-child(4n) { animation-duration: .8s; }
@keyframes barre { to { height: 100%; } }
.hud-caldi { pointer-events: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .vuoto { font-family: var(--mono); font-size: 11px; color: var(--grigio); }
.chip {
  border: 1px solid var(--linea); background: rgba(18,18,18,.6); padding: 4px 8px 3px; font-size: 12px; color: var(--bianco);
  font-family: var(--corpo); font-weight: 600; transition: background .15s, color .15s, transform .15s;
  animation: apri .3s ease-out both;
}
.chip:hover { background: var(--senape); color: var(--ink); transform: translateY(-1px); }
.chip small { font-family: var(--mono); font-size: 9.5px; color: var(--senape); margin-left: 4px; }
.chip:hover small { color: var(--ink); }

.recenti { position: fixed; left: 20px; bottom: calc(var(--basso) + 18px); z-index: 20; max-width: 46vw; }
.recenti:not(.pieno) { display: none; }

.suggerimento { position: fixed; left: 50%; bottom: calc(var(--basso) + 20px); transform: translateX(-50%); z-index: 20; pointer-events: none; transition: opacity .4s; }
.suggerimento span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--senape-ch); background: rgba(10,10,10,.7); border: 1px solid var(--linea-t); padding: 6px 12px; }
.suggerimento.via { opacity: 0; }

.comandi { position: fixed; right: 20px; bottom: calc(var(--basso) + 18px); z-index: 20; display: flex; flex-direction: column; gap: 6px; transition: right .6s cubic-bezier(.2,.8,.2,1); }
.comandi button {
  width: 38px; height: 38px; background: rgba(10,10,10,.75); border: 1px solid var(--linea); color: var(--senape-ch);
  font-family: var(--mono); font-size: 18px; line-height: 1; transition: background .15s, color .15s;
}
.comandi button:hover, .comandi button.attivo { background: var(--senape); color: var(--ink); }
.comandi { align-items: flex-end; }
.croce { display: grid; grid-template-columns: repeat(3, 30px); grid-template-rows: repeat(3, 30px); margin-bottom: 4px; }
.comandi .croce button { width: 30px; height: 30px; font-size: 11px; }
.croce .su { grid-area: 1 / 2; } .croce .sx { grid-area: 2 / 1; } .croce .dx { grid-area: 2 / 3; } .croce .giu { grid-area: 3 / 2; }
.croce::after { content: ""; grid-area: 2 / 2; margin: 9px; border: 1px solid var(--linea); transform: rotate(45deg); }
body.aperto .comandi { right: calc(var(--pannello) + 34px); }

/* ---------- pannello notizie (nero e giallo) ---------- */
#pannello {
  position: fixed; z-index: 40; top: calc(var(--alto) + 10px); right: 14px; bottom: calc(var(--basso) + 10px); width: var(--pannello);
  display: flex; flex-direction: column;
  color: var(--bianco);
  background:
    radial-gradient(circle, rgba(255,200,44,.10) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(180deg, #121212, #090909);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,200,44,.7), 0 0 44px rgba(255,200,44,.16);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: translateX(calc(100% + 30px)); visibility: hidden;
  transition: transform .65s cubic-bezier(.2,.8,.2,1), visibility .65s;
}
body.aperto #pannello { transform: none; visibility: visible; }
body.aperto #pannello { animation: apriPannello .75s cubic-bezier(.7,0,.2,1) both; }
@keyframes apriPannello {
  0% { clip-path: polygon(48% 50%, 52% 50%, 52% 50%, 48% 50%); }
  45% { clip-path: polygon(0 49.6%, 100% 49.6%, 100% 50.4%, 0 50.4%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
.p-cornice i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--senape); z-index: 2; pointer-events: none; }
.p-cornice i:nth-child(1) { left: 6px; top: 6px; border-left-width: 3px; border-top-width: 3px; }
.p-cornice i:nth-child(2) { right: 6px; top: 6px; border-right-width: 3px; border-top-width: 3px; }
.p-cornice i:nth-child(3) { left: 6px; bottom: 6px; border-left-width: 3px; border-bottom-width: 3px; }
.p-cornice i:nth-child(4) { right: 6px; bottom: 6px; border-right-width: 3px; border-bottom-width: 3px; }
.p-maniglia { display: none; }
.p-chiudi {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 34px; height: 34px; border: 2px solid var(--senape);
  background: #0B0B0B; color: var(--senape); font-size: 14px; transition: background .15s, color .15s, transform .2s;
}
.p-chiudi:hover { background: var(--senape); color: var(--ink); transform: rotate(90deg); }
.p-testa { padding: 22px 24px 10px; position: relative; }
.p-etichetta span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--senape);
  background-image: linear-gradient(var(--senape), var(--senape)); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 3px;
}
.p-nome { position: relative; margin: 10px 0 4px; font-family: var(--titolo); font-weight: 400; font-size: 46px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; padding: 6px 8px 2px; display: inline-block; max-width: calc(100% - 40px); color: var(--ink); }
.p-nome span { position: relative; z-index: 1; }
.p-nome .macchia { position: absolute; inset: -4px -14px -6px -10px; width: calc(100% + 24px); height: calc(100% + 10px); fill: var(--senape); z-index: 0; }
body.aperto .p-nome .macchia { animation: pennellata .7s .45s cubic-bezier(.6,0,.2,1) both; }
@keyframes pennellata { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.p-coord { font-family: var(--mono); font-size: 11px; color: #8A8A8A; letter-spacing: .06em; margin-bottom: 12px; }

/* categorie principali: Ultime notizie · Presente · Passato */
.p-periodi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--senape); margin-bottom: 10px; position: relative; }
.p-periodi button {
  position: relative; z-index: 1; background: transparent; border: 0; padding: 8px 6px 7px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--bianco); transition: color .25s;
}
.p-periodi button + button { border-left: 1px solid rgba(255,200,44,.35); }
.p-periodi b { font-family: var(--titolo); font-weight: 400; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.p-periodi small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #8A8A8A; transition: color .25s; }
.p-periodi button:hover { color: var(--senape); }
.p-periodi button.attivo { color: var(--ink); }
.p-periodi button.attivo small { color: var(--ink); }
.p-periodi .cursore { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: calc(100% / 3); background: var(--senape); transition: transform .45s cubic-bezier(.6,0,.2,1); box-shadow: 0 0 22px rgba(255,200,44,.35); }

.p-filtri { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-filtri button { border: 1.5px solid rgba(255,200,44,.55); background: transparent; color: var(--bianco); padding: 5px 11px 4px; font-size: 13px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.p-filtri button:hover { border-color: var(--senape); color: var(--senape); }
.p-filtri button.attivo { background: var(--bianco); border-color: var(--bianco); color: var(--ink); }
.p-filtri .lingua { font-family: var(--mono); font-size: 11px; padding: 6px 8px 5px; }
.p-filtri .lingua.attivo { background: var(--senape); border-color: var(--senape); }
.p-filtri .sep { flex: 1; }
.p-anni { display: flex; gap: 5px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.p-anni::-webkit-scrollbar { display: none; }
.p-anni:empty { display: none; }
.p-anni button { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 4px 8px 3px; background: #171717; border: 1px solid #2A2A2A; color: #CFCFCF; animation: apri .3s ease-out both; }
.p-anni button:hover { border-color: var(--senape); color: var(--senape); }
.p-anni button.attivo { background: var(--senape); border-color: var(--senape); color: var(--ink); }
.p-nota { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--senape); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.p-nota::before { content: ""; width: 14px; height: 2px; background: var(--senape); }

.p-scansione { height: 2px; background: rgba(255,200,44,.15); position: relative; overflow: hidden; margin: 0 24px; }
.p-scansione i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--senape); box-shadow: 0 0 10px var(--senape); }
.caricamento .p-scansione i { animation: corri 1s linear infinite; }
@keyframes corri { to { left: 100%; } }

.p-lista { list-style: none; margin: 0; padding: 6px 24px 10px; overflow-y: auto; flex: 1; counter-reset: n; overscroll-behavior: contain; scrollbar-color: #333 transparent; }
.p-lista li { counter-increment: n; position: relative; padding: 14px 0 14px 50px; border-bottom: 1px dashed rgba(255,200,44,.22); animation: notizia .5s cubic-bezier(.2,.8,.2,1) both; }
.p-lista li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 13px;
  font-family: var(--titolo); font-size: 26px; line-height: 1; color: var(--senape);
}
.p-lista li:first-child::before { color: var(--ink); background: var(--senape); padding: 2px 4px 0; transform: rotate(-4deg); }
@keyframes notizia { from { opacity: 0; transform: translateY(14px); } }
.p-lista a { color: inherit; text-decoration: none; display: block; }
.p-lista h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--bianco); }
.p-lista a:hover h3 { color: var(--senape-ch); text-decoration: underline; text-decoration-color: var(--senape); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.p-lista .meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: #8A8A8A; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.p-lista .meta b { color: var(--senape); }
.p-lista .meta .fresco { background: var(--senape); color: var(--ink); padding: 0 5px; }
.p-lista .vai { position: absolute; right: 0; top: 14px; font-size: 14px; color: var(--senape); opacity: 0; transition: opacity .15s, transform .15s; }
.p-lista a:hover .vai { opacity: 1; transform: translate(2px, -2px); }
.p-lista li.finto { border-bottom-style: solid; }
.p-lista li.finto::before { content: ""; width: 28px; height: 22px; background: #1E1E1E; }
.finto .r { height: 12px; background: linear-gradient(90deg, #1A1A1A 0, #2C2C2C 50%, #1A1A1A 100%) 0 0 / 200% 100%; margin: 4px 0 8px; animation: luccica 1.1s linear infinite; }
.finto .r.c { width: 60%; height: 9px; }
@keyframes luccica { to { background-position: -200% 0; } }
.p-vuoto { padding: 30px 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: #D8D8D8; }
.p-vuoto button { margin-top: 12px; font-family: var(--corpo); font-style: normal; font-size: 14px; border: 0; color: var(--ink); background: var(--senape); padding: 7px 14px; }
.p-piede { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 24px 14px; border-top: 1px solid var(--senape); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: #8A8A8A; }
.p-piede a { color: var(--ink); font-weight: 700; text-decoration: none; background: var(--senape); padding: 4px 8px; white-space: nowrap; }

/* ---------- ticker ---------- */
#ticker {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--basso); z-index: 30; display: flex; align-items: stretch;
  background: rgba(5,5,5,.96); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
}
.t-tit { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--senape); color: var(--ink); font-family: var(--titolo); font-size: 15px; letter-spacing: .06em; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-right: 24px; }
.t-tit .led { background: var(--ink); box-shadow: none; }
.t-pista { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.t-nastro { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.t-nastro.va { animation: nastro var(--durata, 120s) linear infinite; }
#ticker:hover .t-nastro { animation-play-state: paused; }
@keyframes nastro { to { transform: translateX(-50%); } }
.t-voce { font-size: 13.5px; color: var(--bianco); padding: 0 6px; text-decoration: none; }
a.t-voce:hover { color: var(--senape-ch); text-decoration: underline; }
.t-voce small { font-family: var(--mono); font-size: 10px; color: var(--senape); margin-left: 6px; letter-spacing: .08em; text-transform: uppercase; }
.t-sep { color: var(--senape); padding: 0 12px; font-size: 10px; }

/* ---------- telefono e schermi stretti ---------- */
@media (max-width: 1320px) { #hud { transition: opacity .4s, transform .4s; } body.aperto #hud { opacity: 0; transform: translateX(-30px); } }
@media (max-width: 1180px) { .orologi div:nth-child(n+3) { display: none; } }
@media (max-width: 980px) { #hud { display: none; } .orologi { display: none; } }
@media (max-width: 760px) {
  :root { --alto: 104px; --basso: 34px; }
  #testata { flex-wrap: wrap; height: auto; padding: 8px 14px 10px; padding-top: calc(8px + env(safe-area-inset-top)); gap: 8px 12px; }
  #testata::after { left: 14px; right: 14px; bottom: 2px; }
  .marchio-testo small { font-size: 8.5px; }
  .cerca { order: 3; flex-basis: 100%; max-width: none; }
  .cerca kbd { display: none; }
  .cerca input { font-size: 16px; }
  .stato { margin-left: auto; }
  .t-tit { font-size: 12px; padding: 0 18px 0 10px; }
  .t-tit .led { display: none; }
  .t-voce { font-size: 12.5px; }
  .recenti { left: 14px; right: 70px; max-width: none; bottom: calc(var(--basso) + 14px); }
  .comandi { right: 14px; bottom: calc(var(--basso) + 14px); }
  .comandi button { width: 40px; height: 40px; }
  .croce { display: none; }
  .suggerimento { left: 14px; right: 70px; transform: none; bottom: calc(var(--basso) + 76px); }
  .suggerimento span { font-size: 10px; display: inline-block; }

  #pannello {
    left: 0; right: 0; width: auto; top: auto; bottom: 0; height: 70vh; height: 70dvh;
    transform: translateY(105%); clip-path: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  body.aperto #pannello { animation: none; transform: translateY(var(--trascina, 0px)); }
  body.aperto .comandi, body.aperto .recenti { opacity: 0; pointer-events: none; }
  .p-maniglia { display: block; padding: 8px 0 0; cursor: grab; touch-action: none; }
  .p-maniglia span { display: block; width: 64px; height: 5px; background: var(--senape); opacity: .8; margin: 0 auto; border-radius: 4px; box-shadow: 0 0 10px rgba(255,200,44,.5); }
  .p-chiudi { top: 16px; right: 12px; }
  .p-testa { padding: 6px 16px 10px; }
  .p-nome { font-size: 34px; }
  .p-coord { display: none; }
  .p-periodi b { font-size: 14.5px; }
  .p-periodi button { padding: 6px 4px 5px; }
  .p-filtri { gap: 4px; }
  .p-filtri button { padding: 4px 7px 3px; font-size: 12.5px; }
  .p-filtri .lingua { padding: 5px 6px 4px; font-size: 10.5px; }
  .p-lista { padding: 4px 16px 10px; }
  .p-lista li { padding-left: 42px; }
  .p-lista li::before { font-size: 22px; }
  .p-lista h3 { font-size: 15px; }
  .p-scansione { margin: 0 16px; }
  .p-piede { padding: 8px 16px 12px; }
  .p-cornice i:nth-child(3), .p-cornice i:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- lingua nella testata ---------- */
.lingue { display: flex; flex: none; border: 1px solid var(--linea); }
.lingue button { background: transparent; border: 0; color: var(--grigio); font-family: var(--mono); font-size: 11px; padding: 5px 8px 4px; letter-spacing: .08em; transition: background .15s, color .15s; }
.lingue button.attivo { background: var(--senape); color: var(--ink); }
.lingue button:not(.attivo):hover { color: var(--senape); }

/* ---------- archivio nell'HUD ---------- */
.hud-grande { font-family: var(--titolo); font-size: 30px; line-height: 1; color: var(--senape); margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.hud-grande small { font-family: var(--mono); font-size: 10px; color: var(--grigio); margin-left: 6px; letter-spacing: .1em; }
.a-barra { height: 4px; background: rgba(255,200,44,.15); margin: 6px 0 6px; overflow: hidden; }
.a-barra i { display: block; height: 100%; width: 0; background: var(--senape); box-shadow: 0 0 8px var(--senape); transition: width 1s ease; position: relative; }
.a-barra i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: corri 1.6s linear infinite; width: 40%; }
.a-lavoro { font-family: var(--mono); font-size: 9.5px; line-height: 1.35; color: var(--grigio); letter-spacing: .04em; min-height: 26px; }
.a-lavoro.pausa { color: #FF8A6B; }

/* ---------- archivio nel pannello (Passato) ---------- */
.p-archivio { display: none; margin-top: 10px; }
.passato.vista-archivio .p-archivio { display: block; animation: apri .3s ease-out; }
.p-sotto { display: none; gap: 0; margin-top: 10px; border-bottom: 1px solid rgba(255,200,44,.35); }
.passato .p-sotto { display: flex; }
.p-sotto button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: #9A9A9A; padding: 6px 12px 5px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.p-sotto button:hover { color: var(--senape-ch); }
.p-sotto button.attivo { color: var(--senape); border-bottom-color: var(--senape); }
.passato.vista-storia .p-lista { display: none; }
.p-storia { flex: 1; overflow-y: auto; padding: 10px 24px 16px; overscroll-behavior: contain; scrollbar-color: #333 transparent; }
.p-storia[hidden] { display: none; }
.s-et { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--senape); text-transform: uppercase; }
.p-storia h2 { font-family: var(--titolo); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; margin: 6px 0 12px; color: var(--bianco); animation: notizia .5s both; }
.s-intro p, .s-sez p { font-size: 15px; line-height: 1.6; color: #DADADA; margin: 0 0 12px; }
.s-intro p:first-child::first-letter { font-family: var(--titolo); font-size: 44px; float: left; line-height: .9; padding: 4px 8px 0 0; color: var(--senape); }
.s-intro p { animation: notizia .5s both; }
.s-indice { margin-top: 8px; border-top: 1px solid rgba(255,200,44,.3); }
.s-sez { border-bottom: 1px dashed rgba(255,200,44,.22); animation: notizia .45s both; }
.s-sez summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: baseline; padding: 12px 0; font-weight: 600; font-size: 15px; color: var(--bianco); }
.s-sez summary::-webkit-details-marker { display: none; }
.s-sez summary b { font-family: var(--titolo); font-weight: 400; font-size: 20px; color: var(--senape); min-width: 28px; }
.s-sez summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--senape); transition: transform .2s; }
.s-sez[open] summary::after { transform: rotate(45deg); }
.s-sez summary:hover { color: var(--senape-ch); }
.s-sez .corpo { padding: 0 0 8px 40px; }
.s-sez h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--senape); margin: 14px 0 6px; }
.s-ponte { display: flex; gap: 10px; align-items: center; margin: 18px 0 8px; padding: 12px; background: rgba(255,200,44,.08); border-left: 3px solid var(--senape); font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--bianco); }
.s-ponte button { margin-left: auto; flex: none; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: .08em; background: var(--senape); color: var(--ink); border: 0; padding: 7px 10px; }
.s-fonte { font-family: var(--mono); font-size: 10px; color: #8A8A8A; letter-spacing: .05em; margin-top: 12px; line-height: 1.5; }
.s-fonte a { color: var(--senape); }
.p-linea { display: flex; align-items: flex-end; gap: 3px; height: 74px; overflow-x: auto; padding: 0 0 2px; scrollbar-width: none; }
.p-linea::-webkit-scrollbar { display: none; }
.p-linea button {
  flex: 1 0 26px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px;
  background: transparent; border: 0; padding: 0; color: #8A8A8A; font-family: var(--mono); font-size: 9px; letter-spacing: 0;
}
.p-linea button i { display: block; width: 100%; min-height: 2px; background: rgba(255,200,44,.35); transition: background .15s, height .6s cubic-bezier(.2,.8,.2,1); }
.p-linea button:hover i { background: var(--senape-ch); }
.p-linea button:hover { color: var(--senape); }
.p-linea button.attivo i { background: var(--senape); box-shadow: 0 0 12px rgba(255,200,44,.6); }
.p-linea button.attivo { color: var(--senape); }
.p-linea button.tutti { flex: 0 0 auto; padding: 0 8px; justify-content: center; border: 1px solid rgba(255,200,44,.5); color: var(--bianco); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.p-linea button.tutti.attivo { background: var(--senape); color: var(--ink); }
.p-cerca-arch { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.p-cerca-arch input { flex: 1; height: 32px; background: #141414; border: 1px solid #2E2E2E; color: var(--bianco); padding: 0 10px; font-family: var(--mono); font-size: 12px; outline: none; }
.p-cerca-arch input:focus { border-color: var(--senape); }
#pCompl { font-family: var(--mono); font-size: 9.5px; color: var(--grigio); letter-spacing: .06em; text-align: right; line-height: 1.3; max-width: 46%; }
.p-altre { display: block; width: 100%; margin: 14px 0 6px; background: transparent; border: 1px dashed var(--senape); color: var(--senape); padding: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.p-altre:hover { background: var(--senape); color: var(--ink); }
@media (max-width: 760px) {
  .lingue button { padding: 4px 7px 3px; }
  .p-linea { height: 54px; }
  .p-filtri .lingua { display: none; }
}

/* ---------- «La situazione oggi» (Presente) ---------- */
.p-lista li.rias { counter-increment: none; padding: 16px 16px 14px; margin: 8px 0 10px; border: 1px solid var(--senape); border-bottom: 1px solid var(--senape);
  background: linear-gradient(180deg, rgba(255,200,44,.10), rgba(255,200,44,.03)); position: relative; animation: notizia .5s both; }
.p-lista li.rias::before { content: none; }
.p-lista li.rias::after { content: ""; position: absolute; left: -1px; top: -1px; width: 46px; height: 4px; background: var(--senape); }
.r-et { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: var(--senape); display: inline-block; padding: 3px 7px 2px; margin-bottom: 8px; }
.r-info { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; color: #8A8A8A; margin-bottom: 8px; text-transform: uppercase; }
.r-tit { font-family: var(--titolo); font-weight: 400; font-size: 21px; line-height: 1.15; letter-spacing: .01em; color: var(--bianco); margin: 0 0 12px; }
.r-blocco { padding: 8px 0 8px 12px; border-left: 2px solid rgba(255,200,44,.3); margin-bottom: 8px; }
.r-blocco.attivo { border-left-color: var(--senape); }
.r-blocco b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--senape); margin-bottom: 4px; }
.r-blocco p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #DCDCDC; }
.r-seguire { margin-top: 10px; }
.r-seguire b { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--senape); }
.r-seguire ul { margin: 6px 0 0; padding-left: 18px; }
.r-seguire li { font-size: 14px; line-height: 1.45; color: #DCDCDC; margin-bottom: 4px; padding: 0 !important; border: 0 !important; animation: none !important; }
.r-seguire li::before { content: none !important; }
.r-seguire li::marker { color: var(--senape); }
.r-fonti { font-family: var(--mono); font-size: 9.5px; line-height: 1.45; color: #8A8A8A; margin-top: 10px; }
.r-msg { font-family: var(--serif); font-style: italic; font-size: 16px; color: #DCDCDC; margin: 4px 0 0; }
.r-msg.attesa::after { content: ""; display: block; height: 2px; margin-top: 10px; background: linear-gradient(90deg, transparent, var(--senape), transparent) 0 0 / 40% 100% no-repeat; animation: scorri 1.2s linear infinite; }
@keyframes scorri { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.p-lista li.rias + li::before { color: var(--ink); background: var(--senape); padding: 2px 4px 0; transform: rotate(-4deg); }

/* ---------- riassunto: anteprima nel pannello + «Leggi tutto» ---------- */
.p-lista li.rias.chiuso .r-blocco ~ .r-blocco, .p-lista li.rias.chiuso .r-seguire, .p-lista li.rias.chiuso .r-fonti { display: none; }
.p-lista li.rias.chiuso .r-blocco p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-leggi { margin-top: 10px; background: var(--senape); color: var(--ink); border: 0; padding: 8px 14px 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: transform .15s, box-shadow .15s; }
.r-leggi:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(255,200,44,.35); }

/* ---------- lettore a tutto schermo ---------- */
#lettore {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0;
  background: radial-gradient(circle, rgba(255,200,44,.10) 1px, transparent 1.5px) 0 0 / 22px 22px, linear-gradient(180deg, #0C0C0C, #050505);
  clip-path: inset(50% 0 50% 0); transition: clip-path .55s cubic-bezier(.7,0,.2,1), opacity .2s, visibility .55s;
}
#lettore.aperto { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); }
.l-scan { position: fixed; left: 0; right: 0; top: 0; height: 2px; background: var(--senape); box-shadow: 0 0 18px var(--senape); opacity: 0; pointer-events: none; }
#lettore.aperto .l-scan { animation: lscan 1s .1s cubic-bezier(.6,0,.2,1) both; }
@keyframes lscan { 0% { top: 50%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.l-chiudi { position: fixed; top: calc(18px + env(safe-area-inset-top)); right: 18px; z-index: 2; width: 44px; height: 44px; background: #0B0B0B; border: 2px solid var(--senape); color: var(--senape); font-size: 18px; transition: background .15s, color .15s, transform .2s; }
.l-chiudi:hover { background: var(--senape); color: var(--ink); transform: rotate(90deg); }
.l-pagina { max-width: 760px; margin: 0 auto; padding: calc(70px + env(safe-area-inset-top)) 24px 80px; color: var(--bianco); }
.l-et { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--senape); text-transform: uppercase; }
.l-paese { margin: 10px 0 6px; font-family: var(--titolo); font-weight: 400; font-size: clamp(54px, 11vw, 110px); line-height: .95; text-transform: uppercase; position: relative; display: inline-block; color: var(--ink); padding: 4px 18px 0; }
.l-paese::before { content: ""; position: absolute; inset: 0; background: var(--senape); transform: skew(-6deg) rotate(-1.5deg); z-index: 0; border-radius: 4px 14px 6px 12px; }
#lettore.aperto .l-paese::before { animation: pennellata .7s .3s cubic-bezier(.6,0,.2,1) both; }
.l-paese span { position: relative; z-index: 1; }
.l-info { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #8A8A8A; text-transform: uppercase; margin: 14px 0 22px; }
.l-tit { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.3; color: var(--bianco); margin: 0 0 30px; padding-left: 18px; border-left: 4px solid var(--senape); }
.l-sez { margin: 0 0 28px; padding-top: 18px; border-top: 1px solid rgba(255,200,44,.3); opacity: 0; }
#lettore.aperto .l-sez { animation: lEntra .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes lEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.l-sez h2 { font-family: var(--titolo); font-weight: 400; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; color: var(--senape); margin: 0 0 10px; }
.l-sez p { font-size: 19px; line-height: 1.7; color: #E2E2E2; margin: 0; }
.l-seguire ul { margin: 0; padding-left: 22px; }
.l-seguire li { font-size: 18px; line-height: 1.6; color: #E2E2E2; margin-bottom: 8px; }
.l-seguire li::marker { color: var(--senape); }
.l-fonti { font-family: var(--mono); font-size: 11px; line-height: 1.6; color: #8A8A8A; margin-top: 30px; padding-top: 16px; border-top: 1px dashed rgba(255,200,44,.3); }
body.lettura { overflow: hidden; }
@media (max-width: 760px) {
  .l-pagina { padding: calc(74px + env(safe-area-inset-top)) 18px 60px; }
  .l-sez p { font-size: 17px; }
  .l-sez h2 { font-size: 24px; }
}

/* ---------- tendina allargabile ---------- */
.p-allarga {
  position: absolute; right: 56px; top: 14px; z-index: 3; width: 34px; height: 34px; border: 2px solid var(--senape);
  background: #0B0B0B; color: var(--senape); font-size: 16px; line-height: 1; transition: background .15s, color .15s, transform .2s;
}
.p-allarga:hover { background: var(--senape); color: var(--ink); transform: scale(1.08); }
.p-bordo { position: absolute; left: -6px; top: 0; bottom: 0; width: 12px; z-index: 4; cursor: ew-resize; touch-action: none; }
.p-bordo::after { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 54px; margin-top: -27px; background: var(--senape); border-radius: 3px; opacity: .45; transition: opacity .15s, height .15s; }
.p-bordo:hover::after { opacity: 1; height: 80px; margin-top: -40px; }
body.ridimensiona { cursor: ew-resize; user-select: none; }
#pannello.pieno { left: 14px; width: auto !important; }
#pannello.pieno .p-testa, #pannello.pieno .p-lista, #pannello.pieno .p-storia { padding-left: max(24px, calc(50% - 380px)); padding-right: max(24px, calc(50% - 380px)); }
@media (min-width: 761px) { body.tendina-piena .comandi, body.tendina-piena #hud { opacity: 0; pointer-events: none; } }
@media (max-width: 760px) {
  .p-bordo { display: none; }
  .p-allarga { top: 16px; right: 54px; }
  .p-etichetta, .p-nome { touch-action: none; cursor: grab; }
  #pannello { transition: transform .5s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1); }
  #pannello.pieno { left: 0; top: 0; height: 100vh !important; height: 100dvh !important; z-index: 45; padding-top: env(safe-area-inset-top); }
}

/* ---------- ricerca: PAESE / TEMA ---------- */
.cerca input { padding-right: 150px; }
.cerca kbd { right: 132px; }
.cerca .modo { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: flex; border: 1px solid var(--linea); }
.cerca .modo button { background: transparent; border: 0; color: var(--grigio); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 5px 8px 4px; cursor: pointer; transition: background .15s, color .15s; }
.cerca .modo button:hover { color: var(--senape); }
.cerca .modo button.attivo { background: var(--senape); color: var(--ink); }
.cerca.modo-tema input { border-color: var(--senape); }
#suggerimenti li.sug-tit { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--senape); cursor: default; padding: 8px 10px 4px; }
#suggerimenti li.sug-tit:hover { background: transparent; color: var(--senape); }

/* filtro per parola chiave nel pannello del Paese */
.p-parola { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.p-parola .ico { position: absolute; left: 10px; top: 16px; width: 14px; height: 14px; fill: none; stroke: var(--senape); stroke-width: 2; pointer-events: none; }
.p-parola input { flex: 1; min-width: 200px; height: 32px; background: #141414; border: 1px solid #2E2E2E; color: var(--bianco); padding: 0 10px 0 30px; font-family: var(--mono); font-size: 12px; outline: none; }
.p-parola input:focus { border-color: var(--senape); }
.p-parola input:not(:placeholder-shown) { border-color: var(--senape); background: #1B1708; }
.p-torna { background: transparent; border: 1px solid var(--senape); color: var(--senape); font-family: var(--mono); font-size: 11px; padding: 6px 9px 5px; cursor: pointer; }
.p-torna:hover { background: var(--senape); color: var(--ink); }
.passato.vista-storia .p-parola { display: none; }

/* pannello in modalità tema */
#pannello.tema .p-periodi, #pannello.tema .p-filtri, #pannello.tema .p-sotto, #pannello.tema .p-archivio, #pannello.tema .p-parola { display: none !important; }
#pannello.tema .p-coord { display: block; color: var(--senape-ch); }
.p-lista li.tsint .t-sintesi { font-size: 15px; line-height: 1.5; color: var(--bianco); margin: 4px 0 10px; }
.t-barra { height: 3px; background: var(--linea-t); margin-top: 8px; overflow: hidden; }
.t-barra i { display: block; height: 100%; background: var(--senape); box-shadow: 0 0 10px var(--senape); transition: width .3s; }
.t-legenda { display: flex; flex-wrap: wrap; gap: 6px; }
.p-lista li.tp { padding: 14px 0 14px 50px; }
.tp-testa { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.tp-nome { background: none; border: 0; padding: 0; color: var(--bianco); font-family: var(--titolo); font-size: 22px; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.tp-nome:hover { color: var(--senape); }
.tp-n { font-family: var(--mono); font-size: 10.5px; color: var(--grigio); letter-spacing: .06em; }
.tp-pos { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; padding: 3px 7px 2px; color: var(--ink); font-weight: 700; }
.tp-pos.pos-favorevole { background: #4CC38A; }
.tp-pos.pos-contrario { background: #E5484D; color: #fff; }
.tp-pos.pos-diviso { background: #F2994A; }
.tp-pos.pos-coinvolto { background: #BDBDBD; }
.tp-frase { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; color: var(--senape-ch); }
.tp-tit { display: block; text-decoration: none; color: #DADADA; padding: 5px 0; border-top: 1px dotted rgba(255,255,255,.1); font-size: 14px; line-height: 1.35; }
.tp-tit:hover span { color: var(--senape); }
.tp-tit small { display: block; font-family: var(--mono); font-size: 10px; color: #7E7E7E; margin-top: 2px; }
.tp-apri { margin-top: 8px; background: transparent; border: 1px solid var(--linea); color: var(--senape); font-family: var(--mono); font-size: 11px; padding: 6px 9px 5px; cursor: pointer; }
.tp-apri:hover { background: var(--senape); color: var(--ink); }
.p-lista li.tzero, .p-lista li.tvuoto { counter-increment: none; padding: 14px 4px; font-size: 13px; color: var(--grigio); line-height: 1.6; }
.p-lista li.tzero::before, .p-lista li.tvuoto::before { content: none; }
.p-lista li.tzero b { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--senape); font-weight: 400; }
.p-lista li.tzero button { background: none; border: 0; padding: 0; color: #CFCFCF; font: inherit; cursor: pointer; text-decoration: underline dotted; }
.p-lista li.tzero button:hover { color: var(--senape); }
.p-lista li.tsint + li.tp::before { color: var(--ink); background: var(--senape); padding: 2px 4px 0; transform: rotate(-4deg); }

/* globo colorato per tema: quanto se ne parla e posizione */
.paese.th1 { fill: rgba(255,200,44,.16); }
.paese.th2 { fill: rgba(255,200,44,.32); }
.paese.th3 { fill: rgba(255,200,44,.52); }
.paese.th4 { fill: rgba(255,200,44,.78); }
.paese.pos-favorevole { fill: rgba(76,195,138,.75); }
.paese.pos-contrario { fill: rgba(229,72,77,.8); }
.paese.pos-diviso { fill: rgba(242,153,74,.8); }
.paese.pos-coinvolto { fill: rgba(189,189,189,.55); }
@media (max-width: 760px) {
  .cerca input { padding-right: 130px; }
  .tp-nome { font-size: 19px; }
  .p-lista li.tp { padding-left: 42px; }
}
#pannello.tema .p-nome { padding: 6px 20px 2px 18px; font-size: 40px; }

/* ---------- iscrizione ---------- */
#iscrizione {
  position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(3,3,3,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
#iscrizione.aperta { opacity: 1; visibility: visible; }
body.bloccato #globo { pointer-events: none; }
.i-carta {
  position: relative; width: min(460px, 100%); padding: 28px 28px 22px; color: var(--bianco);
  background: radial-gradient(circle, rgba(255,200,44,.08) 1px, transparent 1.4px) 0 0 / 18px 18px, linear-gradient(180deg, #121212, #080808);
  border: 1px solid rgba(255,200,44,.7); box-shadow: 0 30px 90px rgba(0,0,0,.8), 0 0 50px rgba(255,200,44,.14);
  transform: translateY(18px) scale(.97); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
#iscrizione.aperta .i-carta { transform: none; }
.i-angoli i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--senape); }
.i-angoli i:nth-child(1) { left: -1px; top: -1px; border-left-width: 3px; border-top-width: 3px; }
.i-angoli i:nth-child(2) { right: -1px; top: -1px; border-right-width: 3px; border-top-width: 3px; }
.i-angoli i:nth-child(3) { left: -1px; bottom: -1px; border-left-width: 3px; border-bottom-width: 3px; }
.i-angoli i:nth-child(4) { right: -1px; bottom: -1px; border-right-width: 3px; border-bottom-width: 3px; }
.i-logo span { display: inline-block; font-family: var(--titolo); font-size: 30px; line-height: 1; background: var(--senape); color: var(--ink); padding: 6px 9px 3px; transform: rotate(-3deg); box-shadow: 4px 4px 0 rgba(255,200,44,.25); }
.i-et { font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em; color: var(--senape); margin: 16px 0 6px; }
.i-carta h2 { font-family: var(--titolo); font-weight: 400; font-size: 32px; line-height: 1.05; text-transform: uppercase; margin: 0 0 8px; }
.i-sotto { font-size: 14.5px; line-height: 1.5; color: #CFCFCF; margin: 0 0 18px; }
.i-campo { display: block; margin-bottom: 12px; }
.i-campo span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--senape); margin-bottom: 5px; }
.i-campo input { width: 100%; height: 44px; background: #141414; border: 1px solid #333; color: var(--bianco); padding: 0 12px; font-family: var(--corpo); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.i-campo input:focus { border-color: var(--senape); box-shadow: 0 0 0 1px var(--senape), 0 0 18px rgba(255,200,44,.2); }
.i-spunta { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: #DADADA; margin: 10px 0; cursor: pointer; }
.i-spunta input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--senape); }
.i-spunta a { color: var(--senape); }
.i-spunta.facoltativa { color: #A8A8A8; font-size: 12.5px; }
.i-errore { min-height: 18px; color: #FF8A6B; font-size: 13px; margin: 6px 0 4px; }
.i-entra { width: 100%; height: 50px; background: var(--senape); color: var(--ink); border: 0; font-family: var(--titolo); font-size: 20px; letter-spacing: .05em; text-transform: uppercase; transition: transform .15s, box-shadow .15s, opacity .2s; }
.i-entra:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(255,200,44,.35); }
.i-entra:disabled { opacity: .75; }
.i-nota { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: #8A8A8A; margin-top: 10px; text-align: center; }
.legale { position: fixed; right: 20px; top: calc(var(--alto) + 6px); z-index: 21; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: #777; }
.legale a { color: #9A9A9A; text-decoration: none; }
.legale a:hover { color: var(--senape); }
body.aperto .legale { display: none; }
@media (max-width: 760px) { .legale { right: 14px; } .i-carta { padding: 22px 18px 18px; } .i-carta h2 { font-size: 26px; } }
