body {
  font-family: 'Ubuntu', sans-serif;
  color: #000000;
  background-color: #ffffff;
  font-size: 18px;
}

header {
  height: 120px;
  background-color: #5f7f84;
}

main {
  background-color: #ffffff;
}

footer {
  padding: 10px 0;
  background-color: #5f7f84;
}

/* Tipography */
h1 {
  font-size: 2em;
  font-weight: 700;
  font-family: 'Ubuntu', sans-serif;
  color: #ffffff;
}

h2  {
  color: #ffffff;
}

h3 {
  color: #000000;
  font-size: 2em;
  font-weight: 700;
  font-family: 'Ubuntu', sans-serif;
  text-align: center;
  margin-bottom: 40px;
}

h4 {
  text-align: center;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
}

h5 {
  color: #405C69;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 40px;
}

nav ul {
  display: inline;
  line-height: 80px;
}

nav ul li {
  display: inline-block;
  padding: 0 10px;
  text-transform: uppercase;
  font-weight: 100;
}

nav ul li:hover {
  color: #ffffff;
}

a {
  color:#000000;
  text-decoration: none;
}

a:hover {
  color:#c0ced4;
  text-decoration: none;
}

/* Margin */
.mr-20 {
  margin-right: 20px;
}

.my-20 {
  margin: 20px 0;
}

.my-30 {
  margin: 30px 0;
}

/* Padding */
.py-40 {
  padding: 40px 0;
}

/* Layout */
.box {  
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px;
  text-align: center;
}

.box-border {
  border-left: 4px solid red;
  padding: 10px;
}

.pagina-libro {
  height: 100%;
  width: 100%;
}

/* Button */
.btn-dm {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  padding: 20px;
  transition: all 0.4s ease-in-out;
  border-radius: 2rem;
  border: none;
  text-transform: uppercase;
  background-color: #fcd548;
  color: #000000;
  cursor: pointer;
}

.btn-dm:hover {
  background-color: #405C69;
  color: #ffffff;
}

.btn-border-dm {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  padding: 20px;
  border: none;
  border: 1px solid #c0ced4;
  border-radius: 2rem;
  text-transform: uppercase;
  background-color: transparent;
  color: #c0ced4;
  cursor: pointer;
}

.btn-secondary-dm {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  padding: 20px;
  transition: all 0.4s ease-in-out;
  border-radius: 2rem;
  border: none;
  text-transform: uppercase;
  background-color: #405C69;
  color: #ffffff;
  cursor: pointer;
}

.btn-secondary-dm:hover {
  background-color: #fcd548;
  color: #000000;
}

.btn-border-dm:hover {
  background-color: #405C69;
  color: #ffffff;
  border: 1px solid #405C69
}

.btn-circle-dm {
  background-color: red;
  border:none;
  border-radius: 50% 5% 50% 50%;
  width: 110px;
  height: 110px;
  padding: 5px;
  font-size: 0.8em;
  color: #5f7f84;
  margin-top: -10px;
  margin-right: -50px;
  text-align: center;
}

.btn-circle-dm a {
  color: #ffffff;
}

.btn-circle-dm a:hover {
  color: #ffffff;
}


.btn-circle-large {
  background-color: #5f7f84;
  border:none;
  border-radius: 50%;
  height: 200px;
  width: 200px;
  padding: 60px 0;
  text-align: center;
  font-size: 1.5em;
  color: #ffffff;
}

#scrolltotop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color:#405C69;
  color: #ffffff;
  cursor: pointer;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  line-height: 40px;
}

/* Slider */
#slider {
  height: 600px;
  background-color: #5f7f84;
  position: relative;
}

.slogan {
  height: 500px;
  margin-top: 100px;
} 

.up-level {
  z-index: 99;
}

.slogan h1 {
  color: #fcd548;
  font-size: 4rem;
  font-weight: 700;
  margin: 20px 0;
}

.slogan p {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 500;
  padding: 20px 0;
  margin-top: -25px;
  margin-bottom: 40px;
}

.copertina {
  background-image: url('/assets/img/copertina.jpg');
  background-size: cover;
}

.shape {
  width: 100%;
  height: 350px;
  position: absolute;
  bottom: -10%;
  left: 0;
}

.logo {
  height: 120px;
}

.book {
  transform: scale(1.8);
  pointer-events: auto;
  z-index: 1;
  margin-top: 100px;
}

/* Feature */
#feature {
  padding: 80px 0;
  background-color: #ffffff;
}

#feature p {
  font-size: 1.2em;
  font-weight: 100;
  text-align: center;
}

