/* Prima sezione */

#bg-1st {
  background: rgb(31, 146, 208);
  background: -moz-linear-gradient(45deg, rgba(31, 146, 208, 1) 0%, rgba(95, 108, 175, 1) 69%);
  background: -webkit-linear-gradient(45deg, rgba(31, 146, 208, 1) 0%, rgba(95, 108, 175, 1) 69%);
  background: linear-gradient(45deg, rgba(31, 146, 208, 1) 0%, rgba(95, 108, 175, 1) 69%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1f92d0", endColorstr="#5f6caf", GradientType=1);
  background-repeat: no-repeat;
  background-size: 100%;
  height: 90vh;
  width: 100%;
  position: relative;
}

.img-header {
  position: absolute;
  width: 100%;
  right: 0;
  bottom: 0;
}

.background-header-lg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 590px) {
  #bg-1st {
    height: 100vh;
  }

  .img-header {
    position: absolute;
    width: 130%;
    right: 0;
    bottom: 0;
  }

}

.s1-button {
  background: transparent;
  padding: 3px 15px;
  text-align: center;
  border: 1px solid white;
  border-radius: 8px;
}

.s1-nav {
  position: absolute;
  top: 15px;
  right: 60px;
}

.s1-logo {
  position: absolute;
  top: 32px;
  max-width: 120px;
}

.s1-content {
  position: relative;
  top: 80px;
  padding-top: 30px;
}

.s1x-button {
  margin-top: 35px;
  background: rgb(234, 90, 88);
  background: -moz-linear-gradient(124deg, rgba(234, 90, 88, 1) 0%, rgba(241, 146, 125, 1) 100%);
  background: -webkit-linear-gradient(124deg, rgba(234, 90, 88, 1) 0%, rgba(241, 146, 125, 1) 100%);
  background: linear-gradient(124deg, rgba(234, 90, 88, 1) 0%, rgba(241, 146, 125, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ea5a58", endColorstr="#f1927d", GradientType=1);
  padding: 15px 35px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 10px;
}

.s1-logo-phone {
  display: none;
}

@media screen and (max-width: 990px) {
  .s1-logo {
    display: none;
  }

  .s1-content {
    position: relative;
    padding-top: 0;
  }

  .nav-phone {
    background-color: white;
  }

  .s1-logo-phone {
    width: 100%;
    display: block;
    max-width: 150px;
  }

  .s1x-button {
    margin-top: 15px;
    padding: 10px 25px;
  }
}

/* effetto type writer */
#typeWriter {
  color: #ffffff;
  font-weight: bold;
}

#cursor {
  color: #ffffff;
  animation: blink 1s linear infinite;
}

@keyframes blink {
  0% {
    opacity: 100%;
  }

  50% {
    opacity: 0%;
  }

  100% {
    opacity: 1;
  }
}

/* Seconda sezione */

.s2-cardContainer {
  margin: 50px;
  padding: 20px 50px;
  display: flex;
  justify-content: space-around;
  align-items: baseline;
}

.cerchio {
  width: 60px;
  height: 60px;
  border: 1px solid transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #4169E1;
  margin-bottom: 10px;
}

.cerchio img {
  width: 25px;
}

.s2-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 25px;
}

@media screen and (max-width: 990px) {
  .s2-card {
    margin-top: 25px;
    margin-bottom: 25px;
  }
}

/* terza sezione */

#bg-3rd {
  padding-top: 40px;
  background-color: #e9e9e9;
  border-bottom: 20px solid #EC6C62;
  position: relative;
  overflow: hidden;
}

#bg-3rd img {
  width: 100%;
  display: block;
}

.s3-img {
  width: 600px;
  display: flex;
  height: auto;
  width: 100%;
  overflow: auto;
}

.s3-button {
  background: rgb(234, 90, 88);
  background: -moz-linear-gradient(124deg, rgba(234, 90, 88, 1) 0%, rgba(241, 146, 125, 1) 100%);
  background: -webkit-linear-gradient(124deg, rgba(234, 90, 88, 1) 0%, rgba(241, 146, 125, 1) 100%);
  background: linear-gradient(124deg, rgba(234, 90, 88, 1) 0%, rgba(241, 146, 125, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ea5a58", endColorstr="#f1927d", GradientType=1);
  padding: 10px 35px;
  margin: 40px 0;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 10px;
}

@media screen and (max-width: 1000px) {
  .s3-img {
    margin-top: 40px;
    height: auto;
    order: 1;
    display: flex;
  }
}


/* quarta sezione */

.bg-4th {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.bg-4th .container {
  position: relative;
  z-index: 2;
}

.s4-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.s4-textContainer {
  text-align: center;
  padding: 20px;
}

.s4-button {
  background-color: #4169E1;
  padding: 8px 48px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
}

.s4-cardContainer {
  margin: 50px;
  display: flex;
  justify-content: space-around;
}

.s4-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.L-img {
  margin-right: 50px;
}

.L-line {
  position: relative;
  top: 180px;
}

.M-img {
  position: relative;
  top: 120px;

}

.R-line {
  position: relative;
  top: 200px;
}

.R-img {
  position: relative;
  top: -50px;
}

.icon-heart {
  width: 25px;
}

.border-bottom {
  border-radius: 50%;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  z-index: 1;
}

@media screen and (max-width: 1200px) {
  .border-bottom {
    display: none;
  }

  .s4-textContainer {
    padding: 0;
  }

  .s4-cardContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .L-line {
    display: none;
  }

  .R-line {
    display: none;
  }

  .L-img {
    margin-right: 0px;
    top: auto;

  }

  .M-img {
    position: relative;
    top: auto;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 50px;
  }

  .R-img {
    position: relative;
    top: auto;
    margin-bottom: 30px;
  }

  .bg-4th {
    padding-bottom: 0;
  }
}

/*  quinta sezione  */
.s5 {
  padding-top: 100px;
}

.s5 .container {
  padding: 0;
}

.s5Card {
  background: rgb(87, 119, 222);
  background: -moz-linear-gradient(224deg, rgba(87, 119, 222, 1) 0%, rgba(90, 138, 163, 1) 32%, rgba(0, 134, 226, 1) 81%);
  background: -webkit-linear-gradient(224deg, rgba(87, 119, 222, 1) 0%, rgba(90, 138, 163, 1) 32%, rgba(0, 134, 226, 1) 81%);
  background: linear-gradient(224deg, rgba(87, 119, 222, 1) 0%, rgba(90, 138, 163, 1) 32%, rgba(0, 134, 226, 1) 81%);
  border: 0px solid transparent;
  border-radius: 20px;
  padding: 0px 50px;
}

.s5-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.s5Img {
  width: 100%;
  height: auto;
  padding-bottom: 30px;
}

@media screen and (max-width: 1000px) {
  .s5Img {
    order: -1;
  }
}

@media screen and (max-width: 1200px) {
  .s5 {
    padding-top: 0;
  }
}

@media screen and (max-width: 580px) {
  .s5Card {
    border-radius: 0px;
  }

  .s5 {
    padding-top: 0px;
  }
}

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

  .s5-content {
    padding-top: 20px;
  }

}