/* Nexo Atual Pro — CSS institucional autônomo */


:root {
      --accent: #137987;
      --accent-dark: #0f6672;
      --orange: #ff5b14;
      --bg-soft: #f6f8fb;
      --nexo-bg-start: #eef6f3;
      --nexo-bg-mid: #f5f3f3;
      --nexo-bg-end: #f8eeee;
      --nexo-card-bg: rgba(255, 255, 255, 0.9);
      --nexo-border-soft: rgba(15, 23, 42, 0.08);
      --nexo-shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.08);
      --text-main: #172033;
      --text-muted: #667085;
      --card-bg: #ffffff;
      --card-border: rgba(15, 23, 42, 0.08);
      --card-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
      --card-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.06);
      --radius-xl: 26px;
      --radius-lg: 22px;
      --radius-md: 18px;
      /* aliases legados (compatibilidade) */
      --bg: var(--bg-soft);
      --paper: var(--card-bg);
      --text: var(--text-main);
      --muted: var(--text-muted);
      --line: var(--card-border);
      --dark: var(--text-main);
      --accent-teal: var(--accent-dark);
      --soft: #eef2f6;
      --radius: var(--radius-lg);
      --container: 1180px;
      --shadow: var(--card-shadow-soft);
      --shadow-hover: var(--card-shadow);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html,
    body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      background: var(--nexo-bg-mid);
      color: var(--text-main);
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.6;
      scroll-behavior: smooth;
    }

    body {
      background:
        radial-gradient(circle 760px at 8% 140px, rgba(216, 240, 234, 0.6), transparent 70%),
        radial-gradient(circle 760px at 92% 120px, rgba(248, 226, 226, 0.55), transparent 70%),
        linear-gradient(90deg, var(--nexo-bg-start) 0%, var(--nexo-bg-mid) 50%, var(--nexo-bg-end) 100%);
    }

    a { color: inherit; text-decoration: none; }
    img { width: 100%; max-width: 100%; display: block; }
    button { font-family: inherit; }

    .container {
      width: min(var(--container), calc(100% - 32px));
      margin: 0 auto;
    }

    .topbar {
      background: var(--paper);
      color: var(--muted);
      border-bottom: 1px solid var(--line);
      font-size: 13px;
      position: relative;
      z-index: 30;
    }

    .topbar::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent-teal), var(--accent));
    }

    .topbar-inner {
      min-height: 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }

    .topbar-inner > span { font-weight: 700; color: var(--text); }

    .topbar-links {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .topbar-links a {
      padding: 6px 10px;
      border-radius: 999px;
      color: var(--muted);
      transition: background 0.2s ease, color 0.2s ease;
    }

    .topbar-links a:hover { background: var(--soft); color: var(--text); }

    header {
      background: rgba(255, 255, 255, 0.94);
      border-bottom: 1px solid rgba(0, 0, 0, 0.07);
      position: sticky;
      top: 0;
    }

    .header-inner {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .logo {
      display: flex;
      align-items: center;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .logo-img {
      height: 72px;
      width: auto;
      max-width: min(100%, 234px);
      display: block;
    }

    header nav {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 800;
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 6px;
      flex-wrap: wrap;
      justify-content: center;
    }

    header nav a {
      padding: 9px 12px;
      border-radius: 999px;
      color: var(--text);
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    header nav a:hover {
      background: rgba(19, 121, 135, 0.08);
      color: var(--accent);
      transform: translateY(-1px);
    }

    header nav a.active { background: var(--accent); color: #ffffff; transform: translateY(-1px); }

    .nav-actions { display: flex; align-items: center; gap: 10px; }

    .search-btn,
    .menu-btn {
      border: 1px solid rgba(0, 0, 0, 0.08);
      background: var(--paper);
      border-radius: 999px;
      width: 42px;
      height: 42px;
      cursor: pointer;
      font-size: 17px;
      display: grid;
      place-items: center;
      box-shadow: 0 10px 26px rgba(17, 17, 17, 0.055);
      transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }

    .search-btn:hover,
    .menu-btn:hover {
      border-color: var(--accent);
      background: rgba(19, 121, 135, 0.08);
      color: var(--accent);
      transform: translateY(-2px);
    }

    main { padding: 22px 0 0; }

    .article-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
      gap: 26px;
      align-items: stretch;
      margin-bottom: 32px;
    }

/* Breadcrumb */
.nx-breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
.nx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nx-breadcrumb li + li::before {
  content: ">";
  margin: 0 8px;
  color: #999;
  font-weight: 600;
}
.nx-breadcrumb a { color: inherit; text-decoration: none; }
.nx-breadcrumb a:hover { color: var(--accent); }
.nx-breadcrumb [aria-current="page"] { color: #222; font-weight: 600; }

/* Hero hub */
.nx-hero {
  background: linear-gradient(165deg, #fafaf8 0%, #fff 45%, #fff9f4 100%);
  border-bottom: 1px solid var(--line);
  padding: 24px 0 28px;
  margin-bottom: 8px;
}
.nx-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.nx-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.nx-hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: #333;
  max-width: 760px;
  margin: 0 0 14px;
}
.nx-hero-body {
  font-size: 16px;
  line-height: 1.65;
  color: #555;
  max-width: 800px;
}
.nx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nx-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nx-btn--primary:hover { transform: translateY(-1px); color: #fff; }
.nx-btn--secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.nx-btn--secondary:hover { color: var(--accent); transform: translateY(-1px); }

.nx-section { padding: 28px 0; }
.nx-section-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.nx-section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}
.nx-section-header p {
  margin: 0;
  font-size: 15px;
  color: #666;
  max-width: 720px;
}

.nx-footer-premium {
  background: var(--bg);
  color: var(--text);
  padding: 40px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.nx-footer-premium a { color: var(--muted); }
.nx-footer-premium a:hover { color: var(--accent); }
.nx-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding-bottom: 28px;
}
.nx-footer-grid h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--text);
}
.nx-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.nx-footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}
.nx-footer-aviso {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Footer mega */
.nx-footer-mega {
  background: var(--bg);
  color: var(--text);
  padding: 48px 0 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.nx-footer-mega .nx-footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.nx-footer-mega h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--text);
}
.nx-footer-mega a { font-size: 14px; color: var(--muted); }
.nx-footer-mega a:hover { color: var(--accent); }
.nx-footer-brand__logo {
  display: inline-block;
  margin-bottom: 14px;
  line-height: 0;
}
.nx-footer-brand__logo img {
  height: 112px;
  width: auto;
  max-width: min(100%, 440px);
}
.nx-footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 280px;
}

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.nav-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 340px);
  height: 100dvh;
  background: #ffffff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.14);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-open {
  overflow: hidden;
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 16px;
  margin: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  flex-shrink: 0;
}

