#viewport {
    width: 100vw;
    height: 100vh;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top right;
    position: relative;
}
#viewport svg {
    position: absolute;
    z-index: 1;
    width: 100%;
    display: block;
    bottom: -60px;
}
#titoli {
    width: 100%;
    height: 520px;
    position: absolute;
    left: 0;
    top: 45%;
    margin-top: -210px;
    z-index: 2;
}
p.viewport {
    font-family: 'Exo', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    border-left: 5px solid #cf1178;
    padding: 0px 10px;
    margin-bottom: 15px;
}
#titoli h1 {
    font-family: 'Exo', sans-serif;
    font-size: 90px;
    font-weight: 700;
    color: white;
    line-height: 90px;
}
#titoli h1 strong {
    color: #4a9ad3;
}
#titoli a {
    font-family: 'Exo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 30px;
    border: 0;
    margin-top: 20px;
    display: inline-block;
    margin-right: 20px;
    position: relative;
}
#titoli a.info {
    background-color: #cf1178;
    color: white;
    cursor: pointer;
}
#titoli a.info::before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #4a9ad3;
    z-index: 10;
    transition: all .15s linear;
}
#titoli a.info:hover::before {
    width: 100%;
}
#titoli a strong {
    z-index: 99;
    position: relative;
}
#titoli a.programma {
    background-color: #4a9ad3;
    color: white;
    cursor: pointer;
}
#titoli a.programma::before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    transition: all .15s linear;
    background-color: #cf1178;
}
#titoli a.programma:hover::before {
    width: 100%;
}
#bottom-viewport {
    width: 80%;
    clear: both;
    margin-top: 20px;
}
#bottom-viewport div {
    width: 30%;
    color: white;
    padding: 20px;
    background-color: #cf1178;
}
#bottom-viewport div h3 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
    padding: 0;
    position: relative;
}
#bottom-viewport div p {
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    margin: 0;
    padding: 0;
}
#bottom-viewport a.sx {
    background-color: #4a9ad3;
    position: relative;
    transition: all .3s linear;
}
#bottom-viewport a.centro {
    background-color: #233645;
    position: relative;
    transition: all .3s linear;
}
#bottom-viewport a.dx {
    background-color: #cf1178;
    position: relative;
    transition: all .3s linear;
}
#bottom-viewport a.sx::before {
    content: '';
    width: 20px;
    height: 30px;
    position: absolute;
    top: 33px;
    left: 20px;
    background-image: url(../img/attestato.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
#bottom-viewport a.centro::before {
    content: '';
    width: 24px;
    height: 30px;
    position: absolute;
    top: 32px;
    left: 18px;
    background-image: url(../img/placement.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
#bottom-viewport a.dx::before {
    content: '';
    width: 20px;
    height: 30px;
    position: absolute;
    top: 31px;
    left: 20px;
    background-image: url(../img/iscrizioni.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all .3s linear;
}
#bottom-viewport a.sx:hover, #bottom-viewport a.centro:hover, #bottom-viewport a.dx:hover {
    transform: translateY(-10px);
}
#main-centro {
  position: relative;
}
#centro {
    width: 1340px;
    margin: auto;
    overflow:hidden;
    margin-bottom: 100px;
}
#main-centro::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 510px;
  background-image: url(../img/sfondo-sotto.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  bottom: -280px;
  left: 0;
  right: 0;
  z-index: -1;
}
#centro1, #centro2 {
    width: 48%;
}
#centro1 {
    float: left;
    position: relative;
}
#centro1 #img1 {
    display: block;
    position: absolute;
    width: 590px;
    height: 358px;
    object-fit: contain;
    top: 80px;
    left: 80px;
}
#centro1 #img2 {
    display: block;
    position: absolute;
    width: 380px;
    height: 500px;
    object-fit: contain;
    top: 350px;
}
#centro2 {
    float: right;
    font-family: 'Exo', sans-serif;
    padding-top: 110px;
    padding-right: 30px;
}
#centro2 h3 {
    font-size: 30px;
    font-weight: 700;
    padding: 3px 0 3px 15px;
    margin-bottom: 30px;
    position: relative;
    border-left: 3px solid #cf1178;
    color: #233645;
}
#centro2 h2 {
    line-height: 50px;
    font-size: 40px;
    font-weight: 700;
    padding: 5px 130px 5px 0;
    margin-bottom: 40px;
    color: #233645;
}
#centro2 p {
    font-size: 18px;
    font-weight: 400;
    color: #233645;
    line-height: 30px;
    margin-bottom: 20px;
}
#centro2 strong {
    font-weight: 700;
    color: #233645;
}
#centro2 h1 {
    font-family: 'Exo', sans-serif;
    font-size: 45px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    border-top: 3px solid #cf1178;
    padding-top: 20px;
    margin-top: 40px;
    color: #233645;
}
#centro2 #regular {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    border-bottom: 3px solid #cf1178;
    padding-bottom: 20px;
}
#programma {
    position: relative;
    width: 1340px;
    margin: 0 auto 100px;
    overflow:hidden;
}
#programma h2 {
    font-size: 40px;
    font-weight: 700;
    color: #233645;
    margin-bottom: 40px;
}
#main-programma {
    background-color: #ebf5f6;
    position: relative;
    overflow: hidden;
}
#programma-sx {
    width: 60%;
    float: left;
    background-color: #ebf5f6;
}
#programma-sx p.sopra {
    position: relative;
    font-weight: 400;
    color: #233645;
    font-size: 18px;
    margin-bottom: 40px;
}
p.elenco {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: white;
  background-color: #233645;
  padding: 10px 12px 10px 46px;
  margin: 5px 10px 5px 0;
  border-right: 4px solid #4a9ad3;
}
p.elenco::before {
    content: '';
    position: absolute;
    background-image: url(../img/freccia.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 18px;
    height: 18px;
    top: 50%;
    margin-top: -9px;
    left: 14px;
}
#programma-dx {
    width: 35%;
    float: right;
    background-color: white;
    font-size: 0;
    padding-bottom: 20px;
}
h3.sottomenu {
    color: #cf1178;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 30px;
    text-transform: uppercase;
    margin: 10px 0;
}
#programma-dx p.sx {
    display: inline-block;
    vertical-align: middle;
    width: 40%;
    color: #233645;
    padding: 10px 10px 10px 5px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-align: right;
    margin: 10px 0;
}
#programma-dx p.dx {
    display: inline-block;
    vertical-align: middle;
    width: 60%;
    color: #233645;
    padding: 5px 10px 10px 10px;
    font-size: 14px;
    font-weight: 400;
    border-left: 5px solid #233645;
}
#backtotop {
    width: 50px;
    height: 50px;
    position: fixed;
    margin: 0 auto;
    right: 40px;
    outline: none;
    transition: all 0.4s ease-in-out
}
#backtotop img {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    animation-name: loop;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
@keyframes loop {
    from {
        transform: translateY(10px);
    }

    to {
        transform: translateY(-10px);
    }
}
h2#testimonial {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #233645;
    margin-top: -40px;
    padding: 60px 0 0;
}
h2#testimonial strong {
    font-size: 25px;
}
#testimonial-center {
    background-color: #ebf5f6;
    width: 1340px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
