@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp');

* {
  font-family: 'Roboto', sans-serif;
  outline: none;
}

html, body {
  margin: 0;
  scroll-behavior: smooth;
  -webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
}

#messaggio {
  max-width: 350px;
  position: fixed;
  top: -500px;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  border-radius: 10px;
  box-shadow: 0 0 5px 0 #4f4f4f;
  color: #fff;
  background-color: #319000;
  transition: all 0.6s;
  padding: 20px;
  z-index: 10;
}

#back_to_top {
  transform: scale(0);
  cursor: pointer;
  /*display: none;*/
  position: fixed;
  bottom: 50px;
  right: 50px;
  border-radius: 50%;
  background-color: #1565C0;
  padding: 15px;
  box-shadow: 0 0 5px 0 #4f4f4f;
  transition: all 0.5s;
  color: #fff;
  z-index: 10;
}

#back_to_top:hover {
  transform: scale(1.1) !important;
  background-color: #005691;
}

#home #immagine {
  width: 100%;
  height: 100%;
  background-image: url('../img/sfondo.png');
  background-size: 100% 100%;
  position: relative;
}

#home #immagine h1 {
  text-align: center;
  color: #fff;
  position: absolute;
  top: 10%;
  width: 100%;
}

#home {
  box-shadow: 0 0 5px 0 #000;
}

#lista {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  /*height: 20%;*/
  height: 15%;
  cursor: pointer;
}

.gscuro {
  color: #fff;
  /*background-color: #111;*/
  background-color: #005691;
}

.gchiaro {
  /*background-color: rgba(17, 17, 17, 0.9);*/
  background-color: rgba(0, 86, 145, 0.5);
  color: #fff;
}

#home {
  height: 100vh;
}

/*#home #immagine p {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%);
  color: #fff;
}*/

#lista .container {
  /*margin-top: 20px;*/
}

.container {
  width: 100%;
}

.container:after {
  content: "";
  float: none;
  clear: both;
  display: table;
}

.container .box {
  float: left;
  width: 25%;
  text-align: center;
}

.container .box_cal {
  float: left;
  width: 50%;
  text-align: center;
}

.boxes {
  padding: 15px;
  height: calc(100% - 30px);
  width: calc(100% - 30px);
  position: relative;
  box-shadow: 0 0 10px 0 #005691 inset;
}

.box, .container {
  height: 100%;
}

.boxes .icone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 150%;
}

/*parte delle informazioni sui servizi*/
#content {
  margin-top: 20px;
  text-align: center;
}

#content:after {
  content: "";
  display: table;
  clear: both;
  float: none;
}

.info_rapida {
  max-width: 1000px;
  margin: auto;
  height: 300px;
}

.info_rapida:after {
  content: "";
  float: none;
  clear: both;
  display: table;
}

#preview {
  max-width: 1300px;
  margin: 30px auto 30px auto;
  padding: 20px;
}

.info_rapida div {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.info_rapida .immagine {
  width: 30%;
  float: left;
}

.info_rapida .immagine img {
  height: 200px;
}

.info_rapida .descrizione {
  float: left;
  width: 70%;
}

.info_rapida .descrizione p {
  padding: 10px;
}

.mail_button {
  margin: 0;
}

.mail_button span {
  vertical-align: middle;
  margin-right: 10px;
  background-color: #1565C0;
  color: #fff;
  padding: 5px;
}

.mail_button a:hover {
  transform: scale(1.1);
  background-color: #1565C0 !important;
  color: #fff;
}

.mail_button a {
  padding-right: 5px;
  display: inline-block;
  border: 1px solid #1565C0;
  overflow: hidden;
  border-radius: 5px;
  color: #000;
  text-decoration: none;
  transition: all 0.3s;
}

/* disponibilita */
#disponibilita {
  max-width: 700px;
  margin: 30px auto 30px auto;
  text-align: center;
}

#disponibilita select {
  border: none;
  background-color: unset;
  color: #ff0000;
  font-size: 100%;
}

#disponibilita select option {
  color: #000 !important;
}

#disponibilita table {
  width: 100%;
}

#disponibilita table input {
  width: 100%;
  padding: 5px;
  border-radius: 5px;
  border: none;
  box-shadow: 0 0 5px 0 #4f4f4f;
}

#disponibilita table textarea {
  resize: none;
  width: 100%;
  height: 100px;
  padding: 5px;
  box-shadow: 0 0 5px 0 #4f4f4f;
  border-radius: 5px;
  border: none;
}

