/* app.css — Menu principale come app a schede (design "Menu app v2").
   Usa token, card, righe e pill di style.css; qui solo il layout dell'app:
   hero, barra in basso, viste, scheda piatto dal basso, invito alla recensione. */

.app {
	--tabbar-h: 72px;
	/* rimbalzo leggero per le entrate "vive" */
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
.app.is-review {
	padding-bottom: 0;
	background: var(--header);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Il fondo della pagina è a tinta header (nero): Safari/iOS colora la barra di stato con il colore
   in cima alla pagina. Il marrone sta solo sul contenuto e si estende ai lati sugli schermi larghi. */
body.app {
	background: var(--header);
}

.view {
	max-width: var(--maxw);
	min-height: 100vh;
	margin: 0 auto;
	outline: none;
	background: var(--bg);
	box-shadow: 0 0 0 100vmax var(--bg);
	clip-path: inset(0 -100vmax);
}

.page {
	display: flex;
	flex-direction: column;
	gap: 14px;
	/* spazio in fondo: la mascotte della recensione non copre l'ultima voce */
	padding: 16px 16px 96px;
}
.page-tight {
	padding-top: 8px;
}

.icon-btn {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--text-strong);
	text-decoration: none;
}

.block-title {
	margin-top: 4px;
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 1;
	font-weight: 400;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.empty-inline {
	padding: 24px 4px;
	color: var(--text-muted);
	font-size: 15px;
	text-align: center;
}

/* ===================== HERO (home) ===================== */

/* A flusso: scritte a sinistra, mascotte a destra, tagline sotto. Si adatta a ogni larghezza
   senza sovrapporre le immagini al testo. */
.hero {
	overflow: hidden;
	padding: max(18px, env(safe-area-inset-top)) 16px 0;
	background: var(--header);
}

.hero-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hero-words {
	display: flex;
	flex-direction: column;
	width: min(60%, 260px);
}
.hero-words img,
.hero-mascot {
	display: block;
	height: auto;
}
.hero-word-bite {
	width: 70%;
	transform: rotate(-7deg);
}
.hero-word-trouble {
	width: 100%;
	margin-top: -4px;
	transform: rotate(-3deg);
}

.hero-mascot {
	width: min(38%, 170px);
	margin-right: -8px;
	transform: rotate(7deg);
}

.hero-tagline {
	margin: 14px 0 12px;
	color: var(--text);
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero .hero-checker {
	display: block;
	width: calc(100% + 32px);
	height: 56px;
	margin: 0 -16px;
	object-fit: cover;
	object-position: top;
}

/* Ingresso: le scritte cadono, la mascotte salta dentro e poi dondola piano */
.hero-word-bite {
	animation: drop-in 520ms 60ms var(--ease-spring) both;
}
.hero-word-trouble {
	animation: drop-in 520ms 180ms var(--ease-spring) both;
	--rot: -3deg;
}
.hero-mascot {
	animation:
		pop-in 600ms 300ms var(--ease-spring) both,
		bob 4.5s 1s ease-in-out infinite;
}
.hero-tagline {
	animation: rise 420ms 480ms var(--ease-out) both;
}

/* ===================== RICERCA E CHIP ===================== */

.search {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 16px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-body);
}
.search:focus-within {
	border-color: var(--accent);
}
.search svg {
	flex-shrink: 0;
}
.search input {
	flex: 1;
	min-width: 0;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--text-strong);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	outline: none;
}
.search input::placeholder {
	color: var(--text-body);
	opacity: 1;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: #f2eee8;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	transition: transform var(--dur-press) var(--ease-out);
}
.chip .allergen-icon {
	width: 22px;
	height: 22px;
	margin-left: -4px;
}
.chip:active {
	transform: scale(0.97);
}
.chip.is-active {
	padding-right: 8px;
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
	font-weight: 800;
}
.chip-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

/* ===================== GRIGLIA CATEGORIE ===================== */

.cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.cat-tile {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	min-height: 104px;
	padding: 14px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-bottom: 4px solid var(--accent);
	color: var(--text-strong);
	text-decoration: none;
	transition: transform var(--dur-press) var(--ease-out);
}
.cat-tile:active {
	transform: scale(0.98);
}
.cat-tile.is-skeleton {
	justify-content: flex-end;
	border-bottom-color: var(--border);
}

.cat-tile-num {
	color: transparent;
	font-family: var(--font-display);
	font-size: 34px;
	line-height: 0.8;
	-webkit-text-stroke: 1.2px var(--accent);
}

.cat-tile-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cat-tile-title {
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.cat-tile-count {
	color: var(--text-muted);
	font-size: 13.5px;
	font-weight: 600;
}

/* ===================== BARRA IN ALTO (viste interne) ===================== */

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	/* la tendina categorie si apre da qui */
	display: flex;
	align-items: center;
	gap: 4px;
	padding: max(14px, env(safe-area-inset-top)) 8px 14px;
	background: var(--header);
	border-bottom: 3px solid var(--accent);
}
.topbar-plain {
	position: static;
	padding: max(22px, env(safe-area-inset-top)) 20px 16px;
}

.topbar-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.topbar-title {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 32px;
	line-height: 1;
	font-weight: 400;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
.topbar-title-lg {
	font-size: 38px;
}

.topbar-sub {
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 600;
}

.topbar-lead {
	margin-top: 8px;
	color: var(--text-body);
	font-size: 15px;
	line-height: 1.45;
}

/* ===================== CAMBIO CATEGORIA ===================== */

/* Titolo-pulsante: tocco sul nome → tendina con tutte le categorie */
.topbar-title-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	min-height: 44px;
	padding: 0;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	text-transform: inherit;
}
.topbar-caret {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--accent);
	transition:
		transform 260ms var(--ease-spring),
		background-color 150ms ease;
}
.topbar-title-btn[aria-expanded="true"] .topbar-caret {
	transform: rotate(180deg);
	background: var(--accent);
	color: var(--accent-ink);
}

