@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@300;500;700&family=Lexend+Deca:wght@300;500;700&display=swap');
:root{font-family:'Lexend Deca',sans-serif;color:#0f2959;background:#D4D3D4;font-synthesis:none;--ink:#0f2959;--aqua:#D4D3D4;--glass:#FFFFFFeb;--edge:#0f295920}*{box-sizing:border-box}html,body,#viewer{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #0052D4;outline-offset:3px}button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#canvas{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}header{position:absolute;top:28px;left:32px;right:32px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}header>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:12px;font:600 21px 'Lexend Deca',sans-serif;letter-spacing:-.6px}.brand-mark{font-size:48px;font-weight:500;color:#0052D4;line-height:1}.brand small{display:block;font:500 11px 'Lexend Deca',sans-serif;letter-spacing:.22em;margin-top:6px}.round{border:1px solid var(--edge);width:42px;height:42px;border-radius:50%;background:var(--glass);font:italic 22px Georgia,serif}.viewbar{position:absolute;top:29px;left:50%;transform:translateX(-50%);display:flex;border:1px solid var(--edge);padding:5px;background:var(--glass);border-radius:30px;backdrop-filter:blur(20px)}.viewbar button{border:0;background:transparent;border-radius:25px;padding:12px 20px;white-space:nowrap;font-size:14px}.viewbar button.active{background:var(--ink);color:white}.tools{position:absolute;right:30px;top:109px;display:flex;flex-direction:column;gap:7px}.tools button{width:52px;height:52px;display:grid;place-content:center;background:var(--glass);border:1px solid var(--edge);border-radius:14px;backdrop-filter:blur(16px);box-shadow:0 4px 20px #0f295906}.tools button span{display:none}.tools button[aria-pressed=true]{background:var(--ink);color:var(--aqua)}.tools button:hover{box-shadow:0 3px 16px #0f295920}.selection{position:absolute;left:35px;bottom:174px;width:350px;pointer-events:none;text-shadow:0 1px 16px #FFFFFF,0 1px 8px #FFFFFF}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:500}.selection h1{font:500 clamp(26px,2.6vw,40px)/1.06 'Lexend Deca',sans-serif;letter-spacing:-1.6px;margin:12px 0}.selection p{font-size:14px;line-height:1.6;margin:0;max-width:335px}.room-meta{display:block;font-size:11px;line-height:1.5;opacity:.75;margin-top:12px}.gesture{position:absolute;right:32px;bottom:170px;font-size:12px}footer{position:absolute;left:30px;right:30px;bottom:24px;border-radius:20px;background:var(--glass);border:1px solid #FFFFFF99;box-shadow:0 8px 60px #0f295916;padding:13px 18px 14px;backdrop-filter:blur(20px)}.footer-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.footer-top>span{font-size:10px;letter-spacing:.17em;font-weight:500;opacity:.65}.footer-top button{background:transparent;border:0;display:flex;align-items:center;gap:7px;font-size:13px;min-height:28px}.footer-top svg{height:14px;width:14px;fill:currentColor;stroke:currentColor}#places{display:flex;gap:7px;overflow:auto;scrollbar-width:none}#places::-webkit-scrollbar{display:none}.place{flex:1;min-width:100px;border:1px solid #0f295915;background:transparent;border-radius:10px;padding:10px 11px;text-align:left;white-space:nowrap;transition:.2s}.place span{display:block;font-size:10px;opacity:.5;margin-bottom:5px}.place b{font-size:12px;font-weight:500}.place.active{color:white;background:var(--ink);border-color:var(--ink)}.place.active span{color:var(--aqua);opacity:1}.place:hover{border-color:#0f295966}#labels{position:absolute;inset:0;pointer-events:none}.hotspot{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;background:#FFFFFFed;border:1px solid #FFFFFF;border-radius:25px;padding:8px 12px;box-shadow:0 4px 18px #0f295920;white-space:nowrap;font-size:12px;color:var(--ink)}.hotspot:before{content:'';width:5px;height:5px;background:#0052D4;border-radius:50%}.hotspot:hover{background:var(--ink);color:white}#countdown{display:flex;align-items:center;gap:16px;font-size:12px;margin-top:12px}#countdown>div{height:2px;flex:1;background:#0f295920}#progress{display:block;background:#0052D4;height:100%;transform-origin:left}#countdown[hidden]{display:none}#loading,#error{position:absolute;inset:0;background:#D4D3D4;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;z-index:10}#loading>span:last-child{font-size:13px;opacity:.65}.loader{height:36px;width:36px;border:2px solid #0f295920;border-top-color:#0052D4;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#error[hidden],#loading[hidden]{display:none}#error p{max-width:400px;text-align:center;padding:0 20px}#error button{border:0;border-radius:24px;background:var(--ink);color:white;padding:14px 30px}dialog{background:#FFFFFF;color:#0f2959;border:1px solid #FFFFFF;border-radius:22px;padding:38px;max-width:490px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;box-shadow:0 20px 90px #0f295933}dialog::backdrop{background:#0052D475;backdrop-filter:blur(8px)}dialog h2{font:500 36px/1.15 'Lexend Deca',sans-serif;letter-spacing:-1px;margin:15px 0 22px}dialog p{font-size:14px;line-height:1.7}dialog .close{position:absolute;right:16px;top:12px;border:0;background:none;font-size:30px;min-width:44px;min-height:44px}.info-bottom{border-top:1px solid var(--edge);padding-top:20px;margin-top:25px;font-size:12px;display:flex;flex-direction:column;gap:5px}.info-bottom span{opacity:.6}body.dark{--glass:#0f2959ed;--ink:#FFFFFF;--edge:#FFFFFF24;color:#FFFFFF}body.dark .brand-mark{color:#D4D3D4}body.dark .viewbar button.active,body.dark .tools button[aria-pressed=true],body.dark .place.active{background:#D4D3D4;color:#0f2959}body.dark .selection{text-shadow:0 1px 16px #0052D4,0 1px 8px #0052D4}body.dark .place{border-color:#FFFFFF20}body.dark .place.active span{color:#0f2959}body.dark footer{border-color:#FFFFFF22}
@media(max-width:900px){header{left:20px;right:20px;top:20px}.brand{font-size:18px}.brand-mark{font-size:39px}.viewbar{top:88px}.tools{right:20px;top:153px}.selection{left:23px;bottom:177px;width:290px}.selection h1{font-size:30px}.gesture{display:none}footer{left:18px;right:18px;bottom:18px}.place{min-width:105px}}
@media(max-width:600px){header{top:calc(14px + env(safe-area-inset-top));left:18px;right:18px}.brand{font-size:17px;gap:8px}.brand-mark{font-size:36px}.brand small{font-size:9px;letter-spacing:.18em;margin-top:5px}.round{width:36px;height:36px}.viewbar{top:calc(77px + env(safe-area-inset-top));width:auto;gap:0;padding:4px;max-width:calc(100% - 36px)}.viewbar button{font-size:12px;padding:11px 16px}.tools{top:calc(141px + env(safe-area-inset-top));right:13px;gap:6px}.tools button{width:42px;height:42px;border-radius:12px}.tools svg{width:18px;height:18px}.selection{left:21px;bottom:calc(157px + env(safe-area-inset-bottom));width:calc(100% - 42px);padding:12px 13px;border-radius:13px;background:#FFFFFFd9;backdrop-filter:blur(12px);text-shadow:none}.selection h1{font-size:25px;letter-spacing:-1px;margin:7px 0}.selection p{font-size:12px;line-height:1.5;max-width:none}.eyebrow{font-size:9px;letter-spacing:.12em}.room-meta{font-size:10px;margin-top:6px}.gesture{display:none}footer{bottom:calc(12px + env(safe-area-inset-bottom));left:12px;right:12px;padding:10px 12px 12px;border-radius:17px}.footer-top{margin-bottom:7px}.footer-top>span{font-size:9px}.footer-top button{font-size:12px}.place{min-width:99px;padding:8px 10px}.place b{font-size:12px}.place span{font-size:9px;margin-bottom:4px}.hotspot{padding:7px 10px;font-size:10px;min-height:31px}.hotspot:before{width:4px;height:4px}.room-meta{display:none}body.touring .selection{bottom:calc(187px + env(safe-area-inset-bottom))}body.dark .selection{background:#0f2959db;text-shadow:none}dialog{padding:30px 26px}dialog p{font-size:14px}}
@media(max-height:540px){.selection{display:none}.viewbar{top:16px}.tools{top:85px}.tools button{height:38px;width:38px}footer{bottom:10px}.brand small{display:none}.gesture{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Readable touch controls */
.place b{font-size:14px}.viewbar button{min-height:44px}.footer-top button{min-height:32px}dialog p{font-size:16px}
@media(max-width:600px){.place{min-width:111px}.place b{font-size:13px}.selection p{font-size:13px}.viewbar button{font-size:13px}.hotspot{font-size:11px}}
[hidden]{display:none!important}

/* Identità del tema Diagnostica Todisco — Cinematica */
:root,body.dark{font-family:'Lexend Deca',system-ui,sans-serif;--ink:#FFFFFF;--aqua:#0052D4;--glass:rgba(15,41,89,.94);--edge:rgba(255,255,255,.22);color:#FFFFFF;background:#0f2959}
.brand{font-family:'Zilla Slab',serif;font-weight:500;letter-spacing:.02em;padding:10px 14px;background:var(--glass);border:1px solid var(--edge);border-radius:16px}
.brand svg{width:36px;height:36px;flex:none;color:#FFFFFF}.brand svg .acqua{color:#0052D4}
.brand small,.eyebrow,.footer-top>span,.place span{font-family:'Lexend Deca',monospace}
.brand small{font-size:9px;color:#0052D4}
.viewbar button.active,body.dark .viewbar button.active,.tools button[aria-pressed=true],body.dark .tools button[aria-pressed=true],.place.active,body.dark .place.active{background:#0052D4;color:#0f2959;border-color:#0052D4}
.place.active span,body.dark .place.active span{color:#0f2959}
.place{border-color:var(--edge)}.place:hover{border-color:#0052D4}.place span{opacity:.8}
.selection,body.dark .selection{background:rgba(15,41,89,.9);border:1px solid var(--edge);padding:18px 20px;border-radius:16px;backdrop-filter:blur(12px);text-shadow:none}
.selection h1,dialog h2{font-family:'Zilla Slab',serif;font-weight:500;letter-spacing:0}
.selection .eyebrow{color:#0052D4}.selection p{color:#FFFFFF}
footer,body.dark footer{border-color:var(--edge)}
.gesture{background:var(--glass);padding:9px 13px;border-radius:20px}
.hotspot{background:var(--glass);color:#FFFFFF;border-color:var(--edge)}.hotspot:before{background:#0052D4}.hotspot:hover{background:#0052D4}
#loading,#error,dialog{background:#0f2959;color:#FFFFFF;border-color:var(--edge)}
.loader{border-color:#FFFFFF33;border-top-color:#0052D4}
#progress{background:#0052D4}#countdown>div{background:#FFFFFF33}
#error button{background:#0052D4;color:#0f2959}
button:focus-visible{outline-color:#0052D4}
@media(max-width:600px){.brand{padding:8px 10px;font-size:15px}.brand svg{width:29px;height:29px}.selection,body.dark .selection{padding:12px 14px}.selection h1{font-size:25px}.viewbar{top:88px}.tools{top:150px}.selection p{font-size:13px}}
@media(min-width:901px) and (max-width:1180px){header .brand{font-size:16px}.viewbar{top:105px}.tools{top:165px}}
