.slider {
  background-color: var(--whiteNPuro);
  position: relative;
  overflow: hidden;
  height: auto;
  width: 100%;
}

.slider > .image1 {
  width: 100%;
  opacity: 1;
}

.image1.mobile {
  width: 100%;
  display: none;
}

.button-next-step {
  float: right;
  display: flex;
  cursor: pointer;
  align-content: center;
}
.button-next-step > button {
  font-family: "PNA Solarithm";
  font-size: 20px;
  line-height: 60px;
  letter-spacing: 1px;
  color: var(--blue);
  background-color: transparent;
  text-decoration: none;
  border: none;
  display: inline-block;
  padding-right: 10px;
  cursor: pointer;
  font-style: italic;
}

.button-next-step > img {
  margin-top: 8px;
}

.container-arrow .button {
  font-family: "PNA Solarithm Book";
  font-size: 20px;
  line-height: 60px;
  letter-spacing: 1px;
  color: var(--blue);
  text-decoration: none;
  padding-right: 10px;
}

.button-next-step > img {
  transition: all 0.4s ease-in-out;
}

.button-next-step:hover > img {
  transform: translateX(10px);
  transition: all 0.3s ease-in-out;
}

.slider a,
.slider a:link,
.slider a:visited,
.slider a:hover,
.slider a:active {
  text-decoration: none;
}

.slider > .title {
  font-family: "PNA Solarithm";
  font-size: 60px;
  line-height: 76px;
  letter-spacing: 3px;
  top: 70%;
  text-align: center;
  color: var(--cinzaClaro);
  /* max-width: 40%; */
  margin: 0 auto;
  padding-top: 300px;
  padding-bottom: 200px;
}

.slider > .title .italic {
  font-family: "PNA Solarithm";
  letter-spacing: 3px;
  top: 70%;
  text-align: center;
  color: var(--cinzaClaro);
  font-style: italic;
}

.slider .a-nossa-visao,
.slider .a-criacao,
.slider .a-materializacao,
.slider .o-dia {
  display: none;
}

.slider-container {
  overflow: hidden;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
}

.slides {
  transition: transform 0.8s ease-in-out;
  color: var(--blue);
  font-size: 18px;
  font-weight: 300;
  font-family: "Brother 1816";
  line-height: 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;

  align-items: center;
  justify-content: center;
}
.slide {
  box-sizing: border-box;
  max-width: 600px;
  text-align: left;
  position: absolute;
  top: 350px;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Prevent interaction with the element */
  transition: opacity 0.8s ease-in-out, visibility 0s 0.8s; /* Visibility change after fade */
}

.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s ease-in-out, visibility 0s 0s;
}

.slider-container > .title-slide {
  font-family: "PNA Solarithm";
  line-height: 55px;
  transform: rotate(-90deg);
}

.titles-container {
  display: grid;
  grid-template-columns: repeat(5, 200px);
  position: absolute;
  bottom: 47%;
  left: 25%;
  height: 50px;
  gap: 30px;
  width: 100%;
  z-index:8;
}

.title-slide {
  height: auto;
  transition: transform 0.8s ease-in-out, width 0.4s ease-in-out,
    height 1.8s ease-in-out;
  width: 200px;
  cursor: pointer;
}

.title-slide .title {
  height: auto;
  transition: all 0.8s ease-in-out;
  cursor: pointer;
}

.title-slide .container {
  border-right: 1.5px solid var(--cinzaClaro);
  width: 10px;
  transform-origin: bottom right;
  position: absolute;
  bottom: 0;
  transition: height 0.8s ease-in-out, border 0.4s ease-in-out;
}

.title-slide .container.index-1 {
  height: 90px;
}
.title-slide .container.index-2 {
  height: 120px;
}
.title-slide .container.index-3 {
  height: 80px;
}
.title-slide .container.index-4 {
  height: 140px;
}
.title-slide .container.index-5 {
  height: 40px;
}

.title-slide.active .container {
  border-right: 1.5px solid var(--blue);
  width: 10px;
  height: 560px !important;
  padding: 13px;
  transition: height 0.8s ease-in-out, border 0.4s ease-in-out;
}

.title-slide .container.index-1.en {
  height: 120px;
}
.title-slide .container.index-2.en {
  height: 80px;
}
.title-slide .container.index-3.en {
  height: 70px;
}
.title-slide .container.index-4.en {
  height: 120px;
}
.title-slide .container.index-5.en {
  height: 60px;
}

.title-slide.active {
  width: 290px;
}

