/*
 * NacionalCIE — shell visual compartilhado
 * Header, topbar, botões, tipografia e footer usados pelas páginas internas.
 * A página principal continua sendo a fonte de verdade da identidade visual.
 */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/_next/static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2") format("woff2");
}

:root {
  --ncie-navy: #062b45;
  --ncie-navy-deep: #031e30;
  --ncie-blue: #0795d2;
  --ncie-blue-dark: #0577ad;
  --ncie-blue-soft: #eaf8fe;
  --ncie-green: #20a447;
  --ncie-green-dark: #168438;
  --ncie-ink: #102330;
  --ncie-muted: #5f707b;
  --ncie-line: #dbe8ee;
  --ncie-soft: #f5f9fb;
  --ncie-white: #fff;
  --ncie-shadow: 0 24px 70px rgba(7, 53, 79, .12);
}

.blog-page,
.hub-page,
.page-evento,
.page-guia {
  font-family: "Geist", Arial, Helvetica, sans-serif;
  color: var(--ncie-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ncie-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Topbar — igual à página principal */
.ncie-topbar {
  background: var(--ncie-navy);
  color: #dff5ff;
}

.ncie-topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  font-weight: 700;
}

.ncie-topbar p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.ncie-topbar strong {
  color: var(--ncie-white);
}

.ncie-topbar a {
  color: var(--ncie-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header compartilhado */
.ncie-header {
  position: sticky;
  top: 0;
  z-index: 150;
  border-bottom: 1px solid rgba(219, 232, 238, .9);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.ncie-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 0;
}

.ncie-brand {
  width: auto;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ncie-brand img {
  width: 190px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

.ncie-context-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid #cce9f5;
  border-radius: 999px;
  color: var(--ncie-blue-dark);
  background: var(--ncie-blue-soft);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ncie-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.ncie-nav a {
  color: #354b58;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .2s ease;
}

.ncie-nav a:hover,
.ncie-nav a[aria-current="page"] {
  color: var(--ncie-blue);
}

.ncie-header-cta {
  margin-left: 0;
  flex: none;
}

.ncie-header .header-cta-full,
.ncie-header .event-cta-full {
  display: inline;
}

.ncie-header .header-cta-short,
.ncie-header .header-cta-micro,
.ncie-header .event-cta-short,
.ncie-header .event-cta-micro {
  display: none;
}

/* Botão base — dimensões, cantos e comportamento da home */
.ncie-button,
.blog-page .hub-btn,
.hub-page .hub-btn,
.page-evento .button,
.page-guia .button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 14px 24px;
  border: 1px solid var(--ncie-green);
  border-radius: 10px;
  color: var(--ncie-white);
  background: var(--ncie-green);
  box-shadow: 0 14px 30px rgba(32, 164, 71, .2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ncie-button:hover,
.blog-page .hub-btn:hover,
.hub-page .hub-btn:hover,
.page-evento .button:hover,
.page-guia .button:hover {
  border-color: var(--ncie-green-dark);
  background: var(--ncie-green-dark);
  box-shadow: 0 18px 38px rgba(32, 164, 71, .26);
  transform: translateY(-2px);
}

.ncie-button-small,
.ncie-header .button,
.ncie-header .hub-btn {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 13px;
}

.ncie-button-outline,
.page-evento .button-outline,
.page-guia .button-outline,
.blog-page .hub-btn-outline,
.hub-page .hub-btn-outline {
  border-color: var(--ncie-blue);
  color: var(--ncie-blue-dark);
  background: var(--ncie-white);
  box-shadow: none;
}

.ncie-button-outline:hover,
.page-evento .button-outline:hover,
.page-guia .button-outline:hover,
.blog-page .hub-btn-outline:hover,
.hub-page .hub-btn-outline:hover {
  border-color: var(--ncie-blue-dark);
  color: var(--ncie-white);
  background: var(--ncie-blue-dark);
}

.ncie-button-whatsapp,
.blog-page .hub-btn-whatsapp,
.hub-page .hub-btn-whatsapp {
  border-color: #b8dfc1;
  color: var(--ncie-green-dark);
  background: #f2fbf4;
  box-shadow: none;
}

.ncie-button-whatsapp:hover,
.blog-page .hub-btn-whatsapp:hover,
.hub-page .hub-btn-whatsapp:hover {
  border-color: #8fcba0;
  color: var(--ncie-green-dark);
  background: #e4f7e9;
  box-shadow: none;
}

.ncie-mobile-nav {
  display: none;
  position: relative;
  flex: none;
  margin-left: 0;
}

.ncie-mobile-nav summary {
  width: 44px;
  height: 44px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--ncie-line);
  border-radius: 10px;
  background: var(--ncie-white);
  cursor: pointer;
  list-style: none;
}

.ncie-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.ncie-mobile-nav summary span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ncie-navy);
  transition: transform .2s ease, opacity .2s ease;
}

.ncie-mobile-nav[open] summary span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ncie-mobile-nav[open] summary span:nth-child(2) {
  opacity: 0;
}

.ncie-mobile-nav[open] summary span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.ncie-mobile-nav nav {
  width: min(300px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 54px;
  right: 0;
  z-index: 220;
  padding: 10px;
  border: 1px solid var(--ncie-line);
  border-radius: 14px;
  background: var(--ncie-white);
  box-shadow: var(--ncie-shadow);
}

.ncie-mobile-nav nav a {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ncie-line);
  border-radius: 8px;
  color: var(--ncie-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ncie-mobile-nav nav a:last-child {
  border-bottom: 0;
}

.ncie-mobile-nav nav a:hover {
  color: var(--ncie-blue-dark);
  background: var(--ncie-blue-soft);
}

/* Footer compartilhado */
.ncie-footer {
  margin-top: 0;
  padding: 68px 0 24px;
  color: var(--ncie-white);
  background: var(--ncie-navy-deep);
}

.ncie-footer .footer-grid,
.ncie-footer .hub-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr 1.15fr .9fr;
  gap: 58px;
  padding: 0;
}

.ncie-footer .footer-brand img,
.ncie-footer .hub-footer-brand img {
  width: 190px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.ncie-footer .footer-brand p,
.ncie-footer .hub-footer-brand p {
  max-width: 270px;
  margin: 18px 0 10px;
  color: #94b1c0;
  font-size: 13px;
  line-height: 1.65;
}

.ncie-footer .footer-brand strong,
.ncie-footer .hub-footer-brand strong {
  color: #ccdee7;
  font-size: 11px;
}

.ncie-footer h3 {
  margin: 0 0 20px;
  color: var(--ncie-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ncie-footer .footer-links,
.ncie-footer .footer-apps,
.ncie-footer .hub-footer-links,
.ncie-footer .hub-footer-apps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ncie-footer .hub-footer-links ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ncie-footer .footer-links a,
.ncie-footer .hub-footer-links a {
  margin-bottom: 12px;
  color: #91adbb;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.ncie-footer .footer-links a:hover,
.ncie-footer .hub-footer-links a:hover {
  color: var(--ncie-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ncie-footer .store-badge,
.ncie-footer .hub-footer-apps a {
  width: 160px;
  height: 48px;
  display: block;
  margin-bottom: 10px;
  transition: transform .18s ease;
}

.ncie-footer .store-badge:hover,
.ncie-footer .hub-footer-apps a:hover {
  transform: translateY(-1px);
}

.ncie-footer .store-badge img,
.ncie-footer .hub-footer-apps img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.ncie-footer .store-badge-google img,
.ncie-footer .hub-footer-apps a:first-of-type img {
  transform: scale(1.12);
  transform-origin: left center;
}

.ncie-footer .footer-bottom,
.ncie-footer .hub-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #7593a3;
  font-size: 11px;
}

.ncie-footer a:focus-visible,
.ncie-topbar a:focus-visible {
  outline-color: var(--ncie-white);
}

.ncie-header a:focus-visible,
.ncie-header summary:focus-visible,
.ncie-button:focus-visible,
.blog-page .hub-btn:focus-visible,
.hub-page .hub-btn:focus-visible,
.page-evento .button:focus-visible,
.page-guia .button:focus-visible {
  outline: 3px solid var(--ncie-blue);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 1040px) {
  .ncie-header-inner {
    gap: 18px;
  }

  .ncie-brand img {
    width: 165px;
  }

  .ncie-nav {
    gap: 17px;
  }

  .ncie-nav a {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .ncie-nav {
    display: none;
  }

  .ncie-header-cta {
    margin-left: auto;
  }

  .ncie-mobile-nav {
    display: block;
  }

  .ncie-header .event-cta-full,
  .ncie-header .header-cta-full {
    display: none;
  }

  .ncie-header .event-cta-short,
  .ncie-header .header-cta-short {
    display: inline;
  }

  .ncie-footer .footer-grid,
  .ncie-footer .hub-footer-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 42px;
  }
}

@media (max-width: 820px) {
  .ncie-container {
    width: min(100% - 32px, 680px);
  }

  .ncie-topbar-inner {
    min-height: 34px;
    justify-content: center;
  }

  .ncie-topbar a {
    display: none;
  }

  .ncie-header-inner {
    min-height: 70px;
  }

  .ncie-brand img {
    width: 150px;
  }
}

@media (max-width: 600px) {
  .ncie-container {
    width: min(100% - 24px, 470px);
  }

  .ncie-topbar-inner {
    font-size: 11px;
    text-align: center;
  }

  .ncie-header-inner {
    gap: 8px;
  }

  .ncie-brand {
    gap: 8px;
  }

  .ncie-brand img {
    width: 120px;
  }

  .ncie-context-tag {
    display: none;
  }

  .ncie-header .ncie-button,
  .ncie-header .button,
  .ncie-header .hub-btn {
    min-height: 40px;
    padding: 10px 13px;
    font-size: 12px;
  }

  .ncie-mobile-nav summary {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .ncie-footer {
    padding-top: 52px;
  }

  .ncie-footer .footer-grid,
  .ncie-footer .hub-footer-grid {
    grid-template-columns: 1fr;
    gap: 33px;
  }

  .ncie-footer .footer-bottom,
  .ncie-footer .hub-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 70px;
  }
}

@media (max-width: 380px) {
  .ncie-header-inner {
    gap: 6px;
  }

  .ncie-brand img {
    width: 96px;
  }

  .ncie-header .ncie-button,
  .ncie-header .button,
  .ncie-header .hub-btn {
    min-height: 38px;
    padding: 8px;
    font-size: 10px;
  }

  .ncie-mobile-nav summary {
    width: 38px;
    height: 38px;
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ncie-button,
  .blog-page .hub-btn,
  .hub-page .hub-btn,
  .page-evento .button,
  .page-guia .button,
  .ncie-mobile-nav summary span {
    transition: none;
  }
}
