/* Navigazione 3D (modale sopra la pagina Superfici): palco 16:9 come il video registrato */
.fpt { position: fixed; inset: 0; z-index: 2147483100; display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; background: rgba(3, 7, 18, 0.82); }
.fpt[hidden] { display: none; }
.fpt-shell { display: flex; flex-direction: column; gap: 10px; width: min(100%, calc((96vh - 110px) * 16 / 9)); color: #e5e7eb; }
.fpt-head { display: flex; align-items: center; gap: 12px; }
.fpt-head strong { font-size: 1.05rem; }
.fpt-msg { flex: 1; font-size: 0.9rem; color: #fbbf24; }
.fpt-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.fpt-close:hover { background: rgba(255, 255, 255, 0.22); }
.fpt-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; background: #111827; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.fpt-stage canvas { display: block; width: 100%; height: 100%; }
.fpt-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fpt-ctrl button, .fpt-dl { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: #1f2937; color: #e5e7eb; font: inherit; font-size: 0.9rem; cursor: pointer; text-decoration: none; }
.fpt-ctrl button.fpt-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; padding: 0; }
.fpt-icon svg { width: 18px; height: 18px; }
/* interruttore «Arredi»: pulsante tondo in basso a destra sopra il video; acceso = bianco pieno, spento = vetro barrato */
.fpt-furn { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(17, 24, 39, 0.55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); transition: background 0.15s, color 0.15s, transform 0.15s; }
.fpt-furn:hover { transform: scale(1.06); }
.fpt-furn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }
.fpt-furn svg { width: 24px; height: 24px; }
.fpt-furn[aria-pressed="true"] { background: #fff; color: #111827; border-color: #fff; }
.fpt-furn[aria-pressed="false"]::after { content: ""; position: absolute; width: 30px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); }
.fpt-furn[hidden] { display: none; }
/* velocita': pulsante 1x con menu che si apre verso l'alto */
.fpt-speed-wrap { position: relative; }
.fpt-ctrl button.fpt-speed { min-width: 48px; font-variant-numeric: tabular-nums; }
.fpt-speed-menu { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 64px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: #111827; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.fpt-speed-menu[hidden] { display: none; }
.fpt-ctrl .fpt-speed-menu button { border: 0; background: transparent; text-align: center; font-variant-numeric: tabular-nums; }
.fpt-ctrl .fpt-speed-menu button[aria-checked="true"] { background: #2563eb; color: #fff; }
/* qualita': stesso menu della velocita' */
.fpt-quality-wrap { position: relative; }
.fpt-ctrl button.fpt-quality[hidden] { display: none; }
.fpt-quality-menu { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 96px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: #111827; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.fpt-quality-menu[hidden] { display: none; }
.fpt-ctrl .fpt-quality-menu button { border: 0; background: transparent; text-align: center; }
.fpt-ctrl .fpt-quality-menu button[aria-checked="true"] { background: #2563eb; color: #fff; }
.fpt-ctrl button:hover, .fpt-dl:hover { background: #374151; }
.fpt-ctrl button.is-primary { background: #dc2626; border-color: #dc2626; color: #fff; }
.fpt-ctrl button.is-primary.is-on { background: #fff; color: #dc2626; }
.fpt-ctrl button:disabled { opacity: 0.5; cursor: default; }
.fpt-dl { background: #2563eb; border-color: #2563eb; color: #fff; }
#fpt-seek { flex: 1; min-width: 120px; accent-color: #2563eb; }
.fpt-time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: #9ca3af; }

.fpt-credit{position:absolute;right:8px;bottom:8px;font-size:11px;color:#334155;background:rgba(255,255,255,.72);padding:1px 6px;border-radius:4px;pointer-events:none;z-index:3}
