:root {
  /**
   * COLORI
   */

  /*--gold-crayola: hsl(38, 61%, 73%); */           /* Colore oro */
  --gold-crayola: hsl(43, 93%, 70%);            /* kColore oro 1*/
  --eerie-black-3: hsla(180, 2%, 8%, 1);        /* kColore nero misterioso variante 3 */
  --black: hsla(0, 0%, 0%, 1);                  /* kColore nero */
  --grey-red: hsla(360째, 26%, 52%, 1);
  --red: hsla(360째, 100%, 36%, 1);
  --orange-top: hsla(23째, 93%, 65%);
  /**
   * COLORE A SFUMATURA
   */

  --loading-text-gradient: linear-gradient(90deg, transparent 0% 16.66%, var(--smoky-black-3) 33.33% 50%,  transparent 66.66% 75%);
  /* kSfumatura per il testo di caricamento */
  

  /* font-weight */
  --weight-bold: 700;                           /* kPeso del carattere grassetto */
  --lineHeight-3: 1.5em;                        /* kAltezza della linea variante 3 */
  --letterSpacing-1: 0.15em;                    /* kSpaziatura delle lettere variante 1 */
  --radius-circle: 50%;                         /* kRaggio di bordo per forma circolare */
  /**
   * TRANSIZIONE
   */
  --transition-1: 250ms ease;                   /* kTransizione variante 1 */
  --transition-2: 500ms ease;                   /* kTransizione variante 2 */
  --transition-3: 1000ms ease;                  /* kTransizione variante 3 */
}


/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

/* Impostazioni di reset per eliminare margini e padding predefiniti e impostare il box-sizing su border-box */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Impostazione dell'altezza automatica per le immagini */
img { height: auto; }

/* Configurazione del comportamento dello scrolling e del dimensionamento del carattere per HTML */
html {
  font-size: 10px;
  scroll-behavior: smooth;
}



/*-----------------------------------*\
  #PRELOAD
\*-----------------------------------*/

.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gold-crayola);
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  transition: var(--transition-2);
}

.preload > * { transition: var(--transition-1); }

.preload.loaded > * { opacity: 0; }

.preload.loaded {
  transition-delay: 250ms;
  transform: translateY(100%);
}

.circle {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--eerie-black-3);
  border-block-start-color: #f99152;
  margin-block-end: 45px;
  animation: rotate360 1s linear infinite;
}

@keyframes rotate360 {
  0% { transform: rotate(0); }
  100% { transform: rotate(1turn); }
}

.preload .text {
  background-image: var(--loading-text-gradient);
  background-size: 500%;
  font-size: calc(2rem + 3vw);
  font-weight: var(--weight-bold);
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 16px;
  padding-inline-start: 16px;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 0.5px var(--eerie-black-3);
  animation: loadingText linear 5s infinite;
}

@keyframes loadingText {
  0% { background-position: 100%; }
  100% { background-position: 0%; }
}

/*-----------------------------------*\
  #NAVBAR TOP
\*-----------------------------------*/

.navbar-top{
    width: 100%;
    height: 10dvh;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    background-color: var(--gold-crayola);
}


.reservation-button {
    background-color: yellowgreen;
    color: #000;
    font-weight: bold;
    font-size: 20px;
    padding: 10px 20px;
    border: 1px solid #000;
    border-radius: 5px;
    margin-right: 50px;
    text-decoration: none !important;
    cursor: pointer;
}

.reservation-button:hover {
    background-color: #F5D033;
    color: #000;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* Stile per il contenitore del logo */
.logo {
    text-align: center; /* Centro il contenuto all'interno del div */
}

.logo img {
    width: 400px; 
    height: auto; 
    margin-bottom: 0; 
    margin-left: 20px;
}

/* Stile per l'h3 all'interno del logo */
.logo h3 {
    font-weight: bold;
    font-size: 1.5em; /* Dimensione del testo  */
    margin: 0; /* Rimuove il margine predefinito */
}

.social-link{
    margin-top: 10px;
    margin-left: 50px;
    cursor: pointer;
}

/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

#navbar-color{
   border-bottom: 4px solid #f99152;
   background-color: var(--gold-crayola);
}


.navbar-nav{
    margin: auto;
}

.nav-link{
    margin-left: 30px;
    font-size: 20px;
    font-weight: bold;
    color: black;
    transition: 0.5s ease;
    cursor: pointer;
}
.nav-link:hover{
    color: #fff;
}
/* navbar */


/*-----------------------------------*\
  #GALLERY
\*-----------------------------------*/


.wrapper{
    box-sizing: border-box;
    height: auto;
    margin: 100px auto;
    max-width: 1100px;
    color: #000;
    margin-top: 10px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.4); /* Sfondo opaco bianco */
    padding: 30px; /* spazio interno al contenitore */
    border: 1px solid #f99152;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    
}

.container {
    border-radius: 5px;
    background-color: rgba(249, 146, 82, 1);
   
}

.wrapper nav{
    display: flex;
    justify-content: center;

}
.wrapper .items{
    display: flex;
    max-width: 720px;
    width: 100%;
    justify-content: space-between;
}
.items span{
    padding: 7px 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    background: #212121;
    border-radius: 10px;
    border: 2px solid #212121;
    transition: all 0.3s ease; 
}

