/* Ristorante Menu Pro — frontend
 * Personalizza i colori sovrascrivendo le variabili, es.:
 * .rmp { --rmp-accent: #0b6e4f; }
 */
.rmp {
	--rmp-accent: #b5452b;
	--rmp-accent-ink: #fff;
	--rmp-ink: #221c18;
	--rmp-muted: #756b63;
	--rmp-bg: #fff;
	--rmp-soft: #f7f2ec;
	--rmp-line: #ebe2d8;
	--rmp-green: #2f7d4a;
	--rmp-radius: 16px;
	--rmp-shadow: 0 1px 2px rgba(40, 25, 15, .06), 0 12px 32px -14px rgba(40, 25, 15, .28);
	color: var(--rmp-ink);
	box-sizing: border-box;
}
.rmp *, .rmp *::before, .rmp *::after { box-sizing: inherit; }
.rmp a { text-decoration: none; }
.rmp-no-scroll { overflow: hidden; }

/* ---------- Badge, chip, prezzi, giorni ---------- */
.rmp-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.rmp-summary .rmp-badges { position: static; }
.rmp-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--rmp-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(6px); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rmp-badge--promo { background: var(--rmp-accent); color: var(--rmp-accent-ink); }
.rmp-badge--green { background: var(--rmp-green); color: #fff; }

.rmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rmp-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--rmp-soft); color: var(--rmp-muted); font-size: 12px; font-weight: 600; }
.rmp-chip--accent { background: var(--rmp-accent); color: var(--rmp-accent-ink); }
.rmp-chip--green { background: #e6f2ea; color: var(--rmp-green); }
.rmp-chip--check::before { content: "✓ "; color: var(--rmp-green); }

.rmp-price { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; white-space: nowrap; }
.rmp-price strong { font-size: 1.35em; font-weight: 800; color: var(--rmp-ink); letter-spacing: -.01em; }
.rmp-price del { color: var(--rmp-muted); font-size: .9em; }
.rmp-price em { font-style: normal; color: var(--rmp-muted); font-size: .85em; }
.rmp-price small { color: var(--rmp-muted); font-size: .75em; }
.rmp-price--listino { color: var(--rmp-muted); font-weight: 600; font-size: .9em; }

.rmp-days { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rmp-days li { width: 26px; height: 26px; margin: 0; display: grid; place-items: center; border-radius: 50%; font-size: 10.5px; font-weight: 700; }
.rmp-days .is-on { background: var(--rmp-soft); color: var(--rmp-ink); }
.rmp-days .is-off { color: #c9bfb5; text-decoration: line-through; }
.rmp-days .is-on.is-today { background: var(--rmp-accent); color: var(--rmp-accent-ink); }
.rmp-days .is-off.is-today { box-shadow: inset 0 0 0 1.5px #c9bfb5; }

.rmp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--rmp-ink); color: #fff !important; font-size: 14px; font-weight: 600; line-height: 1.2; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.rmp-btn:hover { background: var(--rmp-accent); }
.rmp-btn:hover span { transform: translateX(2px); }
.rmp-btn span { transition: transform .2s; }
.rmp-btn--ghost { background: transparent; color: var(--rmp-ink) !important; box-shadow: inset 0 0 0 1.5px var(--rmp-ink); }
.rmp-btn--ghost:hover { background: var(--rmp-ink); color: #fff !important; }
.rmp-btn:focus-visible, .rmp-filters :focus-visible { outline: 2px solid var(--rmp-accent); outline-offset: 2px; }

/* ---------- Card ---------- */
.rmp-card { position: relative; display: flex; flex-direction: column; background: var(--rmp-bg); border-radius: var(--rmp-radius); box-shadow: var(--rmp-shadow); overflow: hidden; height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.rmp-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(40, 25, 15, .06), 0 20px 40px -16px rgba(40, 25, 15, .35); }
.rmp-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rmp-soft); }
.rmp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rmp-card:hover .rmp-card__media img { transform: scale(1.05); }
.rmp-card__placeholder { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, #f3d9c9, transparent 55%), radial-gradient(circle at 80% 90%, #e9c7a6, transparent 50%), linear-gradient(135deg, #f7ede4, #eadacb); }
.rmp-card__placeholder::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid rgba(181, 69, 43, .35); box-shadow: 0 0 0 10px rgba(181, 69, 43, .08); }
.rmp-card__body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.rmp-card__title { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.rmp-card__title a { color: var(--rmp-ink); }
.rmp-card__title a:hover { color: var(--rmp-accent); }
.rmp-card__excerpt { margin: 0; color: var(--rmp-muted); font-size: .92rem; line-height: 1.5; }
.rmp-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rmp-meta--time { font-size: 12.5px; font-weight: 600; color: var(--rmp-muted); margin-right: 4px; }
.rmp-meta--time::before { content: "◷ "; }
.rmp-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rmp-line); }

/* ---------- Archivio: griglia / lista ---------- */
.rmp-archive { position: relative; }
.rmp-results { display: grid; gap: 26px; transition: opacity .2s; }
.rmp-archive.is-loading .rmp-results { opacity: .4; pointer-events: none; }
.rmp-layout-grid.rmp-cols-2 .rmp-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rmp-layout-grid.rmp-cols-3 .rmp-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rmp-layout-grid.rmp-cols-4 .rmp-results { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rmp-stack .rmp-results { gap: 18px; }
.rmp-results > .rmp-empty { grid-column: 1 / -1; }

.rmp-layout-list .rmp-results { grid-template-columns: 1fr; gap: 20px; }
.rmp-layout-list .rmp-card { flex-direction: row; }
.rmp-layout-list .rmp-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 230px; }
.rmp-layout-list .rmp-card__body { padding: 22px 26px; }
.rmp-layout-list .rmp-card__title { font-size: 1.4rem; }

.rmp-more { text-align: center; margin-top: 28px; }
.rmp-more [hidden] { display: none; }
.rmp-empty { padding: 28px; text-align: center; color: var(--rmp-muted); background: var(--rmp-soft); border-radius: var(--rmp-radius); margin: 0; }

/* Filtri */
.rmp-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 26px; padding: 12px; background: var(--rmp-soft); border-radius: calc(var(--rmp-radius) + 4px); }
.rmp-filters__search { flex: 1 1 220px; margin: 0; }
.rmp-filters input[type=search], .rmp-filters select { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--rmp-line); border-radius: 999px; background: #fff; color: var(--rmp-ink); font-size: 14px; margin: 0; }
.rmp-filters select { flex: 0 1 180px; width: auto; min-width: 150px; appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--rmp-muted) 50%), linear-gradient(135deg, var(--rmp-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.rmp-filters__reset { height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--rmp-muted); font-weight: 600; cursor: pointer; }
.rmp-filters__reset:hover { color: var(--rmp-accent); }

/* ---------- Carousel ---------- */
.rmp-carousel { position: relative; }
.rmp-carousel .swiper { padding: 6px 4px 18px; margin: -6px -4px 0; }
.rmp-carousel .swiper-slide { height: auto; }
/* Fallback senza Swiper (CDN bloccato / JS disattivato): scorrimento orizzontale nativo */
.rmp-carousel:not(.is-ready) .swiper-wrapper { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rmp-carousel:not(.is-ready) .swiper-slide { flex: 0 0 min(320px, 85%); scroll-snap-align: start; }
.rmp-carousel:not(.is-ready) .rmp-carousel__nav { display: none; }
.rmp-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.rmp-carousel__btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--rmp-line); background: #fff; color: var(--rmp-ink); font-size: 18px; cursor: pointer; transition: .2s; }
.rmp-carousel__btn:hover { background: var(--rmp-ink); color: #fff; border-color: var(--rmp-ink); }
.rmp-carousel__btn.swiper-button-disabled { opacity: .35; cursor: default; }
.rmp-carousel__dots { position: static !important; width: auto !important; display: flex; gap: 6px; }
.rmp-carousel__dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 !important; background: var(--rmp-ink); opacity: .2; transition: .25s; }
.rmp-carousel__dots .swiper-pagination-bullet-active { width: 24px; border-radius: 4px; opacity: 1; background: var(--rmp-accent); }
.rmp-carousel__nav:has(.swiper-pagination-lock) { display: none; }

/* ---------- Widget ---------- */
.rmp-minis { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rmp-mini { margin: 0; }
.rmp-mini a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--rmp-bg); border: 1px solid var(--rmp-line); color: var(--rmp-ink); transition: .2s; }
.rmp-mini a:hover { border-color: var(--rmp-accent); transform: translateX(2px); }
.rmp-mini.is-promo a { border-color: var(--rmp-accent); background: linear-gradient(90deg, #fbeee9, #fff 70%); }
.rmp-mini__thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #f7ede4, #eadacb); }
.rmp-mini__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmp-mini__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rmp-mini__title { font-size: .95rem; line-height: 1.25; }
.rmp-mini__meta { font-size: 12px; color: var(--rmp-muted); }
.rmp-mini__price .rmp-price strong { font-size: 1rem; }
.rmp-mini__price .rmp-price small, .rmp-mini__price .rmp-price del { display: none; }

.rmp-today__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; }
.rmp-today__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rmp-accent); width: 100%; }
.rmp-today__date { font-size: 1.1rem; text-transform: capitalize; }
.rmp-today__promo { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rmp-line); }
.rmp-today__promo-title { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rmp-accent); margin-bottom: 10px; }
.rmp-widget .rmp-card__excerpt { display: none; }