#testimonial-center::after {
    content: '';
    background-color: #ebf5f6;
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    right: 100%;
    width: 100%;
}
#testimonial-center::before {
    content: '';
    background-color: #ebf5f6;
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    left: 100%;
    width: 100%;
}


#main-partner {
  overflow: hidden;
  padding-top: 80px;
}
#partner {
  width: 1340px;;
  margin: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
}
#partner a img {
  width: 100%;
}
#partner a {
  width: 24%;
}
#partner img {
  width: 24%;
}

#contatti-home {
  padding: 80px 0;
  width: 990px;
  margin: auto;
  overflow: hidden;
}
#contatti-home h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: #233645;
  margin-bottom: 30px;
}
#contatti-home p {
  position: relative;
  font-weight: 400;
  color: #233645;
  font-size: 18px;
  margin-bottom: 40px;
  text-align: center;
}
#contatti-home .campo {
  position: relative;
  width: 49%;
  margin-bottom: 20px;
}
#contatti-home .campo.left {
  float: left;
  margin-right: 0.5%;
}
#contatti-home .campo.right {
  float: right;
  margin-right: 0.5%;
}
#contatti-home .full {
  margin-bottom: 20px;
}
#contatti-home .campo input {
  border: solid 1px #233645;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 3px;
  display: block;
  width: 100%;
}
#contatti-home .campo input:focus {
  border: solid 1px #cf1178;
}
#contatti-home .full textarea {
  border: solid 1px #233645;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 3px;
  display: block;
  width: 100%;
  height: 120px;
}
#contatti-home .full textarea:focus {
  border: solid 1px #cf1178;
}
#contatti-home label input[type=checkbox] {
  display: inline-block;
  margin-right: 5px;
}
#contatti-home label a {
  color: #cf1178;
}
#contatti-home label a:hover {
  text-decoration: underline;
}
#contatti-home button {
  display: block;
  margin-top: 20px;
  background-color: #cf1178;
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  width: 160px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 4px;
  transition: all .2s linear;
}
#contatti-home button:hover {
  background-color: #233645;
}









