/* =====================================================================
   LIVELLO 2 · intro, aurora, nastri, scorrimento bloccato, chat
   ===================================================================== */

/* intro: le particelle scrivono "Polibop", poi la pagina entra */
body.intro .eyebrow { animation-delay: 2.3s; }
body.intro .hero-logo { animation-delay: 2.45s; }
body.intro .tagline { animation-delay: 3.2s; }
body.intro .cta { animation-delay: 3.45s; }
body.intro .phone-wrap { animation-delay: 2.9s; }
body.intro .topbar { animation-delay: 3.4s; }
body.intro .scroll-hint { animation-delay: 4s; }

/* aurora: macchie di luce che si muovono lente dietro a tutto */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; mix-blend-mode: screen; opacity: .55; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); }
.aurora i:nth-child(1) { left: -20vmax; top: -25vmax; background: radial-gradient(circle, rgba(255,90,30,.35), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: -25vmax; top: 20vh; background: radial-gradient(circle, rgba(255,170,60,.22), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: 20vw; bottom: -35vmax; background: radial-gradient(circle, rgba(180,50,120,.18), transparent 65%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(30vw, 25vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-35vw, 30vh) scale(.85); } }
@keyframes drift3 { to { transform: translate(-15vw, -40vh) scale(1.15); } }

/* onda d'urto al clic */
.burst { position: fixed; z-index: 98; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; border: 2px solid var(--orange); box-shadow: 0 0 30px var(--orange), inset 0 0 20px rgba(255,107,44,.6); animation: burst .9s var(--ease) forwards; }
@keyframes burst { to { transform: scale(26); opacity: 0; border-width: .5px; } }

/* titolo: onda di lettere al passaggio */
.title .ch { transition: transform .45s var(--ease), filter .45s; }
.title:hover .ch { transform: translateY(-.08em) rotate(-2deg); }
.title:hover .ch:nth-child(even) { transform: translateY(.06em) rotate(2deg); }

/* ---------- nastri giganti ---------- */
.band { position: relative; z-index: 3; padding: 40px 0; overflow: hidden; transform: rotate(-3deg); margin: 20px -5vw; }
.band-row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.band-row span { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 9vw, 7.5rem); letter-spacing: -.04em; line-height: 1.05; padding-right: .3em;
  background: linear-gradient(90deg, #fff, #ffd2b3 40%, var(--orange) 70%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band-row.outline span { background: none; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 140, 70, .5); }

/* ---------- COME FUNZIONA: sezione bloccata ---------- */
.story { position: relative; z-index: 3; height: 460vh; --sp: 0; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
@media (max-width: 860px) { .story-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: center; gap: 10px; padding-top: 80px; } }
.story-text { position: relative; }
.steps { position: relative; height: 330px; margin-top: 18px; }
@media (max-width: 860px) { .steps { height: 180px; } }
.step { position: absolute; inset: 0; opacity: 0; transform: translateY(40px) rotateX(-25deg); filter: blur(14px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); transform-origin: 0 100%; pointer-events: none; }
.story[data-step="0"] .step[data-i="0"], .story[data-step="1"] .step[data-i="1"], .story[data-step="2"] .step[data-i="2"], .story[data-step="3"] .step[data-i="3"] { opacity: 1; transform: none; filter: none; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--orange); letter-spacing: .2em; }
.step h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(2.2rem, 5.2vw, 4.4rem); margin: 10px 0 16px; }
.step h2 em { font-style: normal; background: linear-gradient(90deg, var(--orange), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 42ch; margin: 0; }
@media (max-width: 860px) { .step h2 { font-size: 2rem; } .step p { font-size: .95rem; margin: 0 auto; } .story-text { text-align: center; } }
.story-dots { display: flex; gap: 10px; margin-top: 18px; }
@media (max-width: 860px) { .story-dots { justify-content: center; } }
.story-dots i { width: 34px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; position: relative; }
.story-dots i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--orange), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.story[data-step="0"] .story-dots i:nth-child(1)::after,
.story[data-step="1"] .story-dots i:nth-child(-n+2)::after,
.story[data-step="2"] .story-dots i:nth-child(-n+3)::after,
.story[data-step="3"] .story-dots i::after { transform: scaleX(1); box-shadow: var(--glow); }

.story-stage { display: flex; justify-content: center; perspective: 1600px; }
.big-phone {
  position: relative; width: min(330px, 72vw); aspect-ratio: 9 / 19; border-radius: 50px; padding: 12px;
  background: linear-gradient(145deg, #2c2532, #09070c 60%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 140px rgba(0,0,0,.75), 0 0 120px rgba(255,107,44,.3);
  transform: rotateY(calc(-22deg + var(--sp) * 44deg)) rotateX(calc(8deg - var(--sp) * 6deg)) rotateZ(calc(-3deg + var(--sp) * 6deg));
  transition: transform .2s linear;
}
@media (max-width: 860px) { .big-phone { width: auto; height: min(54vh, 480px); } }
.big-screen { position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: #000; }
.scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.12); filter: blur(10px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s; }
.story[data-step="0"] .scr-feed, .story[data-step="1"] .scr-stories, .story[data-step="2"] .scr-live, .story[data-step="3"] .scr-map { opacity: 1; transform: none; filter: none; }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx b { position: absolute; bottom: 18%; font-size: 26px; animation: fly var(--t, 2.6s) var(--ease) forwards; }
@keyframes fly { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 15% { opacity: 1; transform: translate(calc(var(--x) * .2), -40px) scale(1.15); } 100% { transform: translate(var(--x), -360px) scale(.7) rotate(var(--r)); opacity: 0; } }

/* feed */
.feed-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #ff8a3d 0%, #d4486b 38%, #3b1a5c 70%, #0b0716 100%); background-size: 100% 220%; animation: sky 9s ease-in-out infinite alternate; }
.feed-bg::before { content: ''; position: absolute; left: 50%; top: 34%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(circle, #ffe6a8, #ffb04d 50%, transparent 70%); filter: blur(2px); animation: sun 9s ease-in-out infinite alternate; }
.feed-bg::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 42%; background: repeating-linear-gradient(170deg, rgba(10,8,30,.95) 0 14px, rgba(30,20,70,.9) 14px 22px); animation: waves 4s linear infinite; }
@keyframes sky { to { background-position: 0 100%; } }
@keyframes sun { to { transform: translateY(70px) scale(.9); } }
@keyframes waves { to { background-position: 0 44px; } }
.feed-top { position: absolute; top: 44px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.75); }
.feed-top b { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.feed-col { position: absolute; right: 12px; bottom: 120px; display: flex; flex-direction: column; gap: 16px; }
.feed-col i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); }
.feed-col .fire { background: var(--orange); animation: beat 1s infinite; box-shadow: var(--glow); }
.feed-cap { position: absolute; left: 16px; right: 70px; bottom: 34px; color: #fff; font-size: .82rem; text-shadow: 0 1px 6px #000; }
.feed-cap b { display: block; font-size: .92rem; margin-bottom: 3px; }

/* storie */
.scr-stories { background: #0c0a10; }
.st-row { display: flex; gap: 10px; padding: 52px 14px 0; }
.st-row i { width: 54px; height: 54px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--orange), var(--amber), #ff3d77, var(--orange)); animation: spin 3s linear infinite; }
.st-row i::after { content: ''; display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #0c0a10; background: linear-gradient(135deg, #4a3a5c, #1b1422); }
.st-row i:nth-child(2) { animation-duration: 4s; }
.st-row i:nth-child(3) { animation-duration: 5s; }
.st-row i:nth-child(4) { animation-duration: 3.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-full { position: absolute; left: 10px; right: 10px; top: 124px; bottom: 12px; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, #1f6feb, #7b2ff7 50%, #ff3d77); background-size: 200% 200%; animation: grad 6s ease infinite alternate; }
@keyframes grad { to { background-position: 100% 100%; } }
.st-bars { display: flex; gap: 4px; padding: 12px 12px 0; }
.st-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.st-bars i::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.st-bars i:nth-child(1)::after { transform: scaleX(1); }
.story[data-step="1"] .st-bars i:nth-child(2)::after { animation: storybar 3s linear infinite; }
@keyframes storybar { to { transform: scaleX(1); } }
.st-user { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #fff; font-size: .78rem; }
.st-user span { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--orange)); border: 2px solid #fff; }
.st-sticker { position: absolute; left: 50%; top: 48%; translate: -50% -50%; padding: 10px 16px; border-radius: 16px; background: #fff; color: #150803; font-weight: 800; font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: wobble 2.4s ease-in-out infinite; white-space: nowrap; }
@keyframes wobble { 50% { transform: rotate(-6deg) scale(1.08); } }
.st-reply { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 11px 16px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,.7); color: rgba(255,255,255,.85); font-size: .8rem; }

/* live */
.live-bg { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 30%, #5a2a1a, #120a10 70%); }
.live-bg::after { content: ''; position: absolute; left: 50%; top: 22%; width: 150px; height: 190px; margin-left: -75px; border-radius: 75px 75px 30px 30px; background: linear-gradient(180deg, #ffcf9e, #ff8a4a 40%, #7a2c16); filter: blur(1px); opacity: .85; animation: breathe 3s ease-in-out infinite; }
.live-top { position: absolute; top: 44px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.live-badge { padding: 4px 10px; border-radius: 8px; background: #ff2d55; color: #fff; font-weight: 900; font-size: .75rem; letter-spacing: .08em; box-shadow: 0 0 18px #ff2d55; animation: pulse 1.2s infinite; }
.live-view { padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.4); color: #fff; font-size: .75rem; }
.live-battle { position: absolute; top: 80px; left: 14px; right: 14px; }
.live-battle div { height: 8px; border-radius: 8px; background: #3b82f6; overflow: hidden; }
.live-battle i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--orange), var(--amber)); box-shadow: var(--glow); transition: width 1s var(--ease); }
.live-battle span { position: absolute; top: 12px; left: 0; color: #fff; font-weight: 800; font-size: .72rem; }
.live-battle span + span { left: auto; right: 0; }
.live-chat { position: absolute; left: 12px; right: 70px; bottom: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 46%; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 30%); mask: linear-gradient(transparent, #000 30%); }
.live-chat p { margin: 0; padding: 6px 10px; border-radius: 14px; background: rgba(0,0,0,.42); color: #fff; font-size: .74rem; align-self: flex-start; animation: chatin .5s var(--ease); }
.live-chat p b { color: var(--amber); margin-right: 4px; }
.live-chat p.gift { background: linear-gradient(90deg, rgba(255,107,44,.85), rgba(255,201,60,.7)); color: #150803; font-weight: 700; }
.live-chat p.gift b { color: #150803; }
@keyframes chatin { from { transform: translateY(20px) scale(.9); opacity: 0; } }
.fx .gift-fly { left: 40%; bottom: 30%; font-size: 44px; animation: giftfly 2.2s var(--ease) forwards; }
@keyframes giftfly { 0% { transform: translate(-140px, 0) scale(.2) rotate(-30deg); opacity: 0; } 25% { transform: translate(0, -60px) scale(1.4) rotate(8deg); opacity: 1; } 70% { transform: translate(20px, -90px) scale(1.1); opacity: 1; } 100% { transform: translate(60px, -200px) scale(.4); opacity: 0; } }

/* mappa */
.scr-map { background: radial-gradient(circle at 50% 45%, #1c1424, #07060a 75%); }
.scr-map::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; }
.map-roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-roads path { fill: none; stroke: rgba(255,140,70,.35); stroke-width: 3; stroke-dasharray: 700; stroke-dashoffset: 700; }
.story[data-step="3"] .map-roads path { animation: draw 2.2s var(--ease) forwards; }
.story[data-step="3"] .map-roads path:nth-child(2) { animation-delay: .2s; }
.story[data-step="3"] .map-roads path:nth-child(3) { animation-delay: .4s; }
.story[data-step="3"] .map-roads path:nth-child(4) { animation-delay: .6s; }
.story[data-step="3"] .map-roads path:nth-child(5) { animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.radar { position: absolute; left: 50%; top: 46%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,107,44,.45), transparent 22%); animation: spin 3.2s linear infinite; -webkit-mask: radial-gradient(circle, #000 0 69%, transparent 70%); mask: radial-gradient(circle, #000 0 69%, transparent 70%); }
.pins span { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,107,44,.25), var(--glow); animation: pin .6s var(--ease) backwards; }
.pins span::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 1.8s infinite; }
@keyframes pin { from { transform: scale(0) translateY(-30px); } }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }
.map-chip { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; padding: 9px 16px; border-radius: 99px; background: rgba(20,16,26,.85); border: 1px solid rgba(255,107,44,.4); color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; box-shadow: var(--glow); }

/* ---------- ASSISTENTE IN CHAT ---------- */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 66px; height: 66px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: none; opacity: 0; transform: scale(0); animation: fab-in .9s var(--ease) 4.2s forwards; }
@keyframes fab-in { to { opacity: 1; transform: none; } }
.ai-fab::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--orange), var(--amber), #ff3d77, var(--orange)); animation: spin 2.6s linear infinite; }
.ai-fab::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,107,44,.5); animation: ping 2.2s infinite; }
.ai-fab.open::after { animation: none; opacity: 0; }
.ai-core { position: absolute; inset: 2px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #3a2a40, #0d0a12 70%); overflow: hidden; z-index: 1; }
.ai-core i { position: absolute; width: 140%; height: 140%; background: conic-gradient(from 90deg, transparent, rgba(255,107,44,.5), transparent 40%); animation: spin 4s linear infinite reverse; }
.ai-core svg { position: relative; width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.ai-fab.open .ai-core svg { transform: rotate(90deg) scale(.9); }
.ai-tip { position: fixed; right: 100px; bottom: 36px; z-index: 90; padding: 10px 16px; border-radius: 16px 16px 4px 16px; background: rgba(28,23,33,.92); border: 1px solid rgba(255,107,44,.45); color: var(--text); font-weight: 700; font-size: .9rem; box-shadow: 0 14px 40px rgba(0,0,0,.5), var(--glow); backdrop-filter: blur(10px); pointer-events: none; opacity: 0; transform: translateX(16px) scale(.8); transition: opacity .5s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.ai-tip.show { opacity: 1; transform: none; animation: tipbob 2.4s ease-in-out infinite; }
@keyframes tipbob { 50% { translate: 0 -5px; } }
@media (max-width: 560px) { .ai-tip { right: 92px; bottom: 34px; font-size: .82rem; } }

.ai-panel {
  position: fixed; right: 22px; bottom: 100px; z-index: 91; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 130px));
  display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: linear-gradient(170deg, rgba(34, 27, 40, .82), rgba(10, 8, 14, .92));
  border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 80px rgba(255,107,44,.18);
  transform-origin: calc(100% - 33px) calc(100% + 45px);
  opacity: 0; transform: scale(.2) translateY(40px); filter: blur(14px); visibility: hidden;
  transition: opacity .45s var(--ease), transform .7s cubic-bezier(.2, 1.4, .3, 1), filter .45s, visibility 0s .7s;
}
.ai-panel.open { opacity: 1; transform: none; filter: none; visibility: visible; transition: opacity .45s var(--ease), transform .7s cubic-bezier(.2, 1.4, .3, 1), filter .45s, visibility 0s; }
@media (max-width: 560px) { .ai-panel { right: 12px; bottom: 96px; } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,107,44,.12), transparent); }
.ai-avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--amber)); box-shadow: var(--glow); flex: none; }
.ai-avatar svg { width: 22px; height: 22px; fill: none; stroke: #150803; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-avatar::after { content: ''; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #34c759; border: 2px solid #1a1420; }
.ai-head b { display: block; font-family: var(--display); font-size: 1.08rem; }
.ai-head small { color: var(--muted); }
.ai-x { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .3s, transform .4s var(--ease); }
.ai-x:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }
.ai-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.ai-list { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 85%; padding: 11px 15px; border-radius: 20px; font-size: .93rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: msgin .55s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes msgin { from { opacity: 0; transform: translateY(16px) scale(.85); filter: blur(4px); } }
.ai-msg.bot { align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.ai-msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #150803; font-weight: 600; border-bottom-right-radius: 6px; transform-origin: 100% 100%; box-shadow: 0 8px 26px rgba(255,107,44,.35); }
.ai-msg.err { border-color: rgba(255, 80, 80, .5); color: #ffc1c1; }
.ai-msg .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--orange); animation: pulse .8s infinite; }
.ai-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid var(--line); animation: msgin .4s var(--ease); }
.ai-typing[hidden] { display: none; }
.ai-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: dots 1.1s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-7px); opacity: 1; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.ai-chips[hidden] { display: none; }
.ai-chips button { border: 1px solid rgba(255,107,44,.4); background: rgba(255,107,44,.08); color: var(--text); font: 600 .84rem var(--font); padding: 8px 13px; border-radius: 99px; cursor: pointer; opacity: 0; animation: chipin .5s var(--ease) forwards; transition: background .3s, transform .3s var(--ease); }
.ai-chips button:hover { background: rgba(255,107,44,.22); transform: translateY(-2px); }
@keyframes chipin { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.ai-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px 8px; border-top: 1px solid var(--line); margin: 0; }
.ai-form textarea { flex: 1; resize: none; max-height: 120px; min-height: 46px; padding: 12px 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); font: 500 .95rem var(--font); line-height: 1.4; transition: border-color .3s, box-shadow .3s; }
.ai-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,107,44,.15); }
.ai-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 8px 24px rgba(255,107,44,.45); transition: transform .4s var(--ease); }
.ai-send:hover { transform: scale(1.08) rotate(-12deg); }
.ai-send:disabled { opacity: .5; }
.ai-send svg { width: 20px; height: 20px; fill: none; stroke: #150803; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ai-note { margin: 0; padding: 0 16px 12px; color: var(--muted); font-size: .72rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story-pin { position: relative; height: auto; padding: 100px 0; }
  .band-row { transform: none !important; }
}

