html {
  scroll-padding-top: 180px; 
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navbar-height: 64px;
  /*--footer-height: 12em;*/
}

@font-face {
    font-family: 'CrayonHandRegular2016Demo';
    src: url('CrayonHandRegular2016Demo.ttf') format('truetype');;
}

body {
  font-family: 'Quicksand';
  background: 
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    url(images/sfondoonde.jpeg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #fafafa;
  color: #333;
  padding-top: var(--navbar-height);
  /*padding-bottom: var(--footer-height);*/
  font-family: 'Quicksand';
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    url(images/sfondoonde.jpeg) center center / cover no-repeat;
  z-index: -1;
}

button{
    text-decoration: none;
    color: black;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 1000;
  
  background: 
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    url(images/sfondoonde.jpeg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.navbar::before {
  content: "";
  position: absolute; /* non fixed! */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url(images/sfondoonde.jpeg) center center / cover no-repeat;
  z-index: -1; /* ora sarà sotto la navbar */
}

#logo{
    width: 60px;
    height: 60px;
    border: 0.1em solid black;
    border-radius: 50%;
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
}

/*.ruota{ 
    animation-name: rota;
    animation-duration: 0.8s;
    animation-timing-function: linear;
    animation-delay: 0.5s;
    animation-iteration-count: 2;    
}

@keyframes rota{
    from { 
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}*/

.hidden{
    display: none;
}

.nav-link {
    text-decoration: none;
    font-size: 10px;
    text-align: center;
    padding: 0.6em; 
    border: 0.2em solid black;
    border-radius: 1em;
    background-color: white;
    font-weight: bold;
}


.categorie-wrapper {
  position: fixed;
  left: 0;
  right: 0;

  display: flex;
  flex-wrap: nowrap;
  gap: 10px;

  overflow-x: auto;              
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none;        
  border-bottom: 1px solid #000;
  z-index: 1000;
  
  background: 
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    url(images/sfondoonde.jpeg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
 
}

.categorie-wrapper::before {
  content: "";
  position: absolute; /* non fixed! */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url(images/sfondoonde.jpeg) center center / cover no-repeat;
  z-index: -1; /* ora sarà sotto la navbar */
}



.categorie-wrapper::-webkit-scrollbar {
  display: none;
}

.cat{
  text-decoration: none;
}


.categorie-item {
  flex: 0 0 auto;
  border-radius: 1em;
  padding: 0.4em;
  padding-bottom: 0;
  scroll-snap-align: start;
  font-size: 11px;
  text-align: center;
  font-weight: bold;
  color: black;
  height: 10em;
  width: 8em;
}

.nome-carta{
  justify-self: center;
}

.img-categoria{
    height: 60px;
    width: 60px;
    border-radius: 1em;
    border: 0.1em solid black;
    margin-bottom: 0.5em;
    background-color: white;
    padding: 1px;
}

.bordov {
    border: 0.2em solid #008F30;
    background-color: white;
    font-size: 11px;
}

.bordog {
    border: 0.2em solid #E9B416;
    background-color: white;
    font-size: 11px;
}

.bordon{
  border: none;
  background-color: transparent;
  font-size: 13px;
}

.bordonn{
  border: 0.2em solid black;
  background-color: transparent;
  font-size: 13px;
}

.giallo{
  color: #E9B416;
}

.verde{
  color: #008F30;
}

/* Selettore titolo */
.pane-selector {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 10px 0px 10px;
}

#spazio{
  padding-top: 120px;
}

#sotto{
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  
  border-top:1px solid black;
  background: 
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    url(images/sfondoonde.jpeg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  padding: 0.4em;
}

#sotto::before {
  content: "";
  position: absolute; /* non fixed! */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url(images/sfondoonde.jpeg) center center / cover no-repeat;
  z-index: -1; /* ora sarà sotto la navbar */
}

#sotto-item{
  padding: 0.2em;
  height: 3em;
  width: 8em;
}

.pane-selector button {
  border-radius: 1em;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  padding: 1em;
}

.flag{
  width: 40px;
  height: 25px;
}

/*CONTENITORE FOGLIO*/
.contenitore{
  padding: 15px 10px;
  border-top: none;    
  border-bottom: 0.1em solid #000; 
  border-left: none;             
  border-right: none; 
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-self: center;
  align-items: center;
  width: 100%;
}

.rigaa{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0.3em;
  width: 60%;
}

.riga{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0.3em;
}



.taglia{
  text-decoration: line-through;
}

