/* Navegação compartilhada: links reais, destaque deslizante e submenu nativo. */
body.refined :is(.header, .site-header) .header-inner {
  gap: 22px;
}
body.refined :is(#navigation, #navegacao) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-inline-start: auto;
}
body.refined .nav-rail {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid #96adff38;
  border-radius: 999px;
  background: linear-gradient(145deg, #101f3dd9, #050a30e8);
  box-shadow: inset 0 1px 0 #f7f3e80a, 0 8px 24px #00000014;
}
body.refined .nav-rail > .nav-item,
body.refined .nav-rail > details > summary {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  color: #f7f3e8;
  font: 500 13px/1.35 Montserrat, 'Segoe UI', Arial, sans-serif;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}
body.refined .nav-rail > details {
  position: static;
  z-index: 2;
  margin: 0;
}
body.refined .nav-rail > details > summary { list-style: none; }
body.refined .nav-rail > details > summary::-webkit-details-marker { display: none; }
body.refined .nav-rail > details > summary > .nav-chevron {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(0deg);
  transform-origin: center;
  transition: none;
}
body.refined .nav-rail > details[open] > summary > .nav-chevron { transform: rotate(180deg); }
body.refined .nav-rail > .nav-item:hover,
body.refined .nav-rail > details > summary:hover,
body.refined .nav-rail > details[open] > summary {
  color: #f7f3e8;
}
body.refined .nav-rail :is(.nav-item, summary):focus-visible {
  outline: 2px solid #96adff;
  outline-offset: 4px;
}
body.refined .nav-rail > .nav-item:active,
body.refined .nav-rail > details > summary:active {
  background-color: #96adff18;
}
body.refined .nav-rail > .nav-item[aria-current],
body.refined .nav-rail > details > summary[aria-current] {
  color: #f2cd1b;
}
body.refined .nav-rail:not(.is-enhanced) > .nav-item[aria-current],
body.refined .nav-rail:not(.is-enhanced) > details[open] > summary {
  background: #243754;
  box-shadow: inset 0 0 0 1px #f2cd1b80;
}
body.refined .nav-cursor {
  position: absolute;
  z-index: 0;
  inset: 0 auto auto 0;
  display: none;
  width: 0;
  height: 0;
  border: 1px solid #f2cd1ba8;
  border-radius: 999px;
  background: linear-gradient(125deg, #2d4265, #1a2d4d);
  box-shadow: inset 0 1px 0 #f7f3e817, 0 2px 9px #0000001f;
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
}
body.refined .nav-rail.is-enhanced > .nav-cursor { display: block; }
body.refined .nav-rail :is(.dropdown, .solutions-panel) {
  z-index: 8;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  transform-origin: top right;
}
body.refined .nav-rail .solutions-flyout {
  display: block;
  width: min(600px, calc(100vw - 64px));
  padding: 15px;
  border: 1px solid #96adff42;
  border-radius: 21px;
  background: linear-gradient(145deg, #152644, #0c1832 85%);
  box-shadow: 0 22px 60px #00000050, inset 0 1px 0 #f7f3e80c;
  animation: none;
}
body.refined .nav-rail details:not([open]) .solutions-flyout { display: none; }
body.refined .nav-rail .solutions-flyout::before {
  content: '';
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}
body.refined .nav-rail .solutions-flyout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 7px 12px;
  color: #c5cee1;
  font: 500 11px/1.4 Montserrat, 'Segoe UI', Arial, sans-serif;
  letter-spacing: .035em;
}
body.refined .nav-rail .solutions-flyout-count {
  padding: 4px 7px;
  border: 1px solid #f2cd1b35;
  border-radius: 999px;
  color: #f2cd1b;
  font-size: 10px;
  letter-spacing: .02em;
  white-space: nowrap;
}
body.refined .nav-rail .solutions-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
body.refined .nav-rail .solution-menu-link {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 11px 10px;
  border: 1px solid #96adff13;
  border-radius: 13px;
  background: #050a302e;
  color: #f7f3e8;
  text-decoration: none;
  transition: none;
}
body.refined .nav-rail .solution-menu-icon {
  display: block;
  width: 32px;
  height: 32px;
  padding: 5px;
  border: 1px solid #96adff28;
  border-radius: 9px;
  background: #96adff0a;
  stroke: #96adff;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.refined .nav-rail .solution-menu-copy {
  position: static;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  color: inherit;
}
body.refined .nav-rail .solution-menu-copy strong {
  display: block;
  color: #f7f3e8;
  font: 600 13px/1.4 Montserrat, 'Segoe UI', Arial, sans-serif;
  letter-spacing: -.01em;
}
body.refined .nav-rail .solution-menu-copy small {
  display: block;
  margin: 0;
  color: #a7b0c6;
  font: 400 12px/1.45 Montserrat, 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0;
}
body.refined .nav-rail .solution-menu-arrow {
  position: static;
  display: block;
  align-self: center;
  justify-self: end;
  width: 13px;
  height: 13px;
  stroke: #f2cd1b;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.refined .nav-rail .solution-capacitacao { grid-column: 1 / -1; min-height: 65px; }
body.refined .nav-rail .solution-menu-link:is(:hover, :focus-visible) {
  border-color: #96adff62;
  background: #96adff0e;
  color: #f7f3e8;
}
body.refined .nav-rail .solution-menu-link:active { background: #96adff1c; }
body.refined .nav-rail .solution-menu-link:focus-visible,
body.refined .nav-rail .solutions-all:focus-visible {
  outline: 2px solid #96adff;
  outline-offset: 2px;
}
body.refined .nav-rail .solutions-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: auto;
  min-height: 42px;
  margin: 11px 4px 0;
  padding: 10px 4px 0;
  border: 0;
  border-top: 1px solid #96adff26;
  border-radius: 0;
  background: none;
  color: #f2cd1b;
  font: 500 11px/1.4 Montserrat, 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
}
body.refined .nav-rail .solutions-all:is(:hover, :focus-visible) { color: #f7f3e8; }
body.refined :is(#navigation, #navegacao) > :is(.nav-cta, .nav-contact) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  gap: 10px;
  flex-shrink: 0;
  width: auto;
  margin: 0;
  min-height: 49px;
  padding: 13px 18px;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 999px;
  white-space: nowrap;
}
body.refined :is(#navigation, #navegacao) > :is(.nav-cta, .nav-contact) > .nav-cta-arrow {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1100px) {
  body.refined :is(.header, .site-header) .menu-toggle { display: none; }
  body.refined .nav-rail .solution-capacitacao .solution-menu-copy {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 14px;
  }
}
@media (min-width: 1100px) and (max-width: 1250px) {
  body.refined :is(.header, .site-header) .brand > span { display: none; }
  body.refined :is(#navigation, #navegacao) { gap: 12px; }
  body.refined .nav-rail > .nav-item,
  body.refined .nav-rail > details > summary { padding-inline: 11px; }
}
@media (max-width: 1099px) {
  /* O cabeçalho com rolagem interna mantém pintura estável sem blur no celular. */
  body.refined :is(.header, .site-header) {
    background: #050a30;
    backdrop-filter: none;
  }
  body.refined :is(.header, .site-header) .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand menu' 'nav nav';
    align-items: center;
    gap: 0 14px;
    min-height: 82px;
  }
  body.refined :is(.header, .site-header) .brand { grid-area: brand; width: fit-content; }
  body.refined :is(.header, .site-header) .brand > span { display: none; }
  body.refined :is(.header, .site-header) .brand img { width: 88px; }
  body.refined :is(.header, .site-header) .menu-toggle:not([hidden]) {
    grid-area: menu;
    display: inline-flex;
    justify-self: end;
    min-height: 44px;
    color: #f7f3e8;
  }
  body.refined :is(#navigation, #navegacao) {
    position: static;
    grid-area: nav;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0 0 18px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background: transparent;
  }
  body.refined.nova-site .header-inner { position: relative; }
  body.refined.nova-site :is(.header, .site-header):has(.menu-toggle[aria-expanded="true"]) { z-index: 61; }
  body.refined.nova-site .menu-toggle:not([hidden]) ~ :is(#navigation, #navegacao).is-open {
    position: absolute;
    grid-area: auto;
    inset: calc(100% + 2px) 0 auto;
    max-height: calc(100vh - 100% - 12px);
    max-height: calc(100dvh - 100% - 12px - env(safe-area-inset-bottom, 0px));
    padding-inline: 8px;
    padding-block-start: 8px;
    background: #050a30;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 38px #0006;
  }
  /* Leave room to scroll the CTA clear of the fixed WhatsApp shortcut. */
  body.refined.nova-site :is(#navigation, #navegacao).is-open:has(.nav-rail > details[open]) {
    padding-block-end: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  :is(html.js body.refined, body.refined.js) :is(#navigation, #navegacao):not(.is-open) { display: none; }
  body.refined .nav-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 6px;
    border-radius: 23px;
    background: #101f3de8;
  }
  body.refined .nav-rail > .nav-item,
  body.refined .nav-rail > details > summary {
    justify-content: space-between;
    min-height: 46px;
    padding: 13px 16px;
    font-size: 14px;
    border-radius: 16px;
  }
  body.refined .nav-rail > details > summary { width: 100%; }
  body.refined .nav-rail > details { position: relative; }
  body.refined .nav-cursor { border-radius: 16px; }
  body.refined .nav-rail :is(.dropdown, .solutions-panel) {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 7px 0;
    padding: 12px;
    transform: none;
    border-radius: 15px;
    box-sizing: border-box;
  }
  body.refined .nav-rail .solutions-panel::before { display: none; }
  body.refined .nav-rail .solutions-flyout::before { display: none; }
  body.refined .nav-rail .solutions-flyout { padding: 10px; }
  body.refined .nav-rail .solutions-flyout-heading { gap: 8px; padding-inline: 3px; }
  body.refined .nav-rail .solutions-panel-grid { grid-template-columns: minmax(0, 1fr); }
  body.refined .nav-rail .solution-menu-link {
    grid-template-columns: 30px minmax(0, 1fr) 13px;
    gap: 9px;
    min-height: 72px;
    padding: 10px 8px;
  }
  body.refined .nav-rail .solution-menu-icon { width: 30px; height: 30px; padding: 4px; }
  body.refined :is(#navigation, #navegacao) > :is(.nav-cta, .nav-contact) {
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-height: 50px;
  }
  html:not(.js) body.refined:not(.js) :is(.header, .site-header) { position: relative; }
  html:not(.js) body.refined:not(.js) :is(#navigation, #navegacao) { max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  body.refined:not(.motion-paused):not(.page-inactive):not([data-input='keyboard']) .nav-rail > details > summary > .nav-chevron {
    transition: transform 160ms cubic-bezier(.22, .78, .16, 1);
  }
}
body.refined.nova-site :is(.header, .site-header) .brand > span {
  display: block;
  max-inline-size: 16ch;
  line-height: 1.32;
}

@media (max-width: 1099px) {
  body.refined.nova-site :is(.header, .site-header) .brand > span {
    font-size: .69rem;
  }
}
@media (max-width: 375px) {
  body.refined.nova-site :is(.header, .site-header) .brand { gap: 7px; }
  body.refined.nova-site :is(.header, .site-header) .brand img { width: 64px; }
  body.refined.nova-site :is(.header, .site-header) .brand > span {
    padding-inline-start: 7px;
    max-inline-size: 15ch;
  }
  body.refined.nova-site :is(.header, .site-header) .menu-toggle:not([hidden]) {
    gap: 6px;
    padding-inline: 7px;
  }
  body.refined.nova-site .nova-menu-label { font-size: .8rem; }
}
