#open-3d{background:var(--green);color:white;border-color:var(--green)}#walkthrough{border:1px solid var(--line);background:white;border-radius:7px;margin:0 0 30px;padding:18px}.walk-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.walk-controls label{font-size:.8rem;flex:1;min-width:150px}.walk-controls button{font-size:.8rem}.walk-controls [aria-pressed=true]{background:var(--amber);color:white}#walk-help{font-size:.85rem;color:var(--muted)}.walk-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px}.walk-stage{position:relative;min-width:0;background:#bbc9cf;border-radius:4px;overflow:hidden}#walk-canvas{display:block;width:100%;height:580px;touch-action:none;outline-offset:-4px}.walk-touch{position:absolute;bottom:12px;left:12px;display:flex;gap:5px}.walk-touch button{background:rgb(255 255 255 / .9);user-select:none;touch-action:none}#walk-status{font-size:.83rem;color:var(--green)}#walk-object{font: .75rem Consolas,monospace;overflow-wrap:anywhere}#walk-form button{margin-top:10px}#walk-save{background:var(--green);color:white}#walk-annotations{display:grid;gap:10px;max-height:260px;overflow:auto}#walk-annotations button{text-align:left;font-size:.8rem;overflow-wrap:anywhere}.walk-notes h3{margin-top:25px}#walk-text{font-size:.9rem}@media(max-width:900px){.walk-layout{grid-template-columns:1fr}#walk-canvas{height:440px}.walk-notes{border-top:1px solid var(--line);padding-top:10px}}@media(max-width:560px){#walkthrough{padding:12px}#walk-canvas{height:360px}}@media print{#walkthrough{display:none!important}}
.walk-view-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}.walk-view-controls button{font-size:.8rem;min-height:44px}.walk-view-controls [aria-pressed=true]{background:var(--green);color:white}.walk-view-controls p{font-size:.8rem;margin:0;flex:1;min-width:160px;color:var(--ink)}body.walk-expanded{overflow:hidden}#walkthrough.is-expanded{position:fixed;inset:0;z-index:100;margin:0;width:100%;height:100dvh;max-width:none;border:0;border-radius:0;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:flex;flex-direction:column;box-sizing:border-box}#walkthrough.is-expanded #walk-help,#walkthrough.is-expanded #walk-provenance{display:none}#walkthrough.is-expanded .walk-layout{display:flex;flex:1;min-height:0;margin-top:10px;position:relative}#walkthrough.is-expanded .walk-stage{flex:1;min-height:0}#walkthrough.is-expanded #walk-canvas{height:100%;width:100%}#walkthrough.is-expanded .walk-notes{display:none}#walkthrough.is-expanded .walk-notes:has(#walk-form:not([hidden])){display:block;position:absolute;right:10px;top:10px;width:min(320px,calc(100% - 20px));max-height:calc(100% - 20px);overflow:auto;background:white;padding:16px;border-radius:6px}#walkthrough.is-expanded .walk-notes h3,#walkthrough.is-expanded #walk-annotations{display:none}@media(max-width:900px){#walkthrough.is-expanded .walk-controls{flex-wrap:nowrap;align-items:center;overflow-x:auto;flex-shrink:0;gap:8px}#walkthrough.is-expanded .walk-controls label{min-width:150px}#walkthrough.is-expanded .walk-controls button{white-space:nowrap;flex-shrink:0;min-height:44px}#walkthrough.is-expanded .walk-view-controls p{flex-basis:100%;font-size:.75rem}#walkthrough.is-expanded .walk-view-controls p:empty{display:none}.walk-touch button{min-height:44px;min-width:44px}}
.walk-touch button[data-active=true]{background:var(--green);color:white}.walk-touch button{-webkit-user-select:none;-webkit-touch-callout:none}
#walkthrough.is-expanded>#walk-status{margin:5px 0;font-size:.75rem;line-height:1.3}
#lighting-study{padding:0 0 12px}.lighting-heading,.lighting-viewbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.lighting-heading{align-items:flex-start}.lighting-heading h2{margin:0;font-size:1.6rem}.lighting-heading p{max-width:65ch}.lighting-viewbar{margin:18px 0}.lighting-viewbar h3{margin:0}.lighting-viewbar label{min-width:220px}#lighting-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}#lighting-options button{min-height:44px}#lighting-options [aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.lighting-image{padding:0;border:0;border-radius:5px;background:transparent;display:block;width:100%;overflow:hidden;cursor:zoom-in}.lighting-image img{display:block;width:100%;height:auto;max-height:75vh;object-fit:contain;background:#e4e6e5;transition:transform .4s cubic-bezier(.2,.8,.2,1)}@media(hover:hover){.lighting-image:hover{background:transparent}.lighting-image:hover img{transform:scale(1.02);transition-duration:.6s}}@media(prefers-reduced-motion:reduce){.lighting-image img{transition:none}.lighting-image:hover img{transform:none}}.lighting-description{max-width:68ch}.lighting-description p{margin:.6em 0}#lighting-sources p{max-width:85ch;font-size:.9rem}@media(max-width:600px){.lighting-heading,.lighting-viewbar{align-items:stretch;flex-direction:column;gap:12px}.lighting-heading>button{align-self:flex-start}.lighting-viewbar label{min-width:0}.lighting-image img{max-height:none}#lighting-options button{flex:1 1 45%;text-align:left;font-size:.85rem}}