.cat-menu {
	position: absolute;
	left: 8px;
	right: 8px;
	top: calc(100% + 8px);
	z-index: 20;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px;
	border-radius: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
	transform-origin: top center;
	animation: menu-in 240ms var(--ease-spring);
}
.cat-menu[hidden] {
	display: none;
}

.cat-menu-list {
	display: grid;
	gap: 2px;
	list-style: none;
}

.cat-menu-link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	padding: 6px 12px;
	border-radius: 14px;
	color: var(--text-strong);
	text-decoration: none;
	animation: rise 260ms var(--ease-out) both;
	animation-delay: calc(var(--i, 0) * 25ms);
	transition: background-color 150ms ease;
}
.cat-menu-link:active {
	background: var(--surface-2);
}
.cat-menu-link[aria-current="page"] {
	background: var(--surface-2);
	box-shadow: inset 3px 0 0 var(--accent);
}

.cat-menu-num {
	width: 34px;
	color: transparent;
	font-family: var(--font-display);
	font-size: 26px;
	line-height: 1;
	-webkit-text-stroke: 1px var(--accent);
}
.cat-menu-link[aria-current="page"] .cat-menu-num {
	color: var(--accent);
}

.cat-menu-name {
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Scurisce la pagina sotto la tendina */
.is-cat-menu-open .view::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 5;
	background: rgba(0, 0, 0, 0.5);
	animation: fade 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.cat-menu-link:hover {
		background: var(--surface-2);
	}
}

@keyframes menu-in {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.96);
	}
}

/* In fondo: precedente / successiva */
.cat-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 8px;
}

.cat-pager-link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 76px;
	padding: 12px 14px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--accent);
	text-decoration: none;
	transition:
		transform var(--dur-press) var(--ease-out),
		border-color 150ms ease;
}
.cat-pager-link.is-next {
	justify-content: flex-end;
	border-color: var(--accent);
	text-align: right;
}
.cat-pager-link:active {
	transform: scale(0.97);
}
.cat-pager-link svg {
	flex-shrink: 0;
	transition: transform 200ms var(--ease-out);
}

