/* /assets/css/home-anim.css
   Animazioni HTML della home (al posto dei video): lo smartphone dell'hero (.ha) e il Live Wall (.wa).
   Il disegno ha misure fisse (telefono 390 × 822, wall 1920 × 1080 o 1080 × 1920) e /assets/js/home-anim.js
   lo scala sulla larghezza del contenitore. Tutte le classi hanno il prefisso ha- o wa-: nessun conflitto con app.css.
   Nessuno stile in linea nel markup (CSP): le posizioni che cambiano nel tempo le imposta lo script via CSSOM. */

/* ================= Contenitori nella pagina ================= */
.hero-visual .phone-screen > .ha { display: block; }
.ha { position: relative; width: 100%; height: 100%; overflow: hidden; background: #FFF6EC; }
.wa { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0A1A30; }
.ha-stage, .wa-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.ha-stage *, .wa-stage * { box-sizing: border-box; }
.ha-stage p, .wa-stage p { margin: 0; }
.ha-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ================= Smartphone dell'hero ================= */
.ha-stage { width: 390px; height: 822px; background: #FFF6EC; color: #14345F; font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
.ha-d { font-family: "Jakarta", "Inter", sans-serif; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.ha-page { position: absolute; left: 0; top: 0; width: 390px; }
.ha-cover { position: relative; height: 262px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: #14345F; }
.ha-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ha-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 52, 95, .05) 30%, rgba(20, 52, 95, .75)); }
.ha-cin { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.ha-cin .ha-d { color: #fff; font-size: 34px; }
.ha-cin p { color: #FFECF2; font-size: 15px; }
.ha-pill { position: absolute; top: 16px; left: 18px; z-index: 2; background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 7px 12px 7px 8px; display: flex; align-items: center; gap: 6px; }
.ha-pill svg { width: 30px; height: 30px; }
.ha-pill b { font-family: "Jakarta", sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.ha-w1 { color: #E2366F; } .ha-w2 { color: #E89A1A; } .ha-w3 { color: #1877F2; }
.ha-tabs { background: #fff; border-bottom: 1px solid #EADCCB; padding: 10px 16px; display: flex; gap: 6px; }
.ha-tabs span { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid #EADCCB; display: inline-flex; align-items: center; color: #3C4A60; font-size: 14px; font-weight: 600; background: #fff; }
.ha-tabs span.is-on { background: #14345F; border-color: #14345F; color: #fff; }
.ha-up { padding: 18px 16px 30px; display: flex; flex-direction: column; gap: 14px; }
.ha-lead { font-size: 17px; line-height: 1.5; color: #3C4A60; }
.ha-hello { font-size: 16px; } .ha-hello strong { font-weight: 700; }
.ha-hello span { color: #A61E4D; text-decoration: underline; font-size: 14px; margin-left: 6px; }
.ha-ub { position: relative; min-height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 17px; background: #fff; border: 1px solid #E6D6C2; color: #14345F; }
.ha-ub.is-main { background: #E2366F; color: #fff; border-color: #E2366F; }
.ha-hint { font-size: 13px; color: #6B7689; text-align: center; }
.ha-card { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ha-card .ha-d { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.ha-card .ha-d svg { color: #E2366F; }
.ha-small { font-size: 14px; color: #6B7689; line-height: 1.45; }
.ha-q { display: flex; gap: 12px; align-items: center; }
.ha-q img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.ha-qi { flex: 1; font-size: 14px; }
.ha-bar { height: 8px; background: #F0E2D0; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.ha-bar i { display: block; height: 100%; width: 100%; background: #2BB673; transform-origin: 0 50%; }
.ha-ok { color: #1E8E57; font-weight: 600; }
.ha-ta { min-height: 74px; border: 1px solid #E6D6C2; border-radius: 12px; padding: 10px 12px; font-size: 15px; color: #14345F; }
.ha-ta.is-ph { color: #9AA3AF; }
.ha-btn { min-height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 0 16px; }
.ha-btn svg { width: 19px; height: 19px; }
.ha-btn.is-sec { border: 1.5px solid #14345F; background: #fff; color: #14345F; }
.ha-btn.is-rec { border-color: #D93A3A; background: #FDECEC; color: #B42318; }
.ha-btn.is-brand { background: #E2366F; color: #fff; width: 100%; }
.ha-recrow { display: flex; align-items: center; gap: 12px; }
.ha-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.ha-wave i { display: block; width: 4px; height: 28px; border-radius: 2px; background: #E2366F; }
.ha-player { display: flex; align-items: center; gap: 10px; background: #F4F1EC; border-radius: 22px; padding: 8px 12px; font-size: 13px; color: #3C4A60; }
.ha-player b { width: 0; height: 0; border-left: 11px solid #14345F; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ha-player i { flex: 1; height: 4px; background: #D8CFC3; border-radius: 2px; }
.ha-status { font-size: 14px; min-height: 21px; }
.ha-cam { position: absolute; inset: 0; background: #000; }
.ha-vf { position: absolute; left: 0; right: 0; top: 46px; height: 600px; overflow: hidden; }
.ha-vf > img { position: absolute; left: -20px; top: -20px; width: 430px; height: 640px; object-fit: cover; }
.ha-grid3 { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 33.1%, rgba(255,255,255,.25) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.25) 66.7%, transparent 66.9%),
  linear-gradient(180deg, transparent 33.1%, rgba(255,255,255,.25) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.25) 66.7%, transparent 66.9%); }
.ha-focus { position: absolute; left: 175px; top: 170px; width: 74px; height: 74px; border: 2px solid #FFD54A; border-radius: 6px; }
.ha-modes { position: absolute; left: 0; right: 0; top: 660px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #fff; }
.ha-modes span { margin: 0 12px; opacity: .6; } .ha-modes span.is-on { color: #FFD54A; opacity: 1; }
.ha-shut { position: absolute; left: 157px; top: 702px; width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; }
.ha-shut i { position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.ha-thumb { position: absolute; left: 44px; top: 716px; width: 48px; height: 48px; border-radius: 10px; background: #333; overflow: hidden; }
.ha-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ha-flash { position: absolute; inset: 0; background: #fff; }
.ha-gal { padding: 12px 4px 30px; }
.ha-gh { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 12px 12px; }
.ha-gh .ha-d { font-size: 21px; }
.ha-ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ha-t { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #EFE5D8; }
.ha-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ha-lk { position: absolute; right: 6px; bottom: 6px; background: rgba(255,255,255,.92); border-radius: 12px; padding: 2px 7px 2px 5px; display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #E2366F; }
.ha-lk svg { width: 14px; height: 14px; fill: #E2366F; stroke: #E2366F; }
.ha-nw { position: absolute; left: 6px; top: 6px; background: #E2366F; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.ha-heart { position: absolute; left: 0; top: 0; width: 90px; height: 90px; }
.ha-heart svg { width: 100%; height: 100%; fill: #fff; stroke: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.ha-tap { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: rgba(20, 52, 95, .28); border: 2px solid rgba(255, 255, 255, .9); }

/* ================= Live Wall ================= */
.wa-stage { background: #0A1A30; color: #fff; font-family: "Inter", system-ui, sans-serif; line-height: 1.4; }
.wa-land { width: 1920px; height: 1080px; } .wa-port { width: 1080px; height: 1920px; }
.wa-d { font-family: "Jakarta", "Inter", sans-serif; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.wa-wall { position: absolute; inset: 0; display: flex; flex-direction: column; }
.wa-head { position: relative; flex: none; }
.wa-hl { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wa-hl .wa-d { color: #fff; white-space: nowrap; }
.wa-count { color: #BCCBDF; font-weight: 500; white-space: nowrap; }
.wa-live { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.wa-live i { width: 14px; height: 14px; border-radius: 50%; background: #FF4D6D; display: inline-block; }
.wa-stagegrid { flex: 1; min-height: 0; display: grid; }
.wa-hero { position: relative; overflow: hidden; background: #12294A; }
.wa-slide { position: absolute; inset: 0; background: #12294A; overflow: hidden; }
.wa-bg { position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; opacity: .55; }
.wa-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wa-empty { position: absolute; left: 0; right: 0; top: 50%; margin: -20px 0 0; text-align: center; color: #BCCBDF; font-size: 34px; padding: 0 40px; }
.wa-new { position: absolute; background: #E2366F; color: #fff; font-weight: 700; }
.wa-by { position: absolute; background: rgba(18, 10, 26, .72); font-weight: 600; max-width: calc(100% - 48px); }
.wa-side { display: grid; min-height: 0; }
.wa-slot { position: relative; overflow: hidden; background: #12294A; }
.wa-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wa-foot { flex: none; display: flex; align-items: center; background: #14345F; }
.wa-qr { background: #fff; flex: none; }
.wa-qr img { display: block; width: 100%; height: auto; }
.wa-foot strong { color: #fff; }
.wa-kind { position: absolute; font-family: "Jakarta", sans-serif; font-weight: 800; color: #14345F; background: #FFB547; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.wa-scrim { position: absolute; inset: 0; background: rgba(8, 20, 40, .72); }
.wa-steps { position: absolute; display: flex; flex-direction: column; }
.wa-step { display: flex; align-items: center; color: #fff; }
.wa-step b { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #E2366F; font-family: "Jakarta", sans-serif; font-weight: 800; }
.wa-step span { font-family: "Jakarta", sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.wa-phone { position: absolute; background: #0B0F17; border-radius: 54px; padding: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #2A3242; }
.wa-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #FFF6EC; color: #14345F; display: flex; flex-direction: column; }
.wa-notch { position: absolute; top: 12px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: #0B0F17; border-radius: 16px; z-index: 3; }
.wa-pcover { height: 170px; flex: none; background: linear-gradient(135deg, #14345F, #1F4675); display: flex; align-items: flex-end; padding: 18px 22px; }
.wa-pcover div { color: #fff; font-family: "Jakarta", sans-serif; font-weight: 800; font-size: 25px; line-height: 1.1; }
.wa-pcover small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: 14px; color: #BCCBDF; margin-top: 4px; }
.wa-pbody { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.wa-hello { font-size: 18px; } .wa-hello strong { font-weight: 700; }
.wa-pbtn { border-radius: 16px; padding: 15px 16px; font-weight: 700; font-size: 17px; text-align: center; }
.wa-pbtn.is-main { background: #E2366F; color: #fff; }
.wa-pbtn.is-alt { background: #fff; border: 2px solid #14345F; }
.wa-ded { font-size: 14px; background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid #E6D6C2; color: #56647A; }
.wa-qitem { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 4px 14px rgba(20, 52, 95, .08); }
.wa-qitem img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.wa-qi { flex: 1; font-size: 14px; font-weight: 600; }
.wa-bar { height: 8px; background: #F0E2D0; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.wa-bar i { display: block; height: 100%; width: 100%; background: #2BB673; transform-origin: 0 50%; }
.wa-ok { color: #1E8E57; }
.wa-gbc { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 14px rgba(20, 52, 95, .08); }
.wa-gbc h4 { margin: 0; font-family: "Jakarta", sans-serif; font-size: 17px; }
.wa-gbc p { font-size: 13px; color: #56647A; }
.wa-gbc .wa-ta { height: 54px; border: 1px solid #E6D6C2; border-radius: 12px; }
.wa-gbc .wa-rec { align-self: flex-start; border: 2px solid #14345F; border-radius: 12px; padding: 7px 12px; font-weight: 700; font-size: 14px; }
.wa-toast { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: #14345F; border-radius: 18px; font-weight: 700; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.wa-ck { width: 34px; height: 34px; border-radius: 50%; background: #2BB673; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }

/* 16:9 */
.wa-land .wa-wall { padding: 34px; gap: 24px; }
.wa-land .wa-head { height: 64px; }
.wa-land .wa-hl .wa-d { font-size: 46px; }
.wa-land .wa-count { font-size: 24px; }
.wa-land .wa-live { font-size: 18px; }
.wa-land .wa-stagegrid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; }
.wa-land .wa-hero { border-radius: 30px; }
.wa-land .wa-new { top: 24px; left: 24px; padding: 10px 22px; border-radius: 18px; font-size: 24px; }
.wa-land .wa-by { left: 24px; bottom: 24px; padding: 12px 20px; border-radius: 16px; font-size: 26px; }
.wa-land .wa-side { grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wa-land .wa-slot { border-radius: 22px; }
.wa-land .wa-foot { height: 118px; gap: 24px; border-radius: 22px; padding: 12px 22px; font-size: 26px; }
.wa-land .wa-qr { width: 94px; border-radius: 10px; padding: 7px; }
.wa-land .wa-kind { right: 60px; top: 128px; font-size: 40px; padding: 14px 30px; border-radius: 20px; }
.wa-land .wa-steps { left: 150px; top: 300px; gap: 46px; }
.wa-land .wa-step { gap: 26px; } .wa-land .wa-step b { width: 72px; height: 72px; font-size: 36px; } .wa-land .wa-step span { font-size: 54px; }
.wa-land .wa-phone { width: 430px; height: 880px; right: 210px; top: 100px; }
.wa-land .wa-toast { right: 236px; top: 800px; padding: 16px 24px 16px 16px; font-size: 26px; }

/* 9:16 */
.wa-port .wa-wall { padding: 40px 36px; gap: 26px; }
.wa-port .wa-head { height: 140px; }
.wa-port .wa-hl { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.wa-port .wa-hl .wa-d { font-size: 54px; }
.wa-port .wa-count { font-size: 28px; }
.wa-port .wa-live { font-size: 20px; }
.wa-port .wa-stagegrid { grid-template-rows: minmax(0, 1fr) 300px; gap: 26px; }
.wa-port .wa-hero { border-radius: 34px; }
.wa-port .wa-new { top: 26px; left: 26px; padding: 12px 24px; border-radius: 18px; font-size: 28px; }
.wa-port .wa-by { left: 26px; bottom: 26px; padding: 14px 20px; border-radius: 16px; font-size: 28px; }
.wa-port .wa-side { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wa-port .wa-slot { border-radius: 22px; }
.wa-port .wa-foot { height: 150px; gap: 22px; border-radius: 24px; padding: 14px 22px; font-size: 27px; line-height: 1.3; }
.wa-port .wa-qr { width: 118px; border-radius: 10px; padding: 7px; }
.wa-port .wa-kind { right: 60px; top: 210px; font-size: 44px; padding: 14px 30px; border-radius: 20px; }
.wa-port .wa-steps { left: 80px; top: 250px; gap: 34px; }
.wa-port .wa-step { gap: 24px; } .wa-port .wa-step b { width: 70px; height: 70px; font-size: 34px; } .wa-port .wa-step span { font-size: 50px; }
.wa-port .wa-phone { width: 520px; height: 1060px; left: 280px; top: 620px; }
.wa-port .wa-toast { left: 150px; top: 1420px; padding: 18px 26px 18px 18px; font-size: 30px; }
