/* YourMenu – menu pubblico (schermo intero e shortcode)
 *
 * Stile minimal: font di sistema (nessun font esterno, nessun collegamento a Google),
 * fondo chiaro, schede leggere, colore d'accento usato solo dove serve.
 */
.ym-root {
	--ym-accent: #c7a877;   /* impostato in YourMenu › Impostazioni */
	--ym-second: #005a6f;   /* impostato in YourMenu › Impostazioni */
	--ym-bg: #f6f5f2;
	--ym-surface: #fff;
	--ym-ink: #171717;
	--ym-muted: #6b6b6b;
	--ym-line: #e7e4de;
	--ym-soft: #efede8;
	--ym-radius: 18px;
	--ym-special: #c2410c;  /* colore dei fuori menu */
	--ym-title-bg: none;    /* sfondo dei riquadri delle aree nella home (Impostazioni) */
	--ym-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ym-ease: cubic-bezier(.2, .7, .2, 1);
	font-family: var(--ym-font);
	color: var(--ym-ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}
.ym-root *, .ym-root *::before, .ym-root *::after { box-sizing: border-box; }
.ym-root img { border: 0; max-width: 100%; }
.ym-root a { text-decoration: none; color: inherit; }
:where(.ym-root) button { font: inherit; color: inherit; } /* priorità zero: i pulsanti scelgono il proprio colore */
.ym-root :focus-visible { outline: 2px solid var(--ym-ink); outline-offset: 2px; }

/* ---------- Schermo intero ---------- */
html:has(.ym-app) { scroll-behavior: smooth; }
.ym-app { margin: 0; padding: 0; background: var(--ym-bg); font-size: 16px; line-height: 1.5; }

.ym-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; pointer-events: none; }
.ym-progress-bar { height: 100%; width: 0; background: var(--ym-accent); }