.cat-pager-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.cat-pager-label {
	color: var(--text-muted);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.cat-pager-title {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 19px;
	line-height: 1.1;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
	.cat-pager-link:hover {
		border-color: var(--accent);
	}
	.cat-pager-link.is-prev:hover svg {
		transform: translateX(-4px);
	}
	.cat-pager-link.is-next:hover svg {
		transform: translateX(4px);
	}
}

/* ===================== PIATTI ===================== */

.dish-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dish {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	padding: 18px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	text-align: left;
	transition:
		transform var(--dur-press) var(--ease-out),
		border-color 150ms ease;
}
.dish:active {
	transform: scale(0.985);
}

.dish-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
}

.dish-name {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 24px;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.dish-desc {
	display: -webkit-box;
	overflow: hidden;
	color: var(--text-body);
	font-size: 15px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.dish-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dish-allergens {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 600;
}

.rows-list {
	display: grid;
	gap: 1px;
	overflow: hidden;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: 16px;
}

.row-item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	width: 100%;
	min-height: 56px;
	padding: 12px 18px;
	background: var(--surface);
	text-align: left;
}
.row-item:active {
	background: var(--surface-2);
}

.row-kicker {
	color: var(--text-muted);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dish.is-unavailable .dish-name,
.dish.is-unavailable .dish-desc,
.row-item.is-unavailable .row-name,
.row-item.is-unavailable .row-desc,
.beer.is-unavailable .beer-name {
	color: var(--text-muted);
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

@media (hover: hover) and (pointer: fine) {
	.dish:hover,
	.beer:hover {
		border-color: var(--accent);
	}
	.row-item:hover {
		background: var(--surface-2);
	}
	.cat-tile:hover {
		border-color: var(--accent);
	}
}

/* ===================== BIRRE ===================== */

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 14px 16px 6px;
}

.filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--text);
	color: var(--bg);
	font-size: 15px;
	font-weight: 800;
}

.filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	border-radius: 11px;
	background: var(--bg);
	color: var(--text);
	font-size: 13px;
}

.filter-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 16px 0;
	padding: 12px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
}

.beer-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.beer {
	display: flex;
	gap: 14px;
	width: 100%;
	padding: 14px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	text-align: left;
	transition:
		transform var(--dur-press) var(--ease-out),
		border-color 150ms ease;
}
.beer:active {
	transform: scale(0.985);
}

.beer-badge {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background: var(--accent);
	color: var(--accent-ink);
}
.beer-abv {
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 0.9;
}
.beer-abv-unit {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.beer-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.beer-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}

.beer-name {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.beer-price {
	flex: none;
	color: var(--accent);
	font-size: 17px;
	font-weight: 800;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.beer-style {
	color: var(--text-body);
	font-size: 14.5px;
	font-weight: 600;
}

.beer-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 2px;
	color: var(--text-body);
	font-size: 14px;
}

.beer-swatch {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1px solid var(--text);
}

/* ===================== ALLERGENI ===================== */

.allergen-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
}
@media (min-width: 520px) {
	.allergen-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.allergen-tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 124px;
	padding: 14px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-strong);
	font-size: 15px;
	line-height: 1.25;
	font-weight: 700;
}
.allergen-tile .allergen-icon {
	width: 48px;
	height: 48px;
	color: var(--accent);
}

/* ===================== INFO ===================== */

.info-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-body);
	font-size: 15px;
	line-height: 1.45;
	text-decoration: none;
}
.info-card a {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
}
/* Scheda "Dove siamo": testi grandi e ben contrastati, orari in evidenza */
.where {
	gap: 12px;
	padding: 20px 18px 18px;
	box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55);
}
.where-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}
.where-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
}
.where-pin svg {
	width: 22px;
	height: 22px;
}
.where-address {
	margin: 0;
	color: var(--text-strong);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}
