.carousel{
  width: 100%;
  margin: 0 auto;
}

.carousel .item {
  position: relative;
}

.carousel .item .imageContainer {
  display: block;
  width: 100%;
  position: relative;
}

.carousel .item .imageContainer::before{
  content:"";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.carousel .item img {
  display: block;
  width: 100%;
}

 /*posizione testo********************/

.carousel .item .overlay {
  z-index: 999;
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  color: #fff;
  padding: 40px 0px 175px 0px;
}

.carousel .item .overlay h3{
  text-align: center;
  font-size: 44px;
  font-weight: 700;
  padding-bottom: 14px;
  width: 70%;
  margin: 0 auto;
}

.carousel .item .overlay p{
  text-align: center;
  width: 60%;
  margin: 0 auto;
  font-size: 25px;
  font-weight: 400;
  line-height: 32px;
  color: rgba(255, 255, 255, 0.7);
}

/************************************/
/*font sizes
line heights
padding bottom of h3
overlay position*/

@media only screen and (min-width: 1041px) and (max-width: 1100px) {
  
  .carousel, .carousel .item {
    max-height: 600px;
  }

  .carousel .item .overlay {
    padding: 20px 0px 60px 0px;
  }

  .carousel .item .overlay h3 {
    font-size: 40px;
    padding-bottom: 10px;
  }

  .carousel .item .overlay p{
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.7);
  }
}

@media only screen and (min-width: 961px) and (max-width: 1040px) {

  .carousel, .carousel .item {
    max-height: 550px;
  }

  .carousel .item .overlay {
    padding: 20px 0px 60px 0px;
  }

  .carousel .item .overlay h3 {
    font-size: 36px;
    padding-bottom: 10px;
  }

  .carousel .item .overlay p{
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.7);
  }
}

@media only screen and (min-width: 871px) and (max-width: 960px) {

  .carousel, .carousel .item {
    max-height: 500px;
  }

  .carousel .item .overlay {
    padding: 20px 0px 60px 0px;
  }

  .carousel .item .overlay h3 {
    font-size: 36px;
    padding-bottom: 10px;
  }

  .carousel .item .overlay p{
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.7);
  }
}

@media only screen and (min-width: 781px) and (max-width: 870px) {

  .carousel, .carousel .item {
    max-height: 450px;
  }

  .carousel .item .overlay {
    padding: 15px 0px 50px 0px;
  }

  .carousel .item .overlay h3 {
    font-size: 32px;
    padding-bottom: 8px;
  }

  .carousel .item .overlay p{
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  }
}

@media only screen and (min-width: 701px) and (max-width: 780px) {

  .carousel, .carousel .item {
    max-height: 400px;
  }

  .carousel .item .overlay {
    padding: 15px 0px 50px 0px;
  }

  .carousel .item .overlay h3 {
    font-size: 32px;
    padding-bottom: 8px;
  }

  .carousel .item .overlay p{
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  }
}

@media only screen and (min-width: 636px) and (max-width: 700px) {

  .carousel, .carousel .item {
    max-height: 360px;
  }

  .carousel .item .overlay {
    padding: 15px 0px 50px 0px;
  }

  .carousel .item .overlay h3 {
    font-size: 32px;
    padding-bottom: 8px;
  }

  .carousel .item .overlay p{
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  }
}

@media only screen and (min-width: 561px) and (max-width: 635px) {

  .carousel, .carousel .item {
    max-height: 320px;
  }

  .carousel .item .overlay {
    padding: 10px 0px 40px 0px;
  }

  .carousel .item .overlay h3 {
    font-size: 29px;
    padding-bottom: 6px;
  }

  .carousel .item .overlay p{
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.7);
  }
}

@media only screen and (min-width: 531px) and (max-width: 560px) {

  .carousel, .carousel .item {
    min-height: 415px;
    /*max 280*/
  }

  .carousel .item .overlay {
    padding: 10px 0px 0px 0px;
  }

  .carousel .item .overlay h3 {
    width: 90%;
    font-size: 27px;
    padding-bottom: 6px;
    color: #263238;
  }

  .carousel .item .overlay p{
    width: 80%;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: #263238;
  }
}

@media only screen and (min-width: 501px) and (max-width: 530px) {

  .carousel, .carousel .item {
    min-height: 410px;
    /*max 280*/
  }

  .carousel .item .overlay {
    padding: 10px 0px 0px 0px;
  }

  .carousel .item .overlay h3 {
    width: 90%;
    font-size: 27px;
    padding-bottom: 6px;
    color: #263238;
  }

  .carousel .item .overlay p{
    width: 80%;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: #263238;
  }
}

@media only screen and (min-width: 431px) and (max-width: 500px) {

  .carousel, .carousel .item {
    min-height: 410px;
    /*max 240*/
  }

  .carousel .item .overlay {
    padding: 10px 0px 30px 0px;
  }

  .carousel .item .overlay h3 {
    width: 90%;
    font-size: 25px;
    padding-bottom: 5px;
    color: #263238;
  }

  .carousel .item .overlay p{
    width: 80%;
    font-size: 12px;
    font-weight: 400;
    line-height: 19px;
    color: #263238;
  }
}

@media only screen and (min-width: 341px) and (max-width: 430px) {

  .carousel, .carousel .item {
    min-height: 340px;
    /*max 200*/
  }

  .carousel .item .overlay {
    padding: 10px 0px 0px 0px;
  }

  .carousel .item .overlay h3 {
    width: 90%;
    font-size: 23px;
    padding-bottom: 4px;
    color: #263238;
  }

  .carousel .item .overlay p{
    width: 80%;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #263238;
  }
}

@media only screen and (max-width: 340px) {

  .carousel, .carousel .item {
    min-height: 290px;
    /*max 170*/
  }

  .carousel .item .overlay {
    padding: 10px 0px 0px 0px;
  }

  .carousel .item .overlay h3 {
    width: 90%;
    font-size: 23px;
    padding-bottom: 4px;
    color: #263238;
  }

  .carousel .item .overlay p{
    width: 80%;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #263238;
  }
}
