/* Animazioni delle pagine interne.
   Ogni disegno è un SVG 400×400. Tutto parte a tempo (mai legato allo scroll),
   si mette in pausa fuori schermo e, con "riduci movimento", mostra lo stato finale. */

.anim { position: relative; }
.anim::before {
  content: ""; position: absolute; inset: -6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 0, 111, .2), rgba(91, 33, 182, .12) 45%, transparent 70%);
}
.anim svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.anim svg * { transform-box: fill-box; transform-origin: center; }
.anim text { font-family: var(--display); font-weight: 700; font-stretch: 85%; fill: #fff; }
.anim .ink { fill: var(--ink); }
.anim .lime { fill: var(--lime); }
.anim .pink { fill: var(--pink); }
.anim .dim { fill: rgba(255, 255, 255, .32); }
.anim .soft { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.anim .wire { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; }
.js .anim:not(.is-on) svg * { animation-play-state: paused; }
@media (max-width: 899px) { .phero__visual--post { display: none; } }

@keyframes a-in { 0% { opacity: 0; transform: translateY(8px); } 8%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes a-pop { 0%, 60% { opacity: 0; transform: scale(.4); } 66%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Strategia: le opzioni si mettono in ordine di priorità */
.st-bar { fill: var(--c); animation: st-move 7s var(--ease) infinite, st-tint 7s ease infinite; }
@keyframes st-move { 0%, 16% { transform: translateX(var(--dx)); } 46%, 86% { transform: none; } 100% { transform: translateX(var(--dx)); } }
@keyframes st-tint { 0%, 44% { fill: rgba(255, 255, 255, .3); } 56%, 86% { fill: var(--c); } 100% { fill: rgba(255, 255, 255, .3); } }
.st-dot { animation: st-dot 7s var(--ease) infinite; }
@keyframes st-dot { 0%, 48% { opacity: 0; transform: translateY(-24px); } 58%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.st-lab { animation: st-lab 7s ease infinite; }
@keyframes st-lab { 0%, 50% { opacity: 0; } 60%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }

/* Siti: la pagina si compone, il punto clicca, arriva una richiesta */
.si-b { animation: a-in 7s var(--ease) infinite; animation-delay: calc(var(--k) * .12s); }
.si-cur { animation: si-cur 7s var(--ease) infinite; }
@keyframes si-cur { 0%, 16% { opacity: 0; transform: translate(140px, 90px); } 22% { opacity: 1; transform: translate(140px, 90px); } 40% { transform: none; } 43% { transform: scale(.7); } 46%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.si-rip { opacity: 0; animation: si-rip 7s ease-out infinite; }
@keyframes si-rip { 0%, 42% { opacity: 0; transform: none; } 43% { opacity: .9; transform: none; } 56%, 100% { opacity: 0; transform: scale(3.4); } }
.si-note { animation: si-note 7s var(--ease) infinite; }
@keyframes si-note { 0%, 47% { opacity: 0; transform: translateY(-14px); } 55%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }

/* SEO: la ricerca, poi il tuo risultato sale in cima */
.seo-q { transform-origin: 0 50%; animation: seo-type 8s infinite; }
@keyframes seo-type { 0%, 4% { transform: scaleX(0); animation-timing-function: steps(20, end); } 24%, 88% { transform: none; } 96%, 100% { transform: scaleX(0); } }
.seo-r { animation-duration: 8s; animation-timing-function: var(--ease); animation-iteration-count: infinite; }
@keyframes seo-you { 0%, 24% { opacity: 0; transform: translateY(192px); } 28%, 30% { opacity: 1; transform: translateY(192px); } 36%, 44% { transform: translateY(128px); } 50%, 58% { transform: translateY(64px); } 64%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes seo-c { 0%, 24% { opacity: 0; transform: translateY(-64px); } 28%, 30% { opacity: 1; transform: translateY(-64px); } 36%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes seo-b { 0%, 24% { opacity: 0; transform: translateY(-64px); } 28%, 44% { opacity: 1; transform: translateY(-64px); } 50%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes seo-a { 0%, 24% { opacity: 0; transform: translateY(-64px); } 28%, 58% { opacity: 1; transform: translateY(-64px); } 64%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }

/* Advertising: tanti clic entrano nell'imbuto, escono i contatti */
.adv-p { animation: adv-drop 4s linear infinite; animation-delay: var(--d); }
.adv-p.ok { animation-name: adv-pass; }
@keyframes adv-drop { 0% { opacity: 0; transform: none; } 10% { opacity: 1; } 55% { opacity: .9; transform: translate(var(--tx), 165px); } 70%, 100% { opacity: 0; transform: translate(var(--tx), 190px); } }
@keyframes adv-pass { 0% { opacity: 0; transform: none; fill: #fff; } 10% { opacity: 1; } 50% { transform: translate(var(--tx), 190px); fill: #fff; } 62% { transform: translate(var(--tx2), 255px); fill: var(--lime); } 82% { opacity: 1; transform: translate(var(--tx2), 300px); fill: var(--lime); } 92%, 100% { opacity: 0; transform: translate(var(--tx2), 306px); fill: var(--lime); } }

/* App: tocco, schermata successiva, fatto */
.app-s { animation: app-slide 8s var(--ease) infinite; }
@keyframes app-slide { 0%, 22% { opacity: 1; transform: none; } 30%, 56% { transform: translateX(-150px); } 64%, 88% { opacity: 1; transform: translateX(-300px); } 94% { opacity: 0; transform: translateX(-300px); } 95% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
.app-tap { opacity: 0; animation: app-tap 8s ease-out infinite; }
.app-tap--2 { animation-name: app-tap2; }
@keyframes app-tap { 0%, 17% { opacity: 0; transform: scale(.5); } 19% { opacity: .9; transform: scale(.8); } 27%, 100% { opacity: 0; transform: scale(2.4); } }
@keyframes app-tap2 { 0%, 51% { opacity: 0; transform: scale(.5); } 53% { opacity: .9; transform: scale(.8); } 61%, 100% { opacity: 0; transform: scale(2.4); } }

/* CRM: le schede sparse finiscono in colonna, una passa a "Fatto" */
.crm-c { animation: crm-in 8s var(--ease) infinite; }
@keyframes crm-in { 0% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--r)); } 6%, 16% { opacity: 1; transform: translate(var(--sx), var(--sy)) rotate(var(--r)); } 38%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
.crm-m { animation: crm-move 8s var(--ease) infinite; }
@keyframes crm-move { 0% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--r)); } 6%, 16% { opacity: 1; transform: translate(var(--sx), var(--sy)) rotate(var(--r)); } 38%, 50% { opacity: 1; transform: translateX(-110px); } 62%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
.crm-m .card { fill: var(--lime); animation: crm-tint 8s ease infinite; }
@keyframes crm-tint { 0%, 54% { fill: rgba(255, 255, 255, .14); } 62%, 88% { fill: var(--lime); } 100% { fill: rgba(255, 255, 255, .14); } }
.crm-ok { animation: a-pop 8s var(--ease) infinite; }

/* AI: i documenti entrano nel punto, esce un riassunto */
.ai-ring { animation: spin 6s linear infinite; }
.ai-doc { animation: ai-doc 6s var(--ease) infinite; animation-delay: var(--d); }
@keyframes ai-doc { 0% { opacity: 0; transform: none; } 8%, 20% { opacity: 1; transform: none; } 40%, 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.15); } }
.ai-core { animation: ai-core 6s ease-in-out infinite; }
@keyframes ai-core { 0%, 30% { transform: none; } 40% { transform: scale(1.18); } 50%, 100% { transform: none; } }
.ai-l { transform-origin: 0 50%; animation: ai-l 6s var(--ease) infinite; animation-delay: var(--d); }
@keyframes ai-l { 0%, 42% { transform: scaleX(0); } 56%, 88% { transform: none; } 96%, 100% { transform: scaleX(0); } }
.ai-ok { animation: a-pop 6s var(--ease) infinite; }

/* Partner tecnico: il lavoro in eccesso passa sulla nostra corsia e la consegna torna in tempo */
.pt-t { animation: pt-move 8s var(--ease) infinite; }
@keyframes pt-move { 0%, 28% { transform: translate(var(--fx), var(--fy)); } 48%, 88% { transform: none; } 96%, 100% { transform: translate(var(--fx), var(--fy)); } }
.pt-t rect { fill: var(--lime); animation: pt-tint 8s ease infinite; }
@keyframes pt-tint { 0%, 30% { fill: var(--c0); } 46%, 88% { fill: var(--lime); } 100% { fill: var(--c0); } }
.pt-lane2 { animation: pt-lane 8s ease infinite; }
@keyframes pt-lane { 0%, 22% { opacity: 0; } 30%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.pt-ok { animation: a-pop 8s var(--ease) infinite; }

/* Formazione: dai fili verso il docente a una rete che si regge da sola */
.fo-spoke { opacity: 0; animation: fo-spoke 7s ease infinite; }
@keyframes fo-spoke { 0%, 6% { opacity: 0; } 16%, 40% { opacity: .55; } 56%, 100% { opacity: 0; } }
.fo-edge { stroke-dasharray: 1; animation: fo-edge 7s var(--ease) infinite; }
@keyframes fo-edge { 0%, 46% { stroke-dashoffset: 1; opacity: 1; } 64%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.fo-p { fill: var(--lime); animation: fo-p 7s ease infinite; }
@keyframes fo-p { 0%, 48% { fill: #fff; } 62%, 88% { fill: var(--lime); } 100% { fill: #fff; } }
.fo-c { animation: fo-c 7s var(--ease) infinite; }
@keyframes fo-c { 0%, 40% { transform: none; opacity: 1; } 58%, 88% { transform: scale(.55); opacity: .7; } 100% { transform: none; opacity: 1; } }

/* Servizi: tre competenze si accendono insieme per un progetto */
.hub-t rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; }
.hub-t.on rect { animation: hub-tile 9s ease infinite; animation-delay: var(--d); }
.hub-t.on text { animation: hub-txt 9s ease infinite; animation-delay: var(--d); }
@keyframes hub-tile { 0% { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .25); } 6%, 27% { fill: var(--lime); stroke: var(--lime); } 33%, 100% { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .25); } }
@keyframes hub-txt { 0% { fill: #fff; } 6%, 27% { fill: var(--ink); } 33%, 100% { fill: #fff; } }
.hub-l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hub-l 9s var(--ease) infinite; animation-delay: var(--d); }
@keyframes hub-l { 0%, 6% { stroke-dashoffset: 1; opacity: 1; } 16%, 27% { stroke-dashoffset: 0; opacity: 1; } 32%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.hub-cap { opacity: 0; animation: hub-cap 9s ease infinite; animation-delay: var(--d); }
.hub-cap--0 { opacity: 1; }
@keyframes hub-cap { 0% { opacity: 0; } 8%, 27% { opacity: 1; } 32%, 100% { opacity: 0; } }

/* Metodo: il punto gira tra le sei fasi e il ciclo ricomincia */
.me-arc { stroke-dasharray: 1; animation: me-arc 10.8s linear infinite; }
@keyframes me-arc { 0% { stroke-dashoffset: 1; opacity: 1; } 88.9% { stroke-dashoffset: 0; opacity: 1; } 96% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
.anim .me-orbit { transform-box: view-box; transform-origin: 200px 200px; animation: me-orbit 10.8s linear infinite; }
@keyframes me-orbit { 0% { transform: none; } 88.9%, 100% { transform: rotate(360deg); } }
.me-n { fill: var(--lime); stroke: var(--lime); stroke-width: 3; animation-duration: 10.8s; animation-timing-function: ease; animation-iteration-count: infinite; }
.me-lab { opacity: 0; animation-duration: 10.8s; animation-timing-function: ease; animation-iteration-count: infinite; }
.me-lab--0 { opacity: 1; }

/* Contatti: scrivi, qualcuno sta rispondendo, arriva la risposta */
.ct-u { animation: a-in 8s var(--ease) infinite; }
.ct-q { transform-origin: 0 50%; animation: ct-type 8s infinite; }
@keyframes ct-type { 0%, 8% { transform: scaleX(0); animation-timing-function: steps(28, end); } 30%, 88% { transform: none; } 96%, 100% { transform: scaleX(0); } }
.ct-dots { opacity: 0; animation: ct-dots 8s ease infinite; }
@keyframes ct-dots { 0%, 34% { opacity: 0; } 38%, 54% { opacity: 1; } 57%, 100% { opacity: 0; } }
.ct-dots circle { animation: ct-blink 1s ease-in-out infinite; }
.ct-dots circle:nth-of-type(2) { animation-delay: .15s; }
.ct-dots circle:nth-of-type(3) { animation-delay: .3s; }
@keyframes ct-blink { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }
.ct-name { animation: ct-name 8s ease infinite; }
@keyframes ct-name { 0%, 34% { opacity: 0; } 38%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
.ct-r { transform-origin: 0 0; animation: ct-r 8s var(--ease) infinite; }
@keyframes ct-r { 0%, 56% { opacity: 0; transform: translateY(10px) scale(.96); } 62%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }

/* Verona: le onde partono da Verona e accendono i progetti intorno */
.vr-ring { opacity: 0; animation: vr-ring 4.5s linear infinite; animation-delay: var(--d); }
@keyframes vr-ring { 0% { opacity: .85; transform: none; } 100% { opacity: 0; transform: scale(12); } }
.vr-d { fill: rgba(255, 255, 255, .45); animation: vr-d 1.5s ease-out infinite; animation-delay: var(--d); }
@keyframes vr-d { 0% { fill: var(--lime); transform: scale(1.7); } 45%, 100% { fill: rgba(255, 255, 255, .45); transform: none; } }

/* Blog: un articolo dopo l'altro, con le frasi che contano evidenziate */
.bl-card { animation: bl-card 7s var(--ease) infinite; }
@keyframes bl-card { 0% { opacity: 0; transform: translateX(50px); } 8%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateX(-50px); } }
.bl-hl { transform-origin: 0 50%; animation-duration: 7s; animation-timing-function: var(--ease); animation-iteration-count: infinite; }
@keyframes bl-h1 { 0%, 14% { transform: scaleX(0); } 24%, 100% { transform: none; } }
@keyframes bl-h2 { 0%, 28% { transform: scaleX(0); } 38%, 100% { transform: none; } }
@keyframes bl-h3 { 0%, 42% { transform: scaleX(0); } 52%, 100% { transform: none; } }
.bl-mark { animation: bl-mark 7s var(--ease) infinite; }
@keyframes bl-mark { 0%, 52% { opacity: 0; transform: translateY(-16px); } 60%, 100% { opacity: 1; transform: none; } }

/* Note legali: i dati restano dentro il cerchio */
.lg-ring { animation: spin 18s linear infinite; }
.anim .lg-orbit { transform-box: view-box; transform-origin: 200px 200px; animation: spin 28s linear infinite reverse; }

/* 404: il punto esce dallo zero, al suo posto un punto di domanda */
.nf-dot { animation: nf-dot 6s var(--ease) infinite; }
@keyframes nf-dot { 0%, 18% { opacity: 1; transform: none; } 34% { opacity: 0; transform: translateX(170px); } 35%, 58% { opacity: 0; transform: translateX(-170px); } 74%, 100% { opacity: 1; transform: none; } }
.nf-q { opacity: 0; animation: nf-q 6s ease infinite; }
@keyframes nf-q { 0%, 32% { opacity: 0; } 40%, 58% { opacity: 1; } 66%, 100% { opacity: 0; } }
