/* v160 - shared hover/touch account menu in public and reserved headers */
.sz160-account-wrap{position:relative;display:flex;align-items:center;min-width:0}
.sz160-account-menu{display:none;position:absolute;right:0;top:calc(100% - 2px);min-width:170px;padding:8px;background:#fff;border:1px solid #b7cde7;border-radius:10px;box-shadow:0 8px 24px #102f5a33;z-index:10000}
.sz160-account-wrap:hover .sz160-account-menu,.sz160-account-wrap:focus-within .sz160-account-menu,.sz160-account-wrap.sz160-open .sz160-account-menu{display:block}
.sz160-account-action{display:block;width:100%;box-sizing:border-box;text-align:left;color:#123f82!important;background:transparent!important;border:0!important;padding:10px 12px!important;border-radius:7px;font:600 14px/1.3 system-ui,sans-serif!important;cursor:pointer;text-decoration:none!important}
.sz160-account-action:hover,.sz160-account-action:focus-visible{background:#e8f2ff!important}
.sz155-greeting{display:flex;flex-direction:column;gap:3px;color:#fff;flex-shrink:0;margin-left:12px;text-align:left}
.sz155-greeting strong{font-size:14px;line-height:1.3;white-space:normal}.sz155-greeting small{font-size:11px;color:#d4e6ff}
@media(max-width:1250px){.sz155-greeting strong{font-size:12px}}
@media(max-width:550px){.sz160-account-menu{right:0;left:auto}.sz155-greeting{margin-left:6px}.sz155-greeting strong{font-size:11px}}

/* v189: keep mobile navigation visible even with authenticated greeting. */
@media(max-width:850px){
 #sz-v106-global .szg-inner{flex-wrap:wrap;gap:6px 10px;min-width:0}
 #sz-v106-global .szg-brand{flex:1 1 auto;min-width:0}
 #sz-v106-global .szg-toggle{display:flex!important;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;order:2;margin-left:auto;position:relative;z-index:2}
 #sz-v106-global .sz155-greeting{order:3;flex:1 0 100%;margin:0;padding:0 0 4px 2px}
 #sz-v106-global .szg-menu{top:100%;z-index:5}
 #sz-v106-global .szg-menu.szg-open{display:flex!important}
}

/* v190: Home public header mobile (uses .header, not #sz-v106-global).
   Keep hamburger visible when the authenticated greeting is inserted. */
@media (max-width:1160px) {
  body .header {
    height:auto; min-height:76px; display:flex; flex-wrap:wrap;
    align-items:center; justify-content:space-between;
    gap:6px 8px; padding-top:10px; padding-bottom:10px;
  }
  body .header > .brand {
    order:1; flex:0 1 auto; min-width:0; max-width:calc(100% - 62px);
    margin-right:0;
  }
  body .header > .brand > span {min-width:0;}
  body .header > .menu-button {
    display:flex!important; order:2; flex:0 0 44px;
    align-items:center; justify-content:center;
    width:44px; height:44px; min-width:44px; margin-left:auto;
    padding:0; position:relative; z-index:2;
    color:#fff; background:transparent; border:1px solid #ffffff77;
    border-radius:9px; font-size:26px; cursor:pointer;
  }
  body .header > .sz155-greeting {
    order:3; flex:0 0 100%; width:100%; margin:0;
    padding:3px 0 1px; text-align:left; min-width:0;
  }
  body .header > .sz155-greeting strong {font-size:13px; overflow-wrap:anywhere;}
  body .header > .sz155-greeting small {font-size:11px;}
  body .header > .nav {top:100%; z-index:3;}
  body .header > .nav.open {display:flex!important;}
}
@media (max-width:400px) {
  body .header > .brand strong {font-size:16px;}
  body .header > .brand small {font-size:8px;}
}

/* v191: compact mobile action on the greeting row, below the hamburger */
.sz191-action-row{display:none}
@media(max-width:1160px){
 header.header > .sz191-action-row,
 #sz-v106-global .szg-inner > .sz191-action-row{display:flex;order:3;flex:1 0 100%;justify-content:flex-end;margin:0;padding:2px 0}
 .sz155-greeting{position:relative;min-width:0}
 .sz155-greeting > .sz191-action-row{display:flex;position:absolute;right:0;top:0;align-items:center;justify-content:flex-end}
 .sz155-greeting:has(> .sz191-action-row) > strong{padding-right:76px;display:block}
 .sz191-action{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:4px 12px;border:1px solid #c6e1ff;border-radius:8px;background:#ffffff17;color:white!important;text-decoration:none;font:700 12px/1.1 system-ui,sans-serif;cursor:pointer}
 .sz191-action:hover,.sz191-action:focus-visible{background:#ffffff30}
}

/* v192 — mobile dropdown with high contrast and active page */
@media (max-width:1160px){
 body .header > .nav{
  order:5!important;flex:0 0 100%!important;width:100%!important;
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  margin:4px 0 0!important;padding:8px!important;box-sizing:border-box!important;
  background:#fff!important;color:#243b5b!important;border:1px solid #d3e2f4!important;
  border-radius:13px!important;box-shadow:0 12px 24px #092a5833!important;
  max-height:min(65vh,570px)!important;overflow-y:auto!important;z-index:50!important;
 }
 body .header > .nav:not(.open){display:none!important}
 body .header > .nav.open{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important}
 body .header > .nav > a,body .header > .nav > .sz160-account-wrap,
 body .header > .nav > .language-control{
  flex:0 0 auto!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;min-height:43px!important;margin:0!important;
  border:0!important;border-radius:8px!important;box-shadow:none!important;
  background:transparent!important;color:#263e5f!important;
 }
 body .header > .nav > a{display:flex!important;align-items:center!important;justify-content:flex-start!important;
  padding:11px 13px!important;text-decoration:none!important;font-weight:600!important;font-size:14px!important;line-height:1.4!important}
 body .header > .nav > a svg{width:19px!important;height:19px!important;flex-shrink:0!important;margin-right:9px!important;stroke:#1c5db4!important}
 body .header > .nav > a span,body .header > .nav > a .profile-label,
 body .header > .nav > a .profile-name,body .header > .nav > a .profile-lead{color:inherit!important}
 body .header > .nav > a[aria-current="page"],body .header > .nav > a.sz192-active{
  background:#e6f0ff!important;color:#1358bd!important;font-weight:800!important;
 }
 body .header > .nav > a:focus-visible{outline:2px solid #2468ce!important;outline-offset:-2px!important}
 body .header > .nav > a:hover{background:#f0f6ff!important;color:#1358bd!important}
 body .header > .nav > .sz160-account-wrap{display:flex!important;align-items:stretch!important}
 body .header > .nav > .sz160-account-wrap > a{width:100%!important;color:#263e5f!important;padding:10px 13px!important}
 body .header > .nav > .language-control{padding:6px 12px!important}
 body .header > .menu-button[aria-expanded="true"]{background:#ffffff25!important}
}
@media (max-width:850px){
 #sz-v106-global .szg-menu{
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  order:5!important;flex:0 0 100%!important;width:100%!important;
  margin:6px 0 0!important;padding:8px!important;box-sizing:border-box!important;
  border-radius:13px!important;background:#fff!important;color:#243b5b!important;
  border:1px solid #d3e2f4!important;box-shadow:0 12px 24px #092a5833!important;
  max-height:min(65vh,570px)!important;overflow-y:auto!important;z-index:50!important;
 }
 #sz-v106-global .szg-menu:not(.szg-open){display:none!important}
 #sz-v106-global .szg-menu.szg-open{display:flex!important;flex-direction:column!important;gap:2px!important;align-items:stretch!important}
 #sz-v106-global .szg-menu a{display:flex!important;align-items:center!important;width:100%!important;min-height:42px!important;
  padding:10px 13px!important;box-sizing:border-box!important;border:0!important;border-radius:8px!important;
  background:transparent!important;color:#263e5f!important;font-size:14px!important;text-decoration:none!important;font-weight:600!important}
 #sz-v106-global .szg-menu a[aria-current="page"],#sz-v106-global .szg-menu a.sz192-active{
  background:#e6f0ff!important;color:#1358bd!important;font-weight:800!important}
 #sz-v106-global .szg-menu a:hover{background:#f0f6ff!important;color:#1358bd!important}
}

/* v193: only profile label color in mobile dropdown; retain gold outline and icon. */
@media (max-width:1160px) {
 body .header > .nav > a.profile .profile-label,
 body .header > .nav > a.profile .profile-lead,
 body .header > .nav > a.profile .profile-name {
   color:#263e5f!important;
   -webkit-text-fill-color:#263e5f!important;
   opacity:1!important;
 }
}

/* v194 — solo menu a cascata mobile: Area privata uniforme alle altre voci. */
@media (max-width:1160px) {
 body .header > .nav > a.profile {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-height:43px!important;padding:11px 13px!important;
  margin:0!important;border:0!important;border-radius:8px!important;
  background:transparent!important;box-shadow:none!important;
  color:#263e5f!important;font-size:14px!important;font-weight:600!important;
  text-align:left!important;gap:0!important;
 }
 body .header > .nav > a.profile svg {
  width:19px!important;height:19px!important;flex:0 0 19px!important;
  margin:0 9px 0 0!important;padding:0!important;
  border:0!important;border-radius:0!important;
  stroke:#1c5db4!important;color:#1c5db4!important;
 }
 body .header > .nav > a.profile .profile-label {display:none!important}
 body .header > .nav > a.profile .sz194-private-label {
  display:inline!important;color:#263e5f!important;-webkit-text-fill-color:#263e5f!important;
  font:inherit!important;opacity:1!important;
 }
 body .header > .nav > a.profile:hover {background:#f0f6ff!important;color:#1358bd!important}
 body .header > .nav > a.profile:focus-visible {outline:2px solid #2468ce!important;outline-offset:-2px!important}
}
@media (min-width:1161px){body .header > .nav > a.profile .sz194-private-label{display:none!important}}

/* v195 — true flat private-area row in the public mobile menu.
   Account link is wrapped by sz160-account-wrap at runtime, so style the wrapper too. */
@media (max-width:1160px) {
 body .header > .nav > .sz160-account-wrap {
  display:flex!important;align-items:stretch!important;width:100%!important;
  min-height:43px!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:8px!important;background:transparent!important;
  box-shadow:none!important;outline:0!important;
 }
 body .header > .nav > .sz160-account-wrap > a.profile,
 body .header > .nav > a.profile {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex:1 1 auto!important;width:100%!important;min-height:43px!important;
  padding:11px 13px!important;margin:0!important;box-sizing:border-box!important;
  border:0!important;outline:0!important;border-radius:8px!important;
  background:transparent!important;box-shadow:none!important;
  color:#263e5f!important;-webkit-text-fill-color:#263e5f!important;
  font:600 14px/1.4 system-ui,sans-serif!important;text-align:left!important;
  gap:9px!important;text-decoration:none!important;
 }
 body .header > .nav .sz160-account-wrap > a.profile svg,
 body .header > .nav > a.profile svg {
  width:19px!important;height:19px!important;flex:0 0 19px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  color:#1c5db4!important;stroke:#1c5db4!important;fill:none!important;
  background:transparent!important;box-shadow:none!important;
 }
 body .header > .nav .sz160-account-wrap > a.profile .profile-label,
 body .header > .nav > a.profile .profile-label {display:none!important}
 body .header > .nav .sz160-account-wrap > a.profile .sz194-private-label,
 body .header > .nav > a.profile .sz194-private-label {
  display:inline!important;position:static!important;visibility:visible!important;
  color:#263e5f!important;-webkit-text-fill-color:#263e5f!important;
  font:inherit!important;opacity:1!important;white-space:normal!important;
 }
 body .header > .nav .sz160-account-wrap > a.profile:hover,
 body .header > .nav .sz160-account-wrap > a.profile:focus-visible {
  background:#f0f6ff!important;
 }
 /* The desktop hover account submenu must not overlay the mobile cascade. */
 body .header > .nav .sz160-account-wrap > .sz160-account-menu {display:none!important}
}
