/* Sobreposição */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1040;
}

.sidebar.active {
  left: 0;
}
/* 
.overlay.active {
  visibility: visible;
  opacity: 1;
} */

.accordion-button.not-arrow{
  box-shadow: none;
}


.accordion-button.not-arrow::after{
  background: none !important;
}

.accordion-button:not(.not-arrow):after {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}

.accordion-button:not(.not-arrow):focus,
.accordion-button:not(.not-arrow):not(.collapsed) {
  box-shadow: none;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #f8f9fa;
  transition: left 0.3s ease;
  z-index: 1050;
  padding-top: 1rem;
  padding: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background-color: #fff;
  width: 100%;
}
.link-header {
  text-decoration: none;
  color: black;
}
.link-header .link-name {
  margin-left: 0.4em;
  line-height: 1rem;
}

/* nav */
.navbar-toggler{
  border: none;
}

.show-mobile {
  display: none;
}

.bg-dark {
  background-color: #000000 !important;
}

.navbar-hidden {
  top: -70px;
}

.navbar {
  transition: top 0.3s;
}
.nav-link {
  color: #fff;
  margin-right: 10px;
}

.navbar .nav-link{
  color: #000 !important;
}

.nav-item {
  font-weight: 700;
}
.nav-link:hover {
  color: #fff;
}
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  position: absolute;
  padding: 20px 30px;
  background: black;
  min-width: 190px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
  min-width: 300px;
}
.dropdown-title {
  left: 30px;
  top: 20px;
  right: 0;
  padding-bottom: 2px;
  border-bottom: 2px solid #fff;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 400;
}
.dropdown-item {
  font-size: 1rem;
  font-weight: 400;
  display: inline-block;
  padding: 2px 0;
  text-shadow: 0 0;
  color: #cccccc;
}
.nav-link:hover,
.dropdown-item:hover {
  background-color: transparent;
  color: #cccccc;
  opacity: 0.8;
}

.search {
  width: calc(100% - 806px);
  max-width: 524px;
  position: relative;
}

.input-search {
  background-color: transparent !important;
  font-size: 0.875rem;
  padding: 0 15px;
  width: 100%;
  display: block;
  height: 40px;
  color: black;
  border: 0px;
  border-bottom: 2px solid black !important;
  font-style: italic;
  position: relative;
}

.input-search:focus-visible {
  outline: none;
}

.button-pesquisa {
  background-color: transparent;
  position: absolute;
  top: 0;
  height: calc(100% - 2px);
  width: 55px;
  text-align: center;
  right: 0;
  display: block;
  border: none;
}

.icon-search {
  width: 24px;
  height: 24px;
  display: block;
  margin: auto;
}
@media (max-width: 768px) {
  .link-header span {
    display: none;
  }

  .button-pesquisa {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  /* .input-search {
    display: none;
  } */
}

/* SIDEBAR */
.nav-mobile {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.header-nav{
  height: 60px;
  flex-shrink: 0;
}

.content-nav {
  height: calc(100% - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
} 

.footer-nav {
  height: auto;
  flex-shrink: 0; 
  background-color: #f8f8f8;
  padding: 5px;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}


@media (max-width: 1024px) {

  /* NAV */
  .show-mobile {
    display: block;
  }

  .navbar-desktop,
  .hide-mobile {
    display: none !important;
  }

  .input-search {
    width: 200px;
    transition: width 0.3s ease;
  }

  .button-pesquisa {
    top: -8px !important;
    height: auto !important;
  }

  /* SIDEBAR */
  .nav-mobile .header-nav {
    background: linear-gradient(to left, #fff, #fff);
    color: black;
    padding: 0 24px 0 16px;
    text-decoration: none;
  }

  .nav-mobile .header-nav .line {
    font-size: 1.125rem;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
  }

  .nav-mobile .header-nav .line a {
    text-decoration: none;
    color: rgb(145, 15, 15);
  }

  .close-nav {
    position: absolute;
    right: -24px;
    padding: 10px 22px 10px 10px;
    cursor: pointer;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(180deg);
    font-size: 1.8rem;
  }

  .accordion {
    height: 70hv;
  }

  .nav-mobile .content-nav {
    overflow: auto;
    padding: 0 24px 0 16px;
    height: calc(100% - 186px);
    background-image: linear-gradient(to right, black, black);
  }

  .nav-mobile .contact {
    padding: 30px 24px 30px 16px;
    background: #fff;
    color: black;
    font-size: 0.875rem;
  }

  .nav-mobile .accordion-button {
    background-color: black;
    color: white;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 23px 0px;
  }

  .accordion-item {
    border: none;
  }

  .accordion-item:last-of-type>.accordion-header .accordion-button.collapsed {
    border-bottom-right-radius: initial;
    border-bottom-left-radius: initial;
  }

  .accordion-body {
    padding: 0px;
    padding-left: 10px;
    background-color: black;
  }

  .button-inside {
    padding-bottom: 0px !important;
  }

  .accordion-inside {
    padding-left: 10px;
    padding-top: 23px;
  }

  .accordion-body ul li {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 23px;
    color: white;
  }

  .nav-mobile .contact img {
    width: 53px;
    height: 53px;
    display: block;
    margin-right: 10px;
    fill: black;
  }

  .nav-mobile .title { 
    font-weight: 700;
    text-transform: uppercase;
  }
  .nav-mobile .option div {
    font-size: 0.78rem; 
  }

  .nav-mobile .contact .icon {
    width: 53px;
    height: 53px;
    display: block;
    margin-right: 10px;
    font-size: 3.2rem;
  }

  .nav-mobile .contact a {
    text-decoration: none;
    color: black;
  }
}