/* GASTROIFF — cabeçalho único, versão 1.
   Carregado depois de site.css, refinements.css e institutional.css.
   As decisões de layout são centralizadas aqui, sem regras por página. */
:root{--gi-header-max:1320px;--gi-header-ink:#233d2e;--gi-header-green:#2b6b43;--gi-header-line:#dce7dd}
html body.gastroiff-page .header.header-refined{
 position:relative!important;z-index:200!important;
 background:#fff!important;border-bottom:1px solid var(--gi-header-line)!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 padding:0!important;margin:0!important;overflow:visible!important;
 box-shadow:0 4px 14px rgba(31,60,37,.035)!important;
}
html body.gastroiff-page .header.header-refined>.headerline{
 box-sizing:border-box!important;
 width:calc(100% - 48px)!important;max-width:var(--gi-header-max)!important;
 margin:0 auto!important;padding:8px 0 0!important;
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 grid-template-rows:64px 41px!important;
 align-items:center!important;column-gap:16px!important;row-gap:0!important;
 min-height:113px!important;height:auto!important;max-height:none!important;
 overflow:visible!important;position:relative!important;
}
html body.gastroiff-page .header-refined .headerline>.institution{display:none!important}
html body.gastroiff-page .header-refined .headerline>.gastrobrand{
 box-sizing:border-box!important;position:static!important;grid-area:1/1!important;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 justify-self:start!important;align-self:center!important;
 width:238px!important;min-width:0!important;max-width:238px!important;
 height:60px!important;min-height:60px!important;max-height:60px!important;
 padding:0!important;margin:0!important;
 overflow:hidden!important;transform:none!important;border:0!important;
}
html body.gastroiff-page .header-refined .headerline>.gastrobrand>img{
 display:block!important;width:100%!important;height:58px!important;
 min-height:0!important;max-width:100%!important;max-height:58px!important;
 object-fit:contain!important;object-position:left center!important;
}
html body.gastroiff-page .header-refined .headerline>.gastrobrand>.gi-mobile-wordmark{display:none!important}
html body.gastroiff-page .header-refined .headerline>.quick-access{
 box-sizing:border-box!important;
 display:flex!important;visibility:visible!important;opacity:1!important;
 position:static!important;grid-area:1/2!important;align-items:center!important;
 justify-content:flex-end!important;justify-self:end!important;align-self:center!important;
 width:auto!important;min-width:0!important;max-width:none!important;
 height:52px!important;min-height:0!important;max-height:52px!important;
 padding:0!important;margin:0!important;gap:7px!important;
 background:none!important;border:0!important;box-shadow:none!important;
 overflow:visible!important;transform:none!important;
}
html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-item,
html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-install-app{
 position:relative!important;box-sizing:border-box!important;
 display:block!important;flex:0 0 63px!important;
 width:63px!important;min-width:63px!important;max-width:63px!important;
 height:49px!important;min-height:49px!important;max-height:49px!important;
 padding:0!important;margin:0!important;transform:none!important;
}
html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-item>summary,
html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-install-app{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 flex-direction:column!important;justify-content:center!important;gap:3px!important;
 width:63px!important;min-width:63px!important;max-width:63px!important;
 height:49px!important;min-height:49px!important;max-height:49px!important;
 border:1px solid #d6e6d9!important;border-radius:10px!important;
 background:#f7faf7!important;color:var(--gi-header-green)!important;
 padding:5px 3px!important;font-size:10px!important;font-weight:600!important;
 box-shadow:none!important;white-space:nowrap!important;line-height:1.15!important;
}
html body.gastroiff-page .header-refined .headerline>.quick-access svg{
 width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;flex:0 0 18px!important;
}
html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-install-app[hidden]{display:none!important}
html body.gastroiff-page .header-refined .headerline>.quick-access .quick-panel{z-index:2000!important}
html body.gastroiff-page .header-refined .headerline>.navbar{
 box-sizing:border-box!important;display:flex!important;visibility:visible!important;
 position:static!important;grid-area:2/1/3/3!important;
 align-items:center!important;justify-content:center!important;align-self:center!important;
 flex-flow:row nowrap!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;
 margin:0!important;padding:2px 0!important;gap:clamp(10px,1.25vw,19px)!important;
 background:transparent!important;border-top:1px solid #eef2ed!important;
 overflow:visible!important;transform:none!important;
}
html body.gastroiff-page .header-refined .headerline>.navbar>.nav-anchor,
html body.gastroiff-page .header-refined .headerline>.navbar>.gi-nav-dropdown{
 display:inline-flex!important;position:relative!important;
 align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;width:auto!important;min-width:0!important;
 height:35px!important;max-height:35px!important;
 padding:0 1px!important;margin:0!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
 color:var(--gi-header-ink)!important;line-height:1.2!important;
 font-size:clamp(11px,.92vw,13px)!important;font-weight:600!important;
 white-space:nowrap!important;transform:none!important;
}
html body.gastroiff-page .header-refined .headerline>.navbar .nav-name{
 font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;
}
html body.gastroiff-page .header-refined .headerline>.navbar .gi-nav-trigger{
 font-size:inherit!important;white-space:nowrap!important;
 border:0!important;background:transparent!important;padding:6px 3px!important;
}
html body.gastroiff-page .header-refined .headerline>.navbar>.nav-anchor:hover,
html body.gastroiff-page .header-refined .headerline>.navbar>.nav-anchor.active{
 color:var(--gi-header-green)!important;
}
html body.gastroiff-page .header-refined .headerline>.menu-toggle{display:none!important}
@media(max-width:1199px){
 html body.gastroiff-page .header.header-refined>.headerline{
  width:calc(100% - 28px)!important;grid-template-columns:44px minmax(0,1fr) auto!important;
  grid-template-rows:62px!important;min-height:78px!important;
  padding:8px 0!important;column-gap:9px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.navbar{display:none!important}
 html body.gastroiff-page .header-refined .headerline>.menu-toggle{
  display:flex!important;position:static!important;grid-area:1/1!important;
  align-items:center!important;justify-content:center!important;
  width:44px!important;height:44px!important;min-width:44px!important;
  margin:0!important;padding:0!important;transform:none!important;justify-self:start!important;
 }
 html body.gastroiff-page .header-refined .headerline>.gastrobrand{
  grid-area:1/2!important;justify-self:start!important;
  width:min(100%,238px)!important;max-width:238px!important;
  height:56px!important;min-height:56px!important;max-height:56px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.gastrobrand>img{
  width:100%!important;height:54px!important;max-height:54px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.quick-access{
  grid-area:1/3!important;gap:4px!important;height:46px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-item,
 html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-install-app{
  width:43px!important;min-width:43px!important;max-width:43px!important;flex:0 0 43px!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-item>summary,
 html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-install-app{
  width:43px!important;min-width:43px!important;max-width:43px!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  font-size:8px!important;gap:2px!important;padding:3px 1px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.quick-access svg{
  width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;flex-basis:17px!important;
 }
}
@media(max-width:410px){
 html body.gastroiff-page .header.header-refined>.headerline{
  width:calc(100% - 12px)!important;grid-template-columns:38px minmax(0,1fr) auto!important;column-gap:4px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.menu-toggle{width:38px!important;min-width:38px!important}
 html body.gastroiff-page .header-refined .headerline>.gastrobrand{max-width:100%!important}
 html body.gastroiff-page .header-refined .headerline>.quick-access{gap:3px!important}
 html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-item,
 html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-install-app{
  width:37px!important;min-width:37px!important;max-width:37px!important;flex:0 0 37px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-item>summary,
 html body.gastroiff-page .header-refined .headerline>.quick-access>.quick-install-app{
  width:37px!important;min-width:37px!important;max-width:37px!important;
 }
 html body.gastroiff-page .header-refined .headerline>.quick-access .quick-label{font-size:7px!important}
}

/* O menu compacto permanece utilizável também em tablets e notebooks estreitos.
   Anula a regra legada que o ocultava acima de 700px. */
@media(min-width:701px) and (max-width:1199px){
 html body.gastroiff-page .header-refined>.mobile-menu.open,
 html body.gastroiff-page .header-refined>[data-mobile-menu].open{
  display:grid!important;visibility:visible!important;opacity:1!important;
  position:relative!important;pointer-events:auto!important;
  width:calc(100% - 28px)!important;max-width:var(--gi-header-max)!important;
  height:auto!important;margin:0 auto 12px!important;transform:none!important;
 }
}

/* Tablet e mobile: legendas curtas impedem sobreposição horizontal. */
@media(max-width:1199px){
 html body.gastroiff-page .header-refined .headerline>.quick-access .gi-quick-label-full,
 html body.gastroiff-page .header-refined .headerline>.quick-access .quick-label-desktop{
  display:none!important;
 }
 html body.gastroiff-page .header-refined .headerline>.quick-access .gi-quick-label-short,
 html body.gastroiff-page .header-refined .headerline>.quick-access .quick-label-mobile{
  display:inline!important;visibility:visible!important;opacity:1!important;
  font-size:8px!important;line-height:1!important;font-weight:600!important;
 }
 html body.gastroiff-page .header-refined .headerline>.quick-access .quick-label{
  display:block!important;text-align:center!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  white-space:nowrap!important;overflow:hidden!important;
  font-size:8px!important;line-height:1!important;
 }
}

/* Navegação por eixos, como no aplicativo, também no desktop.
   Substitui a fila extensa de links por três listas suspensas acessíveis. */
@media(min-width:1200px){
 html body.gastroiff-page .header-refined .headerline>.navbar.gi-unified-desktop{
  gap:clamp(15px,2.2vw,34px)!important;flex-wrap:nowrap!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis,
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis-home,
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-desktop-about,
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis-calendar,
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis-opportunities{
  display:inline-flex!important;visibility:visible!important;position:relative!important;
  align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  min-width:0!important;height:38px!important;line-height:1.2!important;
  padding:0!important;margin:0!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis>.gi-axis-toggle{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;min-height:35px!important;width:auto!important;
  border:0!important;border-radius:8px!important;
  background:transparent!important;color:#284e37!important;
  padding:5px 9px!important;margin:0!important;box-shadow:none!important;
  font-family:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.2!important;cursor:pointer!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop .gi-axis-icon{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:22px!important;height:22px!important;flex:0 0 22px!important;
  padding:3px!important;border-radius:6px!important;background:#edf6ec!important;color:#286d43!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop .gi-axis-icon svg{
  width:17px!important;height:17px!important;stroke:currentColor!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop .gi-axis-chevron{
  margin-left:2px!important;font-size:16px!important;line-height:1!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis>.gi-axis-panel{
  box-sizing:border-box!important;position:absolute!important;
  top:calc(100% + 7px)!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;z-index:550!important;
  display:grid!important;grid-template-columns:1fr!important;gap:2px!important;
  width:min(310px,90vw)!important;max-width:310px!important;
  max-height:min(70vh,550px)!important;overflow:auto!important;
  border:1px solid #d9e8dc!important;border-radius:14px!important;
  box-shadow:0 18px 38px #17392524!important;background:#fff!important;
  padding:9px!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis>.gi-axis-panel[hidden]{
  display:none!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop .gi-axis-panel>a{
  box-sizing:border-box!important;display:block!important;
  padding:10px 12px!important;border-radius:8px!important;
  color:#234c33!important;text-decoration:none!important;
  font-size:13px!important;font-weight:500!important;
  text-align:left!important;white-space:normal!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop .gi-axis-panel>a:hover,
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop .gi-axis-panel>a:focus-visible{
  background:#eef6ed!important;color:#205b37!important;
 }
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis>.gi-axis-toggle:hover,
 html body.gastroiff-page .header-refined .navbar.gi-unified-desktop>.gi-axis>.gi-axis-toggle[aria-expanded="true"]{
  background:#eff6ef!important;color:#205d37!important;
 }
}
