/* Repost Studio – Area Studenti v1.7: presentazioni animate + figurine */

/* ------------------------------------------------------------------ */
/* Presentazione                                                       */
/* ------------------------------------------------------------------ */
.rsas-pres-card { padding: 22px !important; }
.rsas-pres-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.rsas-pres-head p { margin: 0 !important; font-size: 14px; }

.rsas-pres {
	--pz-ac: var(--rsas-accent, #ff3d6e);
	--pz-y: #ffd23f;
	--pz-b: #3d7bff;
	--pz-g: #2fd08f;
	position: relative; overflow: hidden; border-radius: 24px; background: #141414; color: #fff;
	height: clamp(480px, 66vh, 640px); outline: none; isolation: isolate; touch-action: pan-y;
}
.rsas-pres:focus-visible { box-shadow: 0 0 0 3px var(--pz-ac); }
.rsas-pres:fullscreen { border-radius: 0; height: 100vh; }
.rsas-pres:fullscreen .pz-inner { max-width: 1200px; }
.pz-track-x { display: flex; height: 100%; transition: transform .7s cubic-bezier(.7, 0, .2, 1); will-change: transform; }
.pz-slide { flex: 0 0 100%; min-width: 0; height: 100%; position: relative; overflow: hidden; }
.pz-inner { position: relative; z-index: 2; height: 100%; max-width: 980px; margin: 0 auto; padding: 48px 56px 86px; display: flex; flex-direction: column; justify-content: center; }
.pz-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* entrata degli elementi quando la slide diventa attiva */
.pz-a { opacity: 0; }
.pz-slide.is-active .pz-a { animation: pz-up .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 120ms + 250ms); }
.pz-slide.is-active .pz-rise { animation-name: pz-rise; animation-duration: .9s; }
.pz-slide.is-active .pz-pop { animation-name: pz-popin; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
.pz-slide.is-active .pz-fly { animation-name: pz-fly; }
@keyframes pz-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pz-rise { from { opacity: 1; transform: translateY(110%); } to { opacity: 1; transform: none; } }
@keyframes pz-popin { from { opacity: 0; transform: scale(.3) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes pz-fly { from { opacity: 0; transform: translateY(60px) rotate(6deg) scale(.9); } to { opacity: 1; transform: none; } }

.pz-kicker { margin: 0 0 14px !important; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pz-ac); }
.pz-big { font-size: clamp(48px, 8.4vw, 112px) !important; line-height: .92 !important; letter-spacing: -.045em !important; margin: 0 0 22px !important; font-weight: 900 !important; }
.pz-big-s { font-size: clamp(38px, 6.4vw, 76px) !important; line-height: 1 !important; }
.pz-line { display: block; overflow: hidden; padding-bottom: .06em; }
.pz-line > span { display: inline-block; }
.pz-line:last-child > span { color: var(--pz-ac); }
.pz-mid { font-size: clamp(28px, 4.2vw, 46px) !important; line-height: 1.05 !important; letter-spacing: -.03em !important; margin: 0 0 18px !important; font-weight: 900 !important; }
.pz-text { font-size: clamp(16px, 1.7vw, 20px); color: rgba(255, 255, 255, .78); max-width: 46ch; margin: 0 !important; }

/* intro */
.pz-rot { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 10px 20px 10px 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-weight: 800; font-size: clamp(16px, 2vw, 22px); margin-bottom: 18px; }
.pz-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pz-ac); box-shadow: 0 0 0 0 var(--pz-ac); animation: pz-ping 1.6s infinite; }
@keyframes pz-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 110, .7); } 100% { box-shadow: 0 0 0 14px rgba(255, 61, 110, 0); } }
.pz-rot-w { display: inline-block; min-width: 8ch; }
.pz-rot-w.is-swap { animation: pz-swap .45s both; }
@keyframes pz-swap { from { opacity: 0; transform: translateY(60%); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.pz-blob { position: absolute; right: -200px; top: -170px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--pz-ac), #b0164a 70%); z-index: -1; filter: blur(2px); opacity: .9; }
.pz-slide.is-active .pz-blob { animation: pz-blob 9s ease-in-out infinite alternate; }
@keyframes pz-blob { 0% { border-radius: 50%; transform: scale(.9); } 50% { border-radius: 42% 58% 60% 40%; transform: scale(1.05) translate(-20px, 20px); } 100% { border-radius: 58% 42% 40% 60%; transform: scale(1) translate(10px, -10px); } }
.pz-ring { position: absolute; right: 40px; bottom: 90px; width: 140px; height: 140px; border: 2px dashed rgba(255, 255, 255, .25); border-radius: 50%; z-index: -1; }
.pz-slide.is-active .pz-ring { animation: pz-spin 16s linear infinite; }
@keyframes pz-spin { to { transform: rotate(360deg); } }
.pz-l-intro .pz-inner { justify-content: flex-end; }

/* claim */
.pz-claim { font-size: clamp(40px, 7.5vw, 96px) !important; line-height: 1 !important; letter-spacing: -.04em !important; font-weight: 900 !important; margin: 0 0 26px !important; }
.pz-cline { display: block; }
.pz-word { display: inline-block; }
.pz-word.is-hot { position: relative; color: #141414; z-index: 0; }
.pz-word.is-hot::before { content: ""; position: absolute; inset: .06em -.12em .02em; background: var(--pz-y); z-index: -1; transform-origin: left; transform: scaleX(0); border-radius: 6px; }
.pz-cline + .pz-cline .pz-word.is-hot::before { background: var(--pz-ac); }
.pz-cline + .pz-cline .pz-word.is-hot { color: #fff; }
.pz-slide.is-active .pz-word.is-hot::before { animation: pz-mark .6s cubic-bezier(.7, 0, .2, 1) both; animation-delay: calc(var(--d) * 120ms + 600ms); }
@keyframes pz-mark { to { transform: scaleX(1); } }

/* rumore */
.pz-noise { position: absolute; inset: 0; z-index: 1; }
.pz-noise span { position: absolute; left: var(--x); top: var(--y); font-weight: 800; font-size: clamp(14px, 1.8vw, 22px); color: rgba(255, 255, 255, .16); padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; white-space: nowrap; }
.pz-slide.is-active .pz-noise span { animation: pz-jitter 3s ease-in-out infinite alternate, pz-dim 1.2s 1.6s both; animation-delay: calc(var(--i) * -.3s), 1.6s; }
@keyframes pz-jitter { from { transform: translate(-8px, 4px) rotate(-3deg); } to { transform: translate(8px, -6px) rotate(3deg); } }
@keyframes pz-dim { to { color: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .04); filter: blur(1.5px); } }
.pz-noise-msg { position: relative; z-index: 2; text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pz-noise-msg .pz-text { text-align: center; }
.pz-key { font-size: clamp(48px, 9vw, 110px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 10px 0 0 !important; color: var(--pz-ac); text-shadow: 0 0 40px rgba(255, 61, 110, .45); }

/* venn */
.pz-l-venn .pz-inner { align-items: center; text-align: center; }
.pz-venn { position: relative; width: min(520px, 100%); height: 240px; margin: 0 auto 26px; }
.pz-c { position: absolute; top: 0; width: 240px; height: 240px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 22px; mix-blend-mode: screen; opacity: 0; }
.pz-c-l { left: 50%; background: rgba(61, 123, 255, .75); transform: translateX(-140%); }
.pz-c-r { right: 50%; background: rgba(255, 61, 110, .8); transform: translateX(140%); }
.pz-c-l { padding-right: 70px; }
.pz-c-r { padding-left: 70px; }
.pz-slide.is-active .pz-c-l { animation: pz-vl 1.2s .4s cubic-bezier(.2, .8, .2, 1) both; }
.pz-slide.is-active .pz-c-r { animation: pz-vr 1.2s .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pz-vl { from { opacity: 0; transform: translateX(-160%); } to { opacity: 1; transform: translateX(-82%); } }
@keyframes pz-vr { from { opacity: 0; transform: translateX(160%); } to { opacity: 1; transform: translateX(82%); } }
.pz-c-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); background: #fff; color: #141414; font-weight: 900; padding: 8px 16px; border-radius: 99px; font-size: 18px; z-index: 2; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.pz-slide.is-active .pz-c-mid { animation: pz-mid .6s 1.5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pz-mid { to { transform: translate(-50%, -50%) scale(1); } }
.pz-venn-t { margin: 0 auto !important; text-align: center; max-width: 60ch; font-size: clamp(15px, 1.5vw, 18px); }

/* cards */
.pz-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pz-card { position: relative; background: #fff; color: #141414; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; min-height: 190px; }
.pz-card:nth-child(2) { background: var(--pz-y); }
.pz-card:nth-child(3) { background: var(--pz-ac); color: #fff; }
.pz-card:nth-child(4) { background: var(--pz-b); color: #fff; }
.pz-card-n { font-size: 12px; font-weight: 800; opacity: .55; }
.pz-card-i { font-size: 32px; margin: 4px 0 auto; }
.pz-card strong { font-size: 18px; line-height: 1.15; }
.pz-card > span:last-child { font-size: 13.5px; line-height: 1.35; opacity: .8; }
.pz-slide.is-active .pz-card { transition: transform .25s; }
.pz-card:hover { transform: translateY(-6px) rotate(-1deg); }

/* steps */
.pz-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 26px !important; }
.pz-track { position: absolute; left: 0; right: 0; top: 8px; height: 3px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.pz-track::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--pz-ac), var(--pz-y)); transform-origin: left; transform: scaleX(0); }
.pz-slide.is-active .pz-track::after { animation: pz-mark 2.4s .5s cubic-bezier(.6, 0, .2, 1) both; }
.pz-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pz-steps li::before { content: ""; position: absolute; top: -24px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--pz-ac); box-shadow: 0 0 0 5px #141414; }
.pz-step-n { font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -.04em; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); color: transparent; }
.pz-steps strong { font-size: 20px; }
.pz-steps li > span:last-child { color: rgba(255, 255, 255, .7); font-size: 14.5px; }

/* skill (competenze) */
.pz-skill { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pz-num { font-size: 90px; font-weight: 900; line-height: .8; letter-spacing: -.05em; color: var(--pz-ac); display: block; margin-bottom: 10px; }
.pz-skill .pz-text { font-size: 16px; margin-bottom: 18px !important; }
.pz-points { display: grid; gap: 8px; }
.pz-points li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border-left: 3px solid var(--pz-ac); }
.pz-points strong { font-size: 15.5px; }
.pz-points span { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.pz-vis { display: grid; place-items: center; min-height: 320px; }

/* visual: browser */
.pzv-win { position: relative; width: min(360px, 100%); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(-3deg); }
.pzv-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: #eee; }
.pzv-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.pzv-bar i:nth-child(2) { background: #febc2e; }
.pzv-bar i:nth-child(3) { background: #28c840; }
.pzv-bar span { flex: 1; height: 14px; border-radius: 7px; background: #fff; margin-left: 8px; }
.pzv-page { padding: 14px; display: grid; gap: 10px; }
.pzv-page b { display: block; border-radius: 8px; background: #eceae5; transform-origin: left; }
.pzv-hero { height: 90px; background: linear-gradient(120deg, var(--pz-ac), #ff8aa8) !important; }
.pzv-h1 { height: 16px; width: 70%; background: #141414 !important; }
.pzv-p { height: 10px; width: 90%; }
.pzv-btn { height: 26px; width: 40%; border-radius: 99px !important; background: var(--pz-b) !important; }
.pzv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pzv-grid b { height: 46px; }
.pz-slide.is-active .pzv-page b { animation: pz-build .5s cubic-bezier(.2, .8, .2, 1) both; }
.pz-slide.is-active .pzv-hero { animation-delay: .6s !important; }
.pz-slide.is-active .pzv-h1 { animation-delay: .9s !important; }
.pz-slide.is-active .pzv-p { animation-delay: 1.1s !important; }
.pz-slide.is-active .pzv-btn { animation-delay: 1.3s !important; }
.pz-slide.is-active .pzv-grid b:nth-child(1) { animation-delay: 1.5s !important; }
.pz-slide.is-active .pzv-grid b:nth-child(2) { animation-delay: 1.65s !important; }
.pz-slide.is-active .pzv-grid b:nth-child(3) { animation-delay: 1.8s !important; }
@keyframes pz-build { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.pzv-cursor { position: absolute; width: 18px; height: 18px; left: 60%; top: 70%; background: #141414; clip-path: polygon(0 0, 100% 60%, 55% 62%, 75% 100%, 60% 100%, 42% 66%, 0 100%); }
.pz-slide.is-active .pzv-cursor { animation: pz-cursor 3s 2s ease-in-out infinite; }
@keyframes pz-cursor { 0%, 100% { transform: none; } 40% { transform: translate(-90px, -38px); } 55% { transform: translate(-90px, -38px) scale(.8); } 70% { transform: translate(-90px, -38px); } }

/* visual: phone */
.pzv-phone { position: relative; width: 200px; height: 360px; border-radius: 34px; background: #fff; border: 8px solid #2a2a2a; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(4deg); }
.pzv-notch { position: absolute; top: 6px; left: 50%; width: 70px; height: 16px; margin-left: -35px; background: #2a2a2a; border-radius: 10px; z-index: 2; }
.pzv-feed { display: grid; gap: 10px; padding: 30px 10px 10px; }
.pz-slide.is-active .pzv-feed { animation: pz-feed 6s 1s ease-in-out infinite; }
@keyframes pz-feed { 0%, 15% { transform: none; } 45%, 60% { transform: translateY(-160px); } 90%, 100% { transform: none; } }
.pzv-post { border-radius: 12px; overflow: hidden; background: #f2f0eb; }
.pzv-post b { display: block; height: 120px; background: linear-gradient(135deg, var(--pz-ac), var(--pz-y)); }
.pzv-post.is-b b { background: linear-gradient(135deg, var(--pz-b), var(--pz-g)); }
.pzv-post.is-c b { background: linear-gradient(135deg, #141414, var(--pz-ac)); }
.pzv-post i { display: block; height: 10px; margin: 8px; width: 60%; border-radius: 5px; background: #d8d4cc; }
.pzv-heart { position: absolute; right: 18px; bottom: 60px; color: var(--pz-ac); font-size: 26px; opacity: 0; font-style: normal; }
.pz-slide.is-active .pzv-heart { animation: pz-heart 2.4s 1.2s ease-out infinite; }
.pz-slide.is-active .pzv-heart.is-2 { animation-delay: 2s; right: 40px; }
.pz-slide.is-active .pzv-heart.is-3 { animation-delay: 2.8s; right: 26px; }
@keyframes pz-heart { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: translateY(-140px) scale(.8); } }

/* visual: logo */
.pzv-logo { position: relative; width: 280px; height: 280px; }
.pzv-sh { position: absolute; left: 50%; top: 44%; width: 90px; height: 90px; margin: -45px 0 0 -45px; }
.pzv-sq { background: var(--pz-y); border-radius: 14px; }
.pzv-ci { background: var(--pz-b); border-radius: 50%; }
.pzv-tr { background: var(--pz-g); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pz-slide.is-active .pzv-sq { animation: pz-sq 1.6s .5s cubic-bezier(.6, 0, .2, 1) both; }
.pz-slide.is-active .pzv-ci { animation: pz-ci 1.6s .5s cubic-bezier(.6, 0, .2, 1) both; }
.pz-slide.is-active .pzv-tr { animation: pz-tr 1.6s .5s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes pz-sq { from { transform: translate(-100px, -70px) rotate(-30deg); } 70% { transform: none; opacity: 1; } to { transform: scale(.2); opacity: 0; } }
@keyframes pz-ci { from { transform: translate(100px, -60px); } 70% { transform: none; opacity: 1; } to { transform: scale(.2); opacity: 0; } }
@keyframes pz-tr { from { transform: translate(0, 110px) rotate(40deg); } 70% { transform: none; opacity: 1; } to { transform: scale(.2); opacity: 0; } }
.pzv-mark { position: absolute; left: 50%; top: 44%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 30px; background: var(--pz-ac); display: grid; place-items: center; font-size: 72px; font-weight: 900; color: #fff; transform: scale(0); box-shadow: 0 20px 50px rgba(255, 61, 110, .45); }
.pz-slide.is-active .pzv-mark { animation: pz-mid2 .7s 2s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pz-mid2 { to { transform: scale(1); } }
.pzv-sw { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; }
.pzv-sw i { width: 40px; height: 40px; border-radius: 10px; background: var(--pz-ac); transform: scale(0); }
.pzv-sw i:nth-child(2) { background: #fff; border: 2px solid var(--pz-ac); }
.pzv-sw i:nth-child(3) { background: #141414; border: 2px solid #fff; }
.pzv-sw i:nth-child(4) { background: var(--pz-y); }
.pz-slide.is-active .pzv-sw i { animation: pz-mid2 .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.pz-slide.is-active .pzv-sw i:nth-child(1) { animation-delay: 2.5s; }
.pz-slide.is-active .pzv-sw i:nth-child(2) { animation-delay: 2.62s; }
.pz-slide.is-active .pzv-sw i:nth-child(3) { animation-delay: 2.74s; }
.pz-slide.is-active .pzv-sw i:nth-child(4) { animation-delay: 2.86s; }

/* visual: tools */
.pzv-tools { position: relative; width: 300px; height: 300px; }
.pzv-qr { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; padding: 12px; border-radius: 18px; background: #fff; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.pzv-qr i { border-radius: 4px; background: #141414; transform: scale(0); }
.pzv-qr i:nth-child(3n) { background: transparent; }
.pzv-qr i:nth-child(7), .pzv-qr i:nth-child(13) { background: var(--pz-ac); }
.pz-slide.is-active .pzv-qr i { animation: pz-mid2 .3s both; }
.pz-slide.is-active .pzv-qr i:nth-child(odd) { animation-delay: .6s; }
.pz-slide.is-active .pzv-qr i:nth-child(even) { animation-delay: .9s; }
.pz-slide.is-active .pzv-qr i:nth-child(4n) { animation-delay: 1.2s; }
.pzv-tile { position: absolute; padding: 10px 14px; border-radius: 14px; background: var(--pz-y); color: #141414; font-weight: 800; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); white-space: nowrap; opacity: 0; }
.pzv-tile.is-a { left: -10px; top: 18px; }
.pzv-tile.is-b { right: -20px; top: 120px; background: var(--pz-ac); color: #fff; }
.pzv-tile.is-c { left: 10px; bottom: 10px; background: var(--pz-b); color: #fff; }
.pz-slide.is-active .pzv-tile { animation: pz-popin .6s cubic-bezier(.3, 1.6, .5, 1) both, pz-float 3s ease-in-out infinite alternate; }
.pz-slide.is-active .pzv-tile.is-a { animation-delay: 1.5s, 2.1s; }
.pz-slide.is-active .pzv-tile.is-b { animation-delay: 1.75s, 2.35s; }
.pz-slide.is-active .pzv-tile.is-c { animation-delay: 2s, 2.6s; }
@keyframes pz-float { from { translate: 0 0; } to { translate: 0 -10px; } }

/* marquee (Selected work) */
.pz-l-marquee .pz-inner { max-width: none; padding-left: 0; padding-right: 0; }
.pz-l-marquee .pz-kicker, .pz-l-marquee .pz-mid, .pz-l-marquee .pz-text { padding: 0 56px; max-width: 980px; width: 100%; margin-left: auto !important; margin-right: auto !important; }
.pz-marquee { overflow: hidden; margin: 6px 0; transform: rotate(-2deg); }
.pz-marquee.is-rev { transform: rotate(-2deg); }
.pz-mq { display: inline-flex; gap: 22px; align-items: center; white-space: nowrap; animation: pz-mq 26s linear infinite; padding: 10px 0; }
.pz-marquee.is-rev .pz-mq { animation-direction: reverse; animation-duration: 32s; }
.pz-mq span { font-size: clamp(30px, 5vw, 58px); font-weight: 900; letter-spacing: -.03em; }
.pz-marquee.is-rev .pz-mq span { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); }
.pz-mq i { color: var(--pz-ac); font-style: normal; font-size: 26px; }
.pz-marquee:first-of-type { background: var(--pz-ac); }
@keyframes pz-mq { to { transform: translateX(-50%); } }
.pz-l-marquee .pz-text { margin-top: 18px !important; }

/* finale */
.pz-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.pz-chips span { padding: 10px 16px; border-radius: 99px; background: #fff; color: #141414; font-weight: 800; font-size: 15px; }
.pz-chips span:nth-child(2) { background: var(--pz-y); }
.pz-chips span:nth-child(3) { background: var(--pz-ac); color: #fff; }
.pz-chips span:nth-child(4) { background: var(--pz-b); color: #fff; }
.pz-burst { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pz-burst i { position: absolute; left: 80%; top: 30%; width: 12px; height: 12px; border-radius: 3px; background: var(--pz-ac); opacity: 0; }
.pz-burst i:nth-child(3n) { background: var(--pz-y); border-radius: 50%; }
.pz-burst i:nth-child(3n+1) { background: var(--pz-b); }
.pz-slide.is-active .pz-burst i { animation: pz-burst 1.6s 1s cubic-bezier(.2, .8, .2, 1) both; }
.pz-burst i:nth-child(1) { --tx: -160px; --ty: -120px; } .pz-burst i:nth-child(2) { --tx: 120px; --ty: -150px; } .pz-burst i:nth-child(3) { --tx: 180px; --ty: 40px; }
.pz-burst i:nth-child(4) { --tx: -60px; --ty: 160px; } .pz-burst i:nth-child(5) { --tx: -200px; --ty: 60px; } .pz-burst i:nth-child(6) { --tx: 40px; --ty: -200px; }
.pz-burst i:nth-child(7) { --tx: 150px; --ty: 150px; } .pz-burst i:nth-child(8) { --tx: -130px; --ty: -40px; } .pz-burst i:nth-child(9) { --tx: 90px; --ty: 90px; }
.pz-burst i:nth-child(10) { --tx: -90px; --ty: 120px; } .pz-burst i:nth-child(11) { --tx: 210px; --ty: -60px; } .pz-burst i:nth-child(12) { --tx: -20px; --ty: -140px; }
.pz-burst i:nth-child(13) { --tx: 60px; --ty: 190px; } .pz-burst i:nth-child(14) { --tx: -220px; --ty: -90px; }
@keyframes pz-burst { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(320deg); } }

/* controlli */
.pz-ui { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: linear-gradient(transparent, rgba(20, 20, 20, .9) 40%); }
.pz-count { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .6); min-width: 58px; }
.pz-count b { color: #fff; }
.pz-prog { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.pz-prog i { display: block; height: 100%; background: var(--pz-ac); border-radius: 4px; transition: width .6s cubic-bezier(.7, 0, .2, 1); }
.pz-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s, opacity .15s; padding: 0; }
.pz-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: #fff; }
.pz-btn:disabled { opacity: .3; cursor: default; }
.pz-btn.pz-next { background: var(--pz-ac); border-color: var(--pz-ac); }
.pz-btn.pz-next:hover:not(:disabled) { background: var(--pz-ac); filter: brightness(1.1); }
.pz-btn.is-on { background: #fff; color: #141414; }
.rsas-btn[data-pz-gate]:disabled { opacity: .45; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
	.pz-track-x { transition: none; }
	.pz-slide.is-active .pz-a, .pz-slide.is-active *, .pz-mq { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

@media (max-width: 860px) {
	.rsas-pres-card { padding: 12px !important; }
	.rsas-pres-head { padding: 6px 6px 0; }
	.rsas-pres { height: min(640px, calc(100svh - 150px)); min-height: 520px; border-radius: 18px; }
	.pz-inner { padding: 26px 20px 80px; overflow-y: auto; justify-content: safe center; scrollbar-width: none; }
	.pz-inner::-webkit-scrollbar { display: none; }
	.pz-big { font-size: clamp(44px, 14vw, 64px) !important; }
	.pz-claim { font-size: clamp(36px, 11vw, 52px) !important; }
	.pz-mid { font-size: 26px !important; margin-bottom: 12px !important; }
	.pz-text { font-size: 15px; }
	.pz-card { padding: 12px; gap: 3px; border-radius: 14px; }
	.pz-card strong { font-size: 15px; }
	.pz-card > span:last-child { font-size: 12px; }
	.pz-card-i { font-size: 24px; }
	.pz-cards { gap: 8px; }
	.pz-points li { padding: 7px 10px; }
	.pz-points span { font-size: 12.5px; }
	.pz-skill .pz-text { font-size: 14px; margin-bottom: 10px !important; }
	.pz-step-n { font-size: 34px; }
	.pz-steps strong { font-size: 16px; }
	.pz-steps li > span:last-child { font-size: 13px; }
	.pz-cards { grid-template-columns: 1fr 1fr; }
	.pz-card { min-height: 0; }
	.pz-card-i { margin-bottom: 6px; }
	.pz-steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
	.pz-track { display: none; }
	.pz-skill { grid-template-columns: 1fr; gap: 10px; }
	.pz-vis { display: none; }
	.pz-num { font-size: 52px; }
	.pz-venn { width: 300px; height: 170px; margin-bottom: 18px; }
	.pz-c { width: 170px; height: 170px; font-size: 16px; }
	.pz-c-l { padding-right: 50px; }
	.pz-c-r { padding-left: 50px; }
	.pz-c-mid { font-size: 14px; padding: 6px 12px; }
	.pz-l-marquee .pz-kicker, .pz-l-marquee .pz-mid, .pz-l-marquee .pz-text { padding: 0 22px; }
	.pz-blob { width: 300px; height: 300px; right: -100px; top: -100px; }
	.pz-ring { display: none; }
	.pz-ui { padding: 12px 14px; gap: 6px; }
	.pz-btn { width: 38px; height: 38px; }
	.pz-noise span:nth-child(n+9) { display: none; }
}

/* ------------------------------------------------------------------ */
/* Figurine                                                            */
/* ------------------------------------------------------------------ */
.rsas-img-fig { position: absolute; top: 6px; left: 6px; height: 28px; border-radius: 99px; border: 0; background: rgba(20, 20, 20, .7); color: #fff; cursor: pointer; font-size: 13px; font-weight: 800; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; opacity: 0; transition: opacity .15s, background .15s; font-family: inherit; }
.rsas-img-fig span { font-size: 11px; }
.rsas-img-fig span:empty { display: none; }
.rsas-img:hover .rsas-img-fig, .rsas-img-fig:focus-visible, .rsas-img-fig[aria-pressed="true"] { opacity: 1; }
.rsas-img-fig[aria-pressed="true"] { background: #ffd23f; color: #141414; }
.rsas-img.is-fig { box-shadow: 0 0 0 3px #ffd23f; }

.rsas-figs { position: fixed; z-index: 985; left: 18px; top: calc(50% - 130px); width: 150px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; pointer-events: none; }
.rsas-figs.is-shown { opacity: 1; visibility: visible; }
.rsas-figs.is-shown .rsas-figs-bar, .rsas-figs.is-shown .rsas-fig, .rsas-figs.is-shown .rsas-figs-empty { pointer-events: auto; }
.rsas-figs-stack { position: relative; height: 196px; }
.rsas-fig {
	--fc: #ff3d6e; --r: 0deg; --sx: 0px; --sy: 0px;
	position: absolute; left: 0; top: 0; width: 140px; margin: 0; padding: 7px 7px 24px; background: #fff; border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 24px rgba(20, 20, 20, .18); transform: translate(var(--sx), var(--sy)) rotate(var(--r));
	cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.rsas-fig img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: #f2f0eb; pointer-events: none; }
.rsas-fig figcaption { position: absolute; left: 8px; right: 8px; bottom: 5px; font-size: 10.5px; font-weight: 800; color: #4a463f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; letter-spacing: .02em; }
.rsas-fig-c { position: absolute; width: 22px; height: 22px; background: var(--fc); opacity: .85; z-index: 1; pointer-events: none; }
.rsas-fig-c.is-tl { left: 3px; top: 3px; clip-path: polygon(0 0, 100% 0, 0 100%); border-top-left-radius: 4px; }
.rsas-fig-c.is-tr { right: 3px; top: 3px; clip-path: polygon(0 0, 100% 0, 100% 100%); border-top-right-radius: 4px; }
.rsas-fig-c.is-bl { left: 3px; bottom: 20px; clip-path: polygon(0 0, 100% 100%, 0 100%); border-bottom-left-radius: 4px; }
.rsas-fig-c.is-br { right: 3px; bottom: 20px; clip-path: polygon(100% 0, 100% 100%, 0 100%); border-bottom-right-radius: 4px; }
.rsas-fig:focus-visible { outline: 3px solid var(--fc); outline-offset: 3px; }
.rsas-figs-stack:hover .rsas-fig:not(.is-free) { transform: translate(calc(var(--sx) * 2.2), calc(var(--sy) * 2.2)) rotate(calc(var(--r) * 1.4)); }
.rsas-app { position: relative; }
.rsas-figs-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 984; pointer-events: none; }
.rsas-figs-layer.is-hidden { display: none; }
.rsas-fig.is-free { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1px); transform: rotate(var(--r)); pointer-events: auto; }
.rsas-fig.is-drag { cursor: grabbing; transition: box-shadow .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 24px 50px rgba(20, 20, 20, .32); transform: rotate(var(--r)) scale(1.06); }
.rsas-fig.is-new { animation: rsas-fig-in .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes rsas-fig-in { from { opacity: 0; transform: translate(-60px, 20px) rotate(-30deg) scale(.6); } }
.rsas-figs-stack.is-target::after { content: "Rilascia qui per rimetterla nella pila"; position: absolute; inset: -8px; border: 2px dashed var(--rsas-accent, #ff3d6e); border-radius: 12px; display: grid; place-items: end center; padding: 0 6px 6px; font-size: 11px; font-weight: 800; color: var(--rsas-accent, #ff3d6e); text-align: center; background: rgba(255, 61, 110, .06); pointer-events: none; }

.rsas-figs-bar { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.rsas-figs-count { font-size: 12px; font-weight: 700; color: var(--rsas-muted, #77736b); margin-right: auto; white-space: nowrap; }
.rsas-figs-count b { color: var(--rsas-text, #1b1b1b); }
.rsas-figs-btn { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; border: 1.5px solid var(--rsas-line, #e7e4de); background: #fff; color: #141414; cursor: pointer; display: grid; place-items: center; font-size: 15px; font-weight: 800; padding: 0; margin: 0; transition: border-color .15s, background .15s; }
.rsas-figs-btn:hover { border-color: #141414; }
.rsas-figs-btn.is-busy { opacity: .5; pointer-events: none; }
.rsas-figs-empty { font-size: 12px; line-height: 1.4; color: var(--rsas-muted, #77736b); background: #fff; border: 1.5px dashed var(--rsas-line, #e7e4de); border-radius: 12px; padding: 10px; margin: -190px 0 0 !important; height: 186px; }
.rsas-figs.is-hidden .rsas-figs-stack, .rsas-figs.is-hidden .rsas-figs-empty { visibility: hidden; opacity: 0; pointer-events: none !important; }
.rsas-figs.is-hidden [data-rsas-fig-hide] { background: #141414; color: #fff; }

.rsas-figbox { position: fixed; inset: 0; z-index: 1000004; background: rgba(10, 10, 10, .88); display: grid; place-items: center; padding: 24px; animation: rsas-fade .15s both; }
.rsas-figbox-in { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1000px, 100%); max-height: 100%; }
.rsas-figbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); border: 8px solid #fff; }
.rsas-figbox-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.rsas-figbox-bar span { margin-right: 8px; }
.rsas-figbox-bar button { border: 0; border-radius: 99px; padding: 9px 16px; font: inherit; font-weight: 800; cursor: pointer; background: #fff; color: #141414; }
.rsas-figbox-bar button.is-dark { background: rgba(255, 255, 255, .14); color: #fff; }

@media (max-width: 1100px) {
	.rsas-figs { width: 104px; left: 10px; }
	.rsas-figs-stack { height: 148px; }
	.rsas-fig { width: 100px; padding: 5px 5px 18px; }
	.rsas-fig figcaption { font-size: 9px; bottom: 3px; }
	.rsas-fig-c { width: 16px; height: 16px; }
	.rsas-fig-c.is-bl, .rsas-fig-c.is-br { bottom: 15px; }
	.rsas-figs-count { display: none; }
	.rsas-figs-empty { font-size: 10.5px; margin-top: -142px !important; height: 138px; padding: 8px; overflow: hidden; }
}
@media (max-width: 700px) {
	.rsas-figs { top: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); width: 78px; left: 8px; }
	.rsas-figs-stack { height: 108px; }
	.rsas-fig { width: 74px; padding: 4px 4px 14px; border-radius: 5px; }
	.rsas-fig figcaption { display: none; }
	.rsas-fig-c { width: 12px; height: 12px; }
	.rsas-fig-c.is-bl, .rsas-fig-c.is-br { bottom: 11px; }
	.rsas-figs-bar { gap: 4px; }
	.rsas-figs-btn { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }
	.rsas-figs-empty { display: none; }
}

/* ------------------------------------------------------------------ */
/* Minigiochi da brief (v1.8)                                          */
/* ------------------------------------------------------------------ */
.rsas-ch.is-mini { border-color: #ffd23f; background: linear-gradient(180deg, #fffbea, #fff 46%); }
.rsas-ch.is-mini .rsas-ch-icon { background: #ffd23f; }
.rsas-ch-client { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 12px; background: #141414; color: #fff; }
.rsas-ch-client span { font-weight: 800; font-size: 14px; }
.rsas-ch-client small { font-size: 12px; opacity: .7; }
.rsas-mg-brief { text-align: left; border-radius: 16px; background: #141414; color: #fff; padding: 16px 18px; margin: 0 0 14px; }
.rsas-mg-brief p { margin: 8px 0 0 !important; color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.5; }
.rsas-mg-client { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rsas-mg-client span { font-weight: 800; font-size: 16px; }
.rsas-mg-client small { font-size: 12px; color: #ffd23f; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.rsas-intro .rsas-intro-meta span:last-child:not(:first-child) { white-space: nowrap; }
.rsas-mg { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1100px; margin: 0 auto; align-items: start; }
.rsas-mg-col { background: #fff; border: 1.5px solid var(--rsas-line); border-radius: 22px; padding: 20px; }
.rsas-mg-col h3 { font-size: 17px !important; margin: 4px 0 10px !important; }
.rsas-mg-checks { display: grid; gap: 8px; }
.rsas-mg-checks label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #faf9f6; cursor: pointer; font-size: 14.5px; line-height: 1.4; border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.rsas-mg-checks input { width: 20px !important; height: 20px; margin: 0 !important; flex: 0 0 20px; accent-color: var(--rsas-ok, #17a673); }
.rsas-mg-checks label:has(input:checked) { background: #eaf8f1; border-color: #bfe8d4; }
.rsas-mg-checks label:has(input:checked) span { text-decoration: line-through; text-decoration-color: rgba(23, 166, 115, .5); }
.rsas-mg-up { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rsas-mg-up h3 { margin: 0 !important; }
.rsas-mg [data-mg-count] { margin: 10px 0 0 !important; }
.rsas-mg .rsas-imgs { min-height: 0; }
.rsas-mg .rsas-f { display: block; margin-top: 14px; font-weight: 700; font-size: 14px; }
@media (max-width: 860px) {
	.rsas-mg { grid-template-columns: 1fr; gap: 12px; }
	.rsas-mg-col { padding: 16px; border-radius: 18px; }
}
