/*=================FONTS==================*/
@font-face {
    font-family: 'Acherus Grotesque';
    src: url('fonts/AcherusGrotesque-Regular.eot');
    src: url('fonts/AcherusGrotesque-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/AcherusGrotesque-Regular.woff2') format('woff2'),
        url('fonts/AcherusGrotesque-Regular.woff') format('woff'),
        url('fonts/AcherusGrotesque-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('fonts/Muli-Regular.eot');
    src: url('fonts/Muli-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/Muli-Regular.woff2') format('woff2'),
        url('fonts/Muli-Regular.woff') format('woff'),
        url('fonts/Muli-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*===============ICONS===============*/

/*===============STYLES==============*/
::webkit-scrollbar {
  display: none;
}

html {
  font-size: calc(16px+(22-18)*((100vw-768px)/(1200-768)));
  scrollbar-width: none;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: #3D3B3A;
  width: 100vw;
  overflow-x: hidden;
}

/*-------------GENERAL-------------*/
h1, h2, h3, h4, nav ul{
  font-family: 'Acherus Grotesque', sans-serif;
}

p {
  font-family: 'Muli', sans-serif;
}

.btn-cta {
  font-family: 'Acherus Grotesque', sans-serif;
  letter-spacing: .25rem;
  border-radius: 11px;
  background-color: #E871A9;
  color: white;
  padding: 1em 2em;
}

.btn-cta:hover {
  text-decoration: none;
}

button {
  border: none;
  box-shadow: none;
}

/*----------------NAV----------------*/
nav {
  background-color: white;
}

button.navbar-toggler {
  color: #3D3B3A;
}

nav ul li {
  border-right: 2px solid #3D3B3A;
}

nav ul li a {
  font-size: .8rem;
  letter-spacing: .25rem;
  color: #3D3B3A;
}

nav ul li a:hover {
  color: #E871A9;
  text-decoration: none;
}

nav ul li a:active {
  color: #E871A9;
  text-decoration: none;
}

a.nav-link.focused {
  color: #E871A9;
}

a span.icon-facebook-squared{
  font-size: 1.5rem;
  color: #3D3B3A;
}

a span.icon-facebook-squared:hover{
  color: #E871A9;
}

/*------------------HOME----------------*/
#home {
  min-height: 120vh;
  background-image: url('images/sfondi/home_bott_left.svg'),url('images/sfondi/home_bott_right.svg'),url('images/sfondi/home_left.svg'),url('images/sfondi/home_right.svg');
  background-repeat: no-repeat;
  background-position: bottom -1px left, bottom -1px right, left 0 top 30vh, right 0 top 15vh;
  background-size: 40vw, 30vw, 12.5vw, 10vw;
}

#newsletter {
  background-color: #E871A9;
  color: white;
  letter-spacing: .3rem;
  padding: 2.5rem 0;
}

#newsletter h4 {
  line-height: 1.5em;
}

#newsletter h4 a {
  color: white;
}

#newsletter h4 a:hover {
  text-decoration: none;
}

/*----------------MATERIALI------------*/
#materiali {
  min-height: 200vh;
  background-image: url('images/sfondi/materiali_bott_left.svg'),url('images/sfondi/materiali_bott_right.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: bottom 2rem left 0, bottom 0 right 3rem;
  background-size: 7vw, 20vw;
}

#materiali h3 {
  color: #7679B8;
  letter-spacing: .25rem;
  line-height: 175%;
}

#materiali h3 span {
  font-size: 1.5em;
}

#materiali h4 {
  letter-spacing: .3rem;
}

#materiali .row .col-lg-8 h4 {
  padding-top: 4.5rem;
}

#vademecum {
  background-color: #FBD893;
  background-image: url('images/sfondi/vadem_left.svg'),url('images/sfondi/vadem_right.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: top 0 left 0, bottom 0 right 0;
  background-size: 10vw, 2.25vw;
  border-radius: 0 11px 11px 0;
}

.first-row h4 {
  background-image: url('images/sfondi/vadem_title.svg');
  background-repeat: no-repeat;
  background-position: bottom 0 left 0;
  background-size: 10vw;
}

.first-row .col-lg-4 {
  background-image: url('images/sfondi/vadem_out_right.svg');
  background-repeat: no-repeat;
  background-position: bottom 0 left 0;
  background-size: 15vw;
}

.first-row {
  background-image: url('images/sfondi/materiali_top_right.svg');
  background-repeat: no-repeat;
  background-position: top 0 right 2rem;
  background-size: 15vw;
}

#scheda {
  background-color: #A6D7E0;
  background-image: url('images/sfondi/scheda_left.svg'),url('images/sfondi/scheda_right.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: bottom 1rem left 0, right 2rem top 0;
  background-size: 7vw, 9vw;
  border-radius: 11px 0 0 11px;
}

