/* Atlante di casa — navigazione mobile premium e inventario ad albero */
#top{position:sticky;top:0;z-index:8;background:rgba(255,249,239,.96)!important;border-bottom:1px solid #e8d6c1;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:8px clamp(18px,2.7vw,48px);display:block;box-shadow:0 5px 25px rgba(82,45,26,.045)}
.topbar-main{min-height:51px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbrand{display:flex;align-items:center;gap:11px;min-width:0;text-align:left;border-radius:12px;padding:4px 6px 4px 0}.topbrand-mark{display:grid;place-items:center;width:39px;height:39px;flex:none;background:#edd4b0;color:#713b2b;border:1px solid #dfc39c;border-radius:12px}.topbrand-mark .mark{width:28px;height:28px}.topbrand-txt{min-width:0;display:grid;gap:0}.topbrand-txt small{font-size:9px;letter-spacing:1.5px;color:#9b6b52;font-weight:750;line-height:1.5}.topbrand-txt strong{font-family:Georgia,serif;color:#51382d;font-size:21px;line-height:1.12;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topaction-icons{display:flex;align-items:center;gap:8px}.top-icon{width:42px;height:42px;display:grid;place-items:center;background:#fffaf2;border:1px solid #e6cfb0;border-radius:13px;color:#6a4636;transition:background .15s,transform .15s}.top-icon:active{transform:scale(.95)}.top-icon.top-add{background:#813e30;color:#fff8e9;border-color:#813e30}.topbar-shortcuts{display:flex;gap:9px;justify-content:flex-start;align-items:center;overflow-x:auto;scrollbar-width:none;padding:8px 0 4px;white-space:nowrap}.topbar-shortcuts::-webkit-scrollbar{display:none}.top-shortcut{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:22px;border:1px solid #e8d6c0;background:#fdf5e9;color:#734938;font-size:12px;font-weight:670;white-space:nowrap;flex:none}.top-shortcut .ic{width:16px;height:16px}.top-shortcut.on{background:#ead0ac;border-color:#d8b78e;color:#6a372a}.top-shortcut:active{transform:scale(.98)}
.roomintro{display:flex;align-items:center;justify-content:space-between;gap:15px}.roomintro .pagehead{margin:8px 0 12px}.roomintro>.primary{align-self:center;flex:none}.room-tutorial,.photo-help{border:1px solid #ead5b9;border-radius:15px;background:linear-gradient(110deg,#fff2dc,#fffaf0);color:#684738;display:flex;align-items:flex-start;gap:11px;padding:13px 16px;margin:5px 0 17px;font-size:13px}.room-tutorial .ic,.photo-help .ic{color:#9b5738;flex:none;margin-top:2px}.photo-help{background:#fffaf1;margin:3px 0 14px}
.object-context{margin:13px 0 16px;padding:16px 18px;border-radius:17px;background:linear-gradient(125deg,#f8e8d1,#fff7e8);border:1px solid #ead2b1;box-shadow:0 6px 20px #8056370a}.object-context-title{display:flex;align-items:center;gap:10px;margin:0 0 13px;color:#65402e}.object-context-title>.ic{width:22px;height:22px;flex:none}.object-context-title span{display:grid;gap:3px}.object-context-title small{font-size:12px;color:#8f725d}.context-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:11px}.context-controls label,.global-filter label{flex:1 1 190px;min-width:0;font-size:11px;font-weight:700;color:#8a654c;display:grid;gap:5px}.context-controls select,.global-filter select{display:block;width:100%;max-width:100%;min-height:41px;border:1px solid #dfc9a9;border-radius:11px;color:#51382d;background:#fffdf8;padding:9px;font-size:13px}.context-controls>.chip{margin-bottom:2px}
.inventory-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px 26px;border:1px solid #d4b89c;background:linear-gradient(115deg,#784032,#945941);color:#fff3df;border-radius:20px;margin:20px 0}.inventory-hero .kicker{color:#f2c69a}.inventory-hero h2{font:normal 30px/1.1 Georgia,serif;margin:9px 0}.inventory-hero p{color:#f6e6d4;font-size:13px;max-width:460px}.inventory-hero .actions{justify-content:flex-end}.inventory-hero .primary{background:#f2cc94;color:#4d3228}.inventory-hero .soft{background:#86513e;color:#fff4e6;border-color:#c88c64}.global-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:23px}.global-filter label{flex:1 1 230px;max-width:450px}.inventory-room{margin:23px 0 32px}.inventory-room-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.inventory-room-head h2{font:normal 28px/1.1 Georgia,serif;margin:0;color:#623e30}.inventory-room-head small{font:500 13px/1.4 Arial,sans-serif;color:#9b745b;margin-left:6px}
.house-forest{display:grid;gap:9px;align-content:start}.tree-node{display:block;background:#fffaf3;border:1px solid #e7d4bc;border-radius:15px;overflow:hidden;transition:border .2s}.tree-node[open]{background:#fffcf5;border-color:#dec3a2}.tree-node>summary{list-style:none;min-height:56px;padding:12px 13px;display:flex;gap:10px;align-items:center;cursor:pointer}.tree-node>summary::-webkit-details-marker{display:none}.tree-node>summary:hover{background:#fcf0dc}.node-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#f2dfc5;color:#8b553d;flex:none}.node-label{display:grid;min-width:0;flex:1;gap:3px}.node-label strong{font-size:15px;color:#4b3129}.node-label small{font-size:11px;color:#8b6b54;overflow-wrap:anywhere}.children-count{font-size:11px;color:#845b45;white-space:nowrap}.node-arrow{width:18px;height:18px;display:grid;place-items:center;color:#976b50;transition:transform .2s}.tree-node[open]>summary .node-arrow{transform:rotate(90deg)}.node-arrow .ic{width:16px;height:16px}.node-actions{padding:0 13px 12px 58px;display:flex;gap:7px;flex-wrap:wrap}.node-actions .textbtn{font-size:12px}.tree-children{border-left:2px solid #dfbe98;margin:0 12px 13px 21px;padding:0 0 0 12px;display:grid;gap:8px}.tree-children .tree-node{box-shadow:none}.item-detail .location-breadcrumb{font-size:13px;background:#f6ead9;padding:9px 12px;border-radius:9px;overflow-wrap:anywhere}.item-detail h3{font:normal 22px Georgia,serif;margin:19px 0 9px}.item-detail-stats{display:flex;gap:6px;flex-wrap:wrap}.item-detail-stats span{font-size:11px;color:#754831;background:#f3e3ce;border-radius:18px;padding:6px 9px}.detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin:11px 0}.detail-actions button{flex:1 1 120px;white-space:normal;min-height:40px}.item-detail .stack .row{border:1px solid #ead5bb;border-radius:10px;margin:7px 0;padding:10px}.roomintro .primary{min-height:44px}
@media(max-width:780px){#top{padding:7px 14px 7px;min-height:auto}#top .topbar-main{min-height:46px}.topbrand-mark{width:37px;height:37px}.topbrand-txt small{font-size:8px;letter-spacing:1px}.topbrand-txt small span{display:none}.topbrand-txt strong{font-size:19px;max-width:185px}.topaction-icons{gap:7px}.top-icon{width:40px;height:40px}.topbar-shortcuts{padding:8px 0 2px;gap:8px}.top-shortcut{min-height:34px;padding:7px 11px}#mobile{justify-content:space-around;gap:3px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #dcc2a3;background:rgba(255,248,237,.97);backdrop-filter:blur(16px);box-shadow:0 -7px 20px #63391d0b}#mobile button{flex:1;min-height:53px;border-radius:13px;padding:8px 3px 5px;color:#93725d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-weight:650;font-size:11px;line-height:1.2}#mobile button .ic{width:22px;height:22px}#mobile button.on{background:#ebd0ad;color:#703b2c}main{padding:16px 14px 116px}.roomintro{align-items:flex-start;flex-direction:column;gap:3px}.roomintro .primary{align-self:stretch;justify-content:center}.roomintro .pagehead h1{font-size:35px}.room-tutorial,.photo-help{padding:12px;font-size:12px}.object-context{padding:13px}.context-controls{flex-direction:column;align-items:stretch}.context-controls label{flex:auto;width:100%}.context-controls .chip{align-self:start}.inventory-hero{flex-direction:column;align-items:stretch;padding:19px}.inventory-hero .actions{justify-content:flex-start}.inventory-hero h2{font-size:27px}.inventory-room-head h2{font-size:25px}.tree-node>summary{padding:10px 9px;gap:8px}.node-icon{width:31px;height:31px}.node-label strong{font-size:14px}.node-actions{padding:0 8px 10px 46px}.tree-children{margin:0 7px 10px 15px;padding-left:8px}.children-count{font-size:10px}.detail-actions{display:grid;grid-template-columns:1fr 1fr}.detail-actions button{min-width:0;font-size:12px}.inventory-room-head .textbtn{font-size:12px}}
@media(max-width:390px){.topbrand-txt strong{max-width:160px;font-size:18px}.topbrand-mark{width:34px;height:34px}.top-icon{width:37px;height:37px}.top-shortcut{font-size:11px;padding:6px 9px}}
.guide-videos{padding:25px 0 18px}.guide-videos-head h2{font:normal 32px/1.1 Georgia,serif;margin:8px 0;color:#633c2e}.guide-videos-head p{max-width:720px;font-size:13px;color:#856751;margin-bottom:19px}.guide-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.guide-video-card{border:1px solid #e6ceb2;background:#fffaf1;border-radius:17px;padding:12px;overflow:hidden}.guide-video-card .video-placeholder{height:122px;border-radius:11px;background:linear-gradient(120deg,#a36c50,#654238);color:#fff3e2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.guide-video-card .video-placeholder .ic{width:23px;height:23px}.guide-video-card .video-placeholder span{letter-spacing:2px;font-size:10px;font-weight:750}.guide-video-card .video-placeholder small{font-size:11px;color:#f5dbc6}.guide-video-card h3{font:normal 22px Georgia,serif;color:#673f32;margin:12px 0 5px}.guide-video-card p{font-size:12px;color:#856a58;margin:0 0 12px;min-height:48px}.guide-video-card .textbtn{font-size:12px}.guide-videos+.sechead{margin-top:18px}@media(max-width:650px){.guide-video-grid{grid-template-columns:1fr}.guide-video-card{display:grid;grid-template-columns:110px 1fr;column-gap:13px;align-items:start}.guide-video-card .video-placeholder{grid-row:1/4;height:100%;min-height:115px}.guide-video-card h3{font-size:20px;margin:3px 0}.guide-video-card p{margin:0 0 7px;min-height:0}.guide-video-card .textbtn{justify-self:start}.guide-videos-head h2{font-size:28px}}
/* Four shortcut cards remain balanced rather than leaving an orphan on mobile. */
.quicklinks{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1120px){.quicklinks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:6px}.tabs::-webkit-scrollbar{display:none}.tabs .chip{flex:none;white-space:nowrap}.quicklinks{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quicklinks button{min-height:69px;justify-content:flex-start;align-items:center;padding:12px}}