.title-slide button {
  font-size: 28px;
  line-height: 48px;
  color: var(--cinzaClaro);
  transform: rotate(-90deg);
  position: absolute;
  bottom: 0;
  transform-origin: bottom left;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  font-family: "PNA Solarithm";
  transition: transform 0.8s ease-in-out, font-size 0.4s ease-in-out;
}
.title-slide.active button {
  color: var(--blue);
  font-size: 58px;
  border-bottom: none;
  transition: transform 0.8s ease-in-out, font-size 0.4s ease-in-out;
}

@media only screen and (max-width: 1700px) {
  .slide {
    top: 300px;
  }

  .title-slide.active button {
    font-size: 55px;
  }

  .titles-container {
    bottom: 43%;
    left: 20%;
    grid-template-columns: repeat(5, 180px);
  }

  .title-slide.active .container {
    height: 600px !important;
  }

  .slider > .title {
    /* max-width: 45%; */
  }
}

@media only screen and (max-width: 1200px) {
  .slide {
    top: 200px;
    font-size: 16px;
  }

  .title-slide.active button {
    font-size: 50px;
  }

  .title-slide.active button {
    font-size: 50px;
  }

  .titles-container {
    bottom: 48%;
    left: 20%;
    grid-template-columns: repeat(5, 120px);
  }

  .title-slide.active .container {
    height: 470px !important;
  }

  .slider > .title {
    /* max-width: 60%; */
  }
}

@media only screen and (max-width: 1120px) {
  .titles-container {
    left: 15%;
  }

  .slider > .title {
    /* max-width: 70%; */
    font-size: 55px;
  }
}

@media only screen and (max-width: 940px) {
  .slide {
    top: 100px;
    font-size: 16px;
    max-width: 50%;
  }

  .slider > img {
    height: auto;
  }

  .container-arrow .button {
    font-size: 16px;
  }

  .title-slide.active button {
    font-size: 35px;
  }

  .titles-container {
    bottom: 52%;
    gap: 0;
  }

  .slider > .title {
    /* max-width: 70%; */
    font-size: 45px;
    line-height: 60px;
  }
}

@media only screen and (max-width: 800px) {
  .title-slide.active .container {
    height: 420px !important;
  }
}
@media only screen and (max-width: 600px) {
  .slider > .title {
    font-size: 40px;
    line-height: 50px;
  }
}
@media only screen and (max-width: 540px) {
  .image1.mobile {
    display: block;
    width: 100%;
  }

  .slider > img {
    height: 300px;
  }

  .slide {
    top: 80px;
    font-size: 14px;
    max-width: 100%;
    margin-left: 30px;
    margin-right: 30px;
    line-height: 20px;
  }

  .title-slide button {
    font-size: 20px;
    line-height: 20px;
  }

  .container-arrow .button {
    font-size: 14px;
  }

  .titles-container {
    left: 25%;
    bottom: 41%;
    gap: 0;
    grid-template-columns: repeat(5, 80px);
  }

  .title-slide .container.index-1 {
    height: 60px;
  }
  .title-slide .container.index-2 {
    height: 80px;
  }
  .title-slide .container.index-3 {
    height: 60px;
  }
  .title-slide .container.index-4 {
    height: 100px;
  }
  .title-slide .container.index-5 {
    height: 30px;
  }

  .title-slide.active .container.index-1 {
    height: 130px !important;
  }
  .title-slide.active .container.index-2 {
    height: 150px !important;
  }
  .title-slide.active .container.index-3 {
    height: 120px !important;
  }
  .title-slide.active .container.index-4 {
    height: 190px !important;
  }
  .title-slide.active .container.index-5 {
    height: 70px !important;
  }

  .title-slide .container.index-1.en {
    height: 85px;
  }
  .title-slide .container.index-2.en {
    height: 60px;
  }
  .title-slide .container.index-3.en {
    height: 50px;
  }
  .title-slide .container.index-4.en {
    height: 90px;
  }
  .title-slide .container.index-5.en {
    height: 50px;
  }

  .title-slide.active .container.index-1.en {
    height: 160px !important;
  }
  .title-slide.active .container.index-2.en {
    height: 120px !important;
  }
  .title-slide.active .container.index-3.en {
    height: 110px !important;
  }f
  .title-slide.active .container.index-4.en {
    height: 180px !important;
  }
  .title-slide.active .container.index-5.en {
    height: 110px !important;
  }

  .slider > .title {
    /* max-width: 70%; */
    font-size: 30px;
    line-height: 40px;
    padding-top: 160px;
    padding-bottom: 80px;
  }

  .slider {
    height: auto;
  }
}

@media only screen and (max-width: 480px) {
  .slider > .title {
    font-size: 20px;
    line-height: 30px;
  }

  .button-next-step > button {
    font-size: 14px;
  }
}
