/* Menu frontend */


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    background: url('/pattern-stoliva.webp') center center / cover fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/pattern-stoliva.webp') center center / cover no-repeat fixed;
    opacity: 0.05;
    z-index: -1;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(32 255 0 / 5%);
    z-index: -1;
}


footer {
    position: absolute;
    left: 0;
    bottom: 25px;
    width: 100%;
    color: white;
    text-align: center;
}
footer a {color:#000;}

/* CSS per il loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Nascondi il contenuto della pagina inizialmente */
.content {
    display: none;
    padding-bottom: 50px;
}

.content img {
    display: flex;
    justify-content: center;
}

img.img-logo { margin: 20px auto;}

.relative {
    margin-top: 50px;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Stili generali */
/* Stili generali */
.tabs-container {
    overflow-x: auto;
    white-space: nowrap;
    list-style-type: none;
    margin: 0 0 15px;
    padding: 0;
    display: flex;
    scroll-behavior: smooth;
    -webkit-mask: linear-gradient(90deg, #0000, #000 0% 90%, #0000);
}

.tab-button {
    padding: 10px 20px;
    border: 1px solid;
    background-color: transparent;
    color: #000;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.tab-button:hover,
.tab-button.active {
    background-color: #000;
    border-color: #000;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Stili per il contenuto delle schede con animazioni */
.tab-content, .subcategory-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.65, 0.05, 0.36, 1), transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.tab-content.active, .subcategory-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-top: 20px;
    transition: opacity 0.3s cubic-bezier(0.65, 0.05, 0.36, 1), transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}


/* Stili per gli elementi del menu */
.dish {
    display: flex;
    flex-wrap: wrap;
    border: 1.5px solid #000;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dish:hover,
.dish:focus {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.dish strong {
    font-size: 1.2rem;
    color: #000;
    font-weight: 700;
}

.dish p {
    font-weight: 300;
    margin: 0;
}

.price-wine {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

li.subcategory h3 {
    color: #000;
    text-align: center;
}

.allergens {
    margin: 15px 0;
    padding: 10px;
}

ul {
    padding: 0;
}

li {
    list-style: none;

}

::-webkit-scrollbar {
    display: none !important;
}


.heading-menu {
    color: #fff;
    text-align: center;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Stile generale per il selettore */
select {
    background-color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

/* Aggiunge un'ombra quando il selettore è in focus */
select:focus {
    border-color: #000;
    outline: none;
}

/* Aggiunge un'icona a destra */
.c-lang {
    text-align: right;
    position: relative;
}

/* 
.c-lang::after {
    content: "▼";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #aaa;
    font-size: 14px;
} */

/* Stile per le opzioni */
option {
    padding: 10px;
    background-color: #000;
    color: #333;
}

/* Colore di sfondo al passaggio del mouse sulle opzioni */
option:hover {
    background-color: #000;
}

/* Card Menu */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Quando lo schermo è molto stretto, mostra solo una card per riga */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }
}

.card-container .card {flex: 1;}

.card {
     width: 100%;
     padding: 20px 0;
    height: auto;
    border: 1.5px solid #000;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    text-align: center;
}


/* Quando lo schermo è molto stretto, mostra solo una card per riga */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }
    .container-lang {
        gap: 10px;
    }
    .price-wine {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .rotate-90 {transform: rotate(90deg);}
}


.card .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #000;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.card .btn:hover {
    background-color: #000;
}

.text-center {
    text-align: center;
}

.container-lang {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.flag {
    color: #000;
    gap: 10px;
    border: solid #000;
    display: inline-flex;
    text-decoration: none;
    flex-wrap: nowrap;
    padding: 5px 10px;
    border-radius: 12px;
}

.flag:hover {
    color: #fff;
    background-color: #000;
}

.back-button {
    display: flex;
   background-color: transparent;
    border: 1px solid #000;
    color: #000;
    text-decoration:none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
}

.back-button:hover {
    background-color: #f0f0f0;
}

.surgelato {
  position: relative;
  padding-right: 1.2em;
}

.surgelato::after {
  content: "❄︎";
  margin-left: 0.3em;
  font-size: 0.9em;
  vertical-align: middle; 
  color: rgb(0, 119, 200);
}

.container-surgelato span {
    color: rgb(0, 119, 200);
}