/* Shared header dimensions and navigation for P314i, OPT³ and Centro Stile. */
.p314i-header{--header-height:104px;--header-pad:clamp(22px,4.2vw,72px);--header-symbol:48px;--header-ink:var(--site-ink);--header-line:var(--site-line);--header-paper:var(--site-paper);box-sizing:border-box;height:var(--header-height);border-bottom:1px solid var(--header-line);background:var(--header-paper);color:var(--header-ink);font-family:Arial,Helvetica,sans-serif;position:relative;z-index:40}
.p314i-header *{box-sizing:border-box}
.p314i-header-inner{position:relative;display:flex;align-items:center;gap:30px;width:min(calc(100% - 2*var(--header-pad)),1440px);height:100%;margin-inline:auto;padding-right:74px}
.p314i-header a{color:inherit;text-decoration:none}
.p314i-header a:focus-visible{outline:2px solid var(--header-focus,var(--header-ink));outline-offset:5px}
.p314i-brand{display:flex;align-items:center;gap:18px;flex-shrink:0;line-height:1}
.p314i-header--home .p314i-brand{position:absolute;left:50%;transform:translateX(-50%)}
.p314i-brand-symbol{display:block;width:var(--header-symbol);height:var(--header-symbol);object-fit:contain}
.p314i-brand-parent{display:block;width:var(--header-symbol);height:auto}
.p314i-brand-name{font-size:17px;font-weight:400;line-height:1.3;letter-spacing:.015em;white-space:nowrap}
.p314i-brand-name sup{font-size:.6em;line-height:0;vertical-align:super;margin-left:.04em}
.p314i-local-nav{display:flex;align-items:center;gap:clamp(22px,2.5vw,42px);margin-left:auto}
.p314i-local-nav a{display:flex;align-items:center;min-height:44px;font-size:13px;line-height:1.4;white-space:nowrap}
.p314i-local-nav a:hover,.p314i-local-nav a[aria-current]{text-decoration:underline;text-underline-offset:7px}
.p314i-local-action{min-height:44px;font-size:12px;line-height:1.4;white-space:nowrap;text-decoration:underline!important;text-underline-offset:9px}
.company-menu{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:20}
.company-menu-toggle{display:flex;align-items:center;justify-content:center;list-style:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;color:var(--header-ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.company-menu-toggle::-webkit-details-marker{display:none}
.company-menu-toggle::marker{content:""}
.company-menu-toggle:hover,.company-menu[open] .company-menu-toggle{background:#eceee9}
.company-menu-toggle:focus-visible{outline:2px solid var(--header-focus,var(--header-ink));outline-offset:4px}
.company-menu-toggle svg{display:block;width:22px;height:22px;pointer-events:none}
.company-menu-toggle .company-menu-close{display:none}
.company-menu[open] .company-menu-open{display:none}
.company-menu[open] .company-menu-close{display:block}
.company-menu:not([open])>.company-menu-panel{display:none}
.company-menu-panel{position:absolute;right:0;top:calc(50% + var(--header-height)/2 + 8px);width:min(264px,calc(100vw - 44px));max-height:calc(100vh - var(--header-height) - 24px);max-height:calc(100dvh - var(--header-height) - 24px);overflow-y:auto;overscroll-behavior:contain;padding:8px;background:var(--header-paper);border:1px solid var(--header-line);box-shadow:0 12px 32px rgb(48 51 50 / 8%)}
.company-menu .company-nav{position:static;transform:none;display:flex;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:0}
/* Division colors match the homepage cards without filling every row. */
.company-menu .company-nav-link.ui-link{--site-marker:#303332;--site-current-bg:#eceee9;--site-hover-bg:#eceee9;--site-hover-ink:#303332;position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;gap:20px;padding:14px 16px 14px 35px;border:0;font-size:14px;font-weight:400;line-height:1.5;white-space:nowrap;color:var(--header-ink);transition:background-color .16s ease,color .16s ease}
.company-menu .company-nav-link[href="/OPT/"]{--site-marker:#c14a1a;--site-current-bg:#f8ede7;--site-hover-bg:#f8ede7;--site-hover-ink:#9f3c15}
.company-menu .company-nav-link[href="/CS/"]{--site-marker:#8bc9c4;--site-current-bg:#e7f2f0;--site-hover-bg:#e7f2f0;--site-hover-ink:#303332}
.company-menu .company-nav-link::before{content:"";position:absolute;left:16px;top:50%;width:7px;height:7px;transform:translateY(-50%);background:var(--site-marker)}
.company-menu .company-nav-link+.company-nav-link{border-top:1px solid var(--header-line)}
.company-menu .company-nav-link[aria-current]{font-weight:600;background:var(--site-current-bg)}
.company-menu-local a:hover{background:#eceee9}
.company-menu a:focus-visible{outline-offset:-3px;background:#eceee9}
.company-menu .company-nav-link:focus-visible,.company-menu .company-nav-link:active,.company-menu .company-nav-link.is-touch-pressed{background:var(--site-hover-bg);color:var(--site-hover-ink);outline-color:currentColor}
.company-menu .company-nav-link:focus-visible::before,.company-menu .company-nav-link:active::before,.company-menu .company-nav-link.is-touch-pressed::before{background:currentColor;opacity:.7}
@media(hover:hover) and (pointer:fine){
  .company-menu .company-nav-link:hover{background:var(--site-hover-bg);color:var(--site-hover-ink)}
  .company-menu .company-nav-link:hover::before{background:currentColor;opacity:.7}
}
@media(prefers-reduced-motion:reduce){.company-menu .company-nav-link{transition:none}}
.company-menu-local{display:none}
@media(max-width:960px){
  .p314i-header{--header-height:90px;--header-symbol:42px}
  .p314i-header-inner{gap:20px}
  .p314i-brand{gap:14px}
  .p314i-local-nav,.p314i-header .p314i-local-action{display:none}
  .company-menu-local{display:flex;flex-direction:column;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--header-line)}
  .company-menu-label{margin:0;padding:12px 16px 8px;font-size:10px;font-weight:400;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;color:#656a66}
  .company-menu-local a{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:11px 16px;font-size:14px;line-height:1.5}
  .company-menu-local a[aria-current]{font-weight:600}
}
@media(max-width:760px){.p314i-brand-name{font-size:15px}}
@media(max-width:600px){.p314i-brand{gap:12px}}
@media(max-width:360px){.p314i-brand{gap:10px}.p314i-brand-name{font-size:14px}}

/* Labels remain readable at the same shared header dimensions. */
.p314i-local-nav a,.p314i-local-action{font-size:14px}
.company-menu-label{font-size:12px}

.company-menu .company-nav-link:active,.company-menu .company-nav-link.is-touch-pressed{transition:none}
