@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{--ink:#182638;--muted:#788595;--navy:#142337;--line:#e5e9e8;--accent:#2d8b77;--cream:#f4f6f2;--paper:#fff;--sand:#f0eadb}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--cream)}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #4bb89e;outline-offset:3px}button{border:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Outfit,sans-serif;letter-spacing:-.04em}h1{font-size:clamp(27px,4vw,46px);line-height:1.05;margin-bottom:8px}h2{font-size:30px}.overline{font-size:10px;letter-spacing:.18em;font-weight:800;color:#658879}.topbar{height:76px;display:flex;align-items:center;padding:0 clamp(18px,3vw,50px);gap:18px;background:#fff;border-bottom:1px solid var(--line)}.identity{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;background:var(--navy);color:#f8e9bd;font-family:Outfit;font-weight:800;font-size:17px;letter-spacing:-.08em;width:44px;height:44px;border-radius:12px}.identity-text{display:flex;flex-direction:column;gap:3px}.identity-text strong{font:700 13px Outfit;letter-spacing:.05em}.identity-text small{font-size:9px;letter-spacing:.19em;color:#7d8a94}.live-tag{margin-left:auto;font-size:12px;color:#6b8179;display:flex;align-items:center;gap:8px}.dot{width:7px;height:7px;border-radius:50%;background:#e6a74e}.header-action,.secondary{background:#edf2ef;color:#23483d;border-radius:10px;padding:12px 17px;font-weight:700}.header-action span{margin-left:7px;color:#6d8d80}.icon-button{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#eff2ef;color:#22394a;font-size:21px}.menu-trigger{display:none}.workspace{max-width:1660px;margin:0 auto;padding:24px clamp(18px,3vw,50px) 100px}.scene-header{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:22px}.scene-header p{color:var(--muted);font-size:14px;margin:0}.scene-header-actions{display:flex;gap:8px}.primary{background:var(--accent);color:white;padding:13px 19px;border-radius:10px;font-weight:700}.world-frame{position:relative;overflow:hidden;height:min(66vh,740px);min-height:420px;background:#d7e6df;border:1px solid #cddbd4;border-radius:16px;box-shadow:0 20px 55px #173b2b12;touch-action:none}.world-frame canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.world-frame canvas:active{cursor:grabbing}.world-overlay{position:absolute;pointer-events:none;display:flex;gap:10px}.top-left{top:19px;left:19px;flex-direction:column}.bottom-left{bottom:18px;left:20px}.world-badge{background:#152a37e8;color:#e6f7ee;font-size:10px;letter-spacing:.14em;font-weight:800;padding:11px 13px;border-radius:8px;align-self:flex-start}.world-caption,.gesture-tip{background:#fffffff0;border:1px solid #e3e8e2;color:#60716e;padding:9px 12px;border-radius:8px;font-size:11px;max-width:300px}.world-controls{position:absolute;right:17px;bottom:18px;display:flex;flex-direction:column;gap:5px}.world-controls button{background:#fff;color:#263c43;width:43px;height:43px;border-radius:10px;font-size:24px;box-shadow:0 2px 9px #0e2a1b1a}.world-toast{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:#192c37;color:#fff;border-radius:8px;padding:10px 14px;font-size:12px;opacity:0;transition:opacity .2s;pointer-events:none}.world-toast.show{opacity:1}.floor-footer{display:flex;align-items:center;justify-content:space-between;padding:18px 6px;gap:12px}.floor-footer>div{display:flex;align-items:center;gap:12px}.floor-icon{font-size:26px;color:#3c8e79}.floor-footer strong{font-size:14px}.floor-footer small{font-size:12px;color:var(--muted)}.text-button{background:transparent;color:#347b69;font-weight:700}.dock{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:4px;background:#172a36;padding:6px;border-radius:16px;box-shadow:0 8px 35px #172a3640;z-index:30}.dock button{background:transparent;color:#afc0c7;min-width:95px;padding:9px 13px;border-radius:11px;display:flex;gap:7px;align-items:center;justify-content:center;font-size:12px;font-weight:700}.dock button span{font-size:19px}.dock button.active{background:#365747;color:white}.mega{position:fixed;inset:0;background:#f5f6f1;z-index:60;padding:clamp(22px,4vw,65px);overflow-y:auto}.mega[hidden],.sheet[hidden],.sheet-backdrop[hidden]{display:none!important}.mega-head{display:flex;align-items:center;justify-content:space-between}.mega h2{font-size:clamp(40px,6vw,78px);margin:30px 0 35px}.mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}.mega-section{border-top:2px solid #183b35;padding-top:20px}.mega-section h3{font-size:17px;margin-bottom:15px}.mega-section a,.mega-section button{display:block;text-align:left;width:100%;padding:12px 2px;background:none;border-bottom:1px solid #dfe6df;font-size:14px;color:#3d5a52}.sheet-backdrop{position:fixed;inset:0;background:#0d1f2a6b;z-index:70}.sheet{position:fixed;right:0;top:0;bottom:0;width:min(460px,100vw);background:#fff;z-index:80;padding:28px;overflow-y:auto;box-shadow:-12px 0 45px #122c3429}.sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.sheet-grip{display:none}.sheet h2{font-size:32px;margin-bottom:8px}.subtle{color:#7a898d;font-size:14px;line-height:1.5}.sheet label,.auth label{display:block;font-size:12px;font-weight:700;margin:18px 0}.sheet input,.auth input{display:block;margin-top:8px;width:100%;padding:14px 12px;border:1px solid #d9e1dc;border-radius:10px;background:#f8faf8;font-size:16px}.sheet .primary,.auth .primary{width:100%;margin-top:12px}.person-row,.company-row,.operation-row{width:100%;padding:15px 2px;display:flex;align-items:center;gap:13px;background:transparent;text-align:left;border-bottom:1px solid #edf0ed}.person-avatar{display:grid;place-items:center;width:42px;height:42px;background:#d7e9df;border-radius:13px;color:#2a6d59;font-weight:800}.person-row strong,.company-row strong{display:block;font-size:14px}.person-row small,.company-row small{display:block;font-size:12px;color:#83918e;margin-top:3px}.status-pill{display:inline-block;padding:7px 10px;background:#eef4ec;border-radius:7px;color:#557967;font-size:11px;font-weight:700}.person-detail{background:#f2f6f1;padding:18px;border-radius:12px;margin-top:18px}.person-detail dt{font-size:11px;color:#82928b}.person-detail dd{font-size:14px;font-weight:700;margin:4px 0 18px}.notice{position:fixed;top:85px;right:18px;z-index:100;background:#fff;padding:15px}.error{color:#9e3b2e}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#172a36}.auth-brand{display:flex;align-items:center;justify-content:center;gap:20px;color:#fff;font:700 30px Outfit;letter-spacing:.04em}.auth-brand .brand-mark{width:100px;height:100px;font-size:36px;background:#e8c987;color:#142637}.auth-box{background:#f6f7f2;padding:clamp(30px,8vw,120px);display:flex;flex-direction:column;justify-content:center}.auth-box h1{font-size:clamp(38px,5vw,65px);margin-top:25px}.auth-box p{color:#76867f}.auth-box form{max-width:440px}@media(max-width:800px){.topbar{height:68px;padding:0 16px;gap:11px}.menu-trigger{display:grid}.identity-text strong{font-size:11px}.identity-text small{font-size:8px}.brand-mark{width:39px;height:39px}.live-tag,.header-action{display:none}.workspace{padding:20px 0 90px}.scene-header{padding:0 18px;align-items:start;flex-direction:column;gap:14px}.scene-header p{font-size:12px}.scene-header-actions{width:100%}.scene-header-actions button{flex:1;font-size:13px}.world-frame{height:calc(100dvh - 300px);min-height:390px;border-radius:0;border-left:0;border-right:0}.world-caption{display:none}.top-left{top:12px;left:12px}.world-badge{font-size:9px}.gesture-tip{font-size:10px;max-width:225px}.world-controls{right:12px;bottom:15px}.floor-footer{padding:13px 18px}.floor-footer>div{display:grid;grid-template-columns:26px 1fr;gap:2px 8px}.floor-footer small{grid-column:2}.text-button{display:none}.dock{bottom:0;left:0;right:0;transform:none;border-radius:15px 15px 0 0;padding:6px 5px calc(7px + env(safe-area-inset-bottom));justify-content:space-around}.dock button{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px;font-size:10px;padding:8px 2px}.dock button span{font-size:21px}.mega{padding:24px 22px 90px}.mega h2{margin:25px 0;font-size:43px}.mega-grid{grid-template-columns:1fr;gap:24px}.sheet{width:100%;top:auto;height:min(82dvh,760px);border-radius:23px 23px 0 0;padding:15px 23px 35px}.sheet-grip{display:block;width:42px;height:5px;border-radius:5px;background:#d7dfda;margin:0 auto 20px}.auth{grid-template-columns:1fr}.auth-brand{padding:35px;font-size:19px}.auth-brand .brand-mark{width:65px;height:65px;font-size:25px}.auth-box{padding:30px;min-height:70vh}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* V4.1 — executive monochrome + restrained gold, company-specific identity */
:root{--ink:#111111;--muted:#6e6e6e;--navy:#111111;--line:#e5e1d9;--accent:#b3904a;--cream:#f8f7f4;--paper:#fff;--sand:#eee7d8;--gold:#b3904a;--gold-dark:#8d6c30}
html,body{background:var(--cream);color:var(--ink)}
.topbar{background:#fff;border-bottom:1px solid #e8e5df}
.brand-mark{background:#111;color:#d5b46f;border-radius:3px}
.icon-button,.header-action,.secondary{background:#f4f2ee;color:#171717;border:1px solid #e7e2d7;border-radius:3px}
.overline{color:var(--gold-dark)}.live-tag{color:#6a6458}.dot{background:var(--gold)}
.primary{background:#111!important;color:#fff!important;border-radius:3px!important}
.primary:hover{background:#292929!important}
.secondary:hover,.icon-button:hover{border-color:var(--gold)}
.world-frame{border-color:#ded9ce;border-radius:3px;background:#eeeae2}
.world-badge{background:#121212;color:#e6c788;border-radius:2px}
.world-caption,.gesture-tip{border-radius:3px;color:#4d493f;border-color:#e1d9ca}
.world-controls button{border-radius:3px;color:#111;border:1px solid #ded9ce}
.dock{background:#111;color:#fff;border-radius:0;box-shadow:0 5px 22px #0002}
.dock button{border-radius:0;color:#d0d0d0}
.dock button.active{background:#242424;color:#e8c67d;box-shadow:inset 0 3px 0 var(--gold)}
.mega{background:#faf9f6}.mega-section{border-top-color:#111}
.mega-section a,.mega-section button{color:#262626;border-bottom-color:#e6e0d5}
.sheet{background:#fff}.sheet input,.auth input{border-radius:3px;background:#fff}
.person-avatar{background:#eee6d6;color:#80622c;border-radius:3px}
.status-pill,.person-detail{border-radius:3px;background:#f5f2eb;color:#665633}
.auth{background:#111}.auth-brand .brand-mark{background:#c6a45f;color:#111;border-radius:3px}
.auth-box{background:#faf9f6}
button:focus-visible,a:focus-visible,input:focus-visible{outline-color:#c6a45f}
/* Each subsidiary owns its identity accent; holding has a multicolor signature. */
.app-shell[data-company="seo-wp"]{--gold:#21835a;--gold-dark:#176943}
.app-shell[data-company="very-hosting"]{--gold:#2457b9;--gold-dark:#204d9c}
.app-shell[data-company="siti-html"]{--gold:#229ad2;--gold-dark:#147aa9}
.app-shell[data-company="report-seo"]{--gold:#dc7926;--gold-dark:#b75d15}
.app-shell[data-company="desktop-online"]{--gold:#ed8b24;--gold-dark:#b96a12}
.app-shell[data-company="marqoni"]{--gold:#b3904a;--gold-dark:#8d6c30}
.app-shell[data-company="autista-privato-bologna"]{--gold:#b3904a;--gold-dark:#8d6c30}
.app-shell[data-company="holding"] .brand-mark{background:linear-gradient(135deg,#238e5f 0 25%,#2d65b8 25% 50%,#31a5d8 50% 75%,#e98a2b 75% 100%);color:white}
.app-shell .overline{color:var(--gold-dark)}
.app-shell .dock button.active{box-shadow:inset 0 3px 0 var(--gold)}
@media(max-width:800px){
 .dock{bottom:0;left:0;right:0;border-radius:0!important;padding:5px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -1px 0 #333}
 .dock button,.dock button.active{border-radius:0!important}
 .topbar{padding:0 14px}.scene-header{padding:0 16px}
 .scene-header-actions button{border-radius:3px!important}
 .sheet{border-radius:0!important}
 .world-frame{border-radius:0!important}
}

/* Holding V4.2 — native-feeling mobile bottom sheets, preserved dock */
:root{--dock-height:76px;--luxury-black:#101010;--luxury-gold:#bc9856;--soft-white:#faf9f6}
html,body{background:#faf9f6;color:#171717}
.topbar{border-bottom:1px solid #e9e6df}
.brand-mark{border-radius:3px!important;background:#101010;color:#d4b16d}
.identity-text strong{font-weight:800;letter-spacing:.035em}
.world-frame{background:#dce9e2;border-radius:3px;box-shadow:none}
.world-badge{border-radius:3px;background:#111;color:#d9bb83}
.world-controls button{border-radius:3px;border:1px solid #e4e0d7;box-shadow:0 3px 12px #00000014}
.primary{border-radius:3px!important;background:#111!important;color:#fff!important}
.secondary,.icon-button{border-radius:3px!important}
.dock{z-index:120!important;background:#111!important;border-radius:0!important;box-shadow:0 -2px 20px #0000001a}
.dock button{border-radius:0!important;position:relative;transition:color .18s,background .18s}
.dock button.active{background:#282828!important;color:#e5c487!important}
.dock button.active:before{content:'';height:3px;position:absolute;top:0;left:0;right:0;background:#c7a15e}
.sheet-backdrop{z-index:75!important;background:rgba(0,0,0,.42);bottom:var(--dock-height)!important;backdrop-filter:blur(2px)}
.sheet{z-index:90!important;background:#fff;box-shadow:0 -16px 50px #0000002b;border:1px solid #e5e0d6}
.sheet-heading{border-bottom:1px solid #eee9e0;padding-bottom:14px;margin-bottom:23px}
.sheet .overline{color:#9b7539;letter-spacing:.13em}
.sheet h2{font-weight:750;letter-spacing:-.04em}
.sheet .subtle{line-height:1.65;color:#6b6b6b}
.sheet .person-avatar{background:#f2ebde;color:#795c2d;border-radius:3px}
.sheet .person-row,.sheet .company-row,.sheet .operation-row{min-height:62px;border-bottom:1px solid #eeeae3}
.sheet .person-row:active,.sheet .company-row:active,.sheet .operation-row:active{background:#f7f3ec}
.sheet .person-detail{background:#f8f6f1;border-radius:3px}
.sheet input{border-radius:3px;background:#fff;min-height:48px}
.sheet .icon-button{background:#f5f3ee;border:1px solid #e8e3d9}
.sheet-grip{touch-action:none;cursor:grab}
.sheet-grip:active{cursor:grabbing}
body.sheet-open{overscroll-behavior:none}
@media(max-width:800px){
 :root{--dock-height:calc(72px + env(safe-area-inset-bottom,0px))}
 .workspace{padding-bottom:calc(var(--dock-height) + 12px)}
 .dock{height:var(--dock-height);padding:4px 4px env(safe-area-inset-bottom,0px);bottom:0;left:0;right:0}
 .dock button{font-size:11px;min-height:56px;gap:3px}
 .dock button span{font-size:21px}
 .sheet{position:fixed;top:auto!important;bottom:var(--dock-height)!important;left:0;right:0;width:100%;height:auto;max-height:calc(100dvh - var(--dock-height) - 22px);min-height:230px;padding:0 22px 24px;border-radius:18px 18px 0 0!important;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;transform:translateY(0);transition:transform .24s cubic-bezier(.2,.8,.2,1);border-bottom:0}
 .sheet[hidden]{display:none!important}
 .sheet-grip{display:block;position:sticky;top:0;width:64px;height:24px;margin:0 auto 8px;background:transparent;z-index:2}
 .sheet-grip:before{content:'';position:absolute;width:39px;height:5px;left:50%;top:10px;transform:translateX(-50%);background:#d3d0ca;border-radius:5px}
 .sheet-heading{position:sticky;top:24px;background:#fff;z-index:1;margin:0 -22px 21px;padding:4px 22px 13px}
 .sheet h2{font-size:clamp(26px,7vw,34px);line-height:1.1}
 .sheet .primary{min-height:50px}
 .sheet-backdrop{bottom:var(--dock-height)!important}
 .mega{z-index:110;padding-bottom:calc(var(--dock-height) + 25px);background:#fbfaf7}
 .mega-section{border-top-color:#b59456}
 .scene-header{margin-bottom:18px}
 .world-frame{border-radius:0}
}
@media(min-width:801px){.sheet{top:0;bottom:0;border-radius:0;width:min(500px,100vw)}.sheet-backdrop{bottom:0!important}.dock{z-index:120}}
@media(prefers-reduced-motion:reduce){.sheet{transition:none!important}}
