:root { --navy:#0b1638; --navy2:#1b2a6b; --violet:#5b13f5; --red:#c8102e; --ink:#1f2433; --muted:#6b7183; --line:#dfe2ea; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Barlow', 'Lato', sans-serif; background: #0e1430; color: #fff; min-height: 100vh; }
.layout { max-width: 1100px; margin: 0 auto; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
#stagewrap { position: relative; }
#stage { position: absolute; top: 0; left: 0; width: 540px; height: 960px; transform-origin: 0 0; overflow: hidden; background: #f4f5f9; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.45); color: var(--ink); }
html.capture body { background: #000; }
html.capture .layout { display: block; padding: 0; max-width: none; }
html.capture #stage { border-radius: 0; box-shadow: none; position: fixed; }
html.capture .panel { display: none; }

/* testata della guida */
#top { position: absolute; left: 0; right: 0; top: 0; height: 92px; background: linear-gradient(120deg, #a50d26, var(--red) 55%, #e2324c); display: flex; align-items: center; gap: 14px; padding: 0 18px; z-index: 5; color: #fff; }
#top .logo { width: 86px; height: 58px; background: #fff; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
#top .logo img { width: 76px; }
#top h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 27px; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
#chip { display: inline-block; margin-top: 6px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: 15px; }

/* finto browser / telefono */
#browser { position: absolute; left: 0; right: 0; top: 92px; height: 668px; background: #fff; }
#urlbar { height: 38px; background: #eceef3; display: flex; align-items: center; padding: 0 12px; gap: 8px; border-bottom: 1px solid #d6d9e2; }
#urlbar .u { flex: 1; background: #fff; border-radius: 999px; height: 26px; display: flex; align-items: center; padding: 0 12px; gap: 6px; font-size: 14px; color: #3a3f4f; font-family: 'Lato', sans-serif; }
#urlbar svg { width: 12px; height: 12px; }
#vp { position: absolute; top: 38px; left: 0; right: 0; bottom: 0; overflow: hidden; }
#page { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }

/* sottotitoli */
#subs { position: absolute; left: 0; right: 0; top: 760px; bottom: 0; background: #0b1638; color: #fff; padding: 20px 26px 0; z-index: 6; }
#subtxt { font-size: 25px; line-height: 1.28; font-weight: 600; min-height: 128px; display: flex; align-items: center; }
#prog { position: absolute; left: 26px; right: 26px; bottom: 26px; height: 6px; background: rgba(255,255,255,.18); border-radius: 9px; overflow: hidden; }
#pbar { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #ff6b81); }
#brand { position: absolute; right: 26px; bottom: 40px; font-size: 13px; opacity: .65; font-weight: 600; letter-spacing: .04em; }

/* cursore */
#cursor { position: absolute; left: 0; top: 0; width: 34px; height: 34px; z-index: 20; pointer-events: none; transition: opacity .2s; margin: -4px 0 0 -6px; }
#cursor .ring { position: absolute; left: -14px; top: -10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(91,19,245,.28); transform: scale(0); }
#cursor.down .ring { transform: scale(1); }
#cursor svg { position: relative; width: 30px; height: 30px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }

/* scene a tutta area */
.scene { position: absolute; left: 0; right: 0; top: 92px; height: 668px; z-index: 4; display: none; padding: 34px 30px; }
.scene.on { display: block; }

/* pannello interattivo */
.panel { background: #151d40; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 20px; position: sticky; top: 12px; }
.panel h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; margin: 0 0 4px; text-transform: uppercase; }
.panel p { margin: 0 0 14px; color: #c4c9dd; font-size: 15px; line-height: 1.45; }
#play { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 18px; cursor: pointer; font-family: inherit; }
#play:hover { background: #a50d26; }
.seekrow { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-variant-numeric: tabular-nums; font-size: 14px; color: #c4c9dd; }
#seek { flex: 1; accent-color: var(--red); }
#chapters { display: grid; gap: 6px; }
#chapters button { text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #e7e9f3; padding: 9px 12px; border-radius: 10px; font: 600 15px 'Barlow', sans-serif; cursor: pointer; }
#chapters button:hover { background: rgba(255,255,255,.1); }
#chapters button.on { background: #fff; color: var(--navy); border-color: #fff; }
.panel .links { margin-top: 16px; font-size: 14px; color: #c4c9dd; line-height: 1.5; }
.panel a { color: #ffb3c0; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } .panel { position: static; } }
html.capture *, html.capture *::after { transition: none !important; animation: none !important; }
/* formato orizzontale 16:9 (video per PC) */
html.land body { width: 1280px; height: 720px; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #1b2a6b 0%, #0e1430 55%, #0b1024 100%); }
html.land #stage { position: fixed; left: 64px; top: 20px; height: 760px; transform: scale(.8947); border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.5); outline: 6px solid #1c2550; }
html.land #lpanel { position: fixed; left: 610px; top: 26px; right: 48px; bottom: 26px; display: flex; flex-direction: column; gap: 16px; color: #fff; font-family: 'Barlow', sans-serif; }
.lp-head { display: flex; align-items: center; gap: 16px; }
.lp-logo { width: 92px; height: 62px; background: #fff; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.lp-logo img { width: 80px; }
.lp-kick { display: block; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff8fa2; }
.lp-head h2 { margin: 2px 0 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 38px; line-height: 1; text-transform: uppercase; }
#lchap { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
#lchap li { display: flex; align-items: center; gap: 12px; padding: 5px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-weight: 600; font-size: 18px; color: #c9cee3; }
#lchap li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 14px; flex-shrink: 0; }
#lchap li.done { color: #8f96b5; }
#lchap li.done b { background: #1f7a46; color: #fff; }
#lchap li.on { background: #fff; color: #0b1638; font-weight: 800; }
#lchap li.on b { background: var(--red); color: #fff; }
html.land #subs { position: relative; top: auto; left: auto; right: auto; bottom: auto; margin-top: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); padding: 16px 22px 34px; }
html.land #subtxt { font-size: 25px; min-height: 96px; }
html.land #prog { left: 22px; right: 22px; bottom: 16px; }
html.land #brand { display: none; }