.colonna{
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.ri{
    display: flex;
    flex-direction: column;
}

.d{
    text-align:justify;
    margin-top: 0.3em;
}

.e{
    text-align:left;
}

.er{
    text-align:left;
    color: red;
}


.nova{
    text-align: left;
    font-size: 1.2em;
    font-family: 'CrayonHandRegular2016Demo';
    color: #008F30;
    margin-top: 0.5em;
}

.noga{
    text-align:left;
    font-size: 1.2em;
    font-family: 'CrayonHandRegular2016Demo';
    color: #E9B416;
    margin-top: 0.5em;
}

.p{
    text-align:right;
}


/*GALLERIA*/
.coverflow-container {
  overflow: hidden;

  position: relative;
  text-align: center;
  outline: none;

  border-top: none;    
  border-bottom: 0.1em solid #000; 
  border-left: none;             
  border-right: none; 
  padding: 20px 15px;
}

.coverflow {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  height: 200px;
  margin-bottom: 20px;
}

.coverflow-item {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 1em;
  transition: transform 0.6s ease, opacity 0.6s ease;
  cursor: pointer;
  background-color: white;
}

.immagine {
  width: 100%;
  height: 100%;
  border-radius: 1em;
  object-fit: cover;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}

.nav-button.prev { left: 10px; }
.nav-button.next { right: 10px; }

/*tasti autori e allergeni*/
.tasti {
  position: absolute;
  bottom: -50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: 50%;
  z-index: 1000;
}


.tasti.autori { left: -60px; }
.tasti.allergeni { right: -60px; }

.img-autori, .img-allergeni{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid black;
  pointer-events: auto;
}

/*fine tasti autori e allergeni*/

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E9B416;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #008F30;
    transform: scale(1.3);
}

#current-title {
  font-size: 1em;
  margin: 10px 0 5px;
  font-weight: bold;
}

#current-description {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.2em;
  font-family: 'CrayonHandRegular2016Demo';
}

/*sidebar sinistra*/
.menu-btn {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  
}

.side-menu {
  position: fixed;
  top: 0;
  left: -250px; /* inizialmente nascosto */
  width: 250px;
  height: 100%;
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1100;
  overflow-y: auto;
}

.side-menu ul {
  list-style: none;
  padding: 0;
}

.side-menu ul li {
  margin: 20px 0;
}

.side-menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.side-menu ul li a:hover {
  text-decoration: underline;
}

/*sidebar-destra*/
.menu-btnd {
  font-size: 35px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  
}

.side-menud {
  position: fixed;
  top: 0;
  right: -250px; /* inizialmente nascosto */
  width: 250px;
  height: 100%;
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1100;
  overflow-y: auto;
}

.side-menud ul {
  list-style: none;
  padding: 0;
}

.side-menud ul li {
  margin: 20px 0;
}

.side-menud ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.side-menud ul li a:hover {
  text-decoration: underline;
}

.social{
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  margin: 1em;
  gap: 2em;
}

.social-img{
  width: 42px;
  height: 42px;
}

/* Bottone chiusura */
.close-btn, .close-btnd {
  font-size: 22px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  float: right;
}

/* Overlay */
.overlay, .overlayd {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1050;
}

/* Orari */
.orari {
  margin-top: 120px;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  margin-bottom: 1em;
}
.orari h4 {
  margin-bottom: 10px;
}
.orari p {
  margin-bottom: 15px;
}

.avviso{
  font-weight: bold;
  text-align: center;
  color: red;
  font-size: 13px;
}

.desc, .nota{
  font-weight: bold;
  margin-left: 1em;
  margin-right: 1em;
  margin-top: 3px;
  text-align: center;
  font-size: 13px;
}

.desc{
  width: 210px;
  margin: auto;
}

.nota{
  margin-bottom: 5px;
  margin-top: 5px;
  font-size: 15px;
  background-color: white;
  border: 2px solid black;
  border-radius: 1em;
  padding: 0.5em;
}

.price {
  font-weight: bold;
  font-size: 13px;
  margin-top:0.5em;
  margin-bottom:0.5em;
  width: 210px;
  margin: auto;
}

.note {
  font-size: 12px;
  font-weight: bold;
  white-space: pre-line;
  width: 210px;
  margin: auto;
}

.titolof{
    margin-bottom: 0.5em;
}

/*MODALE*/

.ve{
    color: #008F30;
}


.g{
    color: #E9B416;
}


@media (max-width: 768px){
  .rigaa{
    width: 100%;
  }
}

  