* {
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  font-family: 'Lato';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
p {
  font-weight: 300;
  margin: 0 0 1rem 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
}

/*
a {
  text-decoration: none;
  color: inherit;
  font-weight: 400;
}
/* 

/**
 * Material Modal CSS
 */
.modal {
  will-change: visibility, opacity;
  display: flex;
  align-items: center;
  justify-content: center;
  
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: $modal-delay;
  
}
.modal--active {
  visibility: visible;
  opacity: 1;
}
.modal--align-top {
  align-items: flex-start;
}
.modal__bg {
  background: transparent;
}
.modal__dialog {
  max-width: 1024px;
  padding: 1.2rem;
  
}
.modal__content {
  will-change: transform, opacity;
  position: relative;
  padding: 2.4rem;
  background: #e0e0f0;
  background-clip: padding-box;
  border-radius: 8px;
  box-shadow: 0 12px 15px 0 rgba(0,0,0,0.25);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
.modal__content--active {
  opacity: 1;
  
}
.modal__close {
  z-index: 1100;
  cursor: pointer;
}
.modal__trigger {
  position: relative;
  display: inline-block;
  /* top right bottom left */
  //padding: 1.5rem 1.2rem 1.5rem 1.2rem;
  /* colore caption bottone */
  //color: rgba(0,0,0,0.7);
  /* altezza bottone */
  line-height: 1;
  //height: 4rem;
  //width: 8rem;
  //vertical-align: text-top;
  
  cursor: pointer;
  /* colore bottoni */
  //background: #e0e0f0;
  //font-family: Verdana, Geneva, sans-serif;
  //font-size: 1rem;
  //margin-top: 5px;
  
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.modal__trigger--active {
  z-index: 10;
  
}

/* sfondo bottoni hover */
/*
.modal__trigger:hover {
  background: #e5d3d6;
}
*/

#modal__temp {
  will-change: transform, opacity;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e0e0f0;
  -webkit-transform: none;
          transform: none;
  opacity: 1;
  border-radius: 2px;
  transition: opacity 0.1s ease-out, -webkit-transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: opacity 0.1s ease-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: opacity 0.1s ease-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/**
 * other floor specific CSS
 */
 
.pagination {
  display: inline-block;
}

.pagination a {
  color: white;
  float: left;
  /* top right bottom left */
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  text-decoration: none;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.7rem;
}

.pagination a.active {
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
  color: black;
  border-radius: 5px;
}
 



/**
 * Demo specific CSS
 */
body {
  height: 100vh;
  
}
img {
  max-width: 100%;
}
.demo-btns header {
  padding: 7vh 10vw;
  /* sfondo parte alta */
  background: #ffebee; 
  display: flex;
  align-items: center;
}
.demo-btns header h1 {
  margin: 0;
  color: rgba(0,0,0,0.54);
  font-weight: 300;
}

/*
 * sfondo div bottoni 
*/
.demo-btns .info {
  background: #336699;
  padding: 10vh 10vw;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column wrap;
}

/* colore scritta sotto bottoni */
.demo-btns p {
  text-align: center;
  color: #fff;
}
.demo-btns .link {
  font-size: 20px;
}
.demo-btns .modal__trigger {
  margin-top: 5px; 
  margin-right: 5px;
  
}
@media (max-width: 640px) {
  .demo-btns .modal__trigger {
    margin-bottom: 0.8rem;
  }
}
.demo-close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 1.2rem;
  padding: 0.6rem;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.demo-close svg {
  width: 24px;
  fill: #fff;
  pointer-events: none;
  vertical-align: top;
  
}
.demo-close:hover {
  background: rgba(0,0,0,0.6);
}
.logo {
  position: fixed;
  bottom: 3vh;
  right: 3vw;
  z-index: 2;
}
.logo img {
  width: 45px;
  -webkit-transform: rotate(0);
          transform: rotate(0);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.logo img:hover {
  -webkit-transform: rotate(180deg) scale(1.1);
          transform: rotate(180deg) scale(1.1);
}
