/*
 * Bici Grill – site styles. Mobile first.
 * Colour and font tokens come from theme.json (--wp--preset--*); local aliases below keep rules short.
 */

:root {
	/* Bici Grill brand palette (three colours + four grey-greens); paper/card/rule/ink are tints/shades of it. */
	--botanico: var(--wp--preset--color--botanico, #286140);
	--lime: var(--wp--preset--color--lime, #94b719);
	--mineral: var(--wp--preset--color--mineral, #89958a);
	--chiaro: var(--wp--preset--color--chiaro, #a4ada1);
	--medio: var(--wp--preset--color--medio, #707e72);
	--profondo: var(--wp--preset--color--profondo, #56665d);
	--ink: var(--wp--preset--color--ink, #14281c);
	--paper: var(--wp--preset--color--paper, #f3f5f1);
	--card: var(--wp--preset--color--card, #fbfcfa);
	--rule: var(--wp--preset--color--rule, #d3d9d0);
	--display: var(--wp--preset--font-family--display, "Barlow Condensed", "Arial Narrow", sans-serif);
	--text: var(--wp--preset--font-family--text, "Source Serif 4", Georgia, serif);
	--gutter: clamp(16px, 5vw, 40px);
	--wide: 1160px;
	--header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--text);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--botanico); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

h1, h2, h3 {
	margin: 0 0 0.4em;
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.lead { font-size: 1.1875rem; max-width: 38em; }
.muted { color: var(--profondo); }

.skip-link {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100;
	padding: 8px 14px;
	background: var(--ink);
	color: #fff;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.55em 1.15em;
	font: 600 1.125rem/1 var(--display);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: var(--botanico);
	border: 2px solid var(--botanico);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--book { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.button--book:hover { color: var(--ink); background: #a9cc2c; border-color: #a9cc2c; }
.button--ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.75); }
.button--ghost:hover { color: var(--ink); background: #fff; border-color: #fff; }
.button--ghost-dark { color: var(--ink); background: transparent; border-color: var(--ink); }
.button--ghost-dark:hover { color: #fff; }
.button--light { color: var(--ink); background: #fff; border-color: #fff; }
.button--light:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }

/* ---------- "Tourist sign" label (brown road signs used for places of interest in Italy) ---------- */

.sign {
	display: inline-block;
	margin: 0 0 0.9rem;
	padding: 0.32em 0.85em 0.28em;
	font: 600 0.9375rem/1.1 var(--display);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	background: var(--botanico);
	border-radius: 3px;
	outline: 1.5px solid rgba(255, 255, 255, 0.85);
	outline-offset: -4px;
}
.section-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head h2,
.section-head h1 { margin: 0; }
.section-head h1 { font-size: clamp(2.6rem, 8vw, 4.25rem); }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--wide);
	min-height: var(--header-h);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.site-header__brand { display: block; line-height: 0; }
.site-logo { width: auto; height: 40px; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	font: 600 1.0625rem/1 var(--display);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
	background: none;
	border: 0;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 8px var(--gutter) 24px;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}
.site-nav.is-open { display: block; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav__links a {
	display: block;
	padding: 12px 0;
	font: 600 1.5rem/1 var(--display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 1px solid var(--rule);
}
.site-nav__links a:hover { color: var(--ink); }

.lang-switch { display: flex; gap: 4px; margin: 16px 0 !important; }
.lang-switch a {
	display: inline-block;
	min-width: 44px;
	padding: 10px 8px;
	font: 600 1rem/1 var(--display);
	letter-spacing: 0.08em;
	text-align: center;
	text-decoration: none;
	color: var(--profondo);
	border: 1px solid var(--rule);
	border-radius: 3px;
}
.lang-switch a[aria-current] { color: #fff; background: var(--ink); border-color: var(--ink); }
.site-nav .button--book { width: 100%; }

@media (min-width: 960px) {
	:root { --header-h: 76px; }
	.site-logo { height: 48px; }
	.nav-toggle { display: none; }
	.site-nav {
		display: flex !important;
		position: static;
		align-items: center;
		gap: 28px;
		padding: 0;
		background: none;
		border: 0;
	}
	.site-nav__links { display: flex; gap: 24px; }
	.site-nav__links a { padding: 6px 0; font-size: 1.125rem; border: 0; }
	.lang-switch { margin: 0 !important; }
	.lang-switch a { min-width: 36px; padding: 7px 6px; font-size: 0.9375rem; }
	.site-nav .button--book { width: auto; }
}

/* ---------- Hero ---------- */

.hero { position: relative; background: var(--ink); color: #fff; }
.hero__media { margin: 0; }
.hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 55% 70%;
}
.hero__content { max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter) 40px; }
.hero__eyebrow {
	margin: 0 0 10px;
	font: 600 1rem/1.2 var(--display);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lime);
}
.hero__title {
	margin: 0 0 16px;
	font-size: clamp(3.4rem, 13vw, 7.5rem);
	font-weight: 700;
	line-height: 0.88;
	letter-spacing: 0;
}
.hero__title span { display: block; color: var(--lime); }
.hero__lead { max-width: 30em; font-size: 1.125rem; color: rgba(255, 255, 255, 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

@media (min-width: 960px) {
	.hero { display: grid; min-height: min(88vh, 860px); }
	.hero__media,
	.hero__content { grid-area: 1 / 1; }
	.hero__img { height: 100%; aspect-ratio: auto; object-position: 50% 62%; }
	/* The photo's own dark sky sits behind the text; a light scrim only guarantees contrast. */
	.hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(100deg, rgba(20, 40, 28, 0.72) 0%, rgba(20, 40, 28, 0.35) 45%, rgba(20, 40, 28, 0) 70%);
	}
	.hero__content {
		position: relative;
		align-self: start;
		width: 100%;
		padding-top: clamp(48px, 9vh, 110px);
	}
}

/* ---------- Sections ---------- */

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section__inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* Dashed "cycle lane" between sections, with a stop at each end */
.route-divider {
	position: relative;
	max-width: var(--wide);
	height: 12px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.route-divider::before {
	content: "";
	position: absolute;
	top: 5px;
	left: var(--gutter);
	right: var(--gutter);
	border-top: 2px dashed var(--rule);
}
.route-divider::after {
	content: "";
	position: absolute;
	top: 0;
	right: var(--gutter);
	width: 12px;
	height: 12px;
	background: var(--paper);
	border: 2px solid var(--botanico);
	border-radius: 50%;
}

/* ---------- Today's lunch ---------- */

.today__grid { display: grid; gap: 28px; }
.today__date { margin: 0.5rem 0 1rem; font: 500 1.375rem/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--profondo); }
@media (min-width: 900px) {
	.today__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
	.today__intro { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Printed-card look for menus */
.menu-card {
	padding: clamp(22px, 4vw, 40px);
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 2px;
	box-shadow: 0 1px 0 var(--rule), 0 10px 30px -18px rgba(20, 40, 28, 0.35);
}
.menu-card__empty { margin: 0 0 1rem; font-size: 1.125rem; font-style: italic; color: var(--profondo); }
.daily-page__disclaimer { margin: 0 0 1rem; padding: 0.75rem 1rem; border-left: 3px solid var(--lime); background: var(--card); font-size: 0.9375rem; line-height: 1.4; }
.menu-card__more { margin: 1.25rem 0 0; font: 600 1.0625rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.menu-card__more a { text-decoration: none; }

.bg-daily-menu { margin: 0; padding: 0; list-style: none; }
.bg-dish { display: flex; gap: 14px; padding: 0.85rem 0; }
.bg-dish + .bg-dish { border-top: 1px solid var(--rule); }
.bg-dish__image { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.bg-dish__body { flex: 1; min-width: 0; }
.bg-dish__head { display: flex; align-items: baseline; gap: 0.5em; margin: 0; }
.bg-dish__title,
.bg-dish__price,
.bg-dish__desc,
.bg-dish__variants { font-family: var(--display); letter-spacing: 0.035em; text-transform: uppercase; }
.bg-dish__title { font-weight: 600; font-size: 1.3rem; line-height: 1.12; }
.bg-dish__leader { flex: 1; min-width: 1.5em; border-bottom: 2px dotted var(--rule); transform: translateY(-0.3em); }
.bg-dish__price { font-weight: 700; font-size: 1.3rem; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.bg-dish__desc { margin: 0.2em 0 0; font-size: 1.05rem; font-weight: 500; color: var(--profondo); }
.bg-dish__variants { margin: 0.35em 0 0; padding: 0; list-style: none; font-size: 1.05rem; }
.bg-dish__variants li { display: flex; justify-content: space-between; gap: 1em; max-width: 22em; }
.bg-dish__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0.45em 0 0; }
.bg-badge {
	padding: 0.2em 0.55em 0.15em;
	font: 600 0.8125rem/1.2 var(--display);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--botanico);
	border: 1.5px solid currentColor;
	border-radius: 2px;
}
.bg-badge--chef { color: var(--ink); background: var(--lime); border-color: var(--lime); }

/* ---------- Menus list ---------- */

.menu-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.menu-list__item { border-bottom: 1px solid var(--rule); }
.menu-list__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 20px;
	align-items: baseline;
	padding: 18px 4px;
	color: var(--ink);
	text-decoration: none;
}
a.menu-list__row { transition: background-color 0.15s; }
a.menu-list__row:hover { color: var(--ink); background: rgba(148, 183, 25, 0.14); }
.menu-list__title { font: 600 clamp(1.5rem, 4vw, 2rem)/1.05 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.menu-list__desc { grid-column: 1; font-style: italic; color: var(--profondo); }
.menu-list__go,
.menu-list__langs { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.menu-list__go { font: 600 1rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--botanico); white-space: nowrap; }
.menu-list__langs { display: flex; gap: 6px; }
@media (max-width: 759px) {
	/* Three language buttons need their own line on phones. */
	.menu-list__langs { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
}
.menu-list__langs a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	font: 600 1.0625rem/1 var(--display);
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--ink);
	border: 1.5px solid var(--ink);
	border-radius: 3px;
}
.menu-list__langs a:hover { color: #fff; background: var(--ink); }
@media (min-width: 760px) {
	.menu-list__row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 160px; gap: 24px; padding: 22px 8px; }
	.menu-list__go,
	.menu-list__langs { justify-self: end; }
	.menu-list__desc { grid-column: 2; }
	.menu-list__go,
	.menu-list__langs { grid-column: 3; grid-row: 1; }
}

/* ---------- The place ---------- */

.place__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .place__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; } }

/* Trento centre o- - - 10 min - - -● Bici Grill */
.route-map {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	font: 600 1.0625rem/1.15 var(--display);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.route-map__leg { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 10px; }
.route-map__stop { grid-row: 2; }
.route-map__stop--end { text-align: right; color: var(--botanico); }
.route-map__dot { flex: none; width: 16px; height: 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; }
.route-map__dot--end { background: var(--lime); border-color: var(--botanico); }
.route-map__line { flex: 1; border-top: 3px dashed var(--botanico); }
.route-map__time { font-weight: 500; color: var(--profondo); white-space: nowrap; }

.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.facts li {
	padding: 12px 0;
	font: 500 1.375rem/1.15 var(--display);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--rule);
}

/* ---------- Events ---------- */

.events { color: #fff; background: var(--botanico); }
.events .sign { background: var(--lime); color: var(--ink); outline-color: rgba(20, 40, 28, 0.55); }
.events .lead { color: rgba(255, 255, 255, 0.88); }
.events__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.events__mail { color: rgba(255, 255, 255, 0.75); }

/* ---------- Hours & contacts ---------- */

.hours__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .hours__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.hours__days { margin: 0 0 0.75rem; font: 500 1.375rem/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--profondo); }
.hours-table { margin: 0; }
.hours-table > div { display: flex; align-items: baseline; gap: 0.6em; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.hours-table > div:first-child { border-top: 2px solid var(--ink); }
.hours-table dt { font: 600 1.5rem/1.1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.hours-table dd { margin: 0 0 0 auto; font: 600 1.5rem/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours__contacts address { margin: 0 0 1rem; font-style: normal; font-size: 1.125rem; }
.hours__lines { font-size: 1.125rem; }
.hours__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Menu hub (/choice/) & daily page ---------- */

.hub__inner,
.daily-page__inner { max-width: 820px; }
.hub__book { margin-top: 2rem; }
.hub__book .button { width: 100%; }
.daily-page__head { text-align: left; }
.daily-page__actions { margin-top: 1.5rem; }
.button--block { display: flex; width: 100%; }

/* ---------- Generic content ---------- */

.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }

/* ---------- Footer ---------- */

.site-footer { color: rgba(255, 255, 255, 0.82); background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer__inner {
	display: grid;
	gap: 28px;
	max-width: var(--wide);
	margin: 0 auto;
	padding: 56px var(--gutter) 32px;
}
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 2fr 1.4fr 1fr; } }
.site-logo--light { height: 52px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer address { font-style: normal; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer__social a { font: 600 1.125rem/1.4 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	max-width: var(--wide);
	margin: 0 auto;
	padding: 18px var(--gutter) 28px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; }

/* ---------- Motion ----------
 * Subtle and purposeful: things settle into place, nothing bounces. Only opacity/transform are animated, and every
 * rule is inside prefers-reduced-motion: no-preference, so visitors who ask for less motion get the plain page.
 * Scroll reveals are added by site.js (the .reveal class), so without JavaScript everything is simply visible. */

@media screen and (prefers-reduced-motion: no-preference) {
	:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

	@keyframes bg-rise { from { opacity: 0; transform: translateY(16px); } }
	@keyframes bg-settle { from { transform: scale(1.07); } }
	@keyframes bg-drop { from { opacity: 0; transform: translateY(-8px); } }

	/* Soft cross-fade between pages (browsers that support cross-document view transitions; the header stays put). */
	@view-transition { navigation: auto; }
	.site-header { view-transition-name: site-header; }
	::view-transition-old(root),
	::view-transition-new(root) { animation-duration: 0.22s; }

	/* Hero: the photo settles, then the text rises in order. */
	.hero__media { overflow: hidden; }
	.hero__img { animation: bg-settle 1.8s var(--ease) both; }
	.hero__content > * { animation: bg-rise 0.8s var(--ease) backwards; }
	.hero__content > *:nth-child(1) { animation-delay: 150ms; }
	.hero__content > *:nth-child(2) { animation-delay: 240ms; }
	.hero__content > *:nth-child(3) { animation-delay: 330ms; }
	.hero__content > *:nth-child(4) { animation-delay: 420ms; }
	.hero__content > *:nth-child(5) { animation-delay: 510ms; }

	/* /choice/ and /dailysingle/ are opened from QR codes: the content eases in on load. */
	.hub .section-head,
	.daily-page__head { animation: bg-rise 0.7s var(--ease) backwards; }
	.hub .menu-list__item,
	.daily-page .bg-dish { animation: bg-rise 0.6s var(--ease) backwards; animation-delay: 160ms; }
	.hub .menu-list__item:nth-child(1) { animation-delay: 160ms; }
	.hub .menu-list__item:nth-child(2) { animation-delay: 230ms; }
	.hub .menu-list__item:nth-child(3) { animation-delay: 300ms; }
	.hub .menu-list__item:nth-child(4) { animation-delay: 370ms; }
	.hub .menu-list__item:nth-child(5) { animation-delay: 440ms; }
	.hub .menu-list__item:nth-child(6) { animation-delay: 510ms; }
	.hub .menu-list__item:nth-child(7) { animation-delay: 580ms; }
	.hub .menu-list__item:nth-child(8) { animation-delay: 650ms; }
	.daily-page .bg-dish:nth-child(1) { animation-delay: 220ms; }
	.daily-page .bg-dish:nth-child(2) { animation-delay: 275ms; }
	.daily-page .bg-dish:nth-child(3) { animation-delay: 330ms; }
	.daily-page .bg-dish:nth-child(4) { animation-delay: 385ms; }
	.daily-page .bg-dish:nth-child(5) { animation-delay: 440ms; }
	.daily-page .bg-dish:nth-child(6) { animation-delay: 495ms; }
	.daily-page .bg-dish:nth-child(7) { animation-delay: 550ms; }
	.daily-page .bg-dish:nth-child(8) { animation-delay: 605ms; }
	.daily-page .bg-dish:nth-child(9) { animation-delay: 660ms; }
	.daily-page .bg-dish:nth-child(10) { animation-delay: 715ms; }
	.daily-page .bg-dish:nth-child(11) { animation-delay: 770ms; }
	.daily-page .bg-dish:nth-child(12) { animation-delay: 825ms; }
	.hub__book { animation: bg-rise 0.6s var(--ease) 600ms backwards; }

	/* Scroll reveal */
	.reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms);
	}
	.reveal.is-in { opacity: 1; transform: none; }

	/* The route on "Il posto" is drawn: first stop, dashed line, time, dashed line, Bici Grill. */
	.route-map.reveal { opacity: 1; transform: none; }
	.route-map.reveal .route-map__dot { transform: scale(0); transition: transform 0.4s var(--ease); }
	.route-map.reveal .route-map__line { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s var(--ease); }
	.route-map.reveal .route-map__time { opacity: 0; transition: opacity 0.5s ease 0.7s; }
	.route-map.reveal .route-map__stop { opacity: 0; transition: opacity 0.5s ease 0.3s; }
	.route-map.reveal .route-map__line:nth-child(2) { transition-delay: 0.2s; }
	.route-map.reveal .route-map__line:nth-child(4) { transition-delay: 1.1s; }
	.route-map.reveal .route-map__dot--end { transition-delay: 1.8s; }
	.route-map.reveal.is-in .route-map__dot { transform: none; }
	.route-map.reveal.is-in .route-map__line { clip-path: inset(0); }
	.route-map.reveal.is-in .route-map__time,
	.route-map.reveal.is-in .route-map__stop { opacity: 1; }
	.route-map.reveal.is-in .route-map__stop--end { transition-delay: 1.8s; }

	/* Header gets a hairline shadow once the page has scrolled. */
	.site-header { transition: box-shadow 0.25s ease; }
	.site-header.is-scrolled { box-shadow: 0 10px 24px -18px rgba(20, 40, 28, 0.5); }

	/* Buttons and links */
	.button { transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.18s var(--ease), box-shadow 0.2s; }
	.button:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(20, 40, 28, 0.6); }
	.button:active { transform: translateY(0); box-shadow: none; transition-duration: 0.05s; }
	.menu-list__langs a { transition: background-color 0.15s, color 0.15s, transform 0.18s var(--ease); }
	.menu-list__langs a:hover { transform: translateY(-2px); }
	.menu-list__go span { display: inline-block; transition: transform 0.2s var(--ease); }
	a.menu-list__row:hover .menu-list__go span { transform: translateX(5px); }
	.lang-switch a { transition: background-color 0.15s, color 0.15s; }
	.site-footer a { transition: color 0.15s; }

	/* Mobile menu slides down; the hamburger already morphs into a cross. */
	@media (max-width: 959px) {
		.site-nav.is-open { animation: bg-drop 0.22s var(--ease); }
	}

	/* Desktop menu: a lime underline grows under the link. */
	@media (min-width: 960px) {
		.site-nav__links a {
			background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 3px no-repeat;
			transition: background-size 0.25s var(--ease);
		}
		.site-nav__links a:hover,
		.site-nav__links a:focus-visible { background-size: 100% 3px; }
	}

}

@media print {
	.reveal, .reveal * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Loading screen (first visit of a session; see site.js) ---------- */

.loader { display: none; }
.bg-loading .loader {
	position: fixed;
	inset: 0;
	z-index: 100000; /* above the WordPress admin bar */
	display: grid;
	place-items: center;
	background: var(--paper);
	transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.loader__logo { width: min(240px, 54vw); height: auto; }
.loader__bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: var(--lime);
	transform: scaleX(0);
	transform-origin: left;
}
.bg-leaving .loader { opacity: 0; visibility: hidden; }
.bg-leaving .loader__bar { transform: scaleX(1); transition: transform 0.2s ease-out; }

@media screen and (prefers-reduced-motion: no-preference) {
	@keyframes bg-load-bar { to { transform: scaleX(0.9); } }
	@keyframes bg-load-logo { from { opacity: 0; transform: translateY(6px); } }
	.bg-loading .loader__bar { animation: bg-load-bar 2.6s cubic-bezier(0.1, 0.6, 0.3, 1) forwards; }
	.bg-leaving .loader__bar { animation: none; }
	.bg-loading .loader__logo { animation: bg-load-logo 0.5s ease-out backwards; }
	/* The hero entrance waits until the screen has lifted. */
	.bg-loading:not(.bg-leaving) .hero__img,
	.bg-loading:not(.bg-leaving) .hero__content > * { animation-play-state: paused; }
}

@media print { .loader { display: none !important; } }

/* ---------- Print (/dailysingle/ and any page) ---------- */

@media print {
	body { background: #fff; font-size: 10.5pt; }
	.site-header, .site-footer, .skip-link, .no-print, #wpadminbar, .menu-card__more { display: none !important; }
	.section { padding: 0; }
	.menu-card { padding: 0; border: 0; box-shadow: none; }
	.sign { color: #000; background: none; outline: 0; padding: 0; }
	h1 { font-size: 26pt; }
}

/* Printed daily menu (/dailysingle/): same capitals as on screen, sized for one A5 page */
@media print {
	.bg-dish__title,
	.bg-dish__price { font-size: 12pt; }
	.bg-dish__desc,
	.bg-dish__variants { font-size: 9.5pt; }
}
