.sistemi4,
.sistemi3,
.sistemi2,
.sistemi1 {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  margin: 10vh auto 10vh auto;
}

.sistemi4,
.sistemi2 {
  background-color: #f1f8ff;
}

.slideshow-container {
  max-width: 40%;
  position: relative;
  margin: auto;
  display: flex;
}

.mySlides4,
.mySlides3,
.mySlides2,
.mySlides1 {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: auto;
}

.buttons {
  display: flex;
  align-items: center;
  margin-top: 10px;
  position: absolute;
  top: 50%;
  min-width: 100%;
  justify-content: space-between;
  margin: none;
}

.mySlides4 img,
.mySlides3 img,
.mySlides2 img,
.mySlides1 img {
  max-width: 400px;
  height: auto;
  align-items: center;
  border-radius: 10px;
}

.sistemi4 .tekst,
.sistemi3 .tekst,
.sistemi2 .tekst,
.sistemi1 .tekst {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.sistemi4 .tekst p,
.sistemi3 .tekst p,
.sistemi2 .tekst p,
.sistemi1 .tekst p {
  text-align: justify;
  line-height: 20px;
  padding: 20px;
}

.prev,
.next {
  cursor: pointer;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0 3px 3px 0;
  transition: 0.6s ease;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 300px) {
  .prev,
  .next,
  .text {
    font-size: 11px;
  }
}

@media only screen and (max-width: 986px) {
  .sistemi4,
  .sistemi3,
  .sistemi2,
  .sistemi1 {
    flex-direction: column;
  }

  .slideshow-container {
    max-width: 90%;
    margin: auto;
  }

  .sistemi4 .tekst,
  .sistemi3 .tekst,
  .sistemi2 .tekst,
  .sistemi1 .tekst {
    width: 100%;
    display: block;
    margin: auto;
  }

  .sistemi4 .tekst p,
  .sistemi3 .tekst p,
  .sistemi2 .tekst p,
  .sistemi1 .tekst p {
    padding: 0 5px 0 5px;
  }
}

@media only screen and (max-width: 516px) {
  .mySlides4 img,
  .mySlides3 img,
  .mySlides2 img,
  .mySlides1 img {
    max-width: 100%;
    height: auto;
  }
}
