.container {
    padding: 0 0;
}
@media only screen and (min-width:768px) {
    .container {
        padding: 0 1rem;
    }
}
#calendar-modal {
    z-index: 999;
    width: 100%;
    padding: 120px 1rem 1rem;
    display: none;
    position: fixed;
    top: 0;
    left: 0
}

#calendar-modal.show {
    display: block
}

#calendar-modal .modal-container {
    z-index: 1000;
    background-color: #fff;
    border: 3px solid var(--secondary-color);
    border-radius: 5px;
    width: 100%;
    margin: auto;
    animation-name: animatetop;
    animation-duration: .4s;
    position: relative;
    box-shadow: .1rem 1rem 2rem #000000b3
}

@media only screen and (min-width:768px) {
    #calendar-modal .modal-container {
        max-width: 500px
    }
}

#calendar-modal .modal-container .modal-header {
    color: var(--secondary-color);
    border-bottom: 1px solid #8a8a8a85;
    padding: 20px;
    font-size: 1.3em;
    font-weight: 600;
    position: relative
}

#calendar-modal .modal-container .modal-header .close-btn {
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 32px;
    font-weight: 700;
    position: absolute;
    top: .5rem;
    right: 1rem
}

#calendar-modal .modal-container .modal-header .close-btn:hover {
    color: var(--primary-color)
}

#calendar-modal .modal-container .modal-content {
    border-bottom: 1px solid #8a8a8a85;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.5em;
    overflow: hidden
}

#calendar-modal .modal-container .modal-footer {
    text-align: right;
    padding: 20px
}

#calendar-modal .modal-container .modal-footer .modal-btn-close {
    color: #fff;
    cursor: pointer;
    background-color: #797979;
    border: 0;
    border-radius: 3px;
    padding: .6em .8em;
    font-size: 1em
}

#calendar-modal .modal-container .modal-footer .modal-btn-close:hover {
    background-color: #585858
}

@keyframes animatetop {
    0% {
        opacity: 0;
        top: -300px
    }

    to {
        opacity: 1;
        top: 0
    }
}
.calendar-day.has-menu {
    background-color: var(--secondary-color);
    color: var(--text-light-color)
}
.calendar-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    display: flex
}

.calendar-header button {
    cursor: pointer;
    padding: .5rem 1rem
}

.calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    display: grid
}

.calendar-grid .calendar-day-header {
    text-align: center;
    font-weight: 700
}

.calendar-grid .calendar-day,
.calendar-grid .calendar-empty {
    text-align: center;
    border: 1px solid #ccc;
    padding: 10px
}

.calendar-grid .calendar-day {
    cursor: pointer
}

.discoverMenus {
text-align: left;
    margin-top: 1.5rem;
/* 
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem; */
}

.open-calendar-btn {
    color: var(--text-light-color);
    cursor: pointer;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    padding: .5rem 1rem;
    font-size: 1rem
}

.open-calendar-btn:hover {
    color: var(--text-color);
    background-color: var(--primary-color)
}

.tabs {
  width: 100%;
  margin: 1rem auto;
  
}

.tab-header {
  display: flex;
  border-bottom: 2px solid #ddd;
  position: relative;
}
.tab-header-container{
  position: relative;
  width: 100%;
}
.tab-header div {
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: 500;
  color: #555;
}

.tab-header div.active {
  color: var(--text-color);
  font-weight: 700;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #222;
  transition: left 0.3s ease, width 0.3s ease; /* transizione fluida */
}

.tab-body .tab {
  display: none;
  padding-bottom: 1.5rem ;
}

.tab-body .tab.active {
  display: block;
}
@media (max-width: 768px) {           
  .tab-body .tab {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.menu-list {
  width: 100%;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--text-color);
}

.menu-item-info {
  flex: 1;
  padding-right: 1rem;
}

.menu-item-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: var(--text-color);
}

.menu-item-description {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--secondary-color);
  margin: 0;
}

.menu-item-price {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}
.menuPerData {
  position: relative; /* necessario per sticky */
}
.menuPerData h3{
  text-align: left;
    font-family: 'MuseoCyrl500', sans-serif; /* Usa il font importato */
}

.tab h4 {
  position: sticky;
  top: 99px; /* distanza dal top quando diventa sticky */
  z-index: 10; /* assicura che rimanga sopra gli altri elementi */
  padding: 0.5rem 0.5rem; /* padding per estetica */
  border-radius: 0px 0px 5px 5px; /* angoli arrotondati */
    background-color: rgba(0, 0, 0, 0.2); /* Sfondo semi-trasparente */
    backdrop-filter: blur(5px); /* Effetto blur */
  font-size: 1.1rem;
}

.menu-description .container{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 2rem
}
.menu-description .container div {
    flex: 1;
}

.menu-description .container div h2 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
  text-align: left
} 



/* Responsive adjustments */
@media (max-width: 768px) {
  
.menu-list {
    padding-left: 0px;
    padding-right: 0px;
}
.discoverMenus {
  /* 
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem; */
    margin-left: 20px;
    margin-right: 20px;
}

.menu-description .container{
    flex-direction: column;
    gap: 1rem;
  }
.menu-description .container div {
    padding-left: 20px;
    padding-right: 20px;
}

  .menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--text-color);
}

 .menu-item-price {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  margin-left: auto; /* aggiungi questa proprietà */
}
}