/* ES3D R08: scoped native Kalium header; no theme options or commercial pages. */
body.es3d-compact-header{--es3d-header-height:var(--es3d-tool-header-height,76px);--es3d-admin-top:0px;--es3d-header-measured:var(--es3d-tool-header-height,76px)}
body.es3d-compact-header.admin-bar{--es3d-admin-top:32px}
body.es3d-compact-header header.site-header.main-header{position:sticky!important;top:var(--es3d-admin-top)!important;z-index:1000!important;height:var(--es3d-header-height)!important;min-height:var(--es3d-header-height)!important;padding:0!important;margin:var(--es3d-admin-extra,0px) 0 0!important;background:#0d2018!important;overflow:visible!important;box-shadow:0 1px 0 rgba(255,255,255,.08)}
body.es3d-compact-header header.site-header.main-header .header-block{height:var(--es3d-header-height)!important;min-height:var(--es3d-header-height)!important;padding-top:0!important;padding-bottom:0!important;display:flex;align-items:center;justify-content:center}
/* Native row -15px and column +15px cancel: the real logo/menu use the shell. */
body.es3d-compact-header header.site-header.main-header .header-block>.header-block__row-container.container{width:var(--es3d-native-header-outer-width)!important;max-width:none!important;padding-left:0!important;padding-right:0!important;margin-left:auto!important;margin-right:auto!important}
body.es3d-compact-header header.site-header.main-header .header-logo.es3d-site-wordmark{display:flex!important;align-items:center;justify-content:flex-start;width:176px!important;height:44px!important;max-width:100%;filter:none!important;flex-shrink:0}
body.es3d-compact-header header.site-header.main-header .header-logo.es3d-site-wordmark img.main-logo{display:block!important;width:176px!important;height:auto!important;max-width:100%!important;max-height:36px;object-fit:contain;filter:none!important;transform:none!important}
body.es3d-compact-header header.site-header.main-header .standard-menu-container > nav > ul > li > a{font-weight:700;min-height:44px;display:inline-flex;align-items:center}
body.es3d-compact-header header.site-header.main-header .ps3d-menu-submenu-toggle{width:44px;min-width:44px;min-height:44px}
body.es3d-compact-header header.site-header.main-header .toggle-bars{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
body.es3d-compact-header header.site-header.main-header .header-logo:focus-visible,body.es3d-compact-header header.site-header.main-header a:focus-visible,body.es3d-compact-header header.site-header.main-header button:focus-visible{outline:2px solid #fff;outline-offset:3px}
html.es3d-chrome-active{scroll-padding-top:calc(var(--es3d-scroll-top,76px) + 16px)}
body.es3d-compact-header [id],body.es3d-compact-header iframe.es3d-app-frame{scroll-margin-top:calc(var(--es3d-scroll-top,76px) + 16px)}
body.es3d-compact-header .es3d-formabrace__hero{padding-top:24px}
body.es3d-compact-header .es3d-formabrace__hero .es3d-app-lockup{margin:0 0 16px!important}
@media(max-width:959px){body.es3d-compact-header{--es3d-header-height:var(--es3d-tool-header-height,56px);--es3d-header-measured:var(--es3d-tool-header-height,56px)}body.es3d-compact-header header.site-header.main-header .header-logo.es3d-site-wordmark,body.es3d-compact-header header.site-header.main-header .header-logo.es3d-site-wordmark img.main-logo{width:144px!important}body.es3d-compact-header .es3d-formabrace__hero{padding-top:20px}}
@media(max-width:782px){body.es3d-compact-header.admin-bar{--es3d-admin-top:46px}}

body.es3d-compact-header header.site-header.main-header .standard-menu-container > nav > ul > li > a,body.es3d-compact-header header.site-header.main-header .ps3d-menu-submenu-toggle{color:#fff!important;text-shadow:none!important}
body.es3d-compact-header header.site-header.main-header .toggle-bars__bar-line{background-color:#fff!important;box-shadow:none!important}

/* Keep the existing Stampa H1 accessible without repeating the app wordmark. */
body.es3d-compact-header.page-id-11574 .esolution-quote-page > h1{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}

/* Extend the toolbar background across wrapped root items without intercepting clicks. */
body.es3d-compact-header.admin-bar #wpadminbar::before{content:"";position:absolute;top:0;right:0;bottom:calc(-1 * var(--es3d-admin-extra,0px));left:0;background:inherit;z-index:-1;pointer-events:none}

/* Native Progetti is a button: keep it white across the three compact headers. */
body.es3d-compact-header header.site-header.main-header .standard-menu-container li.es-projects-menu-r01 > .es-projects-menu-r01__toggle {
  color: #fff !important;
  background: transparent;
  min-height: 44px;
  font-weight: 700;
}
body.es3d-compact-header header.site-header.main-header .standard-menu-container li.es-projects-menu-r01 > .es-projects-menu-r01__toggle:hover,
body.es3d-compact-header header.site-header.main-header .standard-menu-container li.es-projects-menu-r01 > .es-projects-menu-r01__toggle:focus-visible {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* R15: iPad keeps a fixed viewport anchor and a matching structural flow slot.
   Head detection precedes body paint; phone and desktop retain R14 sticky.
   WordPress toolbar stays pinned too, so the logo never chases its clipped edge. */
html.es3d-ipad-fixed body.es3d-compact-header #main-wrapper {
  padding-top: calc(var(--es3d-header-height) + var(--es3d-admin-extra, 0px));
}
html.es3d-ipad-fixed body.es3d-compact-header header.site-header.main-header {
  position: fixed !important;
  top: var(--es3d-admin-top) !important;
  left: 0 !important;
  width: var(--es3d-layout-width, 100%) !important;
  margin: 0 !important;
  transform: none !important;
  transition: none !important;
}
html.es3d-ipad-fixed body.es3d-compact-header.admin-bar #wpadminbar {
  position: fixed !important;
  top: 0 !important;
}
