/* Colore titolo */
.header {
  background-image: url("../image/sfondo-bianco.jpg");
  text-align: center;
  margin: 0; }
    
.header-index {
  background-image: url("../image/sfondo-bianco.jpg");
  text-align: center;
  margin: 0; 
  position: fixed;
  background-attachment: fixed;
  z-index: 100;
  width: 100%; }

/* Formattazione carattere e colore del body */ 
body {
  font-family: 'Gill Sans', 'Gill Sans MT','Trebuchet MS', sans-serif;
  color: black;
  background-color: whitesmoke;
  padding: 0;
  margin: 0; }  
      
/* Colore barra */
.topnav {
  overflow: hidden;
  background-color: peru; 
  padding-left: 5%; }

/* Colore testo dentro la barra */
.topnav a {
  float: left;
  display: block;
  color: whitesmoke;
  text-align: center;
  padding: 30px 30px;
  text-decoration: none; }
        
/* Colore quandi si punta il cursore sopra */
.topnav a:hover {
  background-color: whitesmoke;
  color: black; }
      
/* Barra menu index (rimane fissa) */
.topnav-index {
  overflow: hidden;
  background-color: peru; 
  padding-left: 5%;
  position: fixed;
  background-attachment: fixed;
  z-index: 100;
  width: 100%; 
  margin-top: 100px; }

.topnav-index a {
  float: left;
  display: block;
  color: whitesmoke;
  text-align: center;
  padding: 30px 30px;
  text-decoration: none; }
        
.topnav-index a:hover {
  background-color: whitesmoke;
  color: black; }
           
/* Configurazione cover pag. index */
.cover {
  background-image: url("../image/cover-pc.jpg");    /* Immagine dello sfondo */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -o-background-size: cover;
  -moz-background-size: cover;
  background-attachment: scroll;   /* Quando scrolli la pagina l'immagine resta fissa */
  width: auto;
  height: 100%; }
       
/* centra il bottone */
.center {
  margin: 0;
  position: absolute;
  top: 75%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%); }
      
/* Configurazione bottone cover */ 
.btn1 {
  border: solid 0.5px #fff; 
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  display: inline-block;
  position: relative;
  text-align: center;
  padding: 1.222em 2em 1.111em 2em;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  color: whitesmoke;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.616);
  transition: .1s background, .1s transform; }
        
.btn1:hover {
  background: rgba(128, 128, 128, 0.404);
  border: solid 2.5px rgba(245, 245, 245, 0.698); 
  font-weight: 600; }

/* Configurazione slider images */ 
.img {
  margin-left: 5%;
  margin-right: 5%;
  width: 90%;
  height: 80%; }
    
/* Configurazione bottone slider images */
.btn2 {
  font-size: xxx-large;
  margin-top: 300px;
  left: 50%;
  text-align: center;
  color: whitesmoke;
  transition: all 0.3s;
  position: absolute;
  -ms-transform: translate(-50%, -50%);  /* Centra il bottone */
  transform: translate(-50%, -50%); }

.btn2 span {
  transition: all 0.3s; }
          
.btn2::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-top-style: solid;
  border-bottom-style: solid;
  border-top-color: black;
  border-bottom-color: black;
  transform: scale(0.1, 1); }

.btn2:hover span {
  letter-spacing: 2px; }

.btn2:hover::before {
  opacity: 1; 
  transform: scale(1, 1); }

.btn2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.075); }
        
.btn2:hover::after {
  opacity: 0; 
  transform: scale(0.1, 1); }

h1 {
  text-align: center;
  font-weight: 500;
  font-family: Georgia, 'Times New Roman', Times, serif; 
  /* Linea bordo */
  border-color: burlywood;
  margin: 15%;
  margin-bottom: 0%;
  margin-top: 6%; }

h2 {
  text-align: left;
  font-family: Georgia, 'Times New Roman', Times, serif; 
  font-weight: 600;
  height: 300px;
  border: solid 2px firebrick; }

/* Email (Contatti) */
h3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: xxx-large;
  text-align: center;
  font-weight: 200;
  margin-top: 10%;
  margin-bottom: 1%; 
  display: block;
  align-items: center; }
  
h4 {
  font-size: xx-large;
  text-align: center;
  font-weight: 300;
  font-size: x-large;
  margin: 5%; 
  margin-top: -5%;
  margin-bottom: 5%; }

p {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: xx-large;
  font-weight: 400;
  text-align: center; }

p2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: large;
  font-weight: 400;
  text-align: center; }

p3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  margin-left: 0px;
  font-size: x-large; 
  font-weight: 400; 
  color: peru;
  text-align: left; }

/* Descrizione servizi */ 
p4 {
  color: rgb(41, 41, 41);
  margin: 50px;
  margin-top: 10px;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: medium;
  font-weight: 50;
  text-align: left; 
  margin-left: 40px;
  line-height: 25px; }

/* Container Servizi */ 
.flex-container {
  margin-top: 100px;
  display: flex;
  justify-content: center; 
  flex-wrap: wrap; }
      
.flex-container > div {
  display: block;
  font-family: Georgia, 'Times New Roman', Times, serif;
  width: 500px;
  height: 300px;
  margin: 15px;
  margin-bottom: 50px;
  text-align: left;
  font-size: 30px; }

/* Container bottone - Servizi */ 
.cont {
  border: solid 1px antiquewhite;
  margin-top: -50px;
  background-color: antiquewhite; }