/* ---------- Scheda singola ---------- */
.rmp-single { display: grid; gap: 34px; margin: 28px 0; }
.rmp-single__hero { display: grid; gap: 12px; }
.rmp-single__cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--rmp-radius); }
.rmp-single__title { margin: 0; }
.rmp-single__lead { margin: 0; color: var(--rmp-muted); font-size: 1.1rem; }
.rmp-notice { margin: 0; padding: 14px 18px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-weight: 600; }

.rmp-summary { display: grid; gap: 18px; padding: 24px; border-radius: var(--rmp-radius); background: var(--rmp-soft); }
.rmp-summary__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rmp-summary .rmp-price strong { font-size: 2rem; }
.rmp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.rmp-facts > div { background: var(--rmp-bg); border-radius: 12px; padding: 12px 14px; }
.rmp-facts > div.is-wide { grid-column: 1 / -1; }
.rmp-facts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rmp-muted); margin: 0 0 4px; }
.rmp-facts dd { margin: 0; font-weight: 600; }
.rmp-facts--extra > div { background: var(--rmp-soft); }

.rmp-section { display: grid; gap: 16px; }
.rmp-section__title { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: 14px; }
.rmp-section__title::after { content: ""; flex: 1; height: 1px; background: var(--rmp-line); }

.rmp-course { margin-bottom: 8px; }
.rmp-course__title { margin: 0 0 10px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--rmp-accent); }
.rmp-dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rmp-dish { display: flex; gap: 14px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rmp-line); }
.rmp-dish:last-child { border-bottom: 0; }
.rmp-dish__photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.rmp-dish__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmp-dish__main { flex: 1; min-width: 0; }
.rmp-dish__head { display: flex; align-items: baseline; gap: 6px; }
.rmp-dish__name { font-weight: 700; font-size: 1.02rem; }
.rmp-dish__dots { flex: 1; border-bottom: 1.5px dotted #d6cabd; transform: translateY(-4px); min-width: 16px; }
.rmp-dish__price { font-weight: 700; white-space: nowrap; }
.rmp-dish__desc { margin: 4px 0 0; color: var(--rmp-muted); font-size: .93rem; line-height: 1.45; }
.rmp-dish__allergens { margin: 4px 0 0; font-size: 12px; color: #a0948a; font-style: italic; }
.rmp-ico { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 9.5px; font-weight: 800; font-style: normal; letter-spacing: .02em; vertical-align: middle; }
.rmp-ico--veg { background: #e6f2ea; color: var(--rmp-green); }
.rmp-ico--vegan { background: #d5ecd9; color: #1d5e33; }
.rmp-ico--gf { background: #fbf0d9; color: #8a6100; }
.rmp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 12.5px; color: var(--rmp-muted); }
.rmp-legend .rmp-ico { margin-left: 8px; }
.rmp-legend .rmp-ico:first-child { margin-left: 0; }

.rmp-drinks__text p { margin: 0 0 .5em; }
.rmp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rmp-gallery__item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; cursor: zoom-in; }
.rmp-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.rmp-gallery__item:hover img { transform: scale(1.06); }
.rmp-video iframe, .rmp-video video { width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; border-radius: var(--rmp-radius); border: 0; }
.rmp-video .wp-video { width: 100% !important; }
.rmp-note__body { padding: 20px 24px; border-left: 3px solid var(--rmp-accent); background: var(--rmp-soft); border-radius: 0 12px 12px 0; }
.rmp-note__body > :last-child { margin-bottom: 0; }

/* Lightbox */
.rmp-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(20, 14, 10, .92); padding: 40px 70px; }
.rmp-lightbox[hidden] { display: none; }
.rmp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.rmp-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.rmp-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.rmp-lightbox__close { top: 16px; right: 16px; }
.rmp-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.rmp-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.rmp-layout-grid.rmp-cols-3 .rmp-results, .rmp-layout-grid.rmp-cols-4 .rmp-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.rmp-layout-grid .rmp-results { grid-template-columns: 1fr !important; }
	.rmp-layout-list .rmp-card { flex-direction: column; }
	.rmp-layout-list .rmp-card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
	.rmp-filters select { flex: 1 1 calc(50% - 5px); min-width: 0; }
	.rmp-summary { padding: 18px; }
	.rmp-lightbox { padding: 60px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.rmp *, .rmp *::before, .rmp *::after { transition: none !important; }
}
