/* Top versão desktop  */
.n24-header {
  width: 100%;
  max-width: 1490px;
  margin: auto;
  font-family: "Jakarta-Regular";
}

.n24-header > .header-first-line {
  display: flex;
  justify-content: space-between;
  margin: 9px auto;
  max-width: 1240px;
  padding: 0 20px;
  font-size: 14px;
  color: #1c1c1c;
}

#dark-theme .n24-header > .header-first-line {
  color: #ffffff;
}

.n24-header > .header-first-line > .date-degree-container > div {
  display: flex;
  gap: 50px;
}

.n24-header > .header-first-line > .cambio-container {
  display: flex;
  gap: 32px;
}

.n24-header > .header-first-line > .cambio-container > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.n24-header > .header-line {
  max-width: 1240px;
  padding: 0 20px;
  margin: auto;
  border: 1px solid #f3f3f3;
}

#dark-theme .n24-header > .header-line {
  border: 1px solid #130a24;
}

.n24-header > .header-second-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: auto;
  padding: 32px 20px 0 20px;
}

.n24-header .dark-logo {
  width: 224px;
  display: none;
}

.n24-header .light-logo {
  width: 224px;
  display: block;
}

#dark-theme .n24-header .dark-logo {
  width: 224px;
  display: block;
}

#dark-theme .n24-header .light-logo {
  width: 224px;
  display: none;
}

.menu-mobile {
  display: none;
}

.menu-mobile-especial {
  display: none;
}

/* Buscar  */
.n24-header > .header-second-line > .n24h-search-desktop {
  position: relative;
  width: 88px;
  height: 21px;
}

.n24-header > .header-second-line > .n24h-search-desktop img {
  position: absolute;
  top: -2px;
}

.n24-header > .header-second-line > .n24h-search-desktop input {
  position: absolute;
  width: 200px;
  border: none;
  height: 21px;
  padding-left: 34px;
  background-color: transparent;
}

#dark-theme .n24-header > .header-second-line > .n24h-search-desktop input {
  color: #ffffff;
}

.n24-header > .header-second-line > .n24h-search-desktop input::placeholder {
  font-size: 16px;
  font-family: "Jakarta-Bold";
  font-weight: 700;
}

.n24-header > .header-second-line > .n24h-search-mobile {
  display: none;
}

.n24-header > .header-second-line > .n24h-search-mobile-especial {
  display: none;
}

/* Buscar mobile  */
.header-second-line .input-mobile {
  position: absolute;
  top: 50%;
  right: 50px;
  height: 30px;
  width: 80%;
  border-radius: 4px;
  box-shadow: 2px 2px 10px #00000048;
  background-color: #FFFFFF;
  padding: 5px 10px;
  z-index: 998;
}

/* redes sociais  */
.n24-header > .header-second-line > .social-networking-container {
  display: flex;
  gap: 12px;
}

.n24-header > .header-second-line > .social-networking-container > a {
  cursor: pointer;
}

/* .breadcrumb  */
.n24-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.n24-breadcrumb>nav {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.n24-breadcrumb>nav>a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}

.n24-breadcrumb>nav>a>img {
  width: 24px;
  height: 28px;
}

#dark-theme .n24-breadcrumb>nav>a {
  color: #FFFFFF;
}

/* Menu  */
.n24-menuAside.active {
  animation: showMenu 0.2s ease-in 1 forwards;
}
.n24-menuAside.active > aside {
  animation: showMenuAside 0.2s ease-in 1 forwards;
}
@keyframes showMenu {
  to {
    visibility: visible;
    opacity: 1;
  }
}
.n24-menuAside {
    top: 0;
    min-height: 100vh;
    visibility: hidden;
    opacity: 0;
    width: 100%;
    position: fixed;
    z-index: 3000;
}

.n24-menuAside > aside {
  height: 100vh;
  visibility: hidden;
  transform: translateX(-100vw);
  padding: 20px;
  width: 100%;
  overflow: scroll;
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: #e0172f 0% 0% no-repeat padding-box;
  position: relative;
  top: 0;
  color: white;
  z-index: 999;
}
@keyframes showMenuAside {
  to {
    visibility: visible;
    transform: translateX(0);
  }
}

.n24-menuAside header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-menu {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: start;
  background: #b60e22 0% 0% no-repeat padding-box;
  border-radius: 4px;
  width: 100%;
  padding: 11px 12px;
}
.form-menu input {
  width: 100%;
  height: 18px;
  background-color: transparent;
  color: #ffffff;
  font-weight: bold;
  font-family: "Jakarta-Bold";
  font-size: 14px;
}
.form-menu input::placeholder {
  color: #ffffff;
  font-weight: bold;
  font-family: "Jakarta-Bold";
  font-size: 14px;
}
.menu-line {
  border: 1px solid #b60e22;
  margin: 31px 0;
}
.nav-menu > .nav-menu-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-menu .menu-title {
  font-family: "Jakarta-Bold";
  font-weight: bold;
  font-size: 27px;
  line-height: 30px;
  text-transform: capitalize;
}

.nav-menu .editorias {
  margin: 5px 0 2px 0;
}

.nav-menu ul {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Começa com 1 coluna */
  column-gap: 49px;
  row-gap: 0;
  list-style: none;
  padding: 0;
  height: fit-content;
}

/* Aplica duas colunas se houver mais de 5 elementos */
.nav-menu ul:has(li:nth-child(9)) {
  grid-template-columns: repeat(2, 1fr);
}

.nav-menu .submenu-title {
  display: flex;
  gap: 12px;
  justify-content: start;
  font-family: "Jakarta-Regular";
  font-size: 18px;
  line-height: 28px;
  text-transform: capitalize;
  margin-bottom: 5px;
}

.nav-menu .submenu-title img {
  width: 34px;
  height: 34px;
}

.nav-menu a {
  color: #ffffff;
  font-size: 16px;
}

/* Top versão mobile  */
@media (max-width: 768px) {
  .n24-header {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #FFFFFF;
    padding-bottom: 10px;
    z-index: 999;
  }

  #dark-theme .n24-header {
    background-color: #111111;
  }

  .n24-header > .header-first-line {
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    margin: 12px 8px;
    font-size: 12px;
  }

  .n24-header > .header-first-line > .date-degree-container > div {
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .n24-header > .header-first-line > .cambio-container {
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  .n24-header > .header-line {
    margin: 0 20px;
    border: 1px solid #f3f3f3;
  }

  .n24-header > .header-second-line {
    padding: 14px 20px 0 20px;
  }

    /* breadcrumb  */
  .n24-breadcrumb {
    justify-content: start;
    padding-top: 130px;
  }

  .n24-breadcrumb>nav {
    gap: 10px;
    margin: 26px 0 0 20px;
  }

  .n24-breadcrumb>nav>a {
    font-size: 20px;
    letter-spacing: -0.2px;
  }

  .n24-breadcrumb>nav>a>img {
    width: 18.86px;
    height: 22px;
  }

  /* menu mobile  */
  .menu-mobile {
    display: block;
  }

  /* Buscar  */
  .n24-header > .header-second-line > .n24h-search-desktop {
    display: none;
  }

  .n24-header > .header-second-line > .n24h-search-mobile {
    display: block;
  }

  /* redes sociais  */
  .n24-header > .header-second-line > .social-networking-container {
    display: none;
  }
}
