/* StudioEsagono Restaurant Menu - Frontend */

.se-rm-menu {
	max-width: 100%;
	margin: 0 auto;
	font-family: inherit;
	color: inherit;
}

.se-rm-menu__title {
	font-size: clamp(1.6em, 3vw, 2.2em);
	margin: 0 0 0.4em;
	text-align: center;
	letter-spacing: 0.5px;
}

/* Attributi del menù sotto al titolo: descrizione + prezzo */
.se-rm-menu__attrs {
	display: flex;
	gap: 16px;
	margin: 0 0 1.2em;
}

.se-rm-menu__attrs--inline {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
}

.se-rm-menu__attrs--vertical {
	flex-direction: column;
	align-items: center;
}

.se-rm-menu__menu-desc {
	font-size: 0.95em;
	line-height: 1.45;
}

.se-rm-menu__menu-desc p {
	margin: 0;
}

.se-rm-menu__menu-price {
	font-weight: 700;
	font-size: 1.05em;
	white-space: nowrap;
}

/* Pulsante "Modifica menù" — visibile solo nell'editor Elementor */
.se-rm-menu__edit-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	margin: 0 auto 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: background 0.15s ease, transform 0.1s ease;
}

.se-rm-menu__edit-btn:hover {
	background: #135e96;
}

.se-rm-menu__edit-btn:active {
	transform: scale(0.97);
}

.se-rm-menu__edit-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Mostra il pulsante centrato sopra al titolo */
.se-rm-menu {
	text-align: center;
}

.se-rm-menu > * {
	text-align: initial;
}

.se-rm-menu__title,
.se-rm-menu__attrs,
.se-rm-menu__edit-btn {
	text-align: center;
}

/* ===== Banner informativo (v1.1.47+) ===== */
.se-rm-menu__banner {
	margin: 0 0 1.5em;
	padding: 12px 18px;
	background: #fef9e7;
	border: 1px solid #f0c674;
	border-left: 4px solid #d4af37;
	border-radius: 4px;
	color: #5b4400;
	font-size: 0.95em;
	line-height: 1.5;
	text-align: center;
}

.se-rm-menu__banner p {
	margin: 0;
}

.se-rm-menu__banner p + p {
	margin-top: 0.4em;
}

.se-rm-menu__banner a {
	color: inherit;
	text-decoration: underline;
}

.se-rm-menu__group {
	margin-bottom: 1.8em;
}

/* ===== Modalità "category_tabs": tab in alto + sezioni interne ===== */
.se-rm-menu__tabs-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 1.8em;
}

