#alh-root{--alh-bg:var(--alh-light);--alh-fg:var(--alh-light-text);--alh-top:16px;color:var(--alh-fg);font-family:inherit}
#alh-root[data-theme="dark"]{--alh-bg:var(--alh-dark);--alh-fg:var(--alh-dark-text)}
#alh-root *,#alh-root *::before,#alh-root *::after{box-sizing:border-box}
#alh-root [hidden]{display:none!important}
body.admin-bar #alh-root{--alh-top:48px}
#alh-header{position:fixed;inset:var(--alh-top) 0 auto;z-index:99990;width:calc(100% - 32px);max-width:var(--alh-width);margin:0 auto;border:1px solid #ffffff70;border-radius:var(--alh-radius);color:var(--alh-fg);background:var(--alh-bg);box-shadow:0 12px 36px #00000018,inset 0 1px 0 #ffffff60;transition:opacity .25s ease,transform .3s ease,visibility .3s;overflow:visible}
@supports (background:color-mix(in srgb,white,transparent)){#alh-header,#alh-reveal{background:color-mix(in srgb,var(--alh-bg) calc(var(--alh-alpha)*100%),transparent);-webkit-backdrop-filter:blur(var(--alh-blur)) saturate(115%);backdrop-filter:blur(var(--alh-blur)) saturate(115%)}}
#alh-root.is-collapsed #alh-header{opacity:0;visibility:hidden;pointer-events:none}
#alh-root[data-close="slide"].is-collapsed #alh-header{transform:translateY(calc(-100% - var(--alh-top) - 16px))}
#alh-root .alh-bar{display:flex;align-items:center;gap:16px;min-height:80px;padding:12px 22px}
#alh-root a{color:inherit;text-decoration:none}
#alh-root .alh-logo{display:flex;align-items:center;flex-shrink:0;font-weight:600}
#alh-root .alh-logo img{display:block;width:auto;max-width:var(--alh-logo-width);max-height:48px;height:auto}
#alh-root .alh-logo-dark{display:none!important}
#alh-root[data-theme="dark"] .alh-logo:has(.alh-logo-dark) .alh-logo-light{display:none}
#alh-root[data-theme="dark"] .alh-logo .alh-logo-dark{display:block!important}
#alh-root #alh-nav{margin-left:auto;min-width:0}
#alh-root ul{list-style:none;padding:0;margin:0}
#alh-root .alh-menu{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
#alh-root .alh-menu li{position:relative;margin:0;display:flex;align-items:center;flex-wrap:wrap}
#alh-root .alh-menu a{display:block;padding:11px 13px;border-radius:12px;font-size:15px;line-height:1.5;transition:background .18s,transform .18s}
#alh-root .alh-menu .menu-item-has-children>a{padding-right:13px}
#alh-root button{font:inherit;cursor:pointer;color:inherit;border:0;box-shadow:none;text-transform:none;letter-spacing:normal}
#alh-root .alh-parent-toggle{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;min-height:44px;background:transparent;border-radius:12px;font-size:15px;font-weight:500;line-height:1.5;transition:background .18s,transform .18s}
#alh-root .alh-parent-arrow{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s;flex-shrink:0;margin-right:2px}
#alh-root .alh-parent-toggle[aria-expanded="true"] .alh-parent-arrow{transform:translateY(2px) rotate(225deg)}
#alh-root .alh-parent-toggle[aria-expanded="true"],#alh-root .alh-parent-toggle.alh-current{background:#88888820}
#alh-root .alh-parent-toggle:active{transform:scale(.98)}
#alh-root .alh-parent-overview{border-bottom:1px solid #8883;padding-bottom:4px;margin-bottom:4px}
#alh-root .alh-menu .sub-menu{position:absolute;top:100%;left:0;min-width:230px;padding:8px;border:1px solid #8883;border-radius:16px;background:var(--alh-bg);box-shadow:0 15px 36px #0002;z-index:2}
#alh-root .alh-menu .sub-menu li{width:100%}
#alh-root .sub-menu a{flex:1}
#alh-root .alh-menu .sub-menu .sub-menu{left:100%;top:0}
#alh-root .alh-controls{display:flex;gap:8px;align-items:center;order:4}
#alh-root .alh-action,#alh-root .alh-theme,#alh-root .alh-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;padding:10px 13px;background:#88888818;line-height:1.4;font-size:14px}
#alh-root .alh-theme,#alh-root .alh-menu-toggle{min-width:44px}
#alh-root .alh-theme{display:none}
#alh-root .alh-hamburger{width:20px;height:2px;background:currentColor;position:relative}
#alh-root .alh-hamburger::before,#alh-root .alh-hamburger::after{content:"";position:absolute;left:0;width:20px;height:2px;background:currentColor;transition:transform .2s}
#alh-root .alh-hamburger::before{transform:translateY(-6px)}
#alh-root .alh-hamburger::after{transform:translateY(6px)}
#alh-root .alh-menu-toggle[aria-expanded="true"] .alh-hamburger{background:transparent}
#alh-root .alh-menu-toggle[aria-expanded="true"] .alh-hamburger::before{transform:rotate(45deg)}
#alh-root .alh-menu-toggle[aria-expanded="true"] .alh-hamburger::after{transform:rotate(-45deg)}
#alh-reveal{position:fixed;top:var(--alh-top);left:50%;transform:translateX(-50%);z-index:99989;display:flex;align-items:center;justify-content:center;width:52px;height:44px;padding:8px;border:1px solid #ffffff80!important;border-radius:0 0 16px 16px;background:var(--alh-bg);box-shadow:0 6px 22px #0002;color:var(--alh-fg);font-size:30px!important}
#alh-reveal img{display:block;width:26px;height:26px;object-fit:contain}
#alh-root a:focus-visible,#alh-root button:focus-visible{outline:3px solid var(--alh-accent);outline-offset:3px}
#alh-root .alh-menu .current-menu-item>a,#alh-root .alh-menu .current-menu-ancestor>a{background:#88888820}
/* Senza JS: menu e sottomenu rimangono accessibili. */
#alh-root:not(.alh-ready) .sub-menu{display:block;position:static;box-shadow:none}
@media(hover:hover){#alh-root a:hover,#alh-root button:hover{background-color:#88888825}#alh-root .alh-logo:hover{background:transparent;opacity:.8}}
@media(min-width:1025px){#alh-root.alh-ready .alh-menu-toggle{display:none}}
@media(max-width:1024px){
 #alh-root{--alh-top:10px}body.admin-bar #alh-root{--alh-top:42px}
 #alh-header{width:calc(100% - 24px)}
 #alh-root .alh-bar{flex-wrap:wrap;gap:10px;min-height:70px;padding:10px 12px}
 #alh-root .alh-action{order:0;max-width:110px;overflow-wrap:anywhere}
 #alh-root .alh-logo{order:1;margin-right:auto;min-width:0;flex-shrink:1}
 #alh-root .alh-logo img{max-width:min(var(--alh-logo-width),27vw);max-height:42px}
 #alh-root .alh-controls{order:2;margin-left:auto}
 #alh-root.alh-ready .alh-theme{display:inline-flex}
 #alh-root #alh-nav{order:3;flex:0 0 100%;width:100%;margin:0;max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px);overflow:auto;overscroll-behavior:contain;border-top:1px solid #8883;padding-top:8px}
 #alh-root .alh-menu{display:block}
 #alh-root .alh-menu a{flex:1;min-height:46px}
 #alh-root .alh-parent-toggle{width:100%;min-height:46px;text-align:left}
 #alh-root .alh-menu .sub-menu,#alh-root .alh-menu .sub-menu .sub-menu{position:static;left:auto;top:auto;flex:0 0 calc(100% - 8px);width:calc(100% - 8px);min-width:0;margin:4px;background:#88888812;box-shadow:none;border:0}
}
@media(min-width:601px) and (max-width:782px){body.admin-bar #alh-root{--alh-top:56px}}
@media(max-width:600px){body.admin-bar #alh-root{--alh-top:calc(10px + var(--alh-admin-offset,46px))}}
@media(prefers-reduced-motion:reduce){#alh-root *,#alh-root *::before,#alh-root *::after{transition:none!important;animation:none!important}}