.items span.active,
.items span:hover{
    color: #000;
    background: #f99152;  
}

.text-center{
    color: white;
    font-weight: bold;
    font-size: 30px;
    margin: auto;
    padding-bottom: 50px;
}

.gallery{
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    
}
.gallery .image{
    width: calc(100% / 4);
    padding: 7px;

}
.gallery .image span{
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 200px; 
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.gallery .image span img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 

}


.gallery .image img{
    width: 100%;
    vertical-align: middle;
    transition: all 0.3s ease;

}
.gallery .image:hover img{
    transform: scale(1.1);
}
.gallery .image.hide{
    display: none;
}
.gallery .image.show{
    animation: animate 0.4s ease;
}
@keyframes animate {
    0%{
      transform: scale(0.5);
  }
    100%{
      transform: scale(1);
  }
}

.preview-box{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #000;
    max-width: 700px;
    width: 100%;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    padding: 0 5px 5px 5px;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}
.preview-box.show{
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease;
}
.preview-box .details{
    padding: 13px 15px 13px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.details .title{
    display: flex;
    font-size: 18px;
    font-weight: 400;
}
.details .title p{
    font-weight: 500;
    margin-left: 5px;
}
.details .icon{
    color: #007bff;
    font-style: 10px;
    cursor: pointer;
}

.preview-box .image-box{
    width: 100%;
    display: flex;
}
.image-box img{
    width: 100%;
    border-radius: 0 0 3px 3px;
}
.shadow{
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    display: none;
    background: rgba(0,0,0,0.4);
}
.shadow.show{
    display: block;
}

@media (max-width: 1000px) {
  .gallery .image{
    width: calc(100% / 3);
  }
}
@media (max-width: 800px) {
  .gallery .image{
    width: calc(100% / 2);
  }
}
@media (max-width: 700px) {
  .wrapper nav .items{
    max-width: 600px;
  }
  nav .items span{
    padding: 7px 15px;
  }
}
@media (max-width: 600px) {
  .wrapper{
    margin: 30px auto;
  }
  .wrapper nav .items{
    flex-wrap: wrap;
    justify-content: center;
  }
  nav .items span{
    margin: 5px;
  }
  .gallery .image{
    width: 100%;
  }
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/
#footer{
    width: 100%;
    height: 15vh;
    background-color: var(--gold-crayola);
    border-top: 4px solid #f99152;
    margin-bottom: 0px;
    margin-top: 0px;
    z-index: 2;
}

.icons i{
    margin-top: 15px;
    color: #000;
    font-size: 30px;
    cursor: pointer;
}
.copyright{
    color: #000;
    margin-top: 15px;
    font-size: 15px;
}
.credite{
    color: #000;
    font-size: 15px;
    margin-top: -45px;
}

/* footer */
 /*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--gold-crayola);
  color: var(--smoky-black-1);
  font-size: 22px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-circle);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-1);
  transition: var(--transition-1);
  opacity: 0;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  z-index: 4;
  pointer-events: none; /* Disabilita gli eventi del mouse quando non visibile */
}

.back-top-btn:hover,
.back-top-btn:focus-visible {
  background-color: #f99152;
  color: var(--gold-crayola);
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Abilita gli eventi del mouse quando visibile */
}

/*-----------------------------------*\
  #MEDIA QUERY
\*-----------------------------------*/

@media only screen and (max-width: 767px) {
    .navbar-top {
        height: auto; /* Altezza automatica per adattarsi al contenuto */
        flex-direction: row; /* Disposizione in orizzontale degli elementi */
        align-items: center; /* Allinea al centro verticalmente su schermi pi첫 piccoli */
        justify-content: space-between; /* Allinea gli elementi ai bordi della navbar */
    }

    .navbar-top img {
        width: 25px; /* Riduci la larghezza delle icone social */
    }

    .reservation-button {
        margin-right: 10px; /* Margin-right ridotto o azzerato se necessario */
        padding: 4px 4px; /* Riduci il padding del tasto "Prenota" */
        font-size: 14px; /* Riduci la dimensione del testo del tasto "Prenota" */
    }

    .logo {
        text-align: center;
    }

    .logo img {
        width: 200px; /* Riduci la larghezza del logo */
        
    }

    .social-link{
    margin-top: 10px;
    margin-left: 10px;
    cursor: pointer;
    }

    

    #footer{
    width: 100%;
    height: 18dvh;
    margin-bottom: 0;
    margin-top: 0;
    z-index: 2;
    }

    .copyright{
    
    font-size: 15px;
    }
    .credite{
        
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .gtranslate_wrapper {
        margin-left: 215px; /* Cambia questo valore per spostare più o meno verso destra */
    }
}


/* Centra le icone */
.social-links {
    margin-top: px; /* Spaziatura sopra le icone */
}

.social-links a {
    margin: 0 10px; /* Spaziatura tra le icone */
    color: #000; /* Colore icone iniziale */
    font-size: 30px; /* Dimensione delle icone */
    transition: color 0.3s; /* Effetto di transizione al passaggio del mouse */
}

/* Colori al passaggio del mouse */
.social-links a.facebook:hover {
    color: #3b5998; /* Colore Facebook */
}

.social-links a.instagram:hover {
    color: #C13584; /* Colore Instagram */
}