.se-rm-menu__tab {
	background: #1d2327;
	color: #d4af37;
	border: 1px solid #1d2327;
	border-radius: 4px;
	padding: 8px 24px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.95em;
	font-family: inherit;
	letter-spacing: 0.3px;
	flex: 0 0 auto; /* non comprimere le tab quando la barra è scrollabile (layout=scroll) */
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

/* Hover style configurabile da Elementor: i default (sfondo/testo/bordo)
   sono settati nei controlli del widget. La transition resta. */

.se-rm-menu__tab.is-active {
	background: #d4af37;
	color: #1d2327;
	border-color: #d4af37;
}

.se-rm-menu__tab:focus {
	outline: 2px solid #d4af37;
	outline-offset: 2px;
}

.se-rm-menu__tab-pane {
	display: none;
}

.se-rm-menu__tab-pane.is-active {
	display: block;
}

/* I titoli delle sotto-categorie (2°+ livello) dentro una tab usano lo stile
   classico ereditato da .se-rm-menu__group-title (vedi sotto). */

/* Su mobile: tab più strette */
@media (max-width: 600px) {
	.se-rm-menu__tab {
		padding: 6px 14px;
		font-size: 0.85em;
	}
}

.se-rm-menu__group-title {
	font-size: 1.2em;
	margin: 0 0 0.6em;
	padding-bottom: 0.3em;
	border-bottom: 2px solid currentColor;
	display: inline-block;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.se-rm-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.se-rm-menu__item {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
}

/* Layout: immagine in linea (default) */
.se-rm-menu__item--inline {
	flex-direction: row;
	align-items: flex-start;
}

/* Layout: immagine sopra al piatto */
.se-rm-menu__item--top {
	flex-direction: column;
	align-items: flex-start;
}

/* Layout: immagine sotto al piatto */
.se-rm-menu__item--bottom {
	flex-direction: column-reverse;
	align-items: flex-start;
}

/* Quando l'immagine è impilata, il body riempie la larghezza disponibile */
.se-rm-menu__item--top .se-rm-menu__body,
.se-rm-menu__item--bottom .se-rm-menu__body {
	width: 100%;
	flex: none;
}

.se-rm-menu__item:last-child {
	border-bottom: none;
}

.se-rm-menu__thumb {
	width: 70px;
	height: 70px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f1;
}

.se-rm-menu__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.se-rm-menu__body {
	flex: 1;
	min-width: 0;
}

.se-rm-menu__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.se-rm-menu__name {
	margin: 0;
	font-size: 1.05em;
	font-weight: 600;
}

.se-rm-menu__dots {
	flex: 1;
	border-bottom: 1.5px dotted currentColor;
	opacity: 0.4;
	margin: 0 4px;
	transform: translateY(-4px);
}

.se-rm-menu__price {
	font-weight: 600;
	font-size: 1em;
	white-space: nowrap;
}

.se-rm-menu__desc {
	margin: 6px 0 0;
	font-size: 0.92em;
	line-height: 1.45;
	opacity: 0.85;
}

/* ===== Icone aggiuntive del prodotto (v1.1.61+) ===== */
.se-rm-menu__icons {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

/* Versione "inline" (prima/dopo il titolo): resta nella stessa riga del titolo */
.se-rm-menu__icons--inline {
	display: inline-flex;
	vertical-align: middle;
}

.se-rm-menu__icons--inline + h4.se-rm-menu__name,
h4.se-rm-menu__name + .se-rm-menu__icons--inline {
	margin-left: 6px;
}

/* Versione "block" (sotto al titolo / dopo desc / in fondo): nuova riga */
.se-rm-menu__icons--block {
	margin-top: 6px;
}

.se-rm-menu__icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex: 0 0 auto;
	display: inline-block;
	vertical-align: middle;
}

/* ===== Prezzo: tipologie "variants" e "base_addons" (v1.1.43+) ===== */
.se-rm-menu__variants {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.se-rm-menu__variant {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 2px 0;
	font-size: 0.95em;
}

.se-rm-menu__variant-label {
	flex: 0 0 auto;
	font-weight: 500;
}

.se-rm-menu__variant-dots {
	flex: 1;
	border-bottom: 1.5px dotted currentColor;
	opacity: 0.35;
	margin: 0 4px;
	transform: translateY(-3px);
}

.se-rm-menu__variant-price {
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
}

/* Variante senza prezzo (quando il widget ha show_price=no):
   etichetta + dots leader, niente prezzo finale. */
.se-rm-menu__variant.se-rm-menu__variant--no-price {
	/* eredita il layout flex da .se-rm-menu__variant */
}

.se-rm-menu__variant.se-rm-menu__variant--no-price .se-rm-menu__variant-label {
	font-weight: 500;
}

.se-rm-menu__addons {
	list-style: none;
	margin: 6px 0 0;
	padding: 0 0 0 14px;
	font-size: 0.88em;
	opacity: 0.85;
}

/* Una aggiunta per riga (colonna), con dots leader fra etichetta e prezzo */
.se-rm-menu__addon {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 2px 0;
}

.se-rm-menu__addon-sign {
	flex: 0 0 auto;
	font-weight: 700;
	width: 1em;
	text-align: center;
}

.se-rm-menu__addon-label {
	flex: 0 0 auto;
	font-weight: 500;
}

.se-rm-menu__addon-dots {
	flex: 1;
	border-bottom: 1px dotted currentColor;
	opacity: 0.3;
	margin: 0 4px;
	transform: translateY(-3px);
}

.se-rm-menu__addon-price {
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
}

.se-rm-menu__desc p {
	margin: 0 0 0.5em;
}

.se-rm-menu__desc p:last-child {
	margin-bottom: 0;
}

.se-rm-menu__desc ul,
.se-rm-menu__desc ol {
	margin: 0.3em 0 0.6em 1.4em;
	padding: 0;
}

.se-rm-menu__allergens {
	margin: 4px 0 0;
	font-size: 0.82em;
	opacity: 0.75;
}

.se-rm-menu__allergen-numbers {
	font-size: 0.85em;
	font-weight: 500;
	margin-left: 6px;
	opacity: 0.85;
}

/* Legenda allergeni */
.se-rm-menu__legend {
	margin-top: 2em;
	padding: 1em 1.2em;
	border-top: 1.5px dotted currentColor;
	background: rgba(0, 0, 0, 0.02);
	border-radius: 6px;
}

.se-rm-menu__legend-title {
	margin: 0 0 0.6em;
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 700;
}

/* Layout verticale (default) — lista a colonne */
.se-rm-menu__legend-list {
	list-style: none;
	margin: 0;
	padding: 0;
	column-gap: 24px;
}

.se-rm-menu__legend-list.se-rm-menu__legend-list--cols-1 { column-count: 1; }
.se-rm-menu__legend-list.se-rm-menu__legend-list--cols-2 { column-count: 2; }
.se-rm-menu__legend-list.se-rm-menu__legend-list--cols-3 { column-count: 3; }
.se-rm-menu__legend-list.se-rm-menu__legend-list--cols-4 { column-count: 4; }

.se-rm-menu__legend-item {
	display: block;
	break-inside: avoid;
	padding: 2px 0;
	font-size: 0.92em;
	line-height: 1.4;
}

.se-rm-menu__legend-num {
	font-weight: 700;
	margin-right: 4px;
}

.se-rm-menu__legend-num--empty {
	opacity: 0.5;
	font-weight: 400;
}

.se-rm-menu__legend-name {
	font-weight: 400;
}

/* Layout inline (allergeni in linea, spaziati senza virgola) */
.se-rm-menu__legend--inline .se-rm-menu__legend-text {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.6;
}

.se-rm-menu__legend--inline .se-rm-menu__legend-num {
	font-weight: 700;
}

.se-rm-menu__legend--inline .se-rm-menu__legend-item-inline {
	display: inline-block;
	margin-right: 1.2em;
	white-space: nowrap;
}

.se-rm-menu__legend--inline .se-rm-menu__legend-item-inline:last-child {
	margin-right: 0;
}

@media (max-width: 768px) {
	.se-rm-menu__legend-list.se-rm-menu__legend-list--cols-3,
	.se-rm-menu__legend-list.se-rm-menu__legend-list--cols-4 {
		column-count: 2;
	}
}

@media (max-width: 480px) {
	.se-rm-menu__legend-list {
		column-count: 1 !important;
	}
}

.se-rm-menu--empty {
	text-align: center;
	padding: 30px;
	color: #8c8f94;
	font-style: italic;
}

/* Multi-colonna: solo la LISTA dei piatti/bevande viene divisa in colonne.
   Il titolo della categoria resta sempre a tutta larghezza, su una riga a sé. */
.se-rm-menu--cols-2 .se-rm-menu__list {
	column-count: 2;
	column-gap: 32px;
}

.se-rm-menu--cols-3 .se-rm-menu__list {
	column-count: 3;
	column-gap: 28px;
}

.se-rm-menu--cols-2 .se-rm-menu__item,
.se-rm-menu--cols-3 .se-rm-menu__item {
	break-inside: avoid;
}

@media (max-width: 768px) {
	.se-rm-menu--cols-2 .se-rm-menu__list,
	.se-rm-menu--cols-3 .se-rm-menu__list {
		column-count: 1;
	}
}
