/* Tour 3D (Palazzo Saluzzo, Casa del Pingone) nella pagina SmartOneVR del redesign.
   Stili portati dal sito precedente (src-vecchio/SmartOneVR.html) e adattati ai colori del redesign
   (sfondo #050f11, testo #f3f2f0, accento #1da9ba / #5cc9d6). Caricato solo da SmartOneVR.html. */
.tour-section { --foreground: 40 6% 95%; --hero-sub: 40 6% 82%; color: #f3f2f0; }
.tour-section button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
.tour-places { display: flex; flex-direction: column; gap: 72px; }
.tour-place { display: flex; flex-direction: column; gap: 32px; }
.tour-place-head { display: grid; grid-template-columns: minmax(80px, 200px) minmax(0, 1fr); gap: 32px; align-items: start; }
.tour-place-num { font-size: 12px; letter-spacing: 0.18em; color: #5cc9d6; padding-top: 6px; }
.tour-eyebrow { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #5cc9d6; }
.tour-title { margin: 0; font-weight: 400; font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.tour-title span { color: rgba(243,242,240,0.5); font-weight: 300; }
@media (max-width: 640px) { .tour-place-head { grid-template-columns: 1fr; gap: 10px; } }

/* comparsa allo scroll */
.tour-section .fade-up { opacity: 0; transform: translateY(32px); transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1); }
.tour-section .fade-up.visible { opacity: 1; transform: none; }
.tour-section .fade-up.delay-1 { transition-delay: 0.15s; }

.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 20px; align-items: start; }
@media (max-width: 960px) { .tour-layout { grid-template-columns: 1fr; } }
.tour-box { aspect-ratio: 16 / 10; }
.tour-box:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
@media (max-width: 640px) { .tour-box { aspect-ratio: 1 / 1; } .tour-keys { display: none; } }
@media (hover: none) { .tour-keys { display: none; } }
.tour-room-label {
  position: absolute; top: 12px; left: 12px; padding: 8px 14px; border-radius: 10px;
  background: rgba(5,15,17,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: hsl(187 73% 66%); pointer-events: none;
}
.tour-retry { color: #f3f2f0; border-radius: 9999px; padding: 8px 18px; font-size: 0.875rem; border: 1px solid rgba(255,255,255,0.22); transition: background 0.2s; }
.tour-retry:hover { background: rgba(29,169,186,0.14); }
.tour-map-panel {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 10px;
  border-radius: 18px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.1);
}
.tour-map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.tour-map-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #5cc9d6; }
.tour-map-hint { font-size: 12px; color: rgba(243,242,240,0.6); }
.tour-map { display: block; width: 100%; height: auto; }
.tour-map image { opacity: 0.75; }
.map-room { cursor: pointer; outline: none; }
.map-room rect { fill: rgba(29,169,186,0.10); stroke: rgba(29,169,186,0.55); stroke-width: 4; transition: fill 0.2s, stroke 0.2s; }
.map-room:hover rect, .map-room:focus-visible rect { fill: rgba(29,169,186,0.24); stroke: hsl(187 73% 62%); }
.map-room:focus-visible rect { stroke-width: 8; }
.map-room.active rect { fill: rgba(29,169,186,0.32); stroke: hsl(187 73% 66%); stroke-width: 6; }
.map-here { fill: hsl(187 73% 66%); animation: mapPulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mapPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.5); } }
.tour-map-overlay {
  position: absolute; left: 12px; bottom: 12px; width: min(360px, 40vw, 70vh); padding: 8px; border-radius: 12px;
  background: rgba(5,15,17,0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
/* telefono in verticale: 40vw sarebbero ~150 px, troppo piccola (la mappa compatta mostra solo la zona delle stanze) */
@media (orientation: portrait) and (max-width: 640px) { .tour-map-overlay { width: min(320px, 66vw); } }
.tour-place-card:focus-visible { outline: 2px solid hsl(187 73% 55%); outline-offset: 2px; }
.tour-place-card { position: relative; display: block; width: 100%; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(29,169,186,0.55); cursor: pointer; }
.tour-place-card img, .tour-place-card video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #050f11; }
.tour-place-card span { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 8px; background: rgba(5,15,17,0.72); font-size: 0.85rem; color: hsl(187 73% 66%); }
.tour-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }
.tour-chips button { padding: 5px 11px; border-radius: 9999px; font-size: 0.78rem; color: rgba(243,242,240,0.82); border: 1px solid rgba(255,255,255,0.12); transition: background 0.2s, color 0.2s; }
.tour-chips button:hover { color: #f3f2f0; }
.tour-chips button[aria-pressed="true"] { background: rgba(29,169,186,0.22); color: #f3f2f0; border-color: rgba(29,169,186,0.55); }
.tour-chips-top { margin-top: -8px; }
.tour-chips-top button { padding: 7px 15px; font-size: 0.85rem; }
.tour-chips button:focus-visible { outline: 2px solid hsl(187 73% 55%); outline-offset: 2px; }
.suite-map image { opacity: 0.8; }
.suite-pt { cursor: pointer; outline: none; }
.suite-pt circle { fill: rgba(29,169,186,0.28); stroke: hsl(187 73% 62%); stroke-width: 4; transition: fill 0.2s; }
.suite-pt text { fill: #f3f2f0; font-size: 30px; font-weight: 600; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.suite-pt:hover circle, .suite-pt:focus-visible circle { fill: rgba(29,169,186,0.5); }
.suite-pt:focus-visible circle { stroke-width: 7; }
.suite-pt.active circle { fill: hsl(187 73% 55%); stroke: hsl(187 73% 75%); animation: mapPulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.suite-pt.active text { fill: #05211f; }
.tour-step { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(5,15,17,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.14); transition: background 0.2s; }
.tour-step:hover { background: rgba(29,169,186,0.35); }
.tour-box button:focus-visible { outline: 2px solid hsl(187 73% 55%); outline-offset: 2px; }