.where-hours {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px dashed var(--border);
}
.where-label {
	margin: 0 0 8px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.where-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.where-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.where-day {
	color: var(--text);
	font-size: 17px;
	font-weight: 700;
}
.where-time {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 24px;
	line-height: 1.05;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.where-row.is-closed .where-time {
	color: var(--accent);
	text-transform: uppercase;
}

.info-card-accent {
	border-color: var(--accent);
}

.info-card-title {
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.1;
	text-transform: uppercase;
}

.info-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	text-align: center;
}
.info-brand > img {
	width: 120px;
	height: auto;
}
.info-brand-words {
	display: flex;
	align-items: center;
}
.info-brand-words img {
	display: block;
	height: auto;
}
.info-brand-words img:first-child {
	width: 110px;
}
.info-brand-words img:last-child {
	width: 150px;
}
.info-brand-tagline {
	color: var(--text);
	font-family: var(--font-serif);
	font-size: 17px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.info-brand-est {
	color: var(--text-body);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

/* ===================== BARRA IN BASSO ===================== */

.tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 6px max(8px, calc((100% - var(--maxw)) / 2)) max(12px, env(safe-area-inset-bottom));
	background: var(--header);
	border-top: 1px solid var(--border);
}
.is-review .tabbar {
	display: none;
}

.tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 52px;
	color: var(--text-body);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.tab[aria-current="page"] {
	color: var(--accent);
}
.tab[aria-current="page"]::before {
	content: "";
	position: absolute;
	top: -7px;
	width: 30px;
	height: 4px;
	border-radius: 0 0 4px 4px;
	background: var(--accent);
}

/* ===================== SCHEDA PIATTO (dal basso) ===================== */

.sheet {
	position: fixed;
	inset: auto 0 0;
	width: 100%;
	max-width: var(--maxw);
	max-height: 88vh;
	margin: 0 auto;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 0;
	border-top: 1px solid var(--border);
	border-radius: 28px 28px 0 0;
	background: var(--surface);
	color: var(--text);
}
.sheet[open] {
	animation: sheet-up 260ms var(--ease-out);
}
.sheet::backdrop {
	background: rgba(0, 0, 0, 0.62);
	animation: fade 200ms ease;
}

.sheet-handle {
	width: 44px;
	height: 5px;
	margin: 10px auto 0;
	border-radius: 3px;
	background: var(--border);
}

.sheet-close {
	position: absolute;
	right: 8px;
	top: 16px;
	color: var(--text);
}

.sheet-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 20px 0;
}

.sheet-kicker {
	padding-right: 44px;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sheet-title {
	outline: none;
	margin-top: -6px;
	padding-right: 36px;
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 38px;
	line-height: 1;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.sheet-price .price-pill {
	display: inline-block;
	padding: 5px 14px;
	font-size: 18px;
}

.sheet-desc {
	color: var(--text);
	font-size: 16.5px;
	line-height: 1.55;
}

.sheet-subtitle {
	margin-top: 8px;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sheet-allergens {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	list-style: none;
}

.sheet-allergen {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 7px 2px 6px;
	border-radius: 10px;
	background: var(--surface-2);
	color: var(--text-strong);
	font-size: 10px;
	line-height: 1.15;
	font-weight: 700;
	text-align: center;
	overflow-wrap: anywhere;
	hyphens: auto;
}
.sheet-allergen .allergen-icon {
	width: 21px;
	height: 21px;
	color: var(--accent);
}
.sheet-allergen.is-text {
	justify-content: center;
}

.sheet-note {
	color: var(--text-body);
	font-size: 14px;
	line-height: 1.45;
}

.sheet .sheet-checker {
	width: 100%;
	height: 44px;
	margin-top: 18px;
}

@keyframes sheet-up {
	from {
		transform: translateY(100%);
	}
}

/* ===================== RECENSIONE ===================== */

.review-fab {
	position: fixed;
	right: max(16px, calc((100% - var(--maxw)) / 2 + 16px));
	bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
	z-index: 25;
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--surface);
	border: 3px solid var(--accent);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
	animation:
		pop-in 500ms 1.2s var(--ease-spring) both,
		nudge 7s 4s ease-in-out infinite;
	transition: transform var(--dur-press) var(--ease-out);
}
.review-fab:active {
	transform: scale(0.92);
}
.review-fab[hidden] {
	display: none;
}
.review-fab-face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 50%;
}
.review-fab-face img {
	position: absolute;
	left: 6px;
	top: 3px;
	width: 46px;
	height: auto;
}
.review-fab-star {
	position: absolute;
	right: -6px;
	top: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
}

/* Stella (recensione) che diventa X quando il menu è aperto */
.review-fab {
	padding: 0;
	font: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.fab-icon-x {
	display: none;
}
.review-fab[aria-expanded="true"] .fab-icon-star {
	display: none;
}
.review-fab[aria-expanded="true"] .fab-icon-x {
	display: block;
}
.review-fab[aria-expanded="true"] {
	animation: none;
	z-index: 27;
	background: var(--accent);
}
.review-fab[aria-expanded="true"] .review-fab-face img {
	animation: chatter 600ms ease-in-out 2;
}

/* ===================== MENU A FUMETTI DELLA MASCOTTE ===================== */

.mascot-scrim {
	position: fixed;
	inset: 0;
	z-index: 24;
	background: rgba(26, 26, 26, 0.62);
	animation: scrim-in 200ms ease both;
}
.mascot-scrim[hidden] {
	display: none;
}

.mascot-menu {
	position: fixed;
	right: max(16px, calc((100% - var(--maxw)) / 2 + 16px));
	bottom: calc(var(--tabbar-h) + 20px + 64px + 14px + env(safe-area-inset-bottom));
	z-index: 26;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: 10px;
	max-width: calc(100vw - 32px);
}
.mascot-menu[hidden] {
	display: none;
}

/* Ogni fumetto esce dalla mascotte (in basso a destra), a cascata, con piccolo rimbalzo.
   Inclinazioni diverse: imperfezione controllata, come nel brand. */
.mascot-bubble {
	--r: -1.5deg;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 10px 16px 10px 12px;
	border-radius: 20px 20px 4px 20px;
	background: var(--text);
	color: var(--bg);
	text-decoration: none;
	box-shadow:
		3px 4px 0 rgba(0, 0, 0, 0.55),
		0 10px 22px rgba(0, 0, 0, 0.35);
	transform: rotate(var(--r));
	transform-origin: right bottom;
	animation: bubble-pop 460ms calc(var(--i) * 70ms) var(--ease-spring) both;
	transition: transform var(--dur-press) var(--ease-out);
	-webkit-tap-highlight-color: transparent;
}
.mascot-bubble:nth-child(even) {
	--r: 1.5deg;
}
.mascot-bubble:active {
	transform: rotate(var(--r)) scale(0.96);
}
.mascot-bubble.is-orchid {
	background: var(--accent);
	color: var(--accent-ink);
}
.mascot-bubble.is-teal {
	background: var(--panel);
	color: var(--text);
}
.mascot-bubble.is-cyan {
	background: var(--tag);
	color: var(--accent-ink);
}
.mascot-menu.is-closing .mascot-bubble {
	animation: bubble-out 150ms ease both;
}

.mascot-bubble-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(26, 26, 26, 0.14);
}
.mascot-bubble-icon svg {
	width: 20px;
	height: 20px;
}
.is-teal .mascot-bubble-icon {
	background: rgba(228, 219, 206, 0.16);
}
.mascot-bubble-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.mascot-bubble-title {
	font-family: var(--font-display);
	font-size: 18px;
	line-height: 1.05;
	text-transform: uppercase;
}
.mascot-bubble-sub {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	opacity: 0.78;
}

/* Pagina Info: ogni azione è una card a larghezza piena, stessa grafica dei fumetti della mascotte */
.info-actions-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 4px;
}
.info-action {
	--r: -0.6deg;
	min-height: 68px;
	padding: 14px 16px 14px 14px;
	animation: none;
}
.info-action:nth-child(even) {
	--r: 0.6deg;
}
.info-action .mascot-bubble-icon {
	width: 42px;
	height: 42px;
}
.info-action .mascot-bubble-icon svg {
	width: 22px;
	height: 22px;
}
.info-action .mascot-bubble-title {
	font-size: 21px;
}
.info-action .mascot-bubble-sub {
	font-size: 14px;
}
.mascot-bubble-arrow {
	display: flex;
	margin-left: auto;
	opacity: 0.65;
}
.mascot-bubble-arrow svg {
	width: 22px;
	height: 22px;
}
.view.is-entering .info-action {
	animation: action-rise 460ms calc(var(--i) * 70ms + 120ms) var(--ease-spring) both;
}
@keyframes action-rise {
	from {
		opacity: 0;
		transform: translateY(22px) scale(0.94) rotate(calc(var(--r) * 2));
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1) rotate(var(--r));
	}
}