@media only screen and (max-width: 1340px) {
    #titoli {
        height: 460px;
        top: 50%;
        margin-top: -180px;
    }
  #titoli h1 {
    font-size: 70px;
    line-height: 70px;
  }
  #bottom-viewport {
    width: 100%;
  }
  #centro {
    width: 1170px;
  }
  #centro1 #img1 {
    width: 470px;
    height: 330px;
  }
  #programma {
    width: 1170px;
  }
    #testimonial-center {
        width: 1170px;
    }
    #partner {
      width: 1170px;
    }
    #progetto img {
      width: 29%;
    }
}
@media only screen and (max-width: 1170px) {
    #viewport {
        background-position: center center;
    }
    #titoli {
        top: 50%;
        height: 400px;
        margin-top: -150px;
    }
    p.viewport {
      font-size: 18px;
    }
    #titoli h1 {
      font-size: 60px;
      line-height: 60px;
    }
    #bottom-viewport {
      margin-top: 0;
    }
    #bottom-viewport div {
      width: 50%;
      margin-top: 20px;
  }
    #bottom-viewport a {
        height: 105px;
    }
    #centro {
      width: 990px;
    }
    #centro1 #img1 {
      width: 380px;
      height: 270px;
    }
    #centro1 #img2 {
      width: 260px;
        height: 350px;
        top: 250px;
    }
    #centro2 {
        padding-top: 0;
    }
    #centro2 h3 {
      font-size: 26px;
      margin-bottom: 20px;
    }
    #centro2 h2 {
      line-height: 40px;
      font-size: 38px;
      padding: 5px 30px 5px 0;
      margin-bottom: 30px;
    }
    #centro2 p {
      font-size: 16px;
      line-height: 26px;
      margin-bottom: 15px;
    }
    #centro2 h1 {
      font-size: 36px;
      padding-top: 10px;
      margin-top: 30px;
    }
    #centro2 #regular {
      padding-bottom: 10px;
    }
    #programma {
        width: 990px;
    }
    #main-programma::after {
        width: 100%;
        top: -270px;
        left: -30px;
    }
    #programma-sx, #programma-dx {
        width: 47%;
        margin: 10px auto;
        margin-bottom: 20px;
        padding-right: 0;
    }
    #programma-dx {
        margin-top: 65px;
    }
    #testimonial-center {
        width: 990px;
    }
    #partner {
      width: 990px;
    }
}
@media only screen and (max-width: 990px) {
    p.viewport {
    	font-size: 18px;
        text-align: center;
        border-left: none;
    }
    #bottom-viewport div {
      width: 100%;
      text-align: center;
    }
    #bottom-viewport div p {
      text-align: center;
    }
    #viewport svg {
        bottom: -1px;
    }
    #titoli {
        height: 420px;
        margin-top: -210px;
    }
    #titoli h1 {
      text-align: center;
    }
    #titoli a {
      padding: 10px 25px;
    }
    #titoli a.info {
        margin-left: 190px;
    }
    #bottom-viewport a {
      padding: 0 10px 10px 60px;
      line-height: initial;
      height:120px;
    }
    #bottom-viewport a h3 {
      margin: 13px 0 6px 0;
    }
    #bottom-viewport a.sx::before {
      width: 40px;
      height: 45px;
      top: 47px;
      left: 10px;
      
    }
    #bottom-viewport a.centro::before {
      width: 40px;
      height: 45px;
      top: 48px;
      left: 10px;
    }
    #bottom-viewport a.dx::before {
      width: 35px;
      height: 50px;
      top: 45px;
      left: 11px;
    	transition: all .3s linear;
    }
    #bottom-viewport a h3 {
      font-size: 15px;
    }
    #bottom-viewport a p {
      font-size: 13px;
    }
    #main-centro::after {
      height: 250px;
      bottom: -100px;
    }
    #centro {
      width: 768px;
      margin: auto;
    }
    #centro1 {
      display: none;
    }
    #centro2 {
      float: none;
      width: 100%;
      padding-bottom: 60px;
      padding-right: 0;
    }
    #centro2 h3 {
    	font-size: 26px;
    	margin-bottom: 10px;
    	text-align: center;
    	border: none;
    	padding: 0;
    }
    #centro2 h2 {
      line-height: 40px;
      text-align: center;
      padding: 0;
    }
    #centro2 h2 .break {
      display: none;
    }
    #centro2 p {
      text-align: center;
    }
    #programma {
        width: 768px;
    }
    #programma h2 {
      text-align: center;
    }
    #programma-sx {
      float: none;
      width: 100%;
      padding: 0;
      margin: auto;
    }
    #programma-sx p.sopra {
      text-align: center;
      margin-bottom: 15px;
    }
    p.elenco {
      font-size: 12px;
      padding: 10px 9px 10px 27px;
      margin: 5px 10px 5px 0;
    }
    p.elenco::before {
      width: 14px;
      height: 14px;
      margin-top: -7px;
      left: 8px;
    }
    #programma-dx {
      float: none;
      width: 100%;
    }
    #programma-dx p.sx {
      width: 35%;
    }
    #programma-dx p.dx {
      width: 60%;
    }
    #programma-dx p.dx br {
      display: none;
    }
    #testimonial-center {
        width: 768px;
    }
    #main-partner {
      padding-top: 0;
      margin-bottom: 80px;
    }
    #partner {
      width: 768px;
    }
    #patrocinio {
      float: none;
      width: 100%;
    }
    #patrocinio h2 {
      text-align: center;
    }
    #progetto {
      width: 100%;
      float: none;
    }
    #progetto h2 {
      margin-top: 40px;
      text-align: center;
      margin-bottom: 20px;
    }
    #contatti-home {
      width: 768px;
    }
}
@media only screen and (max-width: 768px) {
      #viewport {
        margin-bottom: 60px;
      }
      #titoli {
          height: 280px;
          margin-top: -160px;
      }
      #bottom-viewport {
        display: none;
      }
    #titoli a.info {
        margin-left: 14px;
    }
      #centro {
        width: 480px;
      }
      #programma {
        width: 480px;
      }
    #testimonial-center {
        width: 480px;
    }
    h2#testimonial {
        padding-top: 0;
    }
    #partner {
      width: 480px;
      flex-wrap: wrap;
    }
    #partner img {
      width: 49%;
      margin-bottom: 20px;
    }
    #contatti-home {
      width: 480px;
    }
}
@media only screen and (max-width: 480px) {
    #bottom-viewport {
      width: 94%;
    }
    #titoli{
        height: 340px;
        margin-top: -170px;
    }
    #titoli a.info {
        display: block;
        margin: 20px auto 0;
        width: 190px;
        text-align: center;
    }
    #titoli a.programma {
        display: block;
        margin: 20px auto 0;
        width: 250px;
        text-align: center;
    }
    #centro {
      width: 94%;
      padding: 0 3%;
    }
    #programma {
      width: 94%;
      padding: 0 3%;
    }
    #programma h2 {
        margin-bottom: 10px;
    }
    #programma-dx p.sx {
        width: 90%;
        display: block;
        margin: 0 20px 0;
        text-align: left;
        padding: 0;
    }
    #programma-dx p.dx {
        width: 90%;
        border-left: 0;
        margin: 0 20px 20px;
        padding: 0;
    }
    #testimonial-center {
        width: 100%;
        padding: 0 3%;
    }
    #testimonial-center::after {
        width: 0;
    }
    #testimonial-center::before {
        width: 0;
    }
    #partner {
      width: 100%;
        padding: 0 3%;
    }
    #contatti-home {
      width: 100%;
      padding: 40px 3%;
    }
}
