* {
  margin: 0;
  padding: 0;
}

body {
  background-image: url("img/Sfondo.jpg");
  max-width: 100%;
  display: grid;
  place-items: center;
  margin: 0;
}

.titolo_nav {
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  font-size: 22px;
  font-weight: 700;
  display: inline-block;
}

.slider {
  height: 240px;
  /* height: 200px; */
  margin-top: 100px;
  position: relative;
  width: 60%;
  place-items: center;
  overflow: hidden;
  border-radius: 25px;
  border-color: transparent;
}

.slide-track {
  display: flex;
  width: calc(250px * 18);
  animation: scroll 20s linear infinite;
}

.slide-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  100% {
    transform: translateX(0);
  }
  0% {
    transform: translateX(calc(-250px * 9));
  }
}
.slide {
  height: 200px;
  width: 250px;
  display: flex;
  align-items: center;
  padding: 15px;
  perspective: 100px;
}

img {
  width: 100%;
  transition: transform 1s;
  border-radius: 15px;
  border-color: transparent;
}

img:hover {
  transform: translateZ(15px);
  border-radius: 15px;
}

.slider::before,
.slider::after {
  background: linear-gradient(
    to right,
    rgb(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-color: transparent;
  content: "";
  height: 100%;
  position: absolute;
  width: 15%;
  z-index: 2;
}

.slider::before {
  left: 0;
  top: 0;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotatez(180deg);
}
/*///////////////////////////////////////////////////////////////////////////////////////////////////*/

section {
  position: relative;
  width: 60%;
  height: 53px;
  display: flex;
  overflow: hidden;
  margin: auto;
}

section div {
  position: relative;
  width: 50%;
  background: #fff;
  overflow: hidden;
}

section div:nth-child(1) {
  position: relative;
  width: 50%;
  background-size: cover;
  overflow: hidden;
}

section div:nth-child(1)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

section div:nth-child(1) h2 {
  -webkit-text-stroke: 0.8px;
  -webkit-text-stroke-color: #272829;
  -webkit-text-fill-color: transparent;
  left: 100%;
}

section div h2 {
  position: absolute;
  white-space: nowrap;
  font-size: em;
  line-height: 40px;
  color: #272829;
  animation: animate 60s linear infinite;
  z-index: 1000;
}

@keyframes animate {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