@keyframes bubble-pop {
	0% {
		opacity: 0;
		transform: translate(10px, calc(46px + var(--i) * 54px)) scale(0.25) rotate(calc(var(--r) * 3));
	}
	55% {
		opacity: 1;
	}
	100% {
		opacity: 1;
		transform: translate(0, 0) scale(1) rotate(var(--r));
	}
}
@keyframes bubble-out {
	to {
		opacity: 0;
		transform: translate(8px, 28px) scale(0.6) rotate(var(--r));
	}
}
@keyframes scrim-in {
	from {
		opacity: 0;
	}
}

/* Fumetto della mascotte: compare una volta a visita */
.review-fab-bubble {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	padding: 8px 12px;
	border-radius: 14px 14px 4px 14px;
	background: var(--text);
	color: var(--bg);
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translate(8px, -50%) scale(0.9);
	transform-origin: right center;
	pointer-events: none;
	transition:
		opacity 160ms ease,
		transform 160ms var(--ease-out);
}
.review-fab.is-talking .review-fab-bubble {
	opacity: 1;
	transform: translate(0, -50%) scale(1);
	transition:
		opacity 220ms ease,
		transform 320ms var(--ease-spring);
}
.review-fab.is-talking .review-fab-face img {
	animation: chatter 600ms ease-in-out 3;
}

