/* TESSERA 1 DI CONTROLLO "PROGRAMMA I TUOI CONTENUTI" (23/11/2026, staging, scelta utente: "Coverflow dei giorni", solo numeri; sostituisce la C "Scegli giorno e ora" del 22/11: foto + ruota dell'orario + pulsante).
   Il gesto: sul vetro scorrono i giorni (carte in prospettiva, il 23 con il puntino "oggi"), la carta del 26 si alza e si accende, poi compare la pillola verde "Programmato" con la spunta che si traccia.
   Loop CSS di 9 s, nessun JS; il gruppo .pcf_z entra (0-9%) ed esce (91-95%) in dissolvenza, cosi' il reset al giro e' invisibile. Unico colore = il verde di "Programmato" (#27c371 > #1fae60).
   Senza movimento: fotogramma fermo = carta del 26 accesa + "Programmato" (i valori iniziali di --pjs=3 e --pjk=1 sono quelli finali). Testi: gain.c1_t / gain.c1_p; nel visual solo gain.c1_sched; i giorni sono numeri universali (nessuna chiave nuova).
   Numeri animati con proprieta' registrate (@property --pjs scorrimento, --pjk "alza e accendi"): senza @property (Safari < 16.4, Firefox < 128) il passaggio e' a scatto ma lo stato finale e' identico.
   Base come .ntx/.pj: scala in em = larghezza del visual / 23 (container query), altezza 16em, stessa viz alta 16rem (>=992px) delle tessere vicine. Prefissi .pg / .pc_ / .pcf_ (liberi in tutti i fogli).
   Per tornare indietro: /root/backup-pj-coverflow-20261123/RESTORE.sh (rimette pj.css, template e i18n precedenti: foto + ruota + pulsante). */
/* ---------- base comune ---------- */
html:root body section.sec.control .gt_viz--pg { container-type: inline-size; display: grid; place-items: center; align-content: center; padding: 0; overflow: visible; min-height: 14.5rem; }
@media (min-width: 992px) { html:root body section.sec.control .gt_viz--pg { height: 16rem; min-height: 16rem; } }
html:root body section.sec.control .gt_viz--pg ~ .gt_h, html:root body section.sec.control .gt_viz--pg ~ .gt_p { position: relative; z-index: 3; }
html:root body section.sec.control .gt_viz--pg ~ .gt_h { text-wrap: balance; }
.pg { position: relative; width: 23em; height: 16em; max-width: 100%; font-size: min(1rem, calc(100cqw / 23)); text-align: left; color: #fafafa; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.pg svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg span, .pg b, .pg em, .pg i, .pg u, .pg ol, .pg li { margin: 0; padding: 0; font-style: normal; text-decoration: none; list-style: none; }
.pg b { font-weight: 600; }

/* ================= COVERFLOW DEI GIORNI ================= */
@property --pjs { syntax: "<number>"; inherits: true; initial-value: 3; }
@property --pjk { syntax: "<number>"; inherits: true; initial-value: 1; }
.pc_p { position: absolute; left: .7em; right: .7em; top: 1.5em; bottom: 1.5em; border-radius: 1.8em; background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), inset 0 1px 0 rgba(255,255,255,.2), 0 1.8em 2.6em -1.3em rgba(0,0,0,.8); }
.pcf_z { position: absolute; inset: 0; }
.pcf { position: absolute; left: .7em; right: .7em; top: 1.5em; bottom: 1.5em; perspective: 44em; perspective-origin: 50% 40%; --pjs: 3; --pjk: 1; }
.pcf_tr { position: absolute; inset: 0; transform-style: preserve-3d; }
.pcf_sh { position: absolute; left: calc(50% - 3.6em); bottom: 2.6em; width: 7.2em; height: 1.4em; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(.25em); opacity: .55; scale: 1.45; }
/* ogni carta: --pji = posizione, --pjd = distanza dalla carta al centro (--pjs), --pjc = lato (-1/0/1), --pjad = distanza assoluta */
.pcf_c { --pjd: calc(var(--pji) - var(--pjs)); --pjc: clamp(-1, var(--pjd), 1); --pjad: max(var(--pjd), -1 * var(--pjd)); --pjx: calc(var(--pjc) * 3.55em + (var(--pjd) - var(--pjc)) * 1.4em);
  --pjo: calc((1 - min(var(--pjad), 3) * .36) * (1 - var(--pjk) * .62 * min(var(--pjad), 1)));
  position: absolute; left: calc(50% - 2.37em); top: 1.74em; width: 4.74em; height: 6.28em; transform-style: preserve-3d;
  transform: translateX(calc(var(--pjx) * (1 + var(--pjk) * .3))) translateZ(calc(min(var(--pjad), 1.6) * -3.1em)) rotateY(calc(var(--pjc) * -56deg)); }
.pcf_c--t { transform: translateX(calc(var(--pjx) * (1 + var(--pjk) * .3))) translateZ(calc(min(var(--pjad), 1.6) * -3.1em + var(--pjk) * 1.1em)) rotateY(calc(var(--pjc) * -56deg)) scale(calc(1 + var(--pjk) * .18)); }
.pcf_f { position: absolute; inset: 0; border-radius: 1.05em; overflow: hidden; display: grid; place-items: center; opacity: var(--pjo);
  background: linear-gradient(155deg, rgba(255,255,255,.22), rgba(255,255,255,.05) 55%, rgba(255,255,255,.11)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), inset 0 1px 0 rgba(255,255,255,.38); }
