/* Shared gallery chrome and measured mobile reading areas. */
html,html body,html body *{scrollbar-color:var(--brand-primary) transparent!important;}
html::-webkit-scrollbar,html body ::-webkit-scrollbar{width:6px;height:6px;}
html::-webkit-scrollbar-thumb,html body ::-webkit-scrollbar-thumb{background:var(--brand-primary)!important;border-radius:999px;}
html::-webkit-scrollbar-track,html body ::-webkit-scrollbar-track{background:transparent!important;}
html::-webkit-scrollbar-button,html body ::-webkit-scrollbar-button{display:none!important;width:0;height:0;}
html body #chatbot-panel .chatbot-disclaimer [data-cb=copy]{display:inline-flex!important;align-items:center;justify-content:center;min-height:36px!important;padding:4px 12px!important;margin:3px 0 3px 8px!important;border:1px solid var(--brand-primary)!important;border-radius:var(--brand-radius-button)!important;background:color-mix(in srgb,var(--brand-primary) 12%,transparent)!important;color:var(--brand-plum)!important;font:600 12px/1.2 var(--brand-font)!important;vertical-align:middle;cursor:pointer;white-space:nowrap;}
html body #chatbot-panel .chatbot-footer:has(#chatbot-status:empty){display:none!important;}
html body dialog.portfolio-lightbox{box-sizing:border-box!important;width:calc(100vw - 2 * var(--ds-editorial-side))!important;height:calc(100dvh - 2 * var(--ds-header-inset))!important;max-width:none!important;max-height:none!important;overflow:hidden!important;margin:auto!important;padding:12px!important;}
html body .portfolio-lightbox[open]{display:flex!important;flex-direction:column!important;gap:8px!important;}
html body .portfolio-lightbox .lightbox-canvas{flex:1 1 0!important;min-width:0!important;min-height:0!important;width:100%!important;touch-action:none!important;}
html body .portfolio-lightbox footer{position:static!important;display:flex!important;flex-wrap:wrap;justify-content:center;gap:6px!important;flex:0 0 auto!important;margin:0!important;padding:0!important;}
html body .portfolio-lightbox footer>span{font-size:12px;flex-basis:100%;}
.viewer-zoom-hint{padding:9px 18px;border-radius:var(--brand-radius-button);background:var(--glass-light-surface);color:var(--brand-plum);font-size:13px;text-align:center;}
html body .portfolio-lightbox .viewer-comparison-control{position:static!important;display:flex;align-items:center;gap:12px;width:min(560px,100%);flex:none!important;}
html body .portfolio-lightbox .viewer-comparison-control[hidden],.viewer-comparison-divider[hidden]{display:none!important;}
.viewer-comparison-control span{white-space:nowrap;font-size:12px;}.viewer-comparison-control input{min-width:0;width:100%;accent-color:var(--brand-primary);}
.viewer-comparison-divider{position:absolute;top:0;bottom:0;width:2px;background:var(--brand-primary);pointer-events:none;z-index:3;}
.viewer-comparison-divider::after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:5px 8px;border-radius:20px;background:var(--brand-primary);color:var(--brand-white);}
.viewer-navigation{flex:none;min-width:0;width:100%;}
.viewer-thumbnails{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;max-width:100%;position:relative;padding:2px;}
.viewer-thumbnails::-webkit-scrollbar,.furniture-thumbnails::-webkit-scrollbar{display:none;}
html body .portfolio-lightbox .viewer-thumbnails button{flex:0 0 72px;height:54px;min-height:0;padding:2px;border-radius:8px;border:1px solid transparent;}
html body .portfolio-lightbox .viewer-thumbnails button[aria-pressed=true]{border-color:var(--brand-primary);}
html body .portfolio-lightbox .viewer-thumbnails img{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;object-fit:cover!important;transform:none!important;}
html body .portfolio-lightbox .viewer-dots{position:static!important;display:flex!important;justify-content:center!important;transform:none!important;width:100%!important;margin:0!important;padding:0!important;gap:0!important;}
.furniture-thumbnails{scrollbar-width:none;position:relative;}
.furniture-photo-dots{display:flex;justify-content:center;flex:none;gap:0;}
.furniture-photo-dots button{border:0;background:none;min-width:0;width:24px;height:24px;padding:8px;}
.furniture-photo-dots button::after{content:'';display:block;width:6px;height:6px;border-radius:50%;background:var(--brand-white);opacity:.4;}
.furniture-photo-dots button[aria-pressed=true]::after{background:var(--brand-primary);opacity:1;}
html body .site-header :is(.is-current,[aria-current=true],[aria-current=location]){font-weight:700!important;}
html body #chatbot-section-slot{padding-bottom:8px!important;}
html body #chatbot-section .chatbot-footer{padding-block:2px!important;min-height:0!important;}
.read-more{display:none;}
@media(max-width:900px){
 /* Reading space follows browser chrome; timeline distances remain stable. */
 html body :is(#citta,#arredi,#palazzo-butera){--mobile-panel-height:calc(var(--reading-viewport,100dvh) - var(--panel-top) - var(--panel-bottom))!important;}
 html body :is(.urban-pin,.furniture-pin,.byat-pin),html body #citta .urban-pin,html body #chatbot-section-slot{height:var(--reading-viewport,100dvh)!important;min-height:0!important;}
 html body #mondo .journey-pin{height:var(--reading-viewport,100dvh)!important;min-height:0!important;max-height:var(--reading-viewport,100dvh)!important;}
 html body :is(.project-intro,.byat-copy,.furniture-details){overflow:hidden!important;}
 html body .site-header[data-theme],html body .site-header .v44-mobile-research{background:var(--brand-white)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:var(--brand-plum)!important;}
 html body .site-header .v44-mobile-research{height:38px!important;border-radius:0 0 20px 20px!important;}
 html body .site-header .v44-mobile-research button{min-height:36px!important;padding:5px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
 html body .site-header .v44-mobile-research button[hidden]{display:none!important;}
 html body .site-header .v44-mobile-research button>i,html body .site-header .v44-mobile-research .v44-sub-line{display:none!important;}
 html body #mondo .world-copy{margin-top:0!important;}
 html body #mondo .exterior-window{top:var(--review-content-top)!important;bottom:var(--review-content-bottom)!important;}
 html body #arredi{--panel-top:var(--review-content-top)!important;--panel-bottom:var(--review-content-bottom)!important;}
 html body #arredi .gallery-window{height:100%!important;max-height:none!important;}
 html body #casa:not(.is-minimized) .byat-pin{padding-top:var(--review-content-top)!important;padding-bottom:var(--review-content-bottom)!important;box-sizing:border-box!important;}
 html body #casa:not(.is-minimized) :is(.byat-window,.interior-panel){height:calc(100dvh - var(--review-content-top) - var(--review-content-bottom))!important;}
 html body :is(#citta,#palazzo-butera){--panel-bottom:var(--review-content-bottom)!important;}
 html body #mondo #byat .exterior-track>.exterior-panel,html body #casa:not(.is-minimized) #interni,html body #palazzo-butera .butera-track>.butera-panel{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important;gap:0!important;overflow:hidden!important;padding:0!important;height:100%!important;}
 html body #mondo #byat .exterior-track>.exterior-panel>.byat-copy,html body #casa:not(.is-minimized) #interni>.byat-copy,html body #palazzo-butera .butera-track>.butera-panel>.byat-copy{grid-row:1!important;grid-column:1!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:12px!important;box-sizing:border-box!important;gap:6px!important;justify-content:flex-start!important;}
 html body #mondo #byat .exterior-track>.exterior-panel>.photo-gallery,html body #casa:not(.is-minimized) #interni>.photo-gallery,html body #casa:not(.is-minimized) #interni[data-interior-photo]>.photo-gallery,html body #palazzo-butera .butera-track>.butera-panel>.photo-gallery{grid-row:2!important;grid-column:1!important;min-height:0!important;height:100%!important;max-height:none!important;flex:1 1 0!important;align-self:stretch!important;}
 html body #mondo #byat .exterior-panel .photo-stage{height:100%!important;min-height:0!important;flex:1 1 0!important;aspect-ratio:auto!important;}
 html body #arredi .furniture-card:not(.is-expanded)>.furniture-thumbnails{display:none!important;}
 html body #arredi .furniture-card:not(.is-expanded)>.furniture-visual{height:100%!important;}
 html body #arredi .project-card-label>span:first-child{font-size:clamp(23px,6vw,30px)!important;}
 html body #arredi .furniture-card.is-expanded{display:flex!important;flex-direction:column!important;overflow:hidden!important;}
 html body #arredi .furniture-card.is-expanded>.furniture-visual{flex:0 0 50%!important;height:50%!important;min-height:0!important;}
 html body #arredi .furniture-card.is-expanded>.furniture-thumbnails{flex:0 0 30px!important;height:30px!important;min-height:30px!important;}
 html body #arredi .furniture-card.is-expanded>.furniture-details{flex:1 1 0!important;overflow:hidden!important;}
 html body #arredi .furniture-photo-dots{display:none!important;}
 html body #arredi .furniture-card.is-reading{overflow-y:auto!important;overscroll-behavior-y:contain;}
 html body #arredi .furniture-card.is-reading>.furniture-details{flex:0 0 auto!important;overflow:visible!important;}
 html body .adaptive-copy{display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important;}
 html body #citta .project-intro.adaptive-copy{overflow:hidden!important;gap:10px!important;}
 html body .adaptive-copy>.adaptive-body{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;width:100%;}
 html body .adaptive-copy[hidden]{display:none!important;}
 html body #mondo #byat .byat-copy.adaptive-copy,html body #casa #interni .byat-copy.adaptive-copy,html body #palazzo-butera .byat-copy.adaptive-copy{overflow:hidden!important;}
 html body .adaptive-copy>.read-more{flex:none;align-self:flex-start;border:0;padding:4px 8px;margin-left:-8px;min-height:36px;min-width:80px;background:none;color:var(--brand-primary);font:inherit;font-size:12px;line-height:20px;cursor:pointer;}
 html body .adaptive-copy>.read-more:not([hidden]){display:block;}
 html body .adaptive-copy>.read-more[hidden]{display:none;}
 html body .adaptive-copy.is-reading>.adaptive-body{overflow-y:auto!important;overscroll-behavior-y:contain;}
 html body #arredi .is-reading .adaptive-body{overflow:visible!important;flex:none!important;}
 html body #citta .project-intro :is(h2,h3,.project-place,.award-block){flex-shrink:0!important;}
 html body #palazzo-butera .byat-copy :is(h2,h3,p){margin:0!important;}
 html body #palazzo-butera .adaptive-body p+p{margin-top:8px!important;}
 html body #palazzo-butera .butera-track>.butera-panel{grid-template-rows:minmax(0,var(--butera-copy-height,50%)) minmax(0,1fr)!important;}
 html body #chatbot-section-slot{padding-bottom:var(--review-content-bottom)!important;}
 html body dialog.portfolio-lightbox{width:calc(100vw - 2 * var(--page-margin))!important;}
 .viewer-zoom-hint{font-size:0;padding:8px;}.viewer-zoom-hint::after{content:'Allarga con due dita · doppio tocco per adattare';font-size:10px;}
 html body .portfolio-lightbox .viewer-thumbnails button{flex-basis:48px;height:36px;}
 html body .portfolio-lightbox .viewer-dots button{flex:0 1 24px!important;min-width:12px!important;}
 .viewer-comparison-control{flex-direction:column;gap:2px!important;}
 #citta .project-board{overflow:hidden!important;touch-action:pan-y;}
 #citta .project-board img{transform:scale(var(--board-zoom,1));transform-origin:var(--board-origin,50% 50%);}
}
@media(max-width:900px) and (max-height:650px) and (orientation:portrait){
 html body #arredi .furniture-card.is-expanded>.furniture-details{padding:10px!important;gap:4px!important;}
 html body #arredi .furniture-details h3{font-size:23px!important;line-height:1.1!important;margin:0!important;}
 html body #arredi .furniture-category{font-size:11px!important;line-height:1.25!important;margin:0!important;}
 html body #arredi .furniture-details .adaptive-body{font-size:12px!important;line-height:1.35!important;}
 html body #arredi .furniture-description p{font-size:inherit!important;line-height:inherit!important;margin:0 0 6px!important;}
}
html body .menu-section{position:relative;}
html body .menu-section:has(.menu-expand)>.menu-main{padding-right:52px!important;}
html body .menu-expand{position:absolute;right:0;top:4px;width:44px;height:44px;border:0;background:none;color:inherit;font:inherit;font-size:24px;cursor:pointer;}
.language-feedback{color:var(--brand-primary);font-size:12px;min-height:1em;}
html body .desktop-languages{position:relative;display:flex;flex:0 0 36px;flex-direction:column;gap:0;align-items:center;justify-content:center;border-left:1px solid var(--nav-border);padding-left:10px;margin-left:0;align-self:center;}
html body .desktop-languages button{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--brand-plum);border:0;padding:6px;min-height:28px;width:32px;cursor:pointer;}
html body .desktop-languages .language-flag{width:17px;height:12px;}
html body .desktop-languages .language-feedback{position:absolute;top:100%;right:0;white-space:nowrap;background:var(--brand-white);border-radius:12px;padding:4px 10px;}
html body .desktop-languages .language-feedback:empty{display:none;}
@media(max-width:900px){html body .desktop-languages{display:none!important;}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
 html body #citta .project-intro.adaptive-copy{gap:6px!important;padding:12px!important;}
 html body #citta .project-intro :is(h2,h3){font-size:24px!important;line-height:1.1!important;margin:0!important;}
 html body #citta .project-intro :is(h2,h3) br{display:none!important;}
 html body #citta .project-intro :is(h2,h3) em{margin-left:.2em!important;}
 html body #citta .project-intro .project-place{margin:0!important;font-size:11px!important;}
 html body #citta .project-intro .award-block{margin:0!important;padding-top:6px!important;}
 html body #citta .project-intro .award-block p{font-size:10px!important;line-height:1.25!important;}
 html body #citta .project-intro .award-badge{width:26px!important;height:32px!important;}
 html body #mondo #byat .exterior-track>.exterior-panel,html body #casa:not(.is-minimized) #interni,html body #palazzo-butera .butera-track>.butera-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;}
 html body #mondo #byat .exterior-track>.exterior-panel>.photo-gallery,html body #casa:not(.is-minimized) #interni>.photo-gallery,html body #casa:not(.is-minimized) #interni[data-interior-photo]>.photo-gallery,html body #palazzo-butera .butera-track>.butera-panel>.photo-gallery{grid-row:1!important;grid-column:2!important;}
 html body #arredi .furniture-card.is-expanded{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 30px!important;}
 html body #arredi .furniture-card.is-expanded>.furniture-visual{grid-column:1!important;grid-row:1!important;height:100%!important;}
 html body #arredi .furniture-card.is-expanded>.furniture-thumbnails{grid-column:1!important;grid-row:2!important;}
 html body #arredi .furniture-card.is-expanded>.furniture-details{grid-column:2!important;grid-row:1 / 3!important;}
 html body #arredi .furniture-card.is-reading{display:flex!important;}
 html body #arredi .furniture-card.is-reading>.furniture-visual{height:50%!important;}
 .viewer-thumbnails{display:none;}
}
html body .timeline-segments .timeline-progress-tip{fill:var(--brand-primary);stroke:none;}
html body .portfolio-lightbox header{position:relative;z-index:10;isolation:isolate;}
html body .portfolio-lightbox [data-close]{touch-action:manipulation;min-width:44px;min-height:44px;}
.privacy-dialog{width:min(640px,calc(100vw - 28px));height:min(680px,calc(100dvh - 28px));padding:10px;border:1px solid var(--brand-primary);border-radius:24px;background:white;overflow:hidden;}
.privacy-dialog[open]{display:flex;flex-direction:column;}
.privacy-dialog>button{align-self:flex-end;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--brand-plum);font-size:26px;}
.privacy-dialog iframe{border:0;width:100%;flex:1;min-height:0;}
.privacy-dialog::backdrop{background:#210e1680;}
@media(max-width:900px){.chatbot-desktop-disclaimer{display:none;}}
@media(min-width:901px){
 html body .v4-desktop .v4-nav-node.is-passed:not(.is-current){color:var(--brand-plum)!important;}
 html body .v4-desktop .v4-brand{background:var(--brand-plum)!important;mask:url('assets/00_Identita_Font%20e%20logo/logo-navigation.svg') center/contain no-repeat;-webkit-mask:url('assets/00_Identita_Font%20e%20logo/logo-navigation.svg') center/contain no-repeat;}
 html body .v4-desktop .v4-brand img{visibility:hidden!important;}
}

.earth-handoff{position:fixed;z-index:19;pointer-events:none;object-fit:cover;max-width:none;will-change:width,height,left,top,opacity}.earth-handoff[hidden]{display:none}

/* Mobile document geometry stays fixed while Safari expands/collapses its bars.
   Fullscreen dialogs and the keyboard retain their own visual-viewport sizing. */
@media(max-width:900px){
 html body #inizio,html body #inizio>.journey-pin{height:var(--scene-height,100svh)!important;min-height:var(--scene-height,100svh)!important;}
 html body :is(#citta,#palazzo-butera,#chatbot-section){min-height:var(--scene-height,100svh)!important;}
 html body #contatti,html body #contatti .contact-pin{min-height:var(--scene-height,100svh)!important;}
 html body #chatbot-section-slot{height:var(--scene-height,100svh)!important;}
 html body #casa:not(.is-minimized) :is(.byat-window,.interior-panel){height:calc(var(--scene-height,100svh) - var(--review-content-top) - var(--review-content-bottom))!important;}
 html.chat-keyboard-open body #chatbot-section-slot{height:var(--chat-inline-height)!important;}
}
@media(max-width:900px){
 html body .site-header .v44-mobile-research:not(.mobile-furniture-timeline) button{gap:4px!important;justify-content:flex-start!important;}
 html body .site-header .v44-mobile-research:not(.mobile-furniture-timeline) button>i{display:block!important;flex:none;width:6px;height:6px;}
 html body .site-header .v44-mobile-research:not(.mobile-furniture-timeline) .v44-sub-line{display:block!important;top:8px!important;left:calc(25% + 8px)!important;width:calc(50% - 16px)!important;}
 html body .site-header .v44-mobile-research:not(.mobile-furniture-timeline) .v44-sub-line>i{position:relative;}
 html body .site-header .v44-mobile-research.is-between .v44-sub-line>i::after{content:'';position:absolute;right:-2px;top:-1.5px;width:4px;height:4px;border-radius:50%;background:var(--brand-primary);}
}