#feature i {
  font-size: 54px;
  color: #5f7f84;
  padding: 20px;
}

.number {
  display: block;
  font-size: 3em;
  font-weight: 700;
  color: #5f7f84;
}

/* howtodo */
#howtodo {
  padding: 80px 0;
  background-color: #c0ced4;
}

#howtodo p {
  line-height: 1.8em;
}

#howtodo .box-border p {
  font-size: 2em;
  color: #000000;
  padding: 10px;
}

.passo-libro {
  height: 600px;
  transform: rotate(15deg);
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

#howtodo .cta {
  margin: 60px 0;
}

#howtodo .how-to-do {
  height: 200px;
  margin-left: 20px;
}



/* Capitoli */
#capitoli {
  padding: 80px 0;
}

#capitoli ol li {
  font-weight: 300;
  padding: 5px 0;
  font-size: 0.9em;
}

#capitoli img {
  height: 600px;
}

.bg-book {
  background-image: url('/assets/img/book.jpg');
  background-size: cover;
  height: 600px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Author */
#author {
  padding: 80px 0;
  width: 50%;
  margin: 0 auto;
}

#author img {
  height: 200px;
  box-shadow: 0 0 30px 0 rgb(0 0 0 / 9%);
  border-radius: 50%;
}

#author p {
  line-height: 1.8em;
  font-size: 1em;
  font-weight: 300;
  margin: 40px 0;
}

/* Carta Docente */
#cartaDocente {
  padding: 80px 0;
  background-color: #c0ced4;
}

#cartaDocente img{
  height: 120px;
}

#cartaDocente p {
  color: #405C69;
  font-size: 2em;
  margin-bottom: 40px;
}

/* Review */
#review {
  padding: 80px 0;
  background-color: #ffffff;
}

#review .item-rw {
  background-color: #c0ced4;
  padding: 40px 20px;
  border-radius: 10px;
  font-weight: 300;
  font-size: 1em;
  position: relative;
}

.icon-holder {
  position: absolute;
  left: 50%;
  top: -25px;
  margin-left: -25px;
  display: inline-block;
  width: 50px;
  height: 50px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  padding-top: 8px;
  font-size: 23px;
  z-index: 1;
  background: #405C69;
}

/* Footer */
footer ul li, footer p {
  color: #c0ced4;
  font-weight: 300;
  font-size: 1em;
  line-height: 1.5em;
}

footer ul li a {
  color: #c0ced4;
}

footer ul li a:hover {
  color: #000000;
}

footer ul li:first-child {
  font-weight: 700;
  color: #c0ced4;
}

footer .social {
  display: inline-block;
  padding: 10px 0;
  margin: 20px 0;
}

footer .social li {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  border: 1px solid #c0ced4;
  text-align: center;
  margin: 3px;
}

footer .social li:hover {
  color: #000000;
  border: 1px solid #000000;
}

footer .social a {
  color: #c0ced4;
}

footer .social a:hover {
  color: #000000;
}

.link li {
  display: inline-block;
  margin: 20px 0;
}

.link li a {
  color: #c0ced4;
  font-weight: 300;
  font-size: 1em;
  padding: 0 5px;
}

.link li a:hover {
  color: #000000;
  transition: linear 0.1s;
}

/* Scrolltotop */
.scrolltotop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  -webkit-transform: translateY(3px);
  transform: translateY(3px);
  z-index: 994;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: ease-out 0.2s;
  transition: ease-out 0.2s;
}

.scrolltotop.scrolltotop-show {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

@media screen and (min-width: 769px) and (max-width:1380px) {
  #shape {
    display: none;
  }

  .slogan h1 {
    font-size: 3em;
  }

  .book {
    transform: scale(0.8);
    z-index: 1;
    margin-top: 10px;
  }
}
@media screen and (max-width: 768px) {
  #slider {
    height: 100%;
  }

  .slogan h1 {
    font-size: 2.5em;
  }

  .book {
    transform: scale(1);
    z-index: 1;
    margin-top: 10px;
  }

  .passo-libro {
    height: 200px;
  }

  #shape {
    display: none;
  }

  #cartaDocente img {
    margin: 60px 0;
    height: 80px;
  }

  #capitoli ol {
    margin: 20px;
  }

  .bg-book {
    height: 300px;
  }

  #author {
    width: 90%;
  }

  #author img {
    height: 120px;
  }

  #author h3 {
    font-size: 1.2em;
    margin-top: 10px;
  }

  .cta-top {
    text-align: center;
  }
  .btn-border-dm, .btn-dm {
    display: inline-block;
    margin: 8px 0;
  }
}