.pcf_f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.26) 48%, transparent 66%); background-size: 300% 100%; background-position-x: calc(50% + var(--pjd) * 48%); }
.pcf_n { position: relative; z-index: 1; font: 600 2.45em/1 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif; letter-spacing: -.03em; color: #fff; text-shadow: 0 .05em .4em rgba(0,0,0,.35);
  opacity: calc((1 - (max(var(--pjad), 1) - 1) * .8) * var(--pjpm, 1)); }
.pcf_c--p { --pjpm: .45; }
.pcf_dot { position: absolute; z-index: 1; left: calc(50% - .18em); bottom: .8em; width: .36em; height: .36em; border-radius: 50%; background: rgba(255,255,255,.8); }
/* la carta scelta si accende: velo di vetro piu' chiaro, bordo luminoso, numero piu' grande */
.pcf_c--t .pcf_f::before { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(255,255,255,.3), rgba(255,255,255,.08) 60%, rgba(255,255,255,.18)); opacity: var(--pjk); }
.pcf_c--t .pcf_f { box-shadow: inset 0 0 0 1px rgba(255,255,255,calc(.2 + var(--pjk) * .3)), inset 0 1px 0 rgba(255,255,255,.45), 0 0 calc(var(--pjk) * 1.6em) rgba(255,255,255,calc(var(--pjk) * .16)); }
.pcf_c--t .pcf_n { scale: calc(1 + var(--pjk) * .18); }
/* pillola "Programmato": stessa misura della pillola "Novita'" della tessera accanto (.ntd_ch: testo .8em, altezza 2,15em), tutta dentro il vetro (alone corto) */
.pcf_ok { position: absolute; z-index: 6; left: 0; right: 0; margin: 0 auto; bottom: 1.08em; width: max-content; height: 2.15em; padding: 0 1.05em; display: grid; place-items: center; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, #27c371, #1fae60); box-shadow: 0 .3em .9em -.4em rgba(34,184,102,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.pcf_ok span { display: inline-flex; align-items: center; gap: .45em; font-size: .8em; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.pcf_ok svg { width: 1.2em; height: 1.2em; }
.pcf_ck { stroke-width: 2.8; stroke-dasharray: 20; stroke-dashoffset: 0; }

/* ---------------- animazione (loop di 9 s, nessun JS) ---------------- */
@keyframes pjVz{0%{opacity:0;translate:0 .7em;animation-timing-function:cubic-bezier(.22,.8,.2,1)}9%{opacity:1;translate:0 0}91%{opacity:1;translate:0 0;animation-timing-function:ease-in}95%{opacity:0;translate:0 -.5em}100%{opacity:0;translate:0 .7em}}
@keyframes pjS{0%,10%{--pjs:0;animation-timing-function:linear(0,0.0707,0.1538,0.2438,0.3363,0.4279,0.516,0.5987,0.6746,0.7431,0.8037,0.8563,0.9012,0.9388,0.9696,0.9943,1.0134,1.0277,1.0378,1.0444,1.0482,1.0495,1.0491,1.0472,1.0443,1.0407,1.0367,1.0325,1.0282,1.0241,1.0202,1.0165,1.0132,1.0103,1.0077,1.0055,1.0036,1.002,1.0008,0.9998,0.999,0.9985,0.9981,0.9978,0.9977,0.9977,0.9978,0.9979,1)}38%,100%{--pjs:3}}
@keyframes pjK{0%,40%{--pjk:0;animation-timing-function:cubic-bezier(.22,.8,.2,1)}50%,100%{--pjk:1}}
@keyframes pjSh{0%,40%{opacity:.9;scale:1;animation-timing-function:cubic-bezier(.22,.8,.2,1)}52%,100%{opacity:.55;scale:1.45}}
@keyframes pjOk{0%,54%{opacity:0;scale:.82;filter:blur(.1em);animation-timing-function:linear(0,0.0284,0.1028,0.2081,0.3311,0.4609,0.5888,0.7083,0.8149,0.906,0.9803,1.0377,1.0794,1.1066,1.1216,1.1263,1.123,1.1139,1.1007,1.0852,1.0689,1.0527,1.0375,1.024,1.0124,1.0029,0.9955,0.9902,0.9867,0.9847,0.984,0.9844,0.9855,0.9872,0.9891,0.9912,0.9933,0.9952,0.9969,0.9984,0.9996,1.0005,1.0012,1.0017,1.0019,1.002,1.002,1.0018,1)}61%,100%{opacity:1;scale:1;filter:blur(0)}}
@keyframes pjCk{0%,57%{stroke-dashoffset:20;animation-timing-function:cubic-bezier(.3,.6,.3,1)}63%,100%{stroke-dashoffset:0}}

@media (prefers-reduced-motion: no-preference) {
  .pg--c .pcf_z { animation: pjVz 9s linear infinite both; }
  .pg--c .pcf { animation: pjS 9s linear infinite both, pjK 9s linear infinite both; }
  .pg--c .pcf_sh { animation: pjSh 9s linear infinite both; }
  .pg--c .pcf_ok { animation: pjOk 9s linear infinite both; }
  .pg--c .pcf_ck { animation: pjCk 9s linear infinite both; }
}
