/* EthosMenu - CSS v4.0 */

/* Resets e Base */
#ethos-menu-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    box-sizing: border-box;
    font-family: var(--ethos-font);
    background-color: var(--ethos-bg) !important;
    color: #333; /* Colore testo di default */
}

/* NAVBAR */
#ethos-header-nav {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--ethos-main) !important;
    position: relative; /* Per posizionare il dropdown delle categorie */
    padding-bottom: 10px;
}

#ethos-nav-main {
    display: flex;
    justify-content: space-around;
    align-items: center; /* Centra verticalmente gli elementi della nav */
}

.ethos-nav-item, .ethos-cat-link, .ethos-allergen-tag, .ethos-close, 
.ethos-review-button, .ethos-adv-box a, .ethos-contact-btn, #ethos-close-search {
    cursor: pointer !important;
    text-decoration: none !important;
}

.ethos-nav-item {
    color: var(--ethos-main) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 10px 5px;
    transition: color 0.2s ease;
}

.ethos-nav-item:hover { color: var(--ethos-accent) !important; }

.ethos-nav-item .dashicons { font-size: 24px; width: 24px; height: 24px; }
.ethos-label { font-size: 10px; font-weight: bold; margin-top: 4px; display: block; text-transform: uppercase; }

/* RICERCA */
#ethos-search-bar {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 10px;
}

#ethos-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #333;
}
#ethos-close-search { color: #555 !important; font-size: 24px; }


/* CATEGORIE DROPDOWN */
#ethos-categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-top: none;
}

.ethos-cat-link {
    display: block;
    padding: 15px 20px;
    color: #333 !important;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.ethos-cat-link:hover {
    background: #f9f9f9;
    color: var(--ethos-main) !important;
}

/* LAYOUT PIATTI */
.ethos-section-title {
    text-align: center;
    color: var(--ethos-main) !important;
    text-transform: uppercase;
    margin: 3rem 0 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--ethos-accent) !important;
    padding-bottom: 10px;
}

.ethos-piatto {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ethos-piatto-foto {
    flex: 0 0 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.ethos-piatto-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ethos-piatto-info { flex: 1; }

.ethos-piatto-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.ethos-nome {
    font-size: var(--ethos-title-size) !important;
    color: var(--ethos-title-color) !important;
    font-weight: bold;
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

.ethos-prezzo {
    font-size: var(--ethos-price-size) !important;
    color: var(--ethos-price-color) !important;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 15px;
}

.ethos-desc {
    font-size: var(--ethos-desc-size) !important;
    color: var(--ethos-desc-color) !important;
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* FORMATI MULTIPLI */
.ethos-formati {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ethos-formato-item {
    background: #f4f4f4;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #333;
    border-left: 3px solid var(--ethos-accent);
}

/* ALLERGENI */
.ethos-allergeni-row {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.ethos-allergen-tag {
    font-weight: bold;
    color: var(--ethos-main) !important;
    text-decoration: underline dotted;
    margin: 0 2px;
}

/* ADV BOX */
.ethos-adv-box {
    background: var(--ethos-accent) !important;
    color: #fff !important;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2.5rem;
    animation: ethosFadeIn 0.5s ease;
}
.ethos-adv-box h3 { color: #fff !important; margin: 0 0 10px; }
.ethos-adv-box a {
    display: inline-block;
    background: #fff !important;
    color: var(--ethos-accent) !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    margin-top: 10px;
}

/* BOX RECENSIONI */
#ethos-reviews-wrapper {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

#ethos-reviews-box {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
}

#ethos-reviews-box h4 {
    color: var(--ethos-main) !important;
    font-size: 1.4rem;
    margin: 0 0 1rem;
}

.ethos-review-button {
    display: inline-block;
    background: var(--ethos-main) !important;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 1rem;
}

/* MODALI GENERALI */
.ethos-modal {
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ethos-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.ethos-close {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 30px;
    color: #333;
}

/* MODALE CONTATTI */
#ethos-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.ethos-contact-btn {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff !important; /* Testo bianco sui bottoni */
}
.ethos-contact-btn .dashicons { font-size: 20px; color: #fff !important; } /* Icone bianche */

.ethos-contact-btn.whatsapp { background: #25D366 !important; }
.ethos-contact-btn.phone { background: var(--ethos-main) !important; }
.ethos-contact-btn.maps { background: #4285F4 !important; }
.ethos-contact-btn.banchetti { background: var(--ethos-accent) !important; }

/* ALLERGENI FONT 12PX */
#ethos-allergeni-list-full li,
#ethos-single-allergen-content {
    font-size: 12px !important;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #333;
}

/* Animazioni */
@keyframes ethosFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ethos-section, .ethos-adv-box {
    animation: ethosFadeIn 0.4s ease forwards;
}

/* Utility */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 600px) {
    #ethos-menu-wrapper { padding: 0.5rem; }
    .ethos-section-title { font-size: 1.8rem; }
    .ethos-piatto { flex-direction: column; align-items: center; text-align: center; }
    .ethos-piatto-header { flex-direction: column; align-items: center; text-align: center; }
    .ethos-nome { margin-bottom: 5px; }
    .ethos-prezzo { margin-top: 5px; margin-left: 0; }
    .ethos-piatto-foto { flex: none; margin-bottom: 1rem; }
}