.review-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
	z-index: 28;
	max-width: calc(var(--maxw) - 24px);
	margin: 0 auto;
}
.review-banner.is-entering {
	animation: banner-in 560ms var(--ease-spring);
}
.review-banner.is-entering .review-banner-mascot {
	animation:
		peek 620ms 220ms var(--ease-spring) both,
		wave 900ms 900ms ease-in-out 2;
}
.review-banner.is-entering .review-banner-cta svg {
	animation: twinkle 1.4s 900ms ease-in-out 3;
}

.review-banner-mascot {
	position: absolute;
	left: 12px;
	top: -46px;
	z-index: 2;
	width: 78px;
	height: auto;
	transform: rotate(-6deg);
}

.review-banner-card {
	position: relative;
	padding: 14px 16px 10px 100px;
	border-radius: 18px;
	background: var(--text);
	color: var(--bg);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.review-banner-close {
	position: absolute;
	right: 4px;
	top: 4px;
	color: var(--bg);
}

.review-banner-title {
	margin-right: 40px;
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.05;
	text-transform: uppercase;
}

.review-banner-text {
	margin: 4px 0 10px;
	font-size: 14.5px;
	line-height: 1.35;
	font-weight: 600;
}

.review-banner-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--header);
	color: var(--text-strong);
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
}
.review-banner-cta svg {
	color: var(--accent);
}

.review-banner-later {
	display: flex;
	align-items: center;
	min-height: 40px;
	margin-top: 2px;
	color: var(--bg);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
}

@keyframes peek {
	from {
		transform: translateY(40px) rotate(-6deg);
		opacity: 0;
	}
}

.review {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	padding: max(14px, env(safe-area-inset-top)) 24px 0;
	overflow: hidden;
	background: var(--header);
	text-align: center;
}

.review-close {
	align-self: flex-end;
	color: var(--text);
}

.review-art {
	position: relative;
	width: 240px;
	height: 230px;
	margin-top: 4px;
}
.review-art img {
	position: absolute;
	height: auto;
}
.review-art-word {
	left: -14px;
	top: 10px;
	width: 108px;
	transform: rotate(-12deg);
}
.review-art-mascot {
	left: 50%;
	top: 0;
	width: 164px;
	transform: translateX(-50%) rotate(4deg);
}
.review-art-star {
	position: absolute;
	display: flex;
	color: var(--accent);
}
.review-art-star.s1 {
	left: 176px;
	top: 18px;
	width: 28px;
	transform: rotate(14deg);
}
.review-art-star.s2 {
	left: 14px;
	top: 140px;
	width: 22px;
	transform: rotate(-14deg);
}
.review-art-star.s3 {
	left: 196px;
	top: 150px;
	width: 18px;
	transform: rotate(8deg);
}

