@font-face {
  font-family: 'Roc';
  src: url('../fonts/roc_medium.otf') format('opentype');
  font-weight: medium;
  font-style: normal;
}

@font-face {
  font-family: 'Roc Regular';
  src: url('../fonts/roc_regular.otf') format('opentype');
  font-weight: medium;
  font-style: normal;
}

.wrapper {
  display: block;
}

/***** Sidebar *****/

.sidebar {
  width: 30vw;
  height: 100vh;
  position: fixed;
  top: 0;
  right: -600px; /* <-- muda de left para right */
  z-index: 999;
  background: white;
  color: black;
  transition: all 0.3s;
  /* box-shadow: -3px 3px 3px rgba(51, 51, 51, 0.5);*/ /* sombra invertida */
  text-align: left;
}

.sidebar.active {
  right: 0; /* <-- muda de left para right */
}

/***** Content *****/

.content {
  width: 100%;
  transition: all 0.3s;
}

.menu-overlay {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(51, 51, 51, 0.7);
  z-index: 998;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

.dismiss {
  width: 35px;
  height: 35px;
  position: absolute;
  top: 10px;
  left: 10px; /* <-- botão "fechar" vai no canto oposto agora */
  transition: all 0.3s;
  border-radius: 4px;
  text-align: center;
  line-height: 35px;
  cursor: pointer;
}

.locale {
  text-decoration: none;
  position: absolute;
  top: 9vh;
  left: 1vw;
}

.links {
  position: absolute;
  left: 1vw;
  bottom: 3vh;
}

.links ul li a {
  font-size: 24px;
  text-decoration: none;
  font-family: "Roc", sans-serif;
  color: black;
  font-weight: 500;
}

.sidebar-search {
  position: absolute;
  top: 40vh;
  left: 1vw;
  width: calc(100% - 2vw);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid black;
  padding-bottom: 6px;
}

.sidebar-search i {
  font-size: 14px;
}

.sidebar-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  font-family: "Roc", sans-serif;
  background: transparent;
}

.sidebar-search input::placeholder {
  color: black;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .sidebar {
    width: 100vw;
    right: -100vw;
  }

  .dismiss {
    top: 24px;
    left: 16px;
  }

  .locale {
    text-decoration: none;
    top: 104px;
    left: 16px;
  }

  .sidebar-search {
    top: 45vh;
    left: 16px;
    width: calc(100% - 32px);
  }

  .links {
    left: 16px;
    bottom: 24px;
  }

  .links ul li a {
    font-size: 24px;
    line-height: 1.1;
  }

  .menu-overlay {
    background: rgba(255, 255, 255, 0.95);
  }
}