/* Effetti di animazione ispirati a React Bits (reactbits.dev), riscritti in CSS/JS semplice.
   Valgono solo con la classe html.fx, che /assets/fx.js NON attiva con "riduci movimento",
   durante la generazione notturna (browser automatico) o se lo script non si carica. */
html.fx .fx-r{opacity:0;transform:translateY(14px);filter:blur(6px);
  transition:opacity .55s ease,transform .6s cubic-bezier(.2,.7,.2,1),filter .55s ease,box-shadow .2s ease;transition-delay:var(--fx-d,0ms)}
html.fx .fx-r.fx-in{opacity:1;transform:none;filter:none}
/* testo che si mette a fuoco parola per parola (BlurText) */
html.fx .fx-w{display:inline-block;opacity:0;filter:blur(8px);transform:translateY(.22em);
  animation:fx-w .7s cubic-bezier(.2,.7,.2,1) forwards;animation-delay:calc(var(--i) * 70ms + 120ms)}
@keyframes fx-w{to{opacity:1;filter:none;transform:none}}
/* riflesso che attraversa le etichette (ShinyText) */
html.fx .tor-k,html.fx .xmas-k,html.fx .nat-k{position:relative;overflow:hidden}
html.fx .tor-k::after,html.fx .xmas-k::after,html.fx .nat-k::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);transform:translateX(-130%);animation:fx-s 4.2s ease-in-out 1.4s infinite}
@keyframes fx-s{0%{transform:translateX(-130%)}35%,100%{transform:translateX(130%)}}
/* luci che brillano nei disegni di Natale */
html.fx .xmas-bg g:nth-of-type(1) circle:nth-child(odd),html.fx .nat-hero-bg>g:nth-of-type(3) circle:nth-child(odd){animation:fx-t 2.6s ease-in-out infinite alternate}
html.fx .xmas-bg g:nth-of-type(1) circle:nth-child(4n+1),html.fx .nat-hero-bg>g:nth-of-type(3) circle:nth-child(4n+1){animation-delay:-1.3s}
html.fx .xmas-bg g:nth-of-type(1) circle:nth-child(6n+5),html.fx .nat-hero-bg>g:nth-of-type(3) circle:nth-child(6n+5){animation-duration:1.9s}
@keyframes fx-t{from{opacity:.2}to{opacity:1}}
/* luce che segue il puntatore sulle schede (SpotlightCard) e leggero sollevamento, solo con il mouse */
@media (hover:hover) and (pointer:fine){
  html.fx .ev,html.fx .pick,html.fx .nat-ev{background-image:radial-gradient(260px circle at var(--mx,-400px) var(--my,-400px),var(--fx-luce,rgba(30,74,150,.09)),transparent 62%)}
  html.fx .pick:hover,html.fx .nat-ev:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(11,27,63,.10)}
  html.fx .xmas-in:hover .xmas-bg,html.fx .feature:hover .tor-bg{transform:scale(1.03)}
  html.fx .xmas-bg,html.fx .tor-bg{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
}
html.fx[data-theme="dark"]{--fx-luce:rgba(255,231,163,.08)}
@media (prefers-color-scheme:dark){html.fx:not([data-theme="light"]){--fx-luce:rgba(255,231,163,.08)}}