.review-title {
	margin-top: 14px;
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 46px;
	line-height: 0.98;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.review-text {
	max-width: 34ch;
	margin-top: 14px;
	color: var(--text);
	font-size: 17px;
	line-height: 1.5;
}

.review-stars {
	display: flex;
	gap: 8px;
	margin-top: 20px;
	color: var(--accent);
}
.review-star {
	display: flex;
	width: 40px;
}

.review-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 400px;
	min-height: 58px;
	margin-top: 24px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
}
.review-cta-icon {
	display: flex;
	width: 22px;
}

.review-later {
	display: flex;
	align-items: center;
	min-height: 48px;
	margin-top: 4px;
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
}

.review-hint {
	color: var(--text-body);
	font-size: 13.5px;
	line-height: 1.4;
}

.review .review-checker {
	width: calc(100% + 48px);
	height: 76px;
	margin-top: auto;
	padding-top: 24px;
	object-fit: cover;
	object-position: top;
}


/* ===================== VITA: ENTRATE E MICRO-MOVIMENTI ===================== */

/* Le voci della vista entrano a cascata (--i = posizione), al massimo ~0,5 s di ritardo */
.view.is-entering .cat-tile,
.view.is-entering .dish,
.view.is-entering .row-item,
.view.is-entering .beer,
.view.is-entering .allergen-tile {
	animation: rise 380ms var(--ease-out) both;
	animation-delay: calc(min(var(--i, 0), 10) * 45ms);
}
.view.is-entering .topbar-title {
	animation: rise 320ms var(--ease-out) both;
}

.sheet[open] .sheet-allergen {
	animation: pop-in 420ms var(--ease-spring) both;
	animation-delay: calc(200ms + var(--i, 0) * 60ms);
}

.tab[aria-current="page"]::before {
	animation: grow 260ms var(--ease-spring);
}
.tab[aria-current="page"] svg {
	animation: hop 380ms var(--ease-spring);
}

/* Recensione: mascotte che salta dentro, stelle che si accendono una dopo l'altra */
.review-art-mascot {
	animation: pop-in-centered 640ms 80ms var(--ease-spring) both;
}
.review-art-word {
	animation: drop-in 520ms 260ms var(--ease-spring) both;
	--rot: -12deg;
}
.review-art-star {
	animation: twinkle 2.4s ease-in-out infinite;
}
.review-art-star.s2 {
	animation-delay: 0.8s;
}
.review-art-star.s3 {
	animation-delay: 1.6s;
}
.review-star {
	animation: pop-in 420ms var(--ease-spring) both;
}
.review-star:nth-child(1) { animation-delay: 420ms; }
.review-star:nth-child(2) { animation-delay: 500ms; }
.review-star:nth-child(3) { animation-delay: 580ms; }
.review-star:nth-child(4) { animation-delay: 660ms; }
.review-star:nth-child(5) { animation-delay: 740ms; }
.review-cta {
	animation: rise 420ms 820ms var(--ease-out) both;
	transition: transform var(--dur-press) var(--ease-out);
}
.review-cta:active {
	transform: scale(0.97);
}

@keyframes drop-in {
	from {
		opacity: 0;
		transform: translateY(-24px) rotate(calc(var(--rot, -7deg) - 8deg));
	}
}
@keyframes pop-in {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
}
@keyframes pop-in-centered {
	from {
		opacity: 0;
		transform: translateX(-50%) rotate(4deg) scale(0.6);
	}
}
@keyframes bob {
	0%,
	100% {
		transform: rotate(7deg) translateY(0);
	}
	50% {
		transform: rotate(4deg) translateY(-6px);
	}
}
/* Fermo quasi sempre, ogni 7 s un piccolo saluto per attirare l'occhio */
@keyframes nudge {
	0%,
	86%,
	100% {
		transform: none;
	}
	89% {
		transform: rotate(-12deg) scale(1.06);
	}
	92% {
		transform: rotate(10deg) scale(1.06);
	}
	95% {
		transform: rotate(-6deg);
	}
}
@keyframes chatter {
	50% {
		transform: translateY(-3px) rotate(-6deg);
	}
}
@keyframes banner-in {
	from {
		opacity: 0;
		transform: translateY(60%);
	}
}
@keyframes wave {
	50% {
		transform: rotate(6deg) translateY(-4px);
	}
}
@keyframes twinkle {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.25) rotate(12deg);
	}
}
@keyframes grow {
	from {
		transform: scaleX(0);
	}
}
@keyframes hop {
	40% {
		transform: translateY(-4px);
	}
}

