/* Effetti di testo del sito (21/11/2026). Presi dalla libreria design/effetti/ (vedi LEGGIMI.md e PROPOSTE-PAGINE.md)
   e riscritti con i token del sito. Regole: il testo resta testo vero (le copie decorative sono nascoste ai lettori di
   schermo), con prefers-reduced-motion nessuna animazione, in stampa niente effetti, nessuna risorsa esterna.
   Si carica solo nelle pagine che li usano, dopo il blocco @head. */

/* ---------- Marmo · da «70 Carrara» di colorion-text-effects (MIT) ----------
   Venature che scorrono nelle lettere. Tonalità chiare per i titoli su foto con velatura scura (studio dei Bronzi). */
.fx-marmo {
  color: #f1ece4;
  background:
    radial-gradient(ellipse 40% 70% at 18% 42%, rgba(120, 112, 100, .55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 72% 58%, rgba(150, 140, 126, .45) 0%, transparent 50%),
    linear-gradient(118deg, #f6f2ec 0%, #ddd5ca 16%, #b9b0a3 24%, #efe9e1 36%, #c9c0b3 50%, #f8f4ee 70%, #b3aa9c 86%, #ece6dd 100%);
  background-size: 160% 160%, 180% 180%, 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
  animation: fx-marmo 7s ease-in-out infinite alternate;
}
@keyframes fx-marmo {
  0%   { background-position: 8% 30%, 90% 70%, 0% 50%; }
  100% { background-position: 78% 68%, 12% 22%, 100% 50%; }
}

/* ---------- Glitch · da «02 Glitchcore» di colorion-text-effects (MIT) ----------
   Due copie colorate (attr data-text, nascoste ai lettori di schermo) che saltano per un attimo. Pagina 404. */
.fx-glitch { position: relative; display: inline-block; }
.fx-glitch::before, .fx-glitch::after {
  content: attr(data-text) / "";
  position: absolute; inset: 0;
  pointer-events: none;
}
.fx-glitch::before { color: var(--a-hi); clip-path: inset(0 0 55% 0); animation: fx-glitch-a 3.4s steps(1) infinite; }
.fx-glitch::after  { color: #22d3ee;   clip-path: inset(45% 0 0 0); animation: fx-glitch-b 3.4s steps(1) infinite; }
@keyframes fx-glitch-a {
  0%, 12%, 20%, 55%, 100% { transform: translate(0); opacity: 0; }
  13% { transform: translate(-5px, -2px); opacity: .85; }
  16% { transform: translate(4px, 1px); opacity: .85; }
  48% { transform: translate(-3px, 2px); opacity: .85; }
  51% { transform: translate(2px, -1px); opacity: .85; }
}
@keyframes fx-glitch-b {
  0%, 14%, 22%, 60%, 100% { transform: translate(0); opacity: 0; }
  15% { transform: translate(5px, 2px); opacity: .85; }
  18% { transform: translate(-4px, -1px); opacity: .85; }
  52% { transform: translate(3px, -2px); opacity: .85; }
  56% { transform: translate(-2px, 1px); opacity: .85; }
}

/* ---------- Oblio · da «46 Soft-Blur» di colorion-text-effects (MIT) ----------
   Le parole restano nitide quasi sempre e ogni tanto «si dimenticano»: sfocate e sbiadite per un attimo. Lethe. */
.fx-oblio { display: inline-block; animation: fx-oblio 6s ease-in-out infinite; }
@keyframes fx-oblio {
  0%, 62%, 100% { filter: blur(0); opacity: 1; }
  74%, 82%      { filter: blur(5px); opacity: .25; }
}

/* ---------- Scansione · da «11 Redactor» di colorion-text-effects (MIT) ----------
   Una barra luminosa attraversa la parola avanti e indietro, il testo non cambia. Penetration test, data breach. */
.fx-scansione { position: relative; display: inline-block; }
.fx-scansione::after {
  content: ""; position: absolute; top: -.08em; bottom: -.08em; left: 0; width: 3px; border-radius: 2px;
  background: var(--a-hi); box-shadow: 0 0 14px var(--a-hi), 0 0 28px color-mix(in srgb, var(--a-hi) 60%, transparent);
  pointer-events: none;
  animation: fx-scansione 3.2s ease-in-out infinite alternate;
}
@keyframes fx-scansione {
  0%   { left: 0; transform: translateX(0); }
  100% { left: 100%; transform: translateX(-100%); }
}

/* ---------- Anaglifo · da «18 Anaglyph-3D» (MIT): canali rosso e ciano che si separano e tornano ---------- */
.fx-anaglifo { animation: fx-anaglifo 3.6s ease-in-out infinite; }
@keyframes fx-anaglifo {
  0%, 100% { text-shadow: -2px 0 rgba(255, 0, 80, .7), 2px 0 rgba(0, 230, 255, .7); }
  45%      { text-shadow: -7px 1px rgba(255, 0, 80, .65), 7px -1px rgba(0, 230, 255, .65); }
  55%      { text-shadow: -1px 0 rgba(255, 0, 80, .8), 1px 0 rgba(0, 230, 255, .8); }
}

/* ---------- Tramonto · da «118 Synth-Sunset» (MIT): sfumatura da tramonto con righe sottili ---------- */
.fx-tramonto {
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .16) 3px 4px), linear-gradient(180deg, #f59e0b, #f97316 40%, #e11d48 72%, #7e22ce);
  background-size: 100% 100%, 100% 220%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fx-tramonto 6s ease-in-out infinite alternate;
}
@keyframes fx-tramonto { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 0 100%; } }

/* ---------- Meridiana · da «29 Sundial» (MIT): un'ombra lunga che gira intorno alle lettere ---------- */
.fx-meridiana { animation: fx-meridiana 6s ease-in-out infinite alternate; }
@keyframes fx-meridiana {
  0%   { text-shadow: -6px 5px 0 color-mix(in srgb, var(--a) 22%, transparent), -12px 10px 0 color-mix(in srgb, var(--a) 10%, transparent); }
  50%  { text-shadow: 0 7px 0 color-mix(in srgb, var(--a) 22%, transparent), 0 14px 0 color-mix(in srgb, var(--a) 10%, transparent); }
  100% { text-shadow: 6px 5px 0 color-mix(in srgb, var(--a) 22%, transparent), 12px 10px 0 color-mix(in srgb, var(--a) 10%, transparent); }
}

/* ---------- Progetto · da «35 Blueprint» (MIT): griglia da disegno tecnico che scorre dietro la parola ---------- */
.fx-progetto {
  padding: 0 .12em; border-radius: .12em;
  background-image: linear-gradient(color-mix(in srgb, var(--a-hi) 30%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--a-hi) 30%, transparent) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: fx-progetto 8s linear infinite;
}
@keyframes fx-progetto { to { background-position: 32px 32px; } }

/* ---------- Evidenziatore · da «28 Hi-Liter» (MIT): un pennarello passa sulla frase e poi si alza ---------- */
.fx-evidenziatore {
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--a-hi) 50%, transparent) 58% 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: fx-evidenziatore 7s ease-in-out infinite;
}
@keyframes fx-evidenziatore {
  0%       { background-size: 0% 100%; background-position: 0 0; }
  18%, 80% { background-size: 100% 100%; background-position: 0 0; }
  81%      { background-position: 100% 0; }
  100%     { background-size: 0% 100%; background-position: 100% 0; }
}

