/* Foto dei pannelli "dal vivo" (live.js): il meteo cambia luce e colori della foto (filtro) e sopra c'e' il livello animato (canvas). */
.pfoto { overflow: hidden; border-radius: 1rem; }
.pfoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 1rem; transition: filter 2.5s ease; }
.pfoto img.light-only { object-position: 50% 8%; }      /* foto diurna: cielo neutro esteso in alto, si vede quasi tutto */
.pfoto img.dark-only { object-position: 50% 30%; }      /* foto serale: ripresa dall'alto, senza cielo */
.pfoto canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 1rem; pointer-events: none; }
.pfoto[data-cond="sereno"] img { filter: brightness(1.12) saturate(1.3) contrast(1.05); }
.pfoto[data-cond="poco"] img { filter: brightness(1.05) saturate(1.15); }
.pfoto[data-cond="nuvoloso"] img { filter: brightness(.97) saturate(.95); }
.pfoto[data-cond="coperto"] img { filter: brightness(.88) saturate(.75); }
.pfoto[data-cond="pioggia"] img { filter: brightness(.74) saturate(.65) contrast(1.05); }
.pfoto[data-cond="temporale"] img { filter: brightness(.58) saturate(.55) contrast(1.1); }
.pfoto[data-cond="neve"] img { filter: brightness(1.06) saturate(.45) contrast(.95); }
.pfoto[data-cond="nebbia"] img { filter: brightness(1) saturate(.55); }

/* etichetta sulla foto: produzione attuale e meteo (testo scritto da live.js) */
.plive {
  position: absolute; left: .8rem; bottom: .7rem; display: flex; align-items: center; gap: .55rem; padding: .3rem .8rem;
  font-size: 1rem; line-height: 1.4rem; color: #fff; border-radius: 999px; background: rgb(2 6 23 / .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.plive[hidden] { display: none; }
.plive b { font-variant-numeric: tabular-nums; }
.plive .live { width: .7rem; height: .7rem; border-radius: 50%; background: #22c55e; animation: plive-ping 2s infinite; }
@keyframes plive-ping { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / .55); } 70%, 100% { box-shadow: 0 0 0 .8rem rgb(34 197 94 / 0); } }
@media (prefers-reduced-motion: reduce) { .plive .live { animation: none; } }