/* Meno movimento: niente rimbalzi, dondolii né cascate */
@media (prefers-reduced-motion: reduce) {
	.hero *,
	.view.is-entering *,
	.review *,
	.review-fab,
	.review-fab *,
	.mascot-scrim,
	.mascot-bubble,
	.sheet[open],
	.sheet[open] *,
	.cat-menu,
	.cat-menu *,
	.tab::before,
	.tab svg,
	.review-banner.is-entering,
	.review-banner.is-entering * {
		animation: none !important;
	}
}

/* ===================== EVENTO: BITE THE MIC ===================== */
.event {
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
	padding: 14px;
	box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55);
}
.info-card .event-poster {
	flex: none;
	align-self: flex-start;
	display: block;
	width: 112px;
	min-height: 0;
	border: 2px solid var(--accent);
	border-radius: 10px;
	overflow: hidden;
	transform: rotate(-2deg);
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
	background: #000;
}
.event-poster img {
	display: block;
	width: 100%;
	height: auto;
}
.event-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 0;
}
.event-kicker {
	margin: 0;
	color: var(--accent);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.event-title {
	margin: 0;
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 400;
	line-height: 0.95;
	text-transform: uppercase;
}
.event-sub {
	margin: 0;
	color: var(--text-strong);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}
.event-book {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin: 4px 0 0;
	padding: 6px 12px 6px 8px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}
.event-book-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}
@media (max-width: 360px) {
	.info-card .event-poster { width: 92px; }
	.event-title { font-size: 28px; }
}

/* Pillola prenotazione = bottone; i tasti di contatto ballano quando ci si arriva */
button.event-book {
	border: 0;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
button.event-book:active { transform: scale(0.96); }
.info-action.is-attn {
	box-shadow: 0 0 0 2px var(--accent), 3px 4px 0 rgba(0, 0, 0, 0.55);
}


/* ===================== FILTRO ALLERGENI ("senza") ===================== */
.allergen-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
button.allergen-tile {
	position: relative;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 96px;
	padding: 12px 6px 10px;
	width: 100%;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 140ms, border-color 140ms, transform 140ms;
}
button.allergen-tile .allergen-icon {
	width: 36px;
	height: 36px;
}
button.allergen-tile:active {
	transform: scale(0.97);
}
button.allergen-tile[aria-pressed="true"] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}
button.allergen-tile[aria-pressed="true"] .allergen-icon {
	color: var(--accent-ink);
}
.allergen-tile-flag {
	display: none;
	position: absolute;
	top: 6px;
	right: 6px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--accent-ink);
	color: var(--accent);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
button.allergen-tile[aria-pressed="true"] .allergen-tile-flag {
	display: block;
}
.avoid-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 2px solid var(--accent);
}
.avoid-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 10px;
}
.avoid-title {
	margin: 0;
	flex: 1 1 100%;
	color: var(--text-strong);
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
}
.avoid-count {
	color: var(--accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.avoid-clear {
	margin-left: auto;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: transparent;
	color: var(--text-strong);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.avoid-check {
	border: 1px dashed var(--border);
	border-radius: 14px;
	padding: 4px 14px 10px;
}
.avoid-check summary {
	min-height: 44px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-strong);
	font-weight: 800;
	cursor: pointer;
}
.avoid-jump-wrap {
	position: sticky;
	bottom: calc(env(safe-area-inset-bottom) + 84px);
	z-index: 5;
	display: flex;
	justify-content: center;
	margin-top: 14px;
	pointer-events: none;
}
.avoid-jump {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--accent-ink);
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.info-card a.event-wa {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	margin-top: 2px;
	padding: 0 14px 0 10px;
	border: 2px solid var(--accent);
	border-radius: 999px;
	color: var(--text-strong);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}
.event-wa svg {
	width: 18px;
	height: 18px;
	color: var(--accent);
}