.second-row .col-lg-4 {
  background-image: url('images/sfondi/scheda_out.svg');
  background-repeat: no-repeat;
  background-position: bottom 4rem right 0;
  background-size: 11vw;
}

.second-row h4 {
  background-image: url('images/sfondi/scheda_title.svg');
  background-repeat: no-repeat;
  background-position: bottom 0 right 2rem;
  background-size: 9vw;
}

#vademecum p, #scheda p {
  width: 70%;
}

#materiali .col-lg-4 {
  min-height: 100%;
}

/*--------------FOOTER-------------*/
footer {
  background-color: #BDE1CF;
  background-image: url('images/sfondi/footer.svg');
  background-repeat: no-repeat;
  background-position: right 3rem top 0;
  background-size: 20vw;
}

footer h3 {
  letter-spacing: .3rem;
}

footer a {
  color: #E871A9;
}

footer a:hover {
  text-decoration: none;
  color: #7679B8;
}

footer a.logo {
  display: block;
  max-width: 200px;
}

/*---------------MEDIA QUERIES--------------*/
@media only screen and (max-width: 768px) {

  /*typography*/
  html {
    font-size: 16px;
  }

  /*sfondi*/
  #home {
    min-height: 80vh;
    background-image: url('images/sfondi_mobile/home_bott_left.svg'),url('images/sfondi_mobile/home_bott_right.svg'),url('images/sfondi_mobile/home_top_left.svg'),url('images/sfondi_mobile/home_top_right.svg');
    background-repeat: no-repeat;
    background-position: bottom 3rem left 0, bottom right, left 0 top 15vh, right 0 top 20vh;
    background-size: 30vw, 25vw, 15vw, 15vw;
  }

  #newsletter {
    padding: 3rem 0;
    background-image: url('images/sfondi_mobile/news_right.svg'),url('images/sfondi_mobile/news_left.svg');
    background-repeat: no-repeat;
    background-position: top 0 right 0, left 2rem bottom 0;
    background-size: 25vw, 20vw;
  }

  #materiali {
    min-height: 100vh;
    background-image: url('images/sfondi_mobile/materiali_top_left.svg'),url('images/sfondi_mobile/materiali_bott_left.svg'),url('images/sfondi_mobile/materiali_bott_right.svg');
    background-repeat: no-repeat;
    background-position: top 0 left 2rem, left 0 bottom 3rem, bottom 0 right 0;
    background-size: 20vw, 25vw, 25vw;
  }

  .first-row {
    background-image: url('images/sfondi_mobile/materiali_top_right.svg');
    background-repeat: no-repeat;
    background-position: top 0 right 1rem;
    background-size: 10vw;
  }

  .first-row h4 {
    background-image: url('images/sfondi_mobile/vadem_title.svg');
    background-repeat: no-repeat;
    background-position: bottom 0 left 0;
    background-size: 15vw;
  }

  #vademecum {
    background-image: url('images/sfondi_mobile/vadem_top_left.svg'),url('images/sfondi/vadem_right.svg');
    background-repeat: no-repeat;
    background-position: top 0 left 0, bottom 0 right 0;
    background-size: 15vw, 10vw;
  }

  .first-row .col-lg-4 {
    background-size: 70vw;
  }

  .second-row h4 {
    background-image: url('images/sfondi/scheda_title.svg');
    background-repeat: no-repeat;
    background-position: bottom 0 right -2rem;
    background-size: 20vw;
  }

  .second-row .col-lg-4 {
    background-image: url('images/sfondi_mobile/scheda_out_left.svg');
    background-repeat: no-repeat;
    background-position: left 0 top 4rem;
    background-size: 15vw;
  }

  #scheda {
    background-image: url('images/sfondi/scheda_right.svg');
    background-repeat: no-repeat;
    background-position: right -2rem top 0;
    background-size: 20vw;
  }

  footer {
    background-image: url('images/sfondi_mobile/footer.svg');
    background-repeat: no-repeat;
    background-position: right 0 top 0;
    background-size: 25vw;
  }
}

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

  #home {
    min-height: 100vh;
  }

  nav ul {
    padding-top: 2rem;
  }

  nav ul li {
    border-right: none;
    padding-bottom: 2rem;
  }
}

@media only screen and (min-width: 1200px) {

  /*typography*/
  html {
    font-size: 22px;
  }
}

/*======================ANIMATION BTN==================*/
/* Shutter Out Horizontal */
.hvr-shutter-out-horizontal {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  position: relative;
  -webkit-transition-property: color;
  transition-property: color;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
}
.hvr-shutter-out-horizontal:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 11px;
  background-color: #7679B8;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 50%;
  transform-origin: 50%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-shutter-out-horizontal:hover, .hvr-shutter-out-horizontal:active {
  color: white;
}
.hvr-shutter-out-horizontal:hover:before, .hvr-shutter-out-horizontal:active:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}
