/* theme/vetrina-fedele.css: la versione fedele della vetrina storica su /tv/ (templates/website/_vetrina_fedele.html): lo
   schermo della TV di Rovereto com'era il 16 novembre 2026 (goodies/quasinatale, gift.html e snow.css), rifatto senza
   Materialize, senza Google Fonts e senza script nella pagina. Le misure sono quelle dell'originale a 1920×1080, in unità
   --p (un pixel di quello schermo): lo schermo sta tutto nella colonna della pagina, in scala, anche a 390 px.
   Il carattere è Open Sans Light (Apache 2.0, dal pacchetto Debian fonts-open-sans 1.11, solo i segni latini): la TV
   carica solo il peso 300 e lascia al browser il grassetto, e qui si fa lo stesso.
   Cosa gira e quando (grafico, frasi, testi) lo decide theme/vetrina-fedele.js; senza script lo schermo sta fermo sui
   riquadri dei numeri. */
@font-face { font-family: "Vetrina Open Sans"; src: url("/theme/fonts/open-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

.vf-cornice { margin: 0 0 18px; }
.vf-schermo {
  --vf-arancio: #fd9800; --vf-giallo: #fc0; --vf-rosa: #ffb3b3; --vf-rosso: #ff8a8a;
  container-type: inline-size; overflow: hidden; background: linear-gradient(#123, #111); color: #fff;
  font-family: "Vetrina Open Sans", "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 400; text-align: left;
}
.vf-tela {
  --p: calc(100cqw / 1920);
  position: relative; height: calc(1080 * var(--p)); overflow: hidden; font-size: calc(15 * var(--p)); line-height: 1.5;
  /* il bagliore bianco che sull'originale sta su tutta la pagina */
  filter: drop-shadow(0 0 calc(10 * var(--p)) #fff);
}
/* Dentro lo schermo le regole della pagina non valgono: margini, misure e caratteri sono quelli della TV */
.vf-tela p, .vf-tela ul, .vf-tela li { margin: 0; padding: 0; max-width: none; font: inherit; color: inherit; list-style: none; letter-spacing: normal; text-wrap: wrap; hyphens: none; }
.vf-tela img { display: inline; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.vf-tela b { font-weight: 700; color: inherit; }
.vf-tela template { display: none; }

/* La pagina: testata, due colonne (il QR, i numeri) e sotto il nastro */
.vf-pagina { position: absolute; z-index: 1; left: calc(50 * var(--p)); top: 0; width: calc(1820 * var(--p)); height: calc(870 * var(--p)); display: flex; flex-direction: column; }
.vf-testa { padding: calc(14 * var(--p)) 0 0 calc(74 * var(--p)); }
.vf-tela .vf-titolo { margin-bottom: calc(5 * var(--p)); font-size: calc(60 * var(--p)); font-weight: 700; line-height: 1.1; letter-spacing: calc(-1 * var(--p)); white-space: nowrap; }
.vf-fulmine { color: #f8a032; }
.vf-tela .vf-sotto { margin-bottom: calc(5 * var(--p)); font-size: calc(21 * var(--p)); letter-spacing: calc(3 * var(--p)); text-transform: uppercase; color: var(--vf-arancio); white-space: nowrap; }
.vf-corpo { flex: 1; display: flex; align-items: flex-start; justify-content: space-between; padding: calc(14 * var(--p)) calc(20 * var(--p)) 0 calc(10 * var(--p)); }

/* A sinistra: l'invito, il QR con il suo alone che pulsa, i quattro wallet */
.vf-col-qr { flex: none; width: calc(700 * var(--p)); }
.vf-tela .vf-inquadra { margin: 0 0 calc(5 * var(--p)) calc(74 * var(--p)); padding: calc(6 * var(--p)) 0; font-size: calc(21 * var(--p)); font-weight: 600; line-height: 1.3; white-space: nowrap; text-shadow: 0 calc(1 * var(--p)) calc(3 * var(--p)) #000, 0 0 calc(8 * var(--p)) #000; }
.vf-tela .vf-inquadra[hidden] { display: none; }
.vf-qr {
  position: relative; box-sizing: border-box; width: calc(552 * var(--p)); height: calc(552 * var(--p)); margin: 0 auto; padding: calc(14 * var(--p));
  border: calc(8 * var(--p)) solid #fff; border-radius: calc(6 * var(--p)); background: #fff;
  box-shadow: 0 0 0 calc(6 * var(--p)) var(--vf-arancio), 0 0 calc(60 * var(--p)) calc(10 * var(--p)) rgb(253 152 0 / .55);
  animation: vf-pulsa 8s ease-in-out infinite;
}
.vf-tela .vf-qr img { display: block; width: 100%; height: 100%; }
/* fermo a dimensione piena per tre quarti del ciclo, poi una pulsazione lenta */
@keyframes vf-pulsa { 0%, 75%, 100% { transform: scale(1); } 87.5% { transform: scale(.93); } }
/* L'ultimo regalo incassato: il suo QR spento e il timbro sopra, così nessuno lo scambia per quello vivo */
.vf-tela .vf-preso img { opacity: .4; }
.vf-timbro {
  position: absolute; left: calc(-30 * var(--p)); right: calc(-30 * var(--p)); top: 50%; padding: calc(12 * var(--p)) 0;
  transform: translateY(-50%) rotate(-12deg); background: var(--vf-arancio); color: #fff; text-align: center; white-space: nowrap;
  font-size: calc(54 * var(--p)); font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: calc(1 * var(--p));
  box-shadow: 0 calc(4 * var(--p)) calc(18 * var(--p)) rgb(0 0 0 / .45);
}
.vf-tela .vf-wallet { display: grid; grid-template-columns: 1fr 1fr 1.5fr 1fr; gap: calc(5 * var(--p)); width: calc(572 * var(--p)); margin: calc(5 * var(--p)) auto 0; }
.vf-tela .vf-wallet li { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: calc(46 * var(--p)); padding: calc(6 * var(--p)) calc(8 * var(--p)); background: rgb(255 255 255 / .92); border-radius: calc(10 * var(--p)); filter: grayscale(1) contrast(1.2); }
.vf-tela .vf-wallet img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

/* A destra: il titolo, la riga dell'unica vetrina, il grafico che si alterna ai quattro riquadri, la battuta */
.vf-col-numeri { flex: none; box-sizing: border-box; width: calc(960 * var(--p)); margin-top: calc(14 * var(--p)); padding-left: calc(40 * var(--p)); border-left: calc(4 * var(--p)) solid var(--vf-arancio); }
.vf-tela .vf-veri { margin-bottom: calc(5 * var(--p)); font-size: calc(34 * var(--p)); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.vf-tela .vf-veri b { font-weight: 600; color: var(--vf-arancio); }
.vf-tela .vf-unica { margin-bottom: calc(5 * var(--p)); font-size: calc(24 * var(--p)); white-space: nowrap; }
.vf-da { margin-left: calc(8 * var(--p)); padding: calc(1 * var(--p)) calc(12 * var(--p)); border: calc(1 * var(--p)) solid #fff; border-radius: calc(14 * var(--p)); font-size: calc(20 * var(--p)); }
.vf-grafico { font-size: calc(22 * var(--p)); }
.vf-tela .vf-didascalia { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: calc(5 * var(--p)); font-size: calc(20 * var(--p)); white-space: nowrap; }
.vf-possibili { color: var(--vf-rosa); }
.vf-tela .vf-possibili b { font-weight: 700; color: var(--vf-rosso); }
.vf-palco { position: relative; width: calc(980 * var(--p)); height: calc(486 * var(--p)); }
.vf-barre { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; transition: opacity .5s; }
.vf-riepilogo {
  position: absolute; inset: 0; z-index: 5; box-sizing: border-box; display: grid; grid-template-columns: 1fr 1fr; gap: calc(5 * var(--p)); align-content: center;
  padding: calc(24 * var(--p)) calc(30 * var(--p)); font-size: calc(20 * var(--p)); line-height: 1.15; transition: opacity .5s;
}
/* Con lo script i riquadri compaiono a turno (classe vf-su sul palco) e il grafico sotto sfuma; senza, restano sempre */
.vf-gira .vf-riepilogo { opacity: 0; }
.vf-gira .vf-su .vf-riepilogo { opacity: 1; }
.vf-gira .vf-su .vf-barre { opacity: .08; }
.vf-riquadro { padding: calc(14 * var(--p)) calc(20 * var(--p)); background: rgb(255 255 255 / .06); border-radius: calc(10 * var(--p)); }
.vf-tela .vf-numero { font-size: calc(50 * var(--p)); font-weight: 700; color: var(--vf-arancio); white-space: nowrap; }
.vf-tela .vf-etichetta { margin-top: calc(5 * var(--p)); font-size: calc(21 * var(--p)); color: #e8e8e8; }
.vf-tela .vf-persi .vf-numero { color: var(--vf-rosso); }
.vf-tela .vf-piede { grid-column: 1 / 3; font-size: calc(22 * var(--p)); text-align: center; }
.vf-tela .vf-piede b { color: var(--vf-giallo); }
.vf-tela .vf-stuzzica { margin-top: calc(5 * var(--p)); font-size: calc(24 * var(--p)); font-weight: 700; white-space: nowrap; }

/* In basso: il nastro del telegiornale. Il logo, la frase del giorno, la striscia «bitcoin Valley» e le notizie che scorrono */
.vf-nastro { position: absolute; z-index: 2; left: 0; right: 0; top: calc(852 * var(--p)); height: calc(228 * var(--p)); overflow: hidden; }
.vf-nastro::before {
  content: ""; position: absolute; z-index: 3; left: calc(-20 * var(--p)); top: calc(42 * var(--p)); width: calc(260 * var(--p)); height: calc(112 * var(--p));
  background: linear-gradient(to right, rgb(59 211 224) 0%, rgb(59 211 224) 91%, rgb(59 211 224 / .5) 96%, rgb(59 211 224 / 0) 100%);
}
.vf-tela .vf-logo { position: absolute; z-index: 4; left: calc(50 * var(--p)); top: calc(20 * var(--p)); width: calc(160 * var(--p)); height: calc(160 * var(--p)); }
.vf-tela .vf-frase {
  position: absolute; left: calc(180 * var(--p)); right: calc(-40 * var(--p)); top: calc(5 * var(--p)); height: calc(39 * var(--p)); box-sizing: border-box;
  display: flex; align-items: center; gap: calc(10 * var(--p)); padding-left: calc(41 * var(--p));
  background: #1b87a4; font-size: calc(18 * var(--p)); white-space: nowrap; overflow: hidden;
  clip-path: polygon(calc(39 * var(--p)) 0, 100% 0, 100% 100%, 0 100%);
}
/* Le tre icone della frase (info, lo sapevi, detto), disegnate qui al posto di Material Icons */
.vf-icona { flex: none; width: calc(20 * var(--p)); height: calc(20 * var(--p)); background: center / contain no-repeat; }
.vf-icona, .vf-icona[data-tipo="info"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7v2'/%3E%3C/svg%3E"); }
.vf-icona[data-tipo="sapevi"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.3 9.6a2.8 2.8 0 1 1 4.3 2.4c-1 .7-1.6 1.2-1.6 2.4M12 16.6v1.8'/%3E%3C/svg%3E"); }
.vf-icona[data-tipo="detto"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E"); }
.vf-tela .vf-striscia {
  position: absolute; left: 0; top: calc(44 * var(--p)); width: calc(3200 * var(--p)); height: calc(40 * var(--p)); box-sizing: border-box; padding: calc(5 * var(--p)) 0;
  background: linear-gradient(135deg, rgb(74 255 255) 0%, rgb(58 208 221) 11%, rgb(38 153 181) 24%, rgb(29 127 162 / .93) 30%, rgb(29 127 162 / .5) 68%);
  color: var(--vf-giallo); font-size: calc(20 * var(--p)); font-weight: 700; text-transform: uppercase; white-space: nowrap;
  text-shadow: calc(2 * var(--p)) calc(1 * var(--p)) calc(2 * var(--p)) #000;
}
.vf-striscia span { display: inline-block; margin-right: calc(48 * var(--p)); animation: vf-striscia 7s linear infinite; }
@keyframes vf-striscia { to { transform: translateX(calc(-600 * var(--p))); } }
.vf-tela .vf-notizie {
  position: absolute; left: 0; top: calc(84 * var(--p)); width: calc(7500 * var(--p)); height: calc(74 * var(--p)); box-sizing: border-box; padding: calc(10 * var(--p)) 0;
  background: linear-gradient(135deg, rgb(74 255 255) 0%, rgb(29 127 162) 11%, rgb(29 127 162 / .5) 29%);
  font-size: calc(36 * var(--p)); text-transform: uppercase; white-space: nowrap;
}
.vf-notizie > span { display: inline-block; padding-left: calc(2000 * var(--p)); animation: vf-notizie 60s linear infinite; }
@keyframes vf-notizie { to { transform: translateX(calc(-5900 * var(--p))); } }
.vf-voce { font-weight: 300; }
.vf-tela .vf-notizie b { font-weight: 800; }
.vf-tela .vf-pacman, .vf-tela .vf-bpos { width: auto; height: calc(40 * var(--p)); vertical-align: sub; }

/* Quello che scende: monete come nell'originale (snow.css: le stesse cinquanta, con le loro misure, durate e ritardi), o
   cappelli a Natale, cuori, uova e pizze nei loro giorni (data-stagione, da valley/vetrina/fedele.py) */
.vf-neve { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.vf-neve i {
  position: absolute; top: -5%; left: var(--x); width: calc(var(--d) * var(--p)); height: calc(var(--d) * var(--p)); opacity: 0;
  background: url(/theme/img/vetrina-fedele/btc.svg) center / contain no-repeat;
  animation: vf-neve var(--t) linear var(--r) infinite;
}
.vf-neve i:nth-child(6n) { filter: blur(calc(1 * var(--p))); }
@keyframes vf-neve {
  0% { transform: translate3d(calc(var(--a) * var(--p)), 0, 0); opacity: 1; }
  100% { transform: translate3d(calc(var(--b) * var(--p)), calc(1188 * var(--p)), 0); opacity: 0; }
}
[data-stagione="natale"] .vf-neve i { background-image: url(/theme/img/vetrina-fedele/cappello.webp); }
[data-stagione="cuori"] .vf-neve i { background-image: url(/theme/img/vetrina-fedele/cuore.svg); }
[data-stagione="pasqua"] .vf-neve i { background-image: url(/theme/img/vetrina-fedele/uovo.svg); }
[data-stagione="pizza"] .vf-neve i { background-image: url(/theme/img/vetrina-fedele/pizza.svg); }
.vf-neve i:nth-child(1) { --x: 55%; --d: 19.2; --a: -57.6; --b: -19.2; --t: 11s; --r: -5s; }
.vf-neve i:nth-child(2) { --x: 81%; --d: 10; --a: 57.6; --b: -76.8; --t: 11s; --r: -3s; }
.vf-neve i:nth-child(3) { --x: 43%; --d: 15.36; --a: -153.6; --b: -38.4; --t: 10s; --r: -10s; }
.vf-neve i:nth-child(4) { --x: 83%; --d: 10; --a: 115.2; --b: -76.8; --t: 11s; --r: -2s; }
.vf-neve i:nth-child(5) { --x: 76%; --d: 15.36; --a: 115.2; --b: 172.8; --t: 15s; --r: -10s; }
.vf-neve i:nth-child(6) { --x: 28%; --d: 10; --a: 76.8; --b: -134.4; --t: 11s; --r: -2s; }
.vf-neve i:nth-child(7) { --x: 72%; --d: 10; --a: 38.4; --b: 192; --t: 11s; --r: -6s; }
.vf-neve i:nth-child(8) { --x: 87%; --d: 15.36; --a: 115.2; --b: 192; --t: 13s; --r: -9s; }
.vf-neve i:nth-child(9) { --x: 6%; --d: 11.52; --a: 96; --b: 192; --t: 6s; --r: -1s; }
.vf-neve i:nth-child(10) { --x: 3%; --d: 10; --a: 115.2; --b: 38.4; --t: 13s; --r: -10s; }
.vf-neve i:nth-child(11) { --x: 34%; --d: 10; --a: 38.4; --b: 115.2; --t: 11s; --r: -4s; }
.vf-neve i:nth-child(12) { --x: 3%; --d: 19.2; --a: -115.2; --b: -172.8; --t: 13s; --r: -6s; }
.vf-neve i:nth-child(13) { --x: 91%; --d: 15.36; --a: 96; --b: -153.6; --t: 8s; --r: -2s; }
.vf-neve i:nth-child(14) { --x: 74%; --d: 10; --a: -134.4; --b: -172.8; --t: 14s; --r: -2s; }
.vf-neve i:nth-child(15) { --x: 68%; --d: 15.36; --a: -19.2; --b: -19.2; --t: 12s; --r: -2s; }
.vf-neve i:nth-child(16) { --x: 36%; --d: 10; --a: 172.8; --b: 19.2; --t: 14s; --r: -3s; }
.vf-neve i:nth-child(17) { --x: 12%; --d: 10; --a: -76.8; --b: 172.8; --t: 13s; --r: -2s; }
.vf-neve i:nth-child(18) { --x: 59%; --d: 10; --a: -19.2; --b: 38.4; --t: 8s; --r: -8s; }
.vf-neve i:nth-child(19) { --x: 63%; --d: 19.2; --a: -115.2; --b: -134.4; --t: 15s; --r: -8s; }
.vf-neve i:nth-child(20) { --x: 98%; --d: 10; --a: 38.4; --b: 76.8; --t: 6s; --r: -5s; }
.vf-neve i:nth-child(21) { --x: 38%; --d: 19.2; --a: 19.2; --b: -76.8; --t: 13s; --r: -5s; }
.vf-neve i:nth-child(22) { --x: 30%; --d: 11.52; --a: 57.6; --b: -96; --t: 13s; --r: -7s; }
.vf-neve i:nth-child(23) { --x: 1%; --d: 11.52; --a: 76.8; --b: 153.6; --t: 7s; --r: -9s; }
.vf-neve i:nth-child(24) { --x: 94%; --d: 15.36; --a: -153.6; --b: -38.4; --t: 7s; --r: -10s; }
.vf-neve i:nth-child(25) { --x: 3%; --d: 10; --a: -76.8; --b: 153.6; --t: 8s; --r: -10s; }
.vf-neve i:nth-child(26) { --x: 36%; --d: 11.52; --a: -153.6; --b: 96; --t: 15s; --r: -6s; }
.vf-neve i:nth-child(27) { --x: 94%; --d: 10; --a: -153.6; --b: -76.8; --t: 13s; --r: -1s; }
.vf-neve i:nth-child(28) { --x: 56%; --d: 10; --a: -76.8; --b: 153.6; --t: 8s; --r: -10s; }
.vf-neve i:nth-child(29) { --x: 19%; --d: 15.36; --a: 172.8; --b: 38.4; --t: 14s; --r: -2s; }
.vf-neve i:nth-child(30) { --x: 14%; --d: 11.52; --a: 134.4; --b: 96; --t: 10s; --r: -5s; }
.vf-neve i:nth-child(31) { --x: 28%; --d: 10; --a: -38.4; --b: -57.6; --t: 12s; --r: -1s; }
.vf-neve i:nth-child(32) { --x: 17%; --d: 19.2; --a: 76.8; --b: 172.8; --t: 15s; --r: -2s; }
.vf-neve i:nth-child(33) { --x: 85%; --d: 10; --a: 19.2; --b: -172.8; --t: 9s; --r: -7s; }
.vf-neve i:nth-child(34) { --x: 78%; --d: 11.52; --a: 172.8; --b: -172.8; --t: 15s; --r: -3s; }
.vf-neve i:nth-child(35) { --x: 99%; --d: 10; --a: 38.4; --b: 0; --t: 9s; --r: -4s; }
.vf-neve i:nth-child(36) { --x: 12%; --d: 19.2; --a: -19.2; --b: -57.6; --t: 10s; --r: -5s; }
.vf-neve i:nth-child(37) { --x: 35%; --d: 10; --a: 96; --b: -115.2; --t: 10s; --r: -3s; }
.vf-neve i:nth-child(38) { --x: 86%; --d: 11.52; --a: 153.6; --b: 0; --t: 14s; --r: -2s; }
.vf-neve i:nth-child(39) { --x: 24%; --d: 11.52; --a: -153.6; --b: -76.8; --t: 12s; --r: -6s; }
.vf-neve i:nth-child(40) { --x: 32%; --d: 10; --a: 153.6; --b: -38.4; --t: 6s; --r: -1s; }
.vf-neve i:nth-child(41) { --x: 32%; --d: 10; --a: 153.6; --b: 192; --t: 15s; --r: -9s; }
.vf-neve i:nth-child(42) { --x: 47%; --d: 19.2; --a: 172.8; --b: 96; --t: 12s; --r: -7s; }
.vf-neve i:nth-child(43) { --x: 33%; --d: 11.52; --a: -96; --b: -115.2; --t: 13s; --r: -6s; }
.vf-neve i:nth-child(44) { --x: 50%; --d: 19.2; --a: -57.6; --b: -153.6; --t: 10s; --r: -10s; }
.vf-neve i:nth-child(45) { --x: 8%; --d: 15.36; --a: 57.6; --b: -153.6; --t: 6s; --r: -9s; }
.vf-neve i:nth-child(46) { --x: 59%; --d: 19.2; --a: -96; --b: 134.4; --t: 9s; --r: -7s; }
.vf-neve i:nth-child(47) { --x: 27%; --d: 15.36; --a: 76.8; --b: -38.4; --t: 11s; --r: -6s; }
.vf-neve i:nth-child(48) { --x: 52%; --d: 11.52; --a: 19.2; --b: 76.8; --t: 11s; --r: -6s; }
.vf-neve i:nth-child(49) { --x: 85%; --d: 11.52; --a: 0; --b: -172.8; --t: 7s; --r: -9s; }
.vf-neve i:nth-child(50) { --x: 79%; --d: 15.36; --a: -134.4; --b: 153.6; --t: 7s; --r: -6s; }

/* Sotto lo schermo: la riga che dice di che giorno sono i numeri, e quello che riguarda il regalo */
.vf-sotto-schermo { margin-top: 10px; }
.vf-sotto-schermo p { margin: 0 0 10px; }
/* Il regalo vivo dei giorni speciali non è una didascalia: dritto e con l'inchiostro della pagina */
.vf-sotto-schermo .tv-lede, .vf-sotto-schermo .vf-apri { font-style: normal; color: var(--ink); }
.vf-apri { font-family: var(--cond); font-size: 18px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .vf-neve { display: none; }
  .vf-qr, .vf-striscia span { animation: none; }
  /* Le notizie non scorrono: restano ferme dall'inizio */
  .vf-notizie > span { padding-left: calc(260 * var(--p)); animation: none; }
}
@media print { .vf-neve { display: none; } }
