/* FNM Studio · Soluções Digitais e rodapé institucional. */
.site-header .nav-links [data-fnm-digital-menu] {
  overscroll-behavior: contain;
}
@media (min-width: 791px) {
  .site-header .nav-links [data-fnm-digital-menu] {
    max-height: max(100px, calc(100dvh - 100px));
    max-width: min(33vw, 320px);
    overflow-y: auto;
  }
}
.site-header .nav-links [data-fnm-digital-menu] a[aria-current="page"] {
  background: #edf6ff;
  color: #124673;
}
.site-header .nav-links [data-fnm-digital-menu] a:focus-visible {
  outline: 2px solid #1f6793;
  outline-offset: -2px;
}

:is(.site-footer,.fnm27-footer) .fnm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.fnm-footer-other {
  display: flex;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  gap: 8px 16px;
}
:is(.site-footer,.fnm27-footer) .fnm-footer-legal {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
  row-gap: 6px;
  color: #c1dbef;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}
:is(.site-footer,.fnm27-footer) .fnm-footer-bottom .fnm-footer-legal > :is(a, button) {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  line-height: 1.45;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}
:is(.site-footer,.fnm27-footer) .fnm-footer-bottom .fnm-footer-legal > :is(a, button):hover { color: #fff; }
:is(.site-footer,.fnm27-footer) .fnm-footer-bottom .fnm-footer-legal > :is(a, button):focus-visible {
  outline: 2px solid #9ed4ff;
  outline-offset: 4px;
}
:is(.site-footer,.fnm27-footer) .fnm-footer-divider {
  align-self: center;
  height: .82em;
  width: 1px;
  background: #8eacc5;
}
@media (min-width: 791px) and (max-width: 1500px) {
  .site-footer .fnm-footer-bottom { padding-inline-end: 110px; }
}
@media (max-width: 790px) {
  footer:is(.site-footer,.fnm27-footer):has(.fnm-footer-bottom) { padding-bottom: max(104px, calc(88px + env(safe-area-inset-bottom))); }
  :is(.site-footer,.fnm27-footer) .fnm-footer-bottom { flex-direction: column; text-align: center; }
  .fnm-footer-other { justify-content: center; }
  :is(.site-footer,.fnm27-footer) .fnm-footer-legal { font-size: clamp(11px, 3.2vw, .82rem); }
}

main .fnm-product-hero[data-fnm-product-hero] {
  --fnm-hero-night: #0b2745;
  --fnm-hero-text: #edf6ff;
  position: relative;
  isolation: isolate;
  color: var(--fnm-hero-text);
  background: radial-gradient(ellipse at 88% 18%, #1b4268 0%, transparent 59%),
    var(--fnm-hero-night);
  padding: 0;
  overflow: clip;
}
main .fnm-product-hero[data-fnm-product-hero]::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 340px 250px at var(--fnm-hero-x, 74%) var(--fnm-hero-y, 32%),
    #6399d24a, transparent);
  opacity: 0;
  transition: opacity 200ms ease-out;
}
main .fnm-product-hero[data-fnm-product-hero].fnm-hero-lit::before { opacity: 1; }
main .fnm-product-hero[data-fnm-product-hero] > .fnm-product-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  width: min(1280px, calc(100% - 64px));
  max-width: 1280px;
  min-height: 620px;
  column-gap: clamp(40px, 3.4vw, 48px);
  row-gap: 32px;
  margin-inline: auto;
  padding: 56px 0;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy { min-width: 0; }
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy h1 {
  color: #fff;
  font-size: clamp(48px, 4.2vw, 60px);
  font-weight: 800;
  letter-spacing: -.043em;
  line-height: 1.06;
  max-width: 100%;
  margin: 0 0 18px;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy > p:not([class]), 
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy > .fnm-product-lead {
  color: var(--fnm-hero-text);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 12px;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-kicker {
  color: #ffc496;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.4;
  margin: 0 0 18px;
  text-transform: uppercase;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-actions > :is(a, button) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 100%;
  width: auto;
  min-height: 52px;
  white-space: normal;
  padding: 11px 19px;
  line-height: 1.3;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-actions > :is(.btn-primary, .cd-primary) {
  color: #142438;
  background: linear-gradient(120deg, #ff9c4d, #ff7c44);
  border: 1px solid transparent;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-actions > :is(.btn-secondary, .cd-secondary) {
  color: #fff;
  background: transparent;
  border: 1px solid #adc3d7;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-actions > :is(.btn-secondary, .cd-secondary):hover {
  background: #fff;
  color: var(--fnm-hero-night);
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-visual {
  display: block;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 560px;
  padding: 0;
  margin: 0;
  justify-self: center;
  transform: none;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-stage {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  position: relative;
  gap: clamp(8px, 1.15vw, 16px);
  align-items: end;
  margin: 0;
  padding: 0;
  transform: none;
  translate: none;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-stage > :is(.fnm-product-desktop, .fnm-product-phone) {
  box-sizing: border-box;
  display: block;
  position: relative;
  inset: auto;
  margin: 0;
  border: clamp(2px, .35vw, 5px) solid #284768;
  border-radius: clamp(8px, 1.05vw, 16px);
  background: #142f4c;
  box-shadow: 0 24px 42px #04172d80;
  height: auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-stage .fnm-product-phone {
  max-width: 180px;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-stage :is(.fnm-product-desktop,.fnm-product-phone) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-product-visual figcaption {
  color: #d9e7f5;
  margin: 12px 0 0;
  text-align: center;
}
@keyframes fnm-product-enter {
  from { transform: translateY(10px); opacity: .89; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  main .fnm-product-hero[data-fnm-product-hero] :is(.fnm-product-copy, .fnm-product-visual) {
    animation: fnm-product-enter 410ms ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  main .fnm-product-hero[data-fnm-product-hero]::before { transition: none; }
  main .fnm-product-hero[data-fnm-product-hero] .fnm-product-stage * { transition: none; }
}
@media (max-width: 900px) {
  main .fnm-product-hero[data-fnm-product-hero] > .fnm-product-grid {
    width: min(680px, calc(100% - 40px));
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0;
  }
  main .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy h1 { font-size: clamp(30px, 5.8vw, 36px); }
  main .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy > p:not([class]),
  main .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy > .fnm-product-lead { font-size: 16px; }
}
@media (max-width: 480px) {
  main .fnm-product-hero[data-fnm-product-hero] .fnm-product-actions > :is(a, button) { width: 100%; }
}
main .fnm-product-hero[data-fnm-product-hero] .fnm-preliminary-visual {
  border: 1px solid #7bb0d45c;
  border-radius: 20px;
  background: #1e4162b5;
  box-shadow: 0 24px 42px #04172d80;
  padding: clamp(24px, 4vw, 46px);
}
.fnm-preliminary-visual svg { width: 54px; height: 54px; color: #ffc496; }
.fnm-preliminary-visual h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 1rem 0 .65rem; }
.fnm-preliminary-visual p { color: #ddeadf; line-height: 1.6; margin: 0; }
.fnm-preliminary-section > .container { padding-inline: clamp(20px, 4vw, 48px); }
.fnm-preliminary-status {
  display: inline-block;
  border: 1px solid #ffc49690;
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 8px;
  color: #ffe4cd;
  font-size: .87rem;
  font-weight: 750;
}
.fnm-preliminary-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
.fnm-preliminary-plans li { padding: 20px; border: 1px solid #d3e1ed; border-radius: 14px; }
.fnm-preliminary-plans h3 { margin: 0 0 6px; font-size: 1.05rem; }
.fnm-preliminary-plans p { margin: 0; }


/* Adaptação do cabeçalho público dos artigos com o mesmo catálogo de links. */
.fnm27-digital { position: relative; }
.fnm27-digital > summary {
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  color: inherit;
  font-weight: 700;
}
.fnm27-digital > summary::-webkit-details-marker { display: none; }
.fnm27-digital > summary::after { content: "⌄"; margin-inline-start: .45em; }
.fnm27-digital > div {
  position: absolute;
  inset: 100% auto auto 0;
  z-index: 2;
  width: min(300px, 55vw);
  max-height: max(100px, calc(100dvh - 100px));
  overflow: auto;
  background: #f9fcff;
  border: 1px solid #d3e1ed;
  border-radius: 10px;
  box-shadow: 0 16px 34px #0c27494a;
  padding: 8px;
}
.fnm27-digital > div a {
  display: block;
  color: #173b5d;
  padding: 8px 12px;
}
.fnm27-digital > div a:hover, .fnm27-digital > div a:focus-visible { background: #e5f2fc; }
@media (max-width: 1000px) {
  .fnm27-digital > div { position: static; width: 100%; }
}

/* SITE2027-GLOBAL-002 · menus institucionais. */
.fnm-mega-grid, .fnm-mega-heading { display: contents; }
.fnm-mega-title, .fnm-mega-note, .fnm-mega-icon { display: none; }

:is(.site-header .nav-links, #fnm27-navigation) .fnm-mega-panel.fnm-mega-desktop {
  position: absolute;
  inset: 100% auto auto var(--fnm-mega-left, 0px);
  box-sizing: border-box;
  width: var(--fnm-mega-width, min(960px, calc(100vw - 32px)));
  max-width: 960px;
  max-height: var(--fnm-mega-height, calc(100dvh - 100px));
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
  border: 1px solid #d6e4f0;
  padding: 24px;
  background: #fff;
  color: #102b41;
  box-shadow: 0 16px 40px #051e3830;
  animation: fnm-mega-open 180ms ease-out both;
}

.fnm-mega-desktop .fnm-mega-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4edf5;
  margin-bottom: 12px;
}
.fnm-mega-desktop .fnm-mega-title {
  display: block;
  color: #102b41;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
.fnm-mega-desktop .fnm-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
}
.fnm-mega-desktop :is(.fnm-mega-grid, .fnm-mega-heading) > a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  white-space: normal;
  color: #173d60;
  text-decoration: none;
}
.fnm-mega-desktop :is(.fnm-mega-grid, .fnm-mega-heading) > a:hover,
.fnm-mega-desktop :is(.fnm-mega-grid, .fnm-mega-heading) > a:focus-visible,
.fnm-mega-desktop :is(.fnm-mega-grid, .fnm-mega-heading) > a[aria-current="page"] {
  background: #eaf5ff;
  color: #124673;
}
.fnm-mega-desktop :is(.fnm-mega-grid, .fnm-mega-heading) > a:focus-visible {
  outline: 2px solid #1f6793;
  outline-offset: -2px;
}
.fnm-wide-nav .fnm-menu-icons a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fnm-wide-nav .fnm-menu-icons .fnm-mega-icon { display: block; }
.fnm-mega-desktop .fnm-mega-icon { display: block; }
.fnm-mega-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #224e87;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fnm-mega-desktop .fnm-mega-heading .fnm-mega-icon { order: 1; }
.fnm-mega-desktop .fnm-mega-note {
  display: block;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e4edf5;
  color: #3c5b75;
  font-size: 14px;
  line-height: 1.4;
}

@keyframes fnm-mega-open { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :is(.site-header .nav-links, #fnm27-navigation) .fnm-mega-panel { animation-name: none !important; }
}

#fnm27-navigation .fnm27-dropdown:not(.is-open) > .fnm-mega-desktop { display: none; }
#fnm27-navigation .fnm27-digital > .fnm-mega-panel:not(.fnm-mega-desktop) {
  position: static;
  width: 100%;
}
/* Algumas páginas carregam apenas o menu base. O estado do botão também governa esses painéis. */
.site-header .nav-links.menu-enhanced .nav-has-dropdown:not(.open) > :is(.fnm-mega-panel,.fnm-menu-icons) {
  display: none;
}

[data-fnm-footer-structured] [data-fnm-footer-layout] {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr) minmax(0, 1.12fr) minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-areas: "brand health digital specialties services institutional";
  align-items: start;
  gap: 24px clamp(16px, 1.9vw, 30px);
}
[data-fnm-footer-layout] > * { min-width: 0; }
[data-fnm-footer-brand] { grid-area: brand; }
[data-fnm-footer-health] { grid-area: health; }
[data-fnm-footer-digital] { grid-area: digital; }
[data-fnm-footer-specialties] { grid-area: specialties; }
[data-fnm-footer-services] { grid-area: services; }
[data-fnm-footer-institutional] { grid-area: institutional; }

[data-fnm-footer-layout] > :not([data-fnm-footer-brand]) > a {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding-block: 4px;
  color: #b7cfdf;
  font-size: .88rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

[data-fnm-footer-layout] > :not([data-fnm-footer-brand]) > :is(h2, h3, h4) > a {
  display: inline;
  color: inherit;
  font: inherit;
  margin: 0;
}
[data-fnm-footer-layout] > :not([data-fnm-footer-brand]) > a:hover,
[data-fnm-footer-layout] > :not([data-fnm-footer-brand]) > a:focus-visible { color: #ff9e65; }

footer:is(.site-footer, .fnm27-footer)[data-fnm-footer-structured] {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
[data-fnm-footer-structured] .fnm-footer-bottom { padding-inline-end: 0; }
.fnm-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}
.fnm-footer-actions:empty { display: none; }

.fnm-footer-in-view .fnm-footer-actions :is(.back-to-top, .hefesto-global, .portfolio-whatsapp) {
  position: static;
  margin: 0;
}
.fnm-footer-in-view .fnm-footer-actions .back-to-top {
  min-width: 44px;
  min-height: 44px;
  transform: none;
}
.fnm-footer-in-view .fnm-footer-actions .back-to-top:not(.is-visible) {
  visibility: hidden;
}
.fnm-footer-in-view .fnm-footer-actions #hf-global-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--hf-keyboard, 0px));
}

@media (min-width: 961px) and (max-width: 1199px) {
  [data-fnm-footer-structured] [data-fnm-footer-layout] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "brand health digital" "specialties services institutional";
  }
}

@media (max-width: 960px) {
  [data-fnm-footer-structured] [data-fnm-footer-layout] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand brand" "health digital" "specialties services" "institutional institutional";
    gap: 26px 16px;
  }
  [data-fnm-footer-layout] > [data-fnm-footer-brand] { grid-column: 1 / -1; }
  [data-fnm-footer-layout] > :not([data-fnm-footer-brand]) > a { min-height: 44px; }
  [data-fnm-footer-structured] .fnm-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }
  [data-fnm-footer-structured] .fnm-footer-other { justify-content: flex-start; }
  .fnm-footer-actions { justify-content: flex-start; padding-top: 10px; }
}

@media (max-width: 340px) {
  [data-fnm-footer-structured] [data-fnm-footer-layout] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "health" "digital" "specialties" "services" "institutional";
  }
}

@media (min-width: 961px) and (max-width: 1120px) {
  .site-header .nav.container {
    max-width: 100%;
    padding-inline: clamp(14px, 2.2vw, 26px);
    column-gap: 10px;
  }

  .site-header .nav-links {
    column-gap: clamp(8px, 1.1vw, 13px);
  }
}

@media (min-width: 1121px) {
  .site-header .nav.container {
    max-width: 1320px;
    padding-inline: clamp(22px, 2.3vw, 36px);
  }

  .site-header .nav-links {
    column-gap: clamp(14px, 1.4vw, 24px);
  }
}

@media (min-width: 791px) and (max-width: 960px) {
  .site-header .nav.container {
    min-height: 72px;
  }

  .site-header .mobile-toggle { display: inline-flex; }
  .site-header .nav-right { display: none; }

  .site-header #menu-principal {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    max-height: calc(100dvh - 72px);
    padding: 12px 26px 20px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #082a4c;
    border-top: 1px solid #ffffff2c;
  }

  .site-header #menu-principal.is-open { display: flex; }

  .site-header #menu-principal > li > :is(a, button) {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: left;
  }

  .site-header #menu-principal .dropdown {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 6px;
    box-shadow: none;
  }
}