/* ---------- Timbro · da «66 Rubber-Stamp» (MIT): la parola arriva come un timbro e ogni tanto ribatte ---------- */
.fx-timbro {
  display: inline-block; padding: 0 .22em; border: .07em solid currentColor; border-radius: .14em; transform: rotate(-3deg);
  animation: fx-timbro-in .7s cubic-bezier(.2, 1.6, .4, 1) both, fx-timbro-batti 6s 2s ease-in-out infinite;
}
@keyframes fx-timbro-in { from { transform: rotate(-3deg) scale(1.7); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }
@keyframes fx-timbro-batti { 0%, 88%, 100% { transform: rotate(-3deg) scale(1); } 92% { transform: rotate(-3deg) scale(1.08); } 95% { transform: rotate(-3deg) scale(.97); } }

/* ---------- Flusso di dati · da «43 Datastream» (MIT): bande di dati che scorrono dentro le lettere ---------- */
.fx-flusso, .fx-matrice {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .35) 0 2px, transparent 2px 7px), linear-gradient(180deg, var(--a-strong), var(--a) 50%, var(--a-strong));
  background-size: 100% 14px, 100% 200%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fx-flusso 2.8s linear infinite;
}
.fx-matrice { background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .3) 0 2px, transparent 2px 7px), linear-gradient(180deg, #15803d, #22c55e 50%, #15803d); }
@keyframes fx-flusso { to { background-position: 0 28px, 0 100%; } }

/* ---------- Oro · da «32 Gold-Foil» (MIT): lettere dorate con un riflesso che passa in diagonale ---------- */
.fx-oro {
  background: linear-gradient(110deg, #8a6a1f 0%, #c9a227 28%, #fff1a8 42%, #c9a227 56%, #8a6a1f 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .18));
  animation: fx-oro 4.5s ease-in-out infinite;
}
@keyframes fx-oro { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ---------- Scrittura dell'AI · da «82 Ghostwrite» (MIT): una banda di luce attraversa le parole ---------- */
.fx-scrittura {
  background: linear-gradient(90deg, currentColor 0 40%, var(--a-hi) 50%, currentColor 60% 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fx-scrittura 3.2s ease-in-out infinite;
}
@keyframes fx-scrittura { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Cerniera · da «77 Zip-Merge» (MIT): una cerniera si chiude sotto la frase ---------- */
.fx-cerniera { position: relative; display: inline-block; }
.fx-cerniera::after, .fx-cerniera::before { content: ""; position: absolute; pointer-events: none; }
.fx-cerniera::after { left: 0; right: 0; bottom: -.08em; height: .1em; background: repeating-linear-gradient(90deg, var(--a) 0 6px, transparent 6px 10px); clip-path: inset(0 100% 0 0); animation: fx-cerniera 4.5s ease-in-out infinite; }
.fx-cerniera::before { bottom: -.14em; left: 0; width: .3em; height: .22em; border-radius: 3px; background: var(--a-strong); animation: fx-cerniera-cursore 4.5s ease-in-out infinite; }
@keyframes fx-cerniera { 0% { clip-path: inset(0 100% 0 0); } 45%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
@keyframes fx-cerniera-cursore { 0% { left: 0; opacity: 1; } 45% { left: calc(100% - .3em); opacity: 1; } 55%, 100% { left: calc(100% - .3em); opacity: 0; } }

/* ---------- Biglietto · da «110 Ticket-Punch» (MIT): bordo tratteggiato che si inclina come uno scontrino ---------- */
.fx-biglietto { display: inline-block; padding: 0 .28em; border: .06em dashed currentColor; border-radius: .16em; animation: fx-biglietto 5s ease-in-out infinite; transform-origin: 0 100%; }
@keyframes fx-biglietto { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-4deg) translateY(-3px); } 82% { transform: rotate(2deg); } 88% { transform: rotate(0); } }

/* ---------- Tremolio · da «17 Jitterbug» (MIT): la frase trema per un attimo, poi si ferma ---------- */
.fx-tremolio { display: inline-block; animation: fx-tremolio 4s ease-in-out infinite; }
@keyframes fx-tremolio { 0%, 86%, 100% { transform: none; } 88% { transform: translate(-2px, 1px); } 90% { transform: translate(2px, -1px); } 92% { transform: translate(-1px, -1px); } 94% { transform: translate(1px, 1px); } }

/* ---------- Scia · da «36 Vapor-Trail» (MIT): la parola arriva veloce lasciando una scia ---------- */
.fx-scia { display: inline-block; animation: fx-scia 3.6s cubic-bezier(.2, .9, .3, 1) infinite; }
@keyframes fx-scia {
  0%   { transform: translateX(-10px); text-shadow: -12px 0 6px color-mix(in srgb, var(--a) 40%, transparent), -26px 0 10px color-mix(in srgb, var(--a) 20%, transparent); }
  30%, 100% { transform: none; text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}

/* ---------- Eco · da «13 Echo-Verse» (MIT): copie fantasma che si allargano e svaniscono ---------- */
.fx-eco { position: relative; display: inline-block; }
.fx-eco::before, .fx-eco::after { content: attr(data-text) / ""; position: absolute; inset: 0; color: var(--a-hi); pointer-events: none; animation: fx-eco 3.2s ease-out infinite; }
.fx-eco::after { animation-delay: 1.1s; }
@keyframes fx-eco { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

/* ---------- Aura · da «121 Aura» (MIT): un'aurora di colori che scorre dentro le lettere ---------- */
.fx-aura {
  background: linear-gradient(120deg, #7c3aed, #db2777, #0ea5e9, #059669, #7c3aed);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fx-aura 9s ease-in-out infinite alternate;
}
@keyframes fx-aura { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* ---------- Fondi scuri ----------
   assets/js/effetti-testo.js aggiunge .fx-su-scuro quando il testo intorno è chiaro (fondo scuro): gli effetti che
   usano i toni scuri del tema passano a quelli chiari, così il contrasto resta leggibile. */
.fx-su-scuro.fx-flusso { background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 7px), linear-gradient(180deg, #fff, var(--a-hi) 50%, #fff); }
.fx-su-scuro.fx-cerniera::after { background: repeating-linear-gradient(90deg, var(--a-hi) 0 6px, transparent 6px 10px); }
.fx-su-scuro.fx-cerniera::before { background: #fff; }
.fx-su-scuro.fx-meridiana { animation-name: fx-meridiana-scuro; }
@keyframes fx-meridiana-scuro {
  0%   { text-shadow: -6px 5px 0 color-mix(in srgb, var(--a-hi) 35%, transparent), -12px 10px 0 color-mix(in srgb, var(--a-hi) 15%, transparent); }
  50%  { text-shadow: 0 7px 0 color-mix(in srgb, var(--a-hi) 35%, transparent), 0 14px 0 color-mix(in srgb, var(--a-hi) 15%, transparent); }
  100% { text-shadow: 6px 5px 0 color-mix(in srgb, var(--a-hi) 35%, transparent), 12px 10px 0 color-mix(in srgb, var(--a-hi) 15%, transparent); }
}
.fx-su-scuro.fx-scia { animation-name: fx-scia-scuro; }
@keyframes fx-scia-scuro {
  0%   { transform: translateX(-10px); text-shadow: -12px 0 6px color-mix(in srgb, var(--a-hi) 50%, transparent), -26px 0 10px color-mix(in srgb, var(--a-hi) 25%, transparent); }
  30%, 100% { transform: none; text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}
.fx-su-scuro.fx-oro { background-image: linear-gradient(110deg, #c9a227 0%, #f0d060 28%, #fffbe0 42%, #f0d060 56%, #c9a227 100%); }

@media (prefers-reduced-motion: reduce) {
  [class*="fx-"], [class*="fx-"]::before, [class*="fx-"]::after { animation: none !important; }
  .fx-glitch::before, .fx-glitch::after, .fx-scansione::after, .fx-eco::before, .fx-eco::after, .fx-cerniera::before { display: none; }
  .fx-evidenziatore { background-size: 100% 100%; }
  .fx-cerniera::after { clip-path: none; }
  .fx-timbro { opacity: 1; }
}
@media print {
  .fx-marmo, .fx-tramonto, .fx-flusso, .fx-matrice, .fx-oro, .fx-scrittura, .fx-aura { -webkit-text-fill-color: currentColor; background: none; filter: none; color: #000; }
  [class*="fx-"] { animation: none !important; }
  .fx-eco::before, .fx-eco::after, .fx-cerniera::before, .fx-cerniera::after { display: none; }
  .fx-glitch::before, .fx-glitch::after, .fx-scansione::after { display: none; }
  .fx-oblio { animation: none; }
}

/* frasi con un effetto su una riga sola (richiesta del titolare: l'effetto su una frase, su una riga); su schermi
   stretti possono andare a capo per non uscire dallo schermo */
@media (min-width: 480px) {
  .nosplit[class*="fx-"], .nosplit[class*="tx-"] { white-space: nowrap; }
}

/* ==========================================================================
   Componenti fatti in casa (21/11/2026): non esistono raccolte in puro CSS con licenza adatta (vedi
   design/effetti/LEGGIMI.md). Si aggiungono a mano: classe sull'elemento, effetti-testo.js per la luce sulle card.
   ========================================================================== */

/* (La card con la luce che segue il mouse c'è già nel sito: classe glow-card in site.css e site.js.) */

/* Sfondo aurora per una sezione: <section class="section fx-sfondo-aurora">. Il contenuto resta sopra. */
.fx-sfondo-aurora { position: relative; isolation: isolate; overflow: hidden; }
.fx-sfondo-aurora::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55;
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--a) 45%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, color-mix(in srgb, var(--a-hi) 40%, transparent), transparent 70%),
    radial-gradient(45% 55% at 60% 85%, rgba(56, 189, 248, .28), transparent 70%);
  animation: fx-sfondo-aurora 18s ease-in-out infinite alternate;
}
@keyframes fx-sfondo-aurora { from { transform: translate3d(-4%, -2%, 0) rotate(0deg); } to { transform: translate3d(4%, 3%, 0) rotate(8deg); } }

/* Pulsante con la luce che corre sul bordo (lo stesso dei simulatori, per tutto il sito):
   <a class="btn btn-primary fx-btn-bordo">. Uno per pagina, sul pulsante principale. */
@property --fx-giro { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.fx-btn-bordo { position: relative; isolation: isolate; }
.fx-btn-bordo::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; padding: 2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--fx-giro), transparent 0deg 250deg, var(--a-hi) 300deg, #fff 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fx-btn-bordo 2.8s linear infinite;
}
@keyframes fx-btn-bordo { to { --fx-giro: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .fx-sfondo-aurora::before, .fx-btn-bordo::after { animation: none; }
}
@media print { .fx-sfondo-aurora::before, .fx-btn-bordo::after { display: none; } }

/* ==========================================================================
   Tavolozza per le sezioni finali (21/11/2026, richiesta del titolare: ogni pagina diversa, scelta per contesto).
   Sfondi: classe sulla <section>; il contenuto resta sopra (isolation). Pulsanti: classe sul .btn principale.
   Abbinamenti per pagina in design/effetti/PROPOSTE-PAGINE.md. Fermi con prefers-reduced-motion, spenti in stampa.
   ========================================================================== */
.fx-sfondo-griglia, .fx-sfondo-punti, .fx-sfondo-radar, .fx-sfondo-onde, .fx-sfondo-fascio, .fx-sfondo-carta, .fx-sfondo-codice { position: relative; isolation: isolate; overflow: hidden; }
.fx-sfondo-griglia::before, .fx-sfondo-punti::before, .fx-sfondo-radar::before, .fx-sfondo-onde::before, .fx-sfondo-fascio::before, .fx-sfondo-carta::before, .fx-sfondo-codice::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
/* griglia tecnica che scorre, sfumata ai bordi: cyber, sviluppo */
.fx-sfondo-griglia::before {
  background-image: linear-gradient(color-mix(in srgb, var(--a) 14%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--a) 14%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 80%);
  animation: fx-sfondo-griglia 14s linear infinite;
}
@keyframes fx-sfondo-griglia { to { background-position: 44px 44px, 44px 44px; } }
/* matrice di punti che respira: dati, analisi */
.fx-sfondo-punti::before {
  background-image: radial-gradient(color-mix(in srgb, var(--a) 30%, transparent) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(120deg, transparent 10%, #000 50%, transparent 90%); mask-image: linear-gradient(120deg, transparent 10%, #000 50%, transparent 90%);
  -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
  animation: fx-sfondo-punti 9s ease-in-out infinite alternate;
}
@keyframes fx-sfondo-punti { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
/* fascio radar che gira da un angolo: sicurezza, intelligence */
.fx-sfondo-radar::before {
  inset: -60%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg 300deg, color-mix(in srgb, var(--a-hi) 22%, transparent) 350deg, transparent 360deg),
              repeating-radial-gradient(circle at 50% 50%, transparent 0 79px, color-mix(in srgb, var(--a) 10%, transparent) 80px 81px);
  animation: fx-sfondo-radar 10s linear infinite;
}
@keyframes fx-sfondo-radar { to { transform: rotate(360deg); } }
/* onde lente in basso: coaching, persone */
.fx-sfondo-onde::before {
  top: auto; height: 70%;
  background:
    radial-gradient(120% 60% at 30% 100%, color-mix(in srgb, var(--a) 18%, transparent), transparent 70%),
    radial-gradient(120% 50% at 75% 100%, color-mix(in srgb, var(--a-hi) 16%, transparent), transparent 70%);
  background-size: 140% 100%, 160% 100%;
  animation: fx-sfondo-onde 16s ease-in-out infinite alternate;
}
@keyframes fx-sfondo-onde { from { background-position: 0 0, 100% 0; } to { background-position: 100% 0, 0 0; } }
/* fascio di luce dall'alto, come un riflettore: marketing, visibilità */
.fx-sfondo-fascio::before {
  background: conic-gradient(from 160deg at 50% -10%, transparent 0deg, color-mix(in srgb, var(--a-hi) 20%, transparent) 20deg, transparent 40deg);
  animation: fx-sfondo-fascio 9s ease-in-out infinite alternate;
  transform-origin: 50% 0;
}
@keyframes fx-sfondo-fascio { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
/* righe di quaderno con margine rosso: studi, libro, editoriale (fermo) */
.fx-sfondo-carta::before {
  background:
    linear-gradient(90deg, transparent 0 7%, color-mix(in srgb, #e11d48 30%, transparent) 7% calc(7% + 1px), transparent calc(7% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--a) 12%, transparent) 31px 32px);
}
/* righe diagonali che scorrono, come codice: coding, WordPress */
.fx-sfondo-codice::before {
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--a) 9%, transparent) 0 2px, transparent 2px 18px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  animation: fx-sfondo-codice 6s linear infinite;
}
@keyframes fx-sfondo-codice { to { background-position: 51px 0; } }

/* pulsanti: impulso ad anello */
.fx-btn-anello { position: relative; }
.fx-btn-anello::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--a) 55%, transparent); animation: fx-btn-anello 2.4s ease-out infinite; }
@keyframes fx-btn-anello { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 14px transparent; } }
/* pulsanti: riempimento da sinistra al passaggio */
.fx-btn-riempi { position: relative; isolation: isolate; overflow: hidden; }
.fx-btn-riempi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--a-strong); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.fx-btn-riempi:hover::before, .fx-btn-riempi:focus-visible::before { transform: scaleX(1); }
/* pulsanti: la freccia spinge avanti ogni tanto */
.fx-btn-freccia svg { animation: fx-btn-freccia 2.6s ease-in-out infinite; }
@keyframes fx-btn-freccia { 0%, 70%, 100% { transform: none; } 78% { transform: translateX(6px); } 86% { transform: translateX(0); } 92% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  .fx-sfondo-griglia::before, .fx-sfondo-punti::before, .fx-sfondo-radar::before, .fx-sfondo-onde::before, .fx-sfondo-fascio::before, .fx-sfondo-codice::before, .fx-btn-anello::after, .fx-btn-freccia svg { animation: none; }
  .fx-btn-riempi::before { transition: none; }
}
@media print {
  .fx-sfondo-griglia::before, .fx-sfondo-punti::before, .fx-sfondo-radar::before, .fx-sfondo-onde::before, .fx-sfondo-fascio::before, .fx-sfondo-carta::before, .fx-sfondo-codice::before, .fx-btn-anello::after, .fx-btn-riempi::before { display: none; }
}