.annotation-row{display:grid;gap:5px;padding-bottom:10px;border-bottom:1px solid var(--line)}.annotation-row .annotation-open{width:100%;min-height:44px}.annotation-row .annotation-delete{justify-self:end;min-height:44px;color:#923c31}.annotation-delete:disabled{opacity:.65;cursor:wait}

.portal-open-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid var(--green);border-radius:5px;background:var(--green);color:#fff;font-weight:600;text-decoration:none;transition:background-color 150ms,border-color 150ms}@media(hover:hover){.portal-open-link:hover{background:#2e5a43;border-color:#2e5a43}}.portal-open-link:focus-visible{outline:3px solid var(--amber);outline-offset:3px}

.walk-touch{max-width:calc(100% - 24px);flex-wrap:wrap}.walk-touch button{min-height:44px;min-width:40px;padding:8px 10px}
#lighting-zones{margin:18px 0}#lighting-zones summary{cursor:pointer}.kitchen-zone-scroll{overflow-x:auto}.kitchen-zone-scroll table{width:100%;border-collapse:collapse;margin-top:12px;font-size:.94rem}.kitchen-zone-scroll th,.kitchen-zone-scroll td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:left}.kitchen-zone-scroll td:first-child{white-space:nowrap;font-family:Consolas,monospace}
#floor-review-status{font-size:.8rem;line-height:1.45;color:var(--ink);margin:8px 0 0;max-width:85ch}#floor-review-status.is-active::before{content:"";display:inline-block;width:12px;height:12px;border:1px solid #916011;background:#d78319;margin-right:7px;vertical-align:-1px}#walk-floor-review[aria-pressed=true]{background:#916011;color:white;border-color:#916011}#walkthrough.is-expanded>#floor-review-status{flex-shrink:0;font-size:.75rem;line-height:1.3;margin:5px 0 0}@media(max-width:560px){#walk-floor-review{max-width:100%;white-space:normal;text-align:left}}
/* 3D su touch (8 novembre 2026): la vista prima dei comandi, che restano a portata di pollice; aiuto tastiera solo con il mouse. */
#walk-help-touch{display:none;font-size:.85rem;color:var(--muted);margin:0}
@media(pointer:coarse){#walk-help{display:none}#walk-help-touch{display:block}#walkthrough.is-expanded #walk-help-touch{display:none}}
@media(max-width:900px) and (pointer:coarse),(max-height:500px) and (pointer:coarse){
 #walkthrough:not(.is-expanded){display:flex;flex-direction:column;gap:10px}
 #walkthrough:not(.is-expanded) .walk-layout{display:contents}
 #walkthrough:not(.is-expanded) .walk-stage{order:-3}
 #walkthrough:not(.is-expanded) #walk-help-touch{order:-2}
 #walkthrough:not(.is-expanded)>#walk-status{order:-1;margin:0}
 #walkthrough:not(.is-expanded) #walk-canvas{height:min(62svh,520px)}
 #walkthrough:not(.is-expanded) .walk-controls,#walkthrough:not(.is-expanded) .walk-view-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
 #walkthrough:not(.is-expanded) .walk-controls label{grid-column:1/-1;min-width:0}
 #walkthrough:not(.is-expanded) :is(#walk-mark,#walk-close){order:-1}
 #walkthrough:not(.is-expanded) :is(#walk-home,#walk-floor-review,#walk-view-status){grid-column:1/-1}
 #walkthrough:not(.is-expanded) #walk-floor-review{order:2;text-align:center}
 #walkthrough:not(.is-expanded) #walk-view-status{order:3}
 #walkthrough:not(.is-expanded) .walk-view-controls p:empty{display:none}
 #walkthrough:not(.is-expanded) .walk-notes{border-top:1px solid var(--line);padding-top:10px}
 #walkthrough:not(.is-expanded) .walk-notes h3{margin-top:10px}
}
@media(max-height:500px) and (pointer:coarse){#walkthrough:not(.is-expanded) #walk-canvas{height:calc(100svh - 24px)}}