/* ---------- sfere di vetro che fluttuano ---------- */
.floaty-layer { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; overflow: visible; z-index: 2; }
.floaty { position: absolute; display: block; will-change: transform; }
.floaty-in {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.38), rgba(255,255,255,.06) 42%, rgba(255,107,44,.12) 70%, rgba(255,154,61,.05));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 0 18px rgba(255,255,255,.12), 0 12px 40px rgba(255,107,44,.28), 0 0 0 1px rgba(255,107,44,.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: floatBob var(--t, 7s) ease-in-out var(--dl, 0s) infinite alternate;
}
.floaty-in::after {
  content: ""; position: absolute; top: 12%; left: 20%; width: 34%; height: 20%; border-radius: 50%;
  background: rgba(255,255,255,.45); filter: blur(3px); transform: rotate(-30deg);
}
.floaty.far .floaty-in { filter: blur(1.5px); backdrop-filter: none; -webkit-backdrop-filter: none; }
@keyframes floatBob {
  0% { transform: translate3d(0, 0, 0) rotate(calc(var(--a, 0deg) * -1)) scale(1); }
  50% { transform: translate3d(14px, -26px, 0) rotate(var(--a, 0deg)) scale(1.06); }
  100% { transform: translate3d(-10px, -48px, 0) rotate(calc(var(--a, 0deg) * .5)) scale(.97); }
}
html, body { overflow-x: clip; }
@media (max-width: 760px) { .floaty-in { backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .floaty-layer { display: none; } }
/* niente scorrimento orizzontale sul telefono: nastro inclinato e sfere restano dentro lo schermo */
main#top { overflow-x: clip; }
body { position: relative; }
.floaty-layer { inset: 0; height: auto; overflow: hidden; }
.st-row { overflow: hidden; }
.st-row i { flex: none; }
.st-user { white-space: nowrap; }
@media (max-width: 860px) { .st-row i { width: 44px; height: 44px; } }

/* ---------- Pulsanti degli store ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.download .stores { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28);
  text-decoration: none; text-align: left; line-height: 1.1;
  transition: transform .15s ease, border-color .2s, box-shadow .2s;
}
.store:hover { color: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.store:active { transform: scale(.97); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: .7rem; font-weight: 500; opacity: .85; }
.store strong { display: block; font-size: 1.12rem; font-weight: 700; }
@media (max-width: 900px) { .stores { width: 100%; justify-content: center; } }
@media (max-width: 380px) { .store { padding: 0 14px 0 12px; } .store strong { font-size: 1rem; } }