#disponibilita .numero {
  cursor: pointer;
}

#disponibilita #prenota_data {
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0 0 5px 0 #4f4f4f;
  border: none;
  cursor: pointer;
  transition: all 0.5s;
}

#disponibilita #prenota_data:hover {
  background-color: #dedede;
  transform: scale(1.1);
}

#descrizione_agenda {
  color: #636363;
  margin: 0;
}

.disp {
  transition: all 0.3s;
}

.disp:hover,
.selected {
  color: #1565C0;
}

#form {
  display: none;
  padding: 15px;
}

#form input[type="number"]::-webkit-outer-spin-button,
#form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/*reviews*/
#review {
  max-width: 500px;
  margin: auto;
  text-align: center;
}

.recensione {
  height: 100px;
}

.recensione:after {
  content: "";
  display: table;
  clear: both;
}

.recensione div {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.recensione .stelle {
  width: 150px;
  float: left;
}

.recensione .voce {
  width: calc(100% - 150px);
  float: left;
}

.recensione .voce img {
  vertical-align: bottom;
  padding-right: 10px;
}

.recensione .stella_piena {
  color: #d4af37;
}

/*footer*/
#copyright {
  color: #fff;
  background-color: #111;
  padding: 20px;
  text-align: center;
  margin: 20px 0 0 0;
  font-weight: bold;
  box-shadow: 0 0 5px 0 #000;
}

#conclusioni_desktop {
  text-align: center;
  padding: 20px;
  margin: 50px auto 0 auto;
}

#conclusioni_mobile {
  display: none;
  text-align: center;
  padding: 20px;
  margin: 50px auto 0 auto;
}

#mappa {
  max-width: 1000px;
  margin: auto;
  height: 500px;
  border-radius: 15px;
  box-shadow: 0 0 10px 0 #4f4f4f;
  position: relative;
}

#mappa iframe {
  height: 100%;
  width: 100%;
  border-radius: 15px;
}

#mappa .contact_button {
  position: absolute;
  display: inline-block;
  right: 20px;
  background-color: #fff;
}

.contact_button {
  margin: 0;
}

.contact_button span {
  vertical-align: middle;
  margin-right: 10px;
  background-color: #1565C0;
  color: #fff;
  padding: 5px;
}

.contact_button {
  padding-right: 5px;
  display: inline-block;
  border: 1px solid #1565C0;
  overflow: hidden;
  border-radius: 5px;
  color: #000;
  text-decoration: none;
  transition: all 0.3s;
}

.contact_button:hover {
  transform: scale(1.1);
  background-color: #1565C0 !important;
  color: #fff;
}

#mappa #m_mail {
  top: 20px;
}

#mappa #m_phone {
  top: 80px;
}
/* fine conclusioni */

@media (max-width: 700px) {
  #lista {
    bottom: 15%;
  }
  .info_rapida .immagine img {
    height: 150px;
  }
  .container .box {
    width: 50%;
  }
  #conclusioni_desktop {
    display: none;
  }
  #conclusioni_mobile {
    display: block;
  }
}

@media (max-width: 500px) {
  .container .box_cal {
    width: 100%;
    float: none;
  }
  #messaggio {
    max-width: 90% !important;
  }
  .info_rapida .immagine {
    display: none;
  }
  .info_rapida .descrizione {
    float: none;
    width: 100%;
  }
  #gomme {
    /* LO SFONDO SEGUE D: BELLOH*/
    /*background-image: url('../img/tire_transparent.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: left center;
    background-size: 50%;*/
    background-image: url('../img/tire_transparent.png');
    background-repeat: no-repeat;
    background-attachment: absolute;
    background-position: left center;
    background-size: 60%;
  }
  #revisioni {
    background-image: url('../img/car-service_transparent.png');
    background-repeat: no-repeat;
    background-attachment: absolute;
    background-position: right center;
    background-size: 60%;
  }
  #guasti {
    background-image: url('../img/engine_transparent.png');
    background-repeat: no-repeat;
    background-attachment: absolute;
    background-position: left center;
    background-size: 60%;
  }
  #meccanica {
    background-image: url('../img/maintenance_transparent.png');
    background-repeat: no-repeat;
    background-attachment: absolute;
    background-position: right center;
    background-size: 60%;
  }
}
