/* Site navigation: dark bar in line with the home hero. Transparent over the hero on the home page (.over), solid elsewhere.
   Markup source: strumenti-sito/site_nav.py (also written to modelli-pagine/masthead.html). */
:root{--gn-h:84px;--gn-bg:#141412;--gn-line:rgba(255,255,255,.24);--gn-acc:#e3a27c;--gn-pad:clamp(22px,5vw,86px);--mh:84px;--coase-header-height:84px}
html body header.masthead{position:sticky;top:0;z-index:1000;display:block;width:auto;margin:0;padding:0;background:var(--gn-bg);border:0;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:none;color:#fff;font-family:var(--body,var(--sans,"Coase Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif));font-weight:400;letter-spacing:0;text-transform:none;transition:background-color .5s var(--ease,ease),border-color .5s var(--ease,ease)}
html body header.masthead *{box-sizing:border-box}
html body header.masthead a{color:inherit;text-decoration:none}
html body header.masthead .gn{display:flex;align-items:center;gap:clamp(20px,2.6vw,40px);width:100%;max-width:calc(1380px + 2*var(--gn-pad));height:var(--gn-h);margin:0 auto;padding:0 var(--gn-pad)}
html body header.masthead .gn-brand{flex:none;line-height:0}
html body header.masthead .gn-brand img{display:block;width:auto;height:30px}
html body header.masthead .gn-nav{display:flex;flex:1 1 auto;justify-content:center;min-width:0}
html body header.masthead .gn-l{display:flex;align-items:center;gap:clamp(18px,2.2vw,36px);margin:0;padding:0;list-style:none}
html body header.masthead .gn-l li{margin:0;padding:0}
html body header.masthead .gn-l a{display:block;padding:8px 0;border-bottom:1px solid transparent;font-size:13.5px;font-weight:450;line-height:1.2;letter-spacing:-.005em;white-space:nowrap;opacity:.8;transition:opacity .4s var(--ease,ease),border-color .4s var(--ease,ease)}
html body header.masthead .gn-l a:hover,html body header.masthead .gn-l a[aria-current]{opacity:1}
html body header.masthead .gn-l a[aria-current]{border-bottom-color:var(--gn-acc)}
html body header.masthead .gn-r{display:flex;flex:none;align-items:center;gap:clamp(18px,1.8vw,26px)}
html body header.masthead .gn-lang{font:500 11px/1 var(--mono,ui-monospace,"SFMono-Regular",Consolas,monospace);letter-spacing:.1em;white-space:nowrap;color:rgba(255,255,255,.5)}
html body header.masthead .gn-lang [aria-current]{color:#fff}
html body header.masthead .gn-lang .soon{cursor:not-allowed}
html body header.masthead .gn-up{font:550 11px/1 var(--body,var(--sans,system-ui,sans-serif));letter-spacing:.13em;text-transform:uppercase;white-space:nowrap}
html body header.masthead .gn-cf{opacity:.8;padding:8px 0;border-bottom:1px solid transparent;transition:opacity .4s}
html body header.masthead .gn-cf:hover,html body header.masthead .gn-cf[aria-current]{opacity:1}
html body header.masthead .gn-cf[aria-current]{border-bottom-color:var(--gn-acc)}
html body header.masthead .gn-ct{display:inline-flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #fff;transition:gap .4s var(--ease,ease),border-color .4s}
html body header.masthead .gn-ct:hover{gap:18px}
html body header.masthead .gn-ct[aria-current]{border-bottom-color:var(--gn-acc)}
html body header.masthead .menu-t{display:none;align-items:center;min-height:44px;padding:0 0 0 4px;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none;cursor:pointer;font:550 11px/1 var(--body,var(--sans,system-ui,sans-serif));letter-spacing:.13em;text-transform:uppercase}
html body header.masthead .menu-t::after{content:"";width:24px;height:8px;margin-left:12px;border-block:1px solid #fff}
html body header.masthead .menu-t[aria-expanded="true"]::after{height:0;border-bottom:0}
html body header.masthead .menu-t.menu-t,html body header.masthead .menu-t.menu-t:hover,html body header.masthead .menu-t.menu-t[aria-expanded="true"]{background:transparent;color:#fff;box-shadow:none;transform:none}
/* home: over the hero until the page scrolls */
html body header.masthead.over{position:fixed;left:0;right:0}
html body header.masthead.over:not(.solid){background:transparent;border-bottom-color:transparent}
html body header.masthead.over:not(.solid) .gn::after{content:"";position:absolute;left:var(--gn-pad);right:var(--gn-pad);bottom:0;height:1px;background:var(--gn-line)}
html body header.masthead.over .gn{position:relative}
html.mh-open body header.masthead.over{background:var(--gn-bg)}
html:has(header.masthead.over) .hero{min-height:max(684px,100svh);padding-top:var(--gn-h)}
/* menu panel (narrow windows) */
html body header.masthead .mh-panel{position:absolute;left:0;right:0;top:100%;margin:0;padding:0 var(--gn-pad) 28px;background:var(--gn-bg);border-top:1px solid var(--gn-line);box-shadow:0 30px 40px -24px rgba(0,0,0,.6);max-height:calc(100dvh - var(--gn-h));overflow:auto}
html body header.masthead .mh-panel[hidden]{display:none}
html body header.masthead .gn-m{margin:0;padding:0;list-style:none}
html body header.masthead .gn-m a{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:17px 0;border-bottom:1px solid var(--gn-line)}
html body header.masthead .gn-m b{font-family:var(--display,inherit);font-size:24px;font-weight:450;line-height:1.12;letter-spacing:-.03em}
html body header.masthead .gn-m small{font-size:12.5px;color:#b7b1a8}
html body header.masthead .gn-m a[aria-current] b{color:var(--gn-acc)}
html body header.masthead .gn-pf{display:flex;flex-wrap:wrap;align-items:center;gap:14px 30px;margin-top:26px}
html body header.masthead .gn-pf .gn-lang{margin-left:auto}
@media(min-width:1241px){html body header.masthead .mh-panel{display:none!important}}
@media(max-width:1399px){html body header.masthead .gn-r>.gn-lang{display:none}}
@media(max-width:1240px){
  :root{--gn-h:68px;--mh:68px;--coase-header-height:68px}
  html body header.masthead .gn-nav,html body header.masthead .gn-r>.gn-cf{display:none}
  html body header.masthead .gn-r{margin-left:auto}
  html body header.masthead .menu-t{display:inline-flex}
  html body header.masthead .mh-panel:not([hidden]){display:block!important}
}
@media(max-width:520px){html body header.masthead .gn-r>.gn-ct{display:none}html body header.masthead .gn-m small{display:none}}
.co-embedded header.masthead{display:none!important}
@media (prefers-reduced-motion:reduce){html body header.masthead,html body header.masthead *{transition-duration:.01ms!important}}