.btn3-cont {
  display: flex;
  justify-content: center; 
  flex-wrap: wrap;
  margin-bottom: 75; }

.btn3 {
  border: 1px solid #333;
  border-radius: 6px;
  color: #333;
  display: block;
  font-family: sans-serif;
  margin: 0 15 0;
  max-width: 300px;
  padding: 20px;
  text-decoration: none;
  transition: all .6s ease; }

.btn3:hover{
  color: #fff; }

.esterno .btn3:hover{
  box-shadow: 0 0 0 5vw #333 inset; }

/* Container Contatti */ 
.flex-container2 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 40px; }
      
.flex-container2 > div {
  width: 100%;
  height: 200px;
  margin: 0;
  text-align: center;
  line-height: 75px;
  font-size: 30px; }
          
/* Grandezza e posizione testo del modulo */
.modulo {
  width: auto;
  height: auto;
  color: black;
  font-style: italic;
  font-size: medium;
  padding-left: 5%;
  padding-top: 2%; 
  padding-bottom: 10%; }

/* Formattazione carattere e colore modulo email */ 
label, input[type=text], textarea {
  display: block;
  box-sizing: border-box;
  width: 75%; }
input[type=text], textarea {
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px;
  border: 1px solid burlywood;
  border-radius: 3px;
  box-sizing: border-box;
  margin-top: 5px;
  margin-bottom: 15px;
  resize: vertical; }
input[type=submit] {
  background-color: #4CAF50;
  color: white;
  margin-top: 30px;
  padding: 20px 40px;
  border: none;
  border-radius: 3px;
  cursor: pointer; }
input[type=submit]:hover {
  background-color: burlywood; 
  transition: 0.45s;}

/* Formattazione carattere e colore del footer */ 
.footer {
  color: whitesmoke; 
  background-image: url("../image/sfondo-bianco.jpg");
  padding: 30px; 
  text-align: center; }  

.info {
  background-color: rgba(0, 0, 0, 0.897);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white; 
  text-align: left; 
  padding: 30px; }

/* Policy a destra */
.policy {
  height: 20px;
  width: 100%;
  position: relative;
  margin-right: 200px;
  margin-top: -40px;
  text-align: right; }

/* Configurazione schermata di caricamento */ 
#schermata_caricamento {
  width: 100%;
  height: 100%;
  position:fixed;
  top: 0;
  left: 0;
  background-color: whitesmoke;
  background-image:url("../image/img-caricamento.gif");
  background-repeat: no-repeat;
  background-position: center; }

/* Tablet */ 
@media (max-width: 998px) {

.topnav-index {display: none;}
.topnav { display: none; } 
  
h1 {
  margin-top: 8%; } 
h4 {
  margin-top: -7%;} }


  
/*          GALLERIA          */ 

.gallery {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  margin-bottom: 40px;}

.gallery img{
  height: 300px;
  width: 350px;
  transform: scale(1.0);
  transition: transform 0.4s ease; }

.gallery img:hover{
  transform: scale(1.1); }

.img-box {
  box-sizing: content-box;
  margin: 10px;
  height: 300px;
  width: 350px;
  overflow: hidden;
  display: inline-block;
  color: white;
  position: relative;
  background-color: white; }

.img-box:hover img{ 
  transform: scale(1.1); }

.img-box:hover .caption {
  transform: translateY(-20px);
  opacity: 1.0; }

.img-box:hover {
  cursor: pointer; }


/*          MENU          */

/* Configurazione barra menu */
.menu {
  height: 100%;
  width: 60%;
  background: rgba(205, 134, 63, 0.788);
  position: fixed;
  top: 0;
  right: -60%;
  z-index: 100; 
  transition: right 0.5s;}

@media (min-width: 998px) {
  .menu {
      display: none; } }


/* Posizione icona menu (3 linee) */
.btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 27px;
  position: absolute;
  top: 25px;
  left: -50px; }

/* Configurazione icona menu */
.btn span {
  height: 5px;
  width: 40px;
  background: burlywood;
  border-radius: 20px;
  transition: width 0.5s; }

/* Configutazione linea del menu (la n.2) */
.btn span:nth-child(2) {
  width: 30px; }

/* Configurazione linee menu quando il cursore è puntato */
.btn:hover span:nth-child(odd) {
  width: 30px; }

/* Configurazione linea del menu quando il cursore è puntato */
.btn:hover span:nth-child(2) {
  width: 40px; }


/* "MENU" */
nav ol {
  line-height: 75px; 
  margin: 0;
  height: 75px;
  background-color: rgba(0, 0, 0, 0.863);
  text-decoration: none;
  font-size: x-large;
  font-family: 'Gill Sans', 'Gill Sans MT','Trebuchet MS', sans-serif;
  color: white; }


/* Configurazione testo del menu */
nav ul li a{
  text-decoration: none;
  font-size: x-large;
  font-family: 'Gill Sans', 'Gill Sans MT','Trebuchet MS', sans-serif;
  color: whitesmoke; 
  line-height: 35px;}

/* Posizione testo del menu */
nav {
  flex-direction: column;
  justify-content: center;
  align-items: center; }

/* Colore contorno menu */
nav ul li {
  list-style-type: none;}

/* Colore testo del menu quando il cursore è puntato */
nav ul li a:hover{
  transition: 0.45s;
  color: black; }