/* Progettati R8: geometry, workspace, editorial header and project entry. */
.gold-contours{pointer-events:none}
.gold-contours path{fill:none;opacity:0;stroke-linejoin:round;stroke-linecap:round}
.gold-outline{stroke:#e7c884;stroke-width:3}
.gold-tracer{stroke:#ffe2a0;stroke-width:8;stroke-dasharray:.24 .76;filter:drop-shadow(0 0 3px #cba552)}
.scene-detail-svg{position:absolute;inset:0;pointer-events:none}
.scene-detail-svg>.scene-svg{width:100%;height:100%}
.configurator{border:1px solid #7c877350;border-radius:16px;overflow:hidden;isolation:isolate;background:#eff0e8;max-height:calc(100svh - 110px);align-items:stretch}
.scene-stage{align-self:center;overflow:hidden;background:transparent;min-width:0}
.scene-controls{display:flex;flex-direction:column;background:transparent;gap:14px;padding:26px;justify-content:center}
.scene-controls h3{font-size:clamp(20px,2vw,29px);margin-top:0}
.scene-controls .eyebrow{display:none}
.scene-actions{gap:8px}
.scene-control-note{font-size:9px;line-height:1.4}
.scene-tools{display:flex;gap:6px}
.scene-tools button{backdrop-filter:blur(12px);border:1px solid #ffffff60;border-radius:20px;min-height:36px}
.scene-tools [data-compare]{display:none}
.scene-actions .save-combination{border-radius:25px;box-shadow:0 5px 15px #343d3115}
.scene-actions button:active,.scene-tools button:active{scale:.97}
.scene-actions [data-reset]{font-size:10px}
.compare-control{padding-top:0}
.zone-tabs{gap:14px}
.zone-tabs button{border-radius:4px}
.toast{border-radius:20px 20px 4px 20px;max-width:min(440px,90vw);box-shadow:0 10px 30px #26282225;transition:clip-path .45s var(--ease),transform .5s var(--ease),opacity .3s;clip-path:inset(100% 0 0 0);width:max-content;transform:translate(-50%,12px)}
.toast.shown{clip-path:inset(0);transform:translate(-50%,0)}
.site-header,.home .site-header,.site-header.scrolled{position:fixed;transform:translateY(var(--header-lift,0px));height:86px;transition:background .3s,color .3s,box-shadow .3s;will-change:transform}
.site-header.header-return{transition:transform .4s cubic-bezier(.2,.8,.2,1),background .3s,color .3s}
.site-header.header-float,.home .site-header.header-float{height:76px;background:transparent;box-shadow:none;border:0;color:var(--float-ink,#262822)}
.header-float .brand{opacity:.65;text-shadow:0 0 10px var(--float-halo,#ffffff80)}
.header-float .desktop-nav,.header-float .selection-link{display:none}
.header-float .history-back{color:inherit;border-color:currentColor;background:transparent}
.header-context{display:none;position:absolute;left:50%;translate:-50% 0;font-size:11px;max-width:34vw;text-align:center;line-height:1.2;pointer-events:none;text-shadow:0 0 12px var(--float-halo,#ffffff90)}
.header-float .header-context{display:block;animation:section-glint .65s ease-out .1s 1 backwards}
@keyframes section-glint{0%{opacity:.25;filter:blur(1px)}60%{opacity:1;filter:blur(0)}100%{opacity:.8}}
.desktop-nav a:after{display:none}
.desktop-nav a{transition:color .35s,opacity .35s;padding:10px}
.desktop-nav a[aria-current=page]{background:linear-gradient(135deg,#a78c6130,#a78c6100);border-radius:14px 2px 14px 2px}
.desktop-nav a[aria-current=page]:before{content:'';position:absolute;inset:2px 5px;border-top:1px solid #aa926860;border-left:1px solid #aa926860;border-radius:14px 0 0 0;pointer-events:none}
.menu-toggle span{height:1px;margin:5px 0}
.menu-toggle[aria-expanded=true] span:first-child{transform:translateY(6px) rotate(45deg)}
.menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-6px) rotate(-45deg)}
.menu-open .site-header{--header-lift:0px!important;background:var(--paper)!important;color:var(--ink)!important}
.closing-experience{display:grid;grid-template-columns:1.1fr 1fr;gap:6vw;align-items:center;position:relative}
.closing-experience h2{font-size:clamp(46px,5.5vw,90px);margin:22px 0 32px;max-width:600px}
.closing-experience figure{aspect-ratio:1.2;overflow:hidden;border-radius:2px;position:relative}
.closing-experience img{width:100%;height:100%;object-fit:cover}
.closing-experience figure:after{content:'';position:absolute;inset:12px;border:1px solid #ffffff35;pointer-events:none}
.closing-choices{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:25px}
.closing-choices button{color:inherit;border:1px solid #ffffff35;border-radius:28px;padding:12px 18px;font-size:11px;transition:background .4s,border-color .4s,translate .4s;min-height:44px}
.closing-choices button[aria-pressed=true]{background:#ffffff16;border-color:#d6c799}
.closing-choices button:hover{translate:0 -2px;background:#ffffff10}
.closing-purpose{font-size:13px;color:#ffffffb0;max-width:350px;margin-bottom:20px;min-height:42px}
.site-footer{padding:65px var(--gutter) 25px;min-height:65svh;background:#eeeee8;border-top:1px solid var(--line)}
.footer-project{display:grid;grid-template-columns:1fr 1.1fr;gap:5vw;padding-bottom:50px;align-items:start}
.footer-project h2{font-size:clamp(36px,4vw,63px);max-width:500px;margin:15px 0 25px}
.footer-starter{padding:25px;border:1px solid #a1ab9750;border-radius:24px 24px 8px 24px;display:grid;grid-template-columns:120px 1fr;gap:20px;background:#f6f5f1;box-shadow:0 18px 35px -24px #343d3170}
.footer-starter img{height:100%;min-height:145px;object-fit:cover;border-radius:14px}
.footer-starter select{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;font-size:16px;padding:12px 0;margin:8px 0 15px;color:var(--ink)}
.footer-starter label{font-size:11px}
.footer-starter .solid-button{min-width:0;width:100%;border-radius:22px}
.footer-top{padding:0 0 35px;grid-template-columns:1fr 1fr 1fr 1fr;gap:30px}
.footer-channels{display:flex;flex-direction:column;gap:12px;font-size:12px}
.footer-channels a{padding:8px 0;width:max-content}
.footer-channels a:hover{color:var(--accent)}
.footer-top nav a{min-height:28px}
.briefing-form{border-radius:28px 28px 8px 28px;border:1px solid #a1ab9750;box-shadow:0 20px 50px -35px #343d3170;padding:32px;background:#eff0e9}
.brief-preview{display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:center;margin:22px 0;padding:12px;background:#f6f5f1;border-radius:18px;overflow:hidden}
.brief-preview img{height:95px;object-fit:cover;border-radius:10px}
.brief-preview p{font-size:12px;line-height:1.5;margin:0}
.briefing-form .choice{border-radius:14px;transition:border-radius .35s,background .35s,box-shadow .35s;position:relative}
.briefing-form .choice:has(input:checked){box-shadow:inset 0 0 0 1px #6c715c;border-radius:14px 3px 14px 3px}
.briefing-form [data-step]{animation:brief-fold .5s cubic-bezier(.2,.8,.2,1)}
@keyframes brief-fold{from{clip-path:inset(0 0 100% 0);translate:0 -8px}to{clip-path:inset(0);translate:0 0}}
.apply-combination{border:1px solid var(--line);padding:10px 12px;border-radius:8px;width:100%;background:var(--paper);font-size:12px;color:var(--ink)}
.scene-actions .apply-combination{grid-column:1/-1}
body{user-select:none;-webkit-user-select:none}
input,textarea,select,.copy-dialog,.message-result{user-select:text;-webkit-user-select:text}
img,.brand{-webkit-user-drag:none}
@media(min-width:901px){.configurator{grid-template-columns:minmax(0,1.75fr) minmax(260px,1fr)}.scene-stage{max-height:calc(100svh - 114px)}.scene-controls{max-height:calc(100svh - 112px)}.studio .configurator{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}}
@media(max-width:900px){.configurator{display:flex;flex-direction:column;max-height:none}.scene-stage{width:100%}.scene-controls{width:100%;padding:20px}.closing-experience{gap:30px}.footer-project{grid-template-columns:1fr}.header-context{max-width:25vw}.briefing-form{padding:24px}}
@media(max-width:600px){
 .site-header,.site-header.scrolled,.site-header.header-float{height:72px;gap:10px}
 .site-header .header-cta{display:flex;font-size:10px;gap:5px}
 .header-float .brand{font-size:15px}.header-float .brand span{font-size:5px}
 .header-context{font-size:9px;max-width:30vw;left:49%}
 .header-float .header-right{gap:7px}.header-float .header-cta{font-size:9px}
 .configurator{max-height:calc(100svh - 88px);border-radius:14px;gap:0}
 .scene-stage{width:100%;flex:0 0 auto;max-height:calc(100svh - 330px);aspect-ratio:var(--scene-ratio);height:auto;align-self:center}
 .scene-controls,.studio .scene-controls,.compact .scene-controls{padding:12px;gap:8px;flex:0 0 auto}
 .scene-controls h3{font-size:18px;line-height:1.15}
 .zone-tabs{gap:6px;flex-wrap:nowrap}.zone-tabs button{font-size:9px;min-height:34px;padding:5px 6px;line-height:1.3}
 .color-buttons,.compact .color-buttons,.project-detail .color-buttons{gap:2px}
 .color-button{font-size:8px;min-height:44px;gap:3px}.color-button i{width:27px;height:27px}
 .color-label{font-size:10px;line-height:1.4;min-height:14px}
 .scene-control-note{font-size:8px;line-height:1.3}
 .scene-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
 .scene-actions button,.scene-actions a{min-height:32px;font-size:9px}
 .scene-actions .save-combination{min-height:36px;grid-column:1/-1}
 .scene-tools button{padding:5px 9px;font-size:8px;min-height:32px}
 .compare-control{display:none}
 .scene-annotations>small{font-size:6px;bottom:5px;left:7px}
 .closing-experience{grid-template-columns:1fr;gap:25px}
 .closing-experience h2{font-size:46px;margin:20px 0 25px}.closing-experience figure{aspect-ratio:1.35}
 .closing-choices{gap:6px}.closing-choices button{font-size:10px;padding:10px 13px}
 .closing-purpose{min-height:0}
 .footer-project{padding-bottom:35px;gap:15px}.footer-project h2{font-size:42px}
 .footer-starter{padding:15px;grid-template-columns:85px 1fr;gap:14px;border-radius:20px}
 .footer-starter img{min-height:135px}.footer-starter .solid-button{font-size:10px;padding:12px;min-height:44px}
 .footer-top{grid-template-columns:1fr 1fr;gap:25px}
 .footer-channels{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:8px 20px}
 .briefing-form{padding:18px;border-radius:22px}.brief-preview{grid-template-columns:85px 1fr;gap:12px}.brief-preview img{height:85px}
}
@media(max-height:650px) and (max-width:600px){.scene-stage{max-height:calc(100svh - 335px)}.scene-controls h3{font-size:16px}.scene-control-note{display:none}.scene-actions .studio-link{display:none}.scene-controls{gap:5px!important}.color-button i{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){.header-context,.briefing-form [data-step]{animation:none}.site-header{transition:none}.closing-choices button,.toast{transition:none}.gold-tracer{filter:none}}
@media print{.gold-contours,.footer-project,.brief-preview{display:none}.configurator{max-height:none}.site-footer{display:none}}
@media(min-width:601px) and (max-width:900px){.configurator,.studio .configurator,.studio .configurator[data-scene]{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);max-height:calc(100svh - 110px)}.scene-stage{width:100%}.scene-controls{padding:18px;gap:12px}.scene-controls h3{font-size:22px}.color-buttons{gap:9px}.scene-actions button,.scene-actions a{min-height:36px}.scene-control-note{font-size:8px}}
@media(max-width:600px){.apply-combination{padding:7px 8px;font-size:10px;min-height:32px}.configurator{scroll-margin-top:92px}.scene-stage{flex-shrink:1}.scene-actions .studio-link{font-size:9px}}
.footer-starter.reveal{opacity:1;transform:none;clip-path:inset(0 100% 0 0 round 24px);transition:clip-path .75s cubic-bezier(.62,0,.16,1),box-shadow .5s}
.footer-starter.reveal.in-view{clip-path:inset(0 round 24px)}
@media(prefers-reduced-motion:reduce){.footer-starter.reveal{clip-path:none;transform:none;opacity:1;transition:none}}
.color-button[aria-busy=true] i{animation:material-load .8s ease-in-out infinite alternate}
@keyframes material-load{from{opacity:.45;scale:.9}to{opacity:1;scale:1}}
@media(max-width:600px){.zone-tabs button{min-height:44px}.scene-tools button{min-height:44px}.scene-actions button,.scene-actions a,.scene-actions .save-combination{min-height:44px}.scene-actions .studio-link{display:none}.apply-combination{min-height:44px}}
@media(prefers-reduced-motion:reduce){.color-button[aria-busy=true] i{animation:none}}
.menu-toggle{width:44px;height:44px;padding:10px 11px;display:flex;flex-direction:column;justify-content:center;gap:5px;flex-shrink:0}
.menu-toggle span{width:22px;margin:0;flex-shrink:0}
@media(max-width:360px){.site-header:not(.header-float) .header-cta{display:none}.header-float .header-cta{display:flex}.header-context{font-size:8px}}
@media(max-width:360px){.header-float .header-context{top:64px;left:50%!important;max-width:calc(100vw - 40px)!important;font-size:9px;white-space:normal}}

.header-float:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);mask-image:linear-gradient(#000 45%,transparent);-webkit-mask-image:linear-gradient(#000 45%,transparent)}
/* A wide, short touch viewport needs controls beside the photo. */
@media(min-width:601px) and (max-width:1000px) and (max-height:600px){
 .configurator,.studio .configurator,.studio .configurator[data-scene]{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(270px,1fr);max-height:calc(100svh - 102px)}
 .scene-controls,.studio .scene-controls{padding:8px;gap:4px;max-height:none}
 .scene-controls h3{font-size:16px;line-height:1.15;display:none}
 .zone-tabs{gap:4px;flex-wrap:nowrap}.zone-tabs button{min-height:44px;font-size:9px;padding:4px;line-height:1.2}
 .color-buttons,.compact .color-buttons,.project-detail .color-buttons{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
 .color-button{min-height:44px;gap:3px;font-size:8px}.color-button i{width:25px;height:25px;margin:0}
 .color-label{font-size:10px;line-height:1.3;min-height:13px}
 .scene-control-note,.compare-control,.scene-actions .studio-link{display:none}
 .scene-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}
 .scene-actions .apply-combination,.scene-actions .save-combination{grid-column:auto}
 .scene-actions button,.scene-actions .apply-combination{min-height:44px;font-size:10px;padding:6px 8px}
 .scene-stage{max-height:calc(100svh - 98px)}
}

.rail-toolbar button{width:auto;min-width:44px;height:44px;padding:0 10px;border-radius:22px;font-size:10px}
.photo-exploration{position:relative;isolation:isolate}
.photo-open{position:absolute;right:24px;bottom:24px;z-index:4;padding:11px 18px;min-height:44px;border-radius:24px;color:#262822;background:#f6f5f1e8;border:1px solid #fff7;backdrop-filter:blur(12px);font-size:11px;transition:background .3s,color .3s,transform .3s,box-shadow .3s}
.photo-open:hover{background:#343d31;color:#fff;box-shadow:0 5px 20px #0002;transform:translateY(-2px)}
.photo-open:active{transform:scale(.96)}
@media(max-width:600px){.photo-open{right:14px;bottom:16px;font-size:10px;padding:10px 14px}}

/* Photo tools must not change the positioning of full-bleed media. */
.hero-visual.photo-exploration,.room-hero>div:first-child.photo-exploration{position:absolute;inset:0;isolation:auto}.hero-shade{pointer-events:none}.hero-copy,.room-hero-copy{pointer-events:none}.hero-copy a,.hero-copy button,.room-hero-copy a,.room-hero-copy button{pointer-events:auto}