/* Pulsante menu e chiusura: cerchi chiari, discreti */
.ym-burger, .ym-close {
	position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 16px rgba(0, 0, 0, .08); cursor: pointer; z-index: 999;
}
.ym-burger span { position: absolute; left: 14px; width: 18px; height: 2px; border-radius: 2px; background: var(--ym-ink); }
.ym-burger span:nth-child(1) { top: 17px; }
.ym-burger span:nth-child(2) { top: 22px; }
.ym-burger span:nth-child(3) { top: 27px; width: 12px; }
.ym-close { position: absolute; z-index: 2; background: rgba(255, 255, 255, .1); box-shadow: none; }
.ym-close span { position: absolute; top: 22px; left: 14px; width: 18px; height: 2px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.ym-close span + span { transform: rotate(-45deg); }

.ym-panel {
	position: fixed; inset: 0; z-index: 99999; padding: 28px 24px 40px; overflow: auto;
	background: #121212; color: #fff;
	transform: translateX(100%); transition: transform .45s var(--ym-ease);
}
.ym-panel.is-open { transform: none; }
.ym-nav { margin-top: 64px; font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.ym-nav ul { list-style: none; margin: 0; padding: 0; }
.ym-nav li { margin: 14px 0; }
.ym-nav a { display: block; color: #fff; transition: opacity .2s; }
.ym-nav ul ul { margin: 6px 0 18px; padding: 0 0 0 14px; border-left: 1px solid rgba(255, 255, 255, .15); font-size: 16px; font-weight: 450; letter-spacing: 0; }
.ym-nav ul ul li { margin: 8px 0; }
.ym-nav ul ul a { color: rgba(255, 255, 255, .6); }
.ym-nav a:hover, .ym-nav a:focus-visible { opacity: .7; }
.ym-nav ul ul a:hover, .ym-nav ul ul a:focus-visible { color: #fff; opacity: 1; }

.ym-app > .ym-langs { position: fixed; top: 68px; right: 14px; z-index: 999; display: flex; flex-direction: column; gap: 6px; }
.ym-langs a {
	display: grid; place-items: center; width: 46px; height: 30px; border-radius: 99px;
	background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	color: var(--ym-ink); font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
}
.ym-langs a.is-active { background: var(--ym-ink); color: #fff; }

/* ---------- Copertina ----------
 * Solo foto e logo: la barra delle sezioni sta sul bordo basso della prima schermata
 * e poi resta fissa in alto. --ym-bar-h la misura app.js. */
.ym-cover { position: relative; height: calc(100vh - var(--ym-bar-h, 60px)); height: calc(100svh - var(--ym-bar-h, 60px)); min-height: 360px; background: #111; overflow: hidden; color: #fff; }
.ym-cover-bg { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .8; }
.ym-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .65) 100%); pointer-events: none; }
.ym-logo { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -58%); width: 124px; margin: 0; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35)); }
.ym-logo img { width: 100%; height: auto; display: block; }
.ym-logo-text { width: 90%; text-align: center; color: #fff; font-size: clamp(32px, 9vw, 64px); font-weight: 750; letter-spacing: -.03em; line-height: 1.05; }
.ym-cover-cue {
	position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 99px;
	background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ym-cover-cue svg { animation: ym-cue 1.8s ease-in-out infinite; }
@keyframes ym-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- Barra delle sezioni (fissa in alto) ----------
 * Riga 1: sezioni scorrevoli con frecce sinistra/destra ben visibili.
 * Riga 2: filtro allergie, sovrapposta al contenuto: scompare scorrendo verso il basso
 * e ricompare risalendo, senza far saltare la pagina. */
.ym-bar { position: sticky; top: 0; z-index: 900; }
.ym-bar-row {
	position: relative; z-index: 2; display: flex; align-items: center; padding: 8px 10px;
	background: rgba(246, 245, 242, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--ym-line); transition: padding-right .25s var(--ym-ease);
}
.ym-app.is-scrolled .ym-bar-row { padding-right: 66px; } /* spazio per il pulsante menu */
.ym-bar-list { list-style: none; margin: 0; padding: 2px 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; scroll-behavior: smooth; }
.ym-bar-list::-webkit-scrollbar { display: none; }
.ym-bar-list a { display: block; white-space: nowrap; padding: 9px 15px; border-radius: 99px; color: var(--ym-muted); font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.ym-bar-list a:hover { color: var(--ym-ink); }
.ym-bar-list a.is-current { background: var(--ym-ink); color: #fff; }

/* Frecce: cerchi pieni con sfumatura sul bordo della lista, compaiono solo se c'è altro da scorrere */
.ym-bar-arrow {
	position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
	border: 0; border-radius: 50%; background: var(--ym-ink); color: #fff; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .15s var(--ym-ease);
}
.ym-bar-arrow:active { transform: scale(.92); }
.ym-bar-arrow[hidden] { display: none; }
.ym-bar-prev { margin-right: -6px; }
.ym-bar-next { margin-left: -6px; }
.ym-bar-prev::after, .ym-bar-next::before { content: ''; position: absolute; top: -6px; bottom: -6px; width: 28px; pointer-events: none; }
.ym-bar-prev::after { left: 100%; background: linear-gradient(90deg, rgba(246, 245, 242, .95), rgba(246, 245, 242, 0)); }
.ym-bar-next::before { right: 100%; background: linear-gradient(270deg, rgba(246, 245, 242, .95), rgba(246, 245, 242, 0)); }

.ym-bar-tools {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
	background: rgba(246, 245, 242, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--ym-line);
	transition: transform .3s var(--ym-ease), opacity .25s;
}
.ym-bar.is-tools-hidden .ym-bar-tools { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.ym-filter-open {
	flex: none; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 14px 5px 5px; border-radius: 99px;
	border: 1.5px solid var(--ym-ink); background: var(--ym-surface); color: var(--ym-ink); font-weight: 650; font-size: 14px; cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06); transition: background .2s, color .2s, transform .15s var(--ym-ease);
}
.ym-filter-open:active { transform: scale(.98); }
.ym-filter-icon { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ym-accent); color: var(--ym-ink); flex: none; }
.ym-filter-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ym-filter-chevron { flex: none; opacity: .6; }
.ym-filter-open.is-active { background: var(--ym-ink); color: #fff; }
.ym-filter-open.is-active .ym-filter-icon { background: var(--ym-accent); }
.ym-filter-count { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #fff; color: var(--ym-ink); font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--ym-ink); }
.ym-filter-count[hidden] { display: none; }
/* Il contenuto parte sotto la seconda riga */
.ym-bar + main .ym-menu, .ym-embed .ym-bar + .ym-menu { padding-top: 64px; }

/* Pulsante menu sopra la barra: resta uguale, le lingue spariscono */
.ym-app.is-scrolled .ym-burger { top: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.ym-app.is-scrolled > .ym-langs { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.ym-panel .ym-langs { position: static; flex-direction: row; gap: 8px; margin-top: 36px; }
.ym-panel .ym-langs a { background: rgba(255, 255, 255, .1); color: #fff; }
.ym-panel .ym-langs a.is-active { background: #fff; color: var(--ym-ink); }
.ym-burger, .ym-langs { transition: top .25s var(--ym-ease), opacity .25s, transform .25s var(--ym-ease); }

/* ---------- Corpo del menu ---------- */
.ym-menu { background: var(--ym-bg); padding: 8px 16px 24px; min-height: 50vh; }
.ym-app .ym-menu > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.ym-area, .ym-category { scroll-margin-top: 112px; }

.ym-area { padding-top: 40px; }
.ym-area-title {
	margin: 0 0 6px; padding: 0; font-size: clamp(30px, 7vw, 42px); font-weight: 750; letter-spacing: -.035em; line-height: 1.05; color: var(--ym-ink);
}
.ym-area-title > span { display: none; } /* i pallini decorativi del vecchio stile */
.ym-area-title::after { content: ''; display: block; width: 36px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--ym-accent); }
.ym-area-text { margin: 14px 0 6px; font-size: 15px; line-height: 1.6; color: var(--ym-muted); }

.ym-category { padding-top: 28px; }
.ym-cat-title {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 14px; padding: 0;
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ym-ink);
}
.ym-cat-title small { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ym-muted); }

.ym-cover-img { width: 100%; aspect-ratio: 16 / 9; margin: 18px 0 4px; border-radius: var(--ym-radius); overflow: hidden; background: var(--ym-soft); }
.ym-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ym-banner { margin-top: 14px; }

/* ---------- Prodotto ---------- */
.ym-item {
	position: relative; margin: 0 0 12px; padding: 16px;
	background: var(--ym-surface); border: 1px solid var(--ym-line); border-radius: var(--ym-radius);
}
.ym-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.ym-item-name { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ym-star { font-weight: 700; color: var(--ym-second); }

.ym-prices { display: flex; gap: 14px; flex: none; }
.ym-price { min-width: 64px; text-align: right; font-weight: 650; font-size: 16px; color: var(--ym-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ym-price .ym-cur { font-size: 13px; font-weight: 500; color: var(--ym-muted); }
.ym-price .ym-int { font-size: inherit; color: inherit; }
.ym-price-labels { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ym-muted); }
.ym-price-labels span { min-width: 64px; text-align: right; }

.ym-item-descr { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ym-muted); }
.ym-item-descr p { margin: 0 0 6px; }
.ym-item-descr p:last-child { margin-bottom: 0; }

.ym-item-tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ym-tag { font-size: 11px; font-weight: 650; line-height: 1; padding: 5px 9px; border-radius: 99px; background: var(--ym-soft); color: var(--ym-ink); }
.ym-tag-new { background: var(--ym-accent); color: #171717; }
.ym-tag-chef { background: var(--ym-ink); color: #fff; }
.ym-tag-spicy { background: #fbe6e0; color: #9a2a12; }
.ym-tag-vegetarian, .ym-tag-vegan { background: #e5f1df; color: #2b5719; }
.ym-tag-gluten_free { background: #f8efd3; color: #6a5100; }
.ym-tag-special { background: var(--ym-special); color: #fff; }

.ym-item-allergens { list-style: none; margin: 10px 0 0; padding: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; line-height: 1.2; color: var(--ym-muted); border-top: 1px solid var(--ym-soft); }
.ym-item-allergens li { display: inline-flex; align-items: center; gap: 5px; }
.ym-item-allergens .ym-al-icon { width: 20px; height: 20px; padding: 2px; }
.ym-item-allergens .ym-al-number { width: 20px; height: 20px; font-size: 10px; }
.ym-item-allergens.is-icon, .ym-item-allergens.is-number { gap: 6px; align-items: center; }
.ym-item-allergens.is-icon .ym-al-icon { width: 24px; height: 24px; }
.ym-al-lead { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-right: 2px; }
.ym-al-num { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--ym-ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ym-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ym-price-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ym-pr { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 76px; padding: 6px 10px 7px; border-radius: 10px; background: var(--ym-soft); }
.ym-pr .ym-price { min-width: 0; text-align: left; font-size: 15px; }
.ym-pr-label { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ym-muted); }

.ym-item-note { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--ym-muted); }
.ym-item-note span { margin-right: 4px; font-weight: 700; color: var(--ym-second); }

/* ---------- Foto del prodotto e carosello ---------- */
.ym-photos { position: relative; margin: -16px -16px 14px; border-radius: var(--ym-radius) var(--ym-radius) 0 0; overflow: hidden; background: var(--ym-soft); }
.ym-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.ym-slides::-webkit-scrollbar { display: none; }
.ym-item-img { position: relative; display: block; flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0; border: 0; background: var(--ym-soft); cursor: zoom-in; scroll-snap-align: start; scroll-snap-stop: always; }
.ym-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ym-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 5px; padding: 5px 7px; border-radius: 99px; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.ym-dots i { display: block; width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .55); transition: width .25s var(--ym-ease), background .25s; }
.ym-dots i.is-active { width: 16px; background: #fff; }
.ym-photos-nav { position: absolute; top: 50%; z-index: 1; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ym-ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); display: none; }
.ym-photos-prev { left: 10px; }
.ym-photos-next { right: 10px; }
.ym-photos-nav[hidden] { display: none !important; }
/* Frecce solo con il mouse: sul telefono si scorre con il dito */
@media (hover: hover) and (pointer: fine) {
	.ym-photos.is-carousel .ym-photos-nav { display: block; opacity: 0; transition: opacity .2s; }
	.ym-photos.is-carousel:hover .ym-photos-nav, .ym-photos-nav:focus-visible { opacity: 1; }
}
.ym-photo-count { padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 600; }

/* Da computer la foto sta a sinistra della scheda */
@media (min-width: 769px) {
	.ym-item.has-photo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
	.ym-item.has-photo .ym-photos { margin: 0; border-radius: 12px; }
}

/* ---------- Tabella allergeni ---------- */
.ym-allergen-table { margin-top: 48px; padding: 28px 20px; background: var(--ym-surface); border: 1px solid var(--ym-line); border-radius: var(--ym-radius); }
.ym-allergen-table h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.ym-allergen-info { font-size: 13px; line-height: 1.6; color: var(--ym-muted); text-align: center; }
.ym-allergen-icons { list-style: none; margin: 24px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 16px 6px; }
.ym-allergen-icons li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--ym-muted); }
.ym-al-icon { border-radius: 50%; padding: 5px; background-color: var(--ym-soft); }
.ym-al-number { display: inline-grid; place-items: center; width: 44px; height: 44px; font-weight: 700; }
.ym-allergen-list { margin: 10px auto 0; padding-left: 22px; max-width: 640px; font-size: 13px; line-height: 1.5; color: var(--ym-muted); }
.ym-allergen-list li { margin: 6px 0; }
.ym-allergen-list strong { color: var(--ym-ink); font-weight: 650; }

/* ---------- Piè di pagina ---------- */
.ym-footer { padding: 48px 24px 32px; text-align: center; background: #121212; color: #fff; }
.ym-footer:empty { padding: 16px; }
.ym-footer-logo { width: 120px; margin: 0 auto; opacity: .95; }
.ym-footer-logo img { width: 100%; height: auto; display: block; }
.ym-footer2 { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; color: rgba(255, 255, 255, .5); font-size: 12px; line-height: 1.6; background: #121212; border-top: 1px solid rgba(255, 255, 255, .08); }
.ym-footer2 a { color: #fff; }
.ym-back-site { display: inline-block; margin-top: 36px; color: rgba(255, 255, 255, .55) !important; font-size: 15px; }

/* ---------- Contatti ---------- */
.ym-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.ym-contact { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); color: #fff !important; font-weight: 600; font-size: 14px; }
.ym-contact-main { background: #fff; border-color: #fff; color: var(--ym-ink) !important; }
.ym-socials { list-style: none; margin: 20px 0 0; padding: 0; display: flex; justify-content: center; gap: 18px; font-size: 13px; }
.ym-socials a { color: rgba(255, 255, 255, .65) !important; }
.ym-socials a:hover { color: #fff !important; }

/* ---------- Filtro allergie ---------- */
.ym-filter { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 22px; background: var(--ym-surface); color: var(--ym-ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .3); font-family: var(--ym-font); }
.ym-filter::backdrop { background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ym-filter-inner { padding: 20px 20px 16px; }
.ym-filter-head { display: flex; justify-content: space-between; align-items: center; }
.ym-filter-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.ym-filter-x { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--ym-soft); font-size: 20px; line-height: 1; cursor: pointer; }
.ym-filter-sub { margin: 18px 0 8px; font-size: 13px; font-weight: 650; color: var(--ym-muted); }
.ym-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ym-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 1px solid var(--ym-line); border-radius: 99px; cursor: pointer; font-size: 13px; font-weight: 500; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.ym-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ym-chip .ym-al-icon { width: 26px; height: 26px; padding: 3px; }
.ym-chip:not(:has(.ym-al-icon)) { padding-left: 12px; padding-top: 7px; padding-bottom: 7px; }
.ym-chip:has(input:checked) { border-color: var(--ym-ink); background: var(--ym-ink); color: #fff; }
.ym-chip:has(input:focus-visible) { outline: 2px solid var(--ym-second); outline-offset: 2px; }
.ym-filter-note { margin: 18px 0 0; padding: 12px; font-size: 12px; line-height: 1.5; background: #fbf6ea; border-radius: 12px; color: #6b4a00; }
.ym-filter-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ym-filter-actions button { padding: 11px 18px; border-radius: 99px; font-weight: 650; cursor: pointer; }
.ym-filter-reset { border: 1px solid var(--ym-line); background: var(--ym-surface); }
.ym-filter-apply { border: 0; background: var(--ym-ink); color: #fff !important; }
.ym-filter-status { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 950; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 24px); padding: 6px 6px 6px 16px; background: var(--ym-ink); color: #fff; font-size: 13px; font-weight: 600; border-radius: 99px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ym-filter-status .ym-filter-reset { padding: 6px 12px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 12px; font-weight: 650; cursor: pointer; }
.ym-filter-status[hidden] { display: none; }
.ym-item.is-filtered, .ym-category.is-filtered, .ym-area.is-filtered { display: none; }
.ym-empty-filter { padding: 40px 10px; text-align: center; font-weight: 600; color: var(--ym-muted); }

/* ---------- Foto ingrandita ---------- */
.ym-lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; touch-action: pan-y; }
.ym-lightbox[open] { display: grid; place-items: center; }
.ym-lightbox::backdrop { background: rgba(8, 8, 8, .94); }
.ym-lightbox img { display: block; max-width: 94vw; max-height: 82vh; max-height: 82dvh; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.ym-lightbox form { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; margin: 0; }
.ym-lightbox-close, .ym-lb-prev, .ym-lb-next { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ym-lightbox-close:hover, .ym-lb-prev:hover, .ym-lb-next:hover { background: rgba(255, 255, 255, .26); }
.ym-lb-prev, .ym-lb-next { position: absolute; top: 50%; margin-top: -22px; }
.ym-lb-prev { left: 14px; }
.ym-lb-next { right: 14px; }
.ym-lb-prev[hidden], .ym-lb-next[hidden], .ym-lb-count[hidden] { display: none; }
.ym-lb-count { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (hover: none) { .ym-lb-prev, .ym-lb-next { display: none; } }

/* ---------- Shortcode dentro il tema ---------- */
.ym-embed { background: var(--ym-bg); padding: 12px; border-radius: var(--ym-radius); }
.ym-embed .ym-langs { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 10px; }
.ym-embed .ym-langs a { background: var(--ym-surface); border: 1px solid var(--ym-line); }
.ym-embed .ym-langs a.is-active { background: var(--ym-ink); border-color: var(--ym-ink); }
.ym-embed .ym-bar { top: var(--wp-admin--admin-bar--height, 0px); }
.ym-embed .ym-menu { padding: 0 4px; }
.ym-embed .ym-area-title, .ym-embed .ym-cat-title, .ym-embed .ym-item-name { font-family: var(--ym-font); }

@media (max-width: 480px) {
	.ym-menu { padding-left: 12px; padding-right: 12px; }
	.ym-item { padding: 14px; }
	.ym-photos { margin: -14px -14px 12px; }
	.ym-prices, .ym-price-labels { gap: 10px; }
	.ym-price, .ym-price-labels span { min-width: 56px; }
	.ym-item-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html:has(.ym-app) { scroll-behavior: auto; }
	.ym-panel, .ym-burger, .ym-langs, .ym-dots i, .ym-bar-tools, .ym-bar-row { transition: none; }
	.ym-cover-cue svg { animation: none; }
	.ym-slides { scroll-behavior: auto; }
}

/* ---------- Anteprima del menu per la home [yourmenu_preview] ---------- */
.ym-teaser { --ym-gap: 12px; }
.ym-teaser-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--ym-gap); }
.ym-teaser-areas a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 16px; border-radius: var(--ym-radius); background: #171717 var(--ym-title-bg, none) center / cover; color: #fff !important; text-decoration: none !important; overflow: hidden; transition: transform .25s var(--ym-ease); }
.ym-teaser-areas a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .7) 100%); }
.ym-teaser-areas a:hover, .ym-teaser-areas a:focus-visible { transform: translateY(-2px); }
.ym-teaser-areas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ym-teaser-name { position: relative; z-index: 1; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.ym-teaser-count { position: relative; z-index: 1; font-size: 13px; color: rgba(255, 255, 255, .75); }
.ym-teaser-title { margin: 36px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ym-teaser-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--ym-gap); }
.ym-teaser-item { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--ym-surface); border: 1px solid var(--ym-line); border-radius: var(--ym-radius); color: var(--ym-ink) !important; text-decoration: none !important; transition: border-color .2s, transform .25s var(--ym-ease); }
.ym-teaser-item:hover { border-color: var(--ym-ink); transform: translateY(-2px); }
.ym-teaser-area { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ym-muted); }
.ym-teaser-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ym-teaser-head strong { font-size: 16px; font-weight: 650; }
.ym-teaser-head .ym-price { min-width: 0; }
.ym-teaser-descr { font-size: 14px; line-height: 1.5; color: var(--ym-muted); }
.ym-teaser .ym-item-tags { margin: 2px 0 0; }
.ym-teaser-cta { margin: 28px 0 0; text-align: center; }
.ym-teaser-cta a { display: inline-block; padding: 14px 26px; border-radius: 99px; background: var(--ym-ink); color: #fff !important; font-weight: 650; text-decoration: none !important; transition: transform .2s var(--ym-ease); }
.ym-teaser-cta a:hover { transform: translateY(-1px); }

/* [yourmenu_qr] e [yourmenu_contacts] */
.ym-qr-box svg { width: var(--ym-qr, 180px); height: auto; display: block; border-radius: 12px; }
.ym-contacts-light { justify-content: flex-start; margin-top: 0; }
.ym-contacts-light .ym-contact { color: var(--ym-ink) !important; border-color: var(--ym-line); background: var(--ym-surface); text-decoration: none !important; }
.ym-contacts-light .ym-contact-main { background: var(--ym-ink); border-color: var(--ym-ink); color: #fff !important; }
.ym-contacts-hint { padding: 12px; border: 1px dashed var(--ym-line); border-radius: 12px; font-size: 14px; }
.ym-contacts-info { margin-bottom: 16px; line-height: 1.6; }
@media (max-width: 600px) {
	.ym-teaser-areas { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.ym-teaser-areas a { min-height: 88px; padding: 12px; }
	.ym-teaser-name { font-size: 15px; }
}

/* Da computer barra e filtro si allineano alla colonna del menu */
@media (min-width: 900px) {
	.ym-app .ym-bar-row { padding-left: max(10px, calc((100% - 860px) / 2)); padding-right: max(66px, calc((100% - 860px) / 2)); }
	.ym-app .ym-bar-tools { padding-left: max(12px, calc((100% - 860px) / 2 + 2px)); }
}

/* ---------- Fuori menu: scheda in copertina e pannello dal basso ---------- */
.ym-specials-open {
	position: absolute; left: 50%; bottom: 78px; z-index: 2; transform: translateX(-50%);
	display: flex; align-items: center; gap: 12px; width: min(calc(100% - 32px), 420px); padding: 10px 14px 10px 10px;
	border: 0; border-radius: 18px; background: rgba(255, 255, 255, .94); color: var(--ym-ink); text-align: left; cursor: pointer;
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	transition: transform .2s var(--ym-ease);
}
.ym-specials-open:active { transform: translateX(-50%) scale(.98); }
.ym-specials-star { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ym-special); color: #fff; font-size: 18px; }
.ym-specials-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.ym-specials-txt strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ym-specials-count { font-size: 13px; color: var(--ym-muted); }
.ym-specials-open svg { flex: none; color: var(--ym-muted); }
.ym-specials-open.is-empty { opacity: .75; }

.ym-sheet { width: 100%; max-width: 620px; max-height: none; height: 100%; margin: 0 auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.ym-sheet[open] { display: flex; align-items: flex-end; }
.ym-sheet::backdrop { background: rgba(10, 10, 10, 0); transition: background .25s; }
.ym-sheet.is-open::backdrop { background: rgba(10, 10, 10, .5); }
.ym-sheet-inner {
	width: 100%; max-height: 82vh; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain;
	padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
	background: var(--ym-bg); color: var(--ym-ink); font-family: var(--ym-font);
	transform: translateY(100%); transition: transform .3s var(--ym-ease);
}
.ym-sheet.is-open .ym-sheet-inner { transform: none; }
.ym-sheet-grip { width: 40px; height: 5px; margin: 4px auto 10px; border-radius: 99px; background: #d6d2ca; }
.ym-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ym-sheet-head h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.ym-sheet-head h2 span { color: var(--ym-special); }
.ym-sheet-head form { margin: 0; }
.ym-sheet-x { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--ym-soft); font-size: 20px; line-height: 1; cursor: pointer; }
.ym-sheet-list { list-style: none; margin: 0; padding: 0; }
.ym-sheet-item { display: flex; gap: 14px; padding: 14px; margin: 0 0 10px; background: var(--ym-surface); border: 1px solid var(--ym-line); border-radius: 16px; }
.ym-sheet-item[hidden], .ym-sheet-empty[hidden] { display: none; }
.ym-sheet-photo { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--ym-soft); }
.ym-sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ym-sheet-body { flex: 1; min-width: 0; }
.ym-sheet-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ym-sheet-line strong { font-size: 16px; font-weight: 650; line-height: 1.3; }
.ym-sheet-line .ym-price { min-width: 0; }
.ym-sheet-body p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ym-muted); }
.ym-sheet-body .ym-item-allergens { margin-top: 8px; padding-top: 8px; }
.ym-sheet-go { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 650; color: var(--ym-special) !important; }
.ym-sheet-empty { padding: 20px 4px; text-align: center; color: var(--ym-muted); }
.ym-item.is-pointed { box-shadow: 0 0 0 2px var(--ym-special); transition: box-shadow .3s; }

/* ---------- Recensione Google in fondo al menu ---------- */
.ym-review { margin-top: 48px; padding: 32px 20px; text-align: center; background: var(--ym-surface); border: 1px solid var(--ym-line); border-radius: var(--ym-radius); }
.ym-review-stars { font-size: 22px; letter-spacing: 4px; color: #f5b301; }
.ym-review h2 { margin: 8px 0 6px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.ym-review p { margin: 0 auto 18px; max-width: 420px; font-size: 14px; line-height: 1.55; color: var(--ym-muted); }
.ym-review-button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 99px; border: 1.5px solid var(--ym-ink); background: var(--ym-surface); color: var(--ym-ink) !important; font-weight: 650; font-size: 15px; transition: transform .2s var(--ym-ease); }
.ym-review-button:hover { transform: translateY(-1px); }
.ym-footer-review { margin: 22px 0 0; font-size: 14px; }
.ym-footer-review a { color: #fff !important; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
	.ym-sheet-inner, .ym-sheet::backdrop { transition: none; }
}

/* Menu non disponibile (licenza revocata) */
.ym-offline { max-width: 520px; margin: 40px auto; padding: 28px 22px; text-align: center; border: 1px solid rgba(0, 0, 0, .1); border-radius: 16px; }
.ym-offline h2 { margin: 0 0 10px; font-size: 1.4em; }
.ym-offline p { margin: 0; }
.ym-offline .ym-offline-staff { margin-top: 18px; font-size: .9em; text-align: left; opacity: .85; }