.nav-drawer__head strong {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-drawer__close:hover {
  background: rgba(19, 121, 135, 0.08);
  border-color: rgba(19, 121, 135, 0.22);
  color: #137987;
}

.nav-drawer__close:active {
  transform: scale(0.96);
}

.nav-drawer nav {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.nav-drawer nav a {
  width: 100% !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 20px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  color: #172033 !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, padding 0.18s ease;
}

.nav-drawer nav a:last-child {
  border-bottom: 0 !important;
}

.nav-drawer nav a::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-drawer nav a:hover,
.nav-drawer nav a.active {
  background: rgba(19, 121, 135, 0.06) !important;
  color: #137987 !important;
  border-bottom-color: rgba(19, 121, 135, 0.12) !important;
  box-shadow: inset 3px 0 0 #137987 !important;
  padding-left: 17px !important;
}

.nav-drawer nav a.active::after,
.nav-drawer nav a:hover::after {
  color: #137987;
  transform: translateX(2px);
}

.nav-drawer__extras {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  flex-shrink: 0;
}

.nav-drawer__extras a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
}

.nav-drawer__extras a:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: #cbd5e1;
  font-weight: 400;
  pointer-events: none;
}

.nav-drawer__extras a:hover {
  color: #137987 !important;
  background: transparent;
}

@media (max-width: 900px) {
  .header-portal nav {
    display: none !important;
  }

  header.header-portal .menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-main { min-height: 50vh; }
.nx-shell { min-height: 100vh; }

/* Mobile: botão hambúrguer na lateral direita (o drawer já abre pela direita) */
@media (max-width: 980px) {
  .nap-header .nav-actions { margin-left: auto; }
}

/* Botão hambúrguer minimalista: só o ícone, sem caixa/borda */
.nap-header .menu-btn {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: var(--text-main);
  font-size: 22px;
  width: 44px;
  height: 44px;
}

.nap-header .menu-btn:hover {
  border-color: transparent;
  background: transparent;
  transform: none;
  color: var(--accent);
}

/* Mobile: mostrar "Entrar" ao lado do hambúrguer (override do display:none inline) */
@media (max-width: 980px) {
  .nap-header .nav-actions { gap: 6px; }
  .nap-header .nap-link-login { display: inline-flex; align-items: center; }
}

/* Mobile: rodapé mega em 2 colunas (marca ocupa a linha inteira no topo) */
@media (max-width: 640px) {
  .nx-footer-mega .nx-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }
  .nx-footer-mega .nx-footer-brand {
    grid-column: 1 / -1;
  }
}
