/* SESSÃO DAS CIDADES */

div.info-cidades {
  border: 5px solid var(--cor-esverdeada);
  border-radius: 10px;
  width: 100%;
  height: auto;
  padding: 20px;
  margin: 100px 0;
  box-shadow: 0 0 5px rgb(0, 0, 0, 0.3);
}

div.info-cidades:nth-child(odd) {
  border-color: var(--cor-esverdeada);
}

div.info-cidades > h2 {
  width: 270px;
  background-color: var(--cor-esverdeada);
  margin-left: -20px;
  padding: 10px 10px 10px 20px;
  border-radius: 0 10px 10px 0;
  color: #fff;
}

div.info-cidades > h2.cor-diferente {
  background-color: var(--cor-esverdeada);
}

div.linha-info-cidades {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  align-items: center;
  padding: 30px 10px 10px;
}

div.info-cidades div.linha-info-cidades {
  display: none;
}

div.info-cidades:hover div.linha-info-cidades {
  display: flex;
  animation: aparecer 1s ease;
}

/* ANIMAÇÃO KEYFRAMES APARIÇÃO */
@keyframes aparecer {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

div.linha-info-cidades li {
  padding: 0 5px;
  font-weight: bold;
  list-style-type: upper-roman;
  list-style-position: inside;
  transition: .5s ease;
}

div.linha-info-cidades li:hover {
  transform: scale(1.05);
  background-color: var(--cor-azul);
  color: #fff;
}

div.linha-cidades-reverse {
  display: flex;
  flex-direction: row-reverse;
}

/* CARROSSEL DE IMAGENS */
/* WRAPPER (EMBRULHO) DO CARROSSEL */
.carousel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* CARROSSEL CONTAINER */
  .carousel-container {
    width: 400px;
    height: 250px;
    overflow: hidden;
    border: 5px solid lightslategray;
    border-radius: 10px;
    transition: .5s ease;
  }

  .carousel-container:hover {
    box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.5);
  }
  
  /* CARROSSEL */
  .carousel {
    display: flex;
    width: 1200px;
    animation: sliding 12s infinite;
  }
  
  .carousel div {
    width: 400px;
    height: 250px;
    background-size: cover;
    background-position: center;
  }
  
  .carousel:hover {
    animation-play-state: paused;
  }
  
  /* ESTILO DAS IMAGENS DO CARROSSEL */

  /* CAXIAS - MA */
  .carousel .image-caxias-one {
    background-image: url("../images/caxias/caxias-um.jpg");
  }
  
  .carousel .image-caxias-two {
    background-image: url("../images/caxias/caxias-dois.jpg");
  }
  
  .carousel .image-caxias-three {
    background-image: url("../images/caxias/caxias-tres.jpg");
  }
  
  /* ANIMAÇÃO KEYFRAMES DO CARROSSEL */
  @keyframes sliding {
    30% {
      transform: translateX(0);
    }
    35% {
      transform: translateX(-400px);
    }
    65% {
      transform: translateX(-400px);
    }
    70% {
      transform: translateX(-800px);
    }
    98% {
      transform: translateX(-800px);
    }
    100% {
      transform: translateX(0);
    }
  }

  /* RESPONSIVIDADE PARA CELULARES */
  @media screen and (max-width: 768px) {

    /* INFORMAÇÃO DAS CIDADES */
    section#objetivos, #cidades {
      padding: 0 50px;
    }
    
    div.info-cidades {
      margin: 50px 0;
    }

    div.info-cidades > h2 {
      width: auto;
    }

    div.linha-info-cidades {
      flex-direction: column;
    }

    /* CARROSSEL NO MOBILE */
    .carousel-wrapper {
        width: 312px;
        height: 210px;
        }
    
        .carousel-container {
        width: 240px;
        height: 150px;
        }
    
        .carousel {
        width: 720px;
        }
    
        .carousel > div {
        width: 240px;
        height: 150px;
        }
    
        @keyframes sliding {
        30% {
            transform: translateX(0);
        }
        35% {
            transform: translateX(-240px);
        }
        65% {
            transform: translateX(-240px);
        }
        70% {
            transform: translateX(-480px);
        }
        98% {
            transform: translateX(-480px);
        }
        100% {
            transform: translateX(0);
        }
        }
  }

  /* RESPONSIVIDADE PARA TABLETS */
  @media screen and (min-width: 769px) and (max-width: 992px) {
    section#objetivos, #cidades {
      padding: 0 70px;
    }

    div.textos-cidades li {
      width: 300px;
    }

    div.linha-info-cidades {
      flex-direction: column;
    }

    .carousel-wrapper {
      margin-top: 30px;
    }
  }