/* =========================================================================
   Bottega Panini — design system
   Palette and typefaces follow the approved UX/UI board V4.
   The dark full-bleed panels are "la lavagna": they carry only what the
   locale rewrites by hand — the weekend, the specials.
   ====================================================================== */

/* -------------------------------------------------- 01 · Fonts */

@font-face {
	font-family: 'Playfair Display';
	src: url('../fonts/playfair-var.woff2') format('woff2-variations'),
	     url('../fonts/playfair-var.woff2') format('woff2');
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
	               U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
	               U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-var.woff2') format('woff2-variations'),
	     url('../fonts/inter-var.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
	               U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
	               U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Caveat';
	src: url('../fonts/caveat-var.woff2') format('woff2-variations'),
	     url('../fonts/caveat-var.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
	               U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
	               U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------- 02 · Tokens */

:root {
	/* Colour — the marque's red on warm cream, over the charcoal of the boards. */
	--crema:        #F5F0E7;
	--crema-alta:   #FBF8F1;
	--sabbia:       #E6DACA;
	--sabbia-scura: #A89273;
	--carbone:      #24211E;   /* la lavagna */
	--carbone-notte:#171513;
	--carbone-chiaro:#3B3733;
	--rosso:        #F64C4A;   /* the red of the marque; 4.6:1 on carbone, 5.3:1 on carbone-notte */
	--rosso-cupo:   #C9322F;   /* the same red, deep enough to read on cream: 4.7:1, and 5.3:1 under white */
	--rosso-fondo:  #A82522;   /* hover of the filled buttons */
	--ottone:       #D4A257;   /* on the dark grounds: 6.9:1 on carbone, 7.9:1 on carbone-notte */
	--ottone-cupo:  #8F6420;   /* the same brass, deep enough to read on cream: 4.9:1 */
	--testo:        #1E1B19;
	--testo-tenue:  #55524A;
	--gesso:        #EDE7DA;
	--gesso-tenue:  #B5AEA4;

	/* Type */
	--font-display: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
	--font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-mano:    'Caveat', 'Segoe Script', 'Bradley Hand', cursive;

	--fs-xs:   0.8125rem;
	--fs-sm:   0.9375rem;
	--fs-base: 1.0625rem;
	--fs-md:   1.1875rem;
	--fs-lg:   1.4375rem;
	--fs-xl:   clamp(1.625rem, 1.32rem + 1.3vw, 2.125rem);
	--fs-2xl:  clamp(2rem, 1.42rem + 2.5vw, 3.125rem);
	--fs-3xl:  clamp(2.625rem, 1.5rem + 4.5vw, 4.75rem);

	--measure:  62ch;
	--measure-corta: 44ch;

	/* Spacing — 8 · 16 · 24 · 32 · 48 · 64 · 96 · 128 */
	--s1: 0.5rem;  --s2: 1rem;   --s3: 1.5rem; --s4: 2rem;
	--s5: 3rem;    --s6: 4rem;   --s7: 6rem;   --s8: 8rem;

	--container: 1280px;
	--gutter: clamp(1rem, 3.2vw, 3rem);
	--section-pad: clamp(3.5rem, 7vw, 7.5rem);

	--radius:    4px;
	--radius-lg: 8px;

	--header-h: 100px;
	--bar-h: 0px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-gesso: cubic-bezier(0.33, 0, 0.15, 1);   /* fast start, long settle: a hand writing */
	--gesso-durata: 750ms;

	/* Focus ring, dark by default; the dark surfaces below flip it to brass. */
	--focus: #24211E;
}

.header,
.footer,
.hero,
.testata,
.menu-mobile,
.barra-azioni,
.section--notte,
.section--carbone { --focus: #D4A257; }

/* -------------------------------------------------- 03 · Reset & base */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--s2));
}

body {
	margin: 0;
	background: var(--crema);
	color: var(--testo);
	font-family: var(--font-ui);
	font-size: var(--fs-base);
	line-height: 1.6;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	padding-bottom: var(--bar-h);
	overflow-x: hidden;
}

img, picture, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--testo);
	margin: 0;
	text-wrap: balance;
	letter-spacing: -0.015em;
}

p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button { font: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: var(--sabbia); color: var(--testo); }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--s2);
	top: -100px;
	z-index: 200;
	background: var(--crema);
	color: var(--testo);
	padding: var(--s1) var(--s2);
	border-radius: var(--radius);
	font-weight: 600;
	transition: top 0.15s var(--ease);
}
.skip-link:focus { top: var(--s2); }

/* -------------------------------------------------- 04 · Layout */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section-pad);
}

.section--stretta { --section-pad: clamp(2.5rem, 5vw, 5rem); }

.section--notte {
	background: var(--carbone-notte);
	color: var(--gesso);
}
.section--notte h1,
.section--notte h2,
.section--notte h3 { color: var(--gesso); }

.section--carbone {
	background: var(--carbone);
	color: var(--gesso);
}
.section--carbone h2, .section--carbone h3 { color: var(--gesso); }

.section--sabbia { background: var(--sabbia); }

/* -------------------------------------------------- 05 · Typography roles */

.display {
	font-size: var(--fs-3xl);
	line-height: 0.95;
	letter-spacing: -0.028em;
}

.titolo-sezione {
	font-size: var(--fs-2xl);
	line-height: 1.04;
}

.titolo-blocco {
	font-size: var(--fs-xl);
	line-height: 1.1;
}

/* A short line that names where you are. Sentence case, never tracked-out caps. */
.occhiello {
	font-family: var(--font-ui);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--rosso-cupo);
	margin: 0 0 var(--s2);
}
.section--notte .occhiello,
.section--carbone .occhiello { color: var(--rosso); }

.lead {
	font-size: var(--fs-md);
	line-height: 1.5;
	max-width: var(--measure-corta);
	color: var(--testo-tenue);
}
.section--notte .lead,
.section--carbone .lead { color: var(--gesso-tenue); }

.prosa {
	max-width: var(--measure);
}
.prosa p + p { margin-top: var(--s2); }

/* Pagine di solo testo, come l'informativa privacy. */
.prosa h2 {
	font-size: var(--fs-xl);
	line-height: 1.15;
	margin: var(--s5) 0 var(--s2);
}
.prosa h3 {
	font-size: var(--fs-lg);
	margin: var(--s4) 0 var(--s1);
}
.prosa > :first-child { margin-top: 0; }
.prosa ul, .prosa ol {
	margin: 0 0 var(--s2);
	padding-left: 1.3em;
}
.prosa li + li { margin-top: 6px; }
.prosa a {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}
.prosa em { color: var(--testo-tenue); }

.mano {
	font-family: var(--font-mano);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0;
}

/* -------------------------------------------------- 06 · Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 52px;
	padding: 0 var(--s3);
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-ui);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn svg { flex: none; width: 18px; height: 18px; }

.btn--primario {
	background: var(--rosso-cupo);
	border-color: var(--rosso-cupo);
	color: #fff;
}
.btn--primario:hover { background: var(--rosso-fondo); border-color: var(--rosso-fondo); }

.btn--contorno {
	background: transparent;
	border-color: var(--sabbia);
	color: var(--gesso);
}
.btn--contorno:hover { background: rgba(217, 201, 178, 0.14); border-color: var(--crema); }

.btn--contorno-scuro {
	background: transparent;
	border-color: var(--sabbia-scura);
	color: var(--testo);
}
.btn--contorno-scuro:hover { background: rgba(168, 146, 115, 0.14); border-color: var(--carbone); }

.btn--pieno-scuro {
	background: var(--carbone);
	border-color: var(--carbone);
	color: var(--gesso);
}
.btn--pieno-scuro:hover { background: var(--carbone-chiaro); border-color: var(--carbone-chiaro); }

.btn--largo { width: 100%; }

.btn-riga {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
	align-items: stretch;
}
.btn-riga .btn { flex: 0 1 auto; }

/* A text link that behaves like a link: underlined, offset, thickens on hover. */
.link-testo {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 600;
	font-size: var(--fs-sm);
	color: var(--rosso-cupo);
	text-decoration: underline;
	text-underline-offset: 0.3em;
	text-decoration-thickness: 1px;
}
.link-testo:hover { text-decoration-thickness: 2px; }
/* Stacked on its own line, so it gets a real target rather than a text height. */
.utility__blocco .link-testo,
.intro-sezione .link-testo { min-height: 44px; align-items: center; }
.section--notte .link-testo,
.section--carbone .link-testo { color: var(--ottone); }

/* -------------------------------------------------- 07 · Header */

.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--carbone);
	color: var(--gesso);
	transition: box-shadow 0.2s var(--ease);
}
.header.is-stuck { box-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 8px 24px -16px rgba(0,0,0,0.6); }

.header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;   /* equal outer columns: the nav sits on the true centre of the container */
	align-items: center;
	gap: var(--s3);
	min-height: var(--header-h);
	transition: min-height 0.2s var(--ease);
}
.header.is-stuck .header__inner { min-height: 72px; }

.header__logo {
	justify-self: start;
	display: inline-flex;
	line-height: 0;
}
.header__logo img {
	width: 152px;
	height: auto;
	transition: width 0.2s var(--ease);
}
.header.is-stuck .header__logo img { width: 120px; }

.header__nav { justify-self: center; }

.nav-principale ul {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 1.6vw, 1.75rem);
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-principale a {
	display: inline-block;
	padding: var(--s1) 2px;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--gesso);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
	white-space: nowrap;
}
.nav-principale a:hover { border-bottom-color: var(--sabbia); }
.nav-principale .current-menu-item > a,
.nav-principale .current_page_item > a {
	border-bottom-color: var(--ottone);
	color: #fff;
}

.header__azione { justify-self: end; }
.header__azione .btn { min-height: 46px; }

/* -------------------------------------------------- 08 · Mobile nav */

.menu-mobile {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: var(--carbone);
	color: var(--gesso);
	padding: var(--s3) var(--gutter) var(--s5);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateY(-8px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.menu-mobile.is-open { opacity: 1; transform: none; pointer-events: auto; }

.menu-mobile__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--s4);
}
.menu-mobile__top img { width: 148px; }

.menu-mobile ul {
	list-style: none;
	margin: 0 0 var(--s4);
	padding: 0;
	border-top: 1px solid rgba(217, 201, 178, 0.25);
}
.menu-mobile li { border-bottom: 1px solid rgba(217, 201, 178, 0.25); }
.menu-mobile a {
	display: block;
	padding: var(--s3) 0;
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 600;
	color: var(--gesso);
	text-decoration: none;
}

.icona-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(217, 201, 178, 0.4);
	border-radius: var(--radius);
	color: var(--gesso);
	cursor: pointer;
}
.icona-btn:hover { background: rgba(217, 201, 178, 0.14); }
.icona-btn svg { width: 22px; height: 22px; }

/* Declared after .icona-btn so the shared button styles cannot re-show it. */
.header__toggle { display: none; }

/* -------------------------------------------------- 09 · Hero */

/*
 * The photographs handed over are close-ups of the plate, not wide shots of
 * the room. Stretched full-bleed they swallow the page and leave the headline
 * fighting the bread, so the hero is built as a pair: the words on the dark
 * board, the plate beside them, both full height.
 */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
	background: var(--carbone-notte);
	color: var(--gesso);
	min-height: min(82vh, 720px);
}

.hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: calc(var(--container) * 0.47);
	margin-left: auto;
	margin-right: 0;
	padding: var(--s6) var(--s5) var(--s6) var(--gutter);
}

.hero__testo { max-width: 32rem; }

.hero__occhiello {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--sabbia);
	margin: 0 0 var(--s2);
}

.hero h1 {
	color: var(--gesso);
	margin-bottom: var(--s3);
}

.hero__lead {
	font-size: var(--fs-md);
	line-height: 1.5;
	color: #CFCCC2;
	max-width: 30ch;
	margin-bottom: var(--s4);
}

.hero__mano {
	margin: var(--s5) 0 0;
	font-size: 1.75rem;
	color: var(--sabbia);
	transform: rotate(-3deg);
	transform-origin: left center;
}

.hero__media {
	position: relative;
	overflow: hidden;
}
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% 44%;
}

/*
 * La cucitura fra la lavagna e la fotografia. Il salto è grosso — a metà
 * altezza si passa da 28 a 213 di luminosità — e su una rampa corta l'occhio
 * ci vede una banda invece di una sfumatura. Quindi la rampa è larga, e le
 * fermate seguono una curva in uscita invece di una retta: una retta finisce
 * con uno spigolo, questa si spegne. Prende solo il fondo della sala, il
 * panino comincia ben più a destra.
 */
.hero__media::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: clamp(140px, 30%, 280px);
	z-index: 1;
	background: linear-gradient(to right,
		rgba(23, 21, 19, 1)    0%,
		rgba(23, 21, 19, 0.97) 10%,
		rgba(23, 21, 19, 0.88) 22%,
		rgba(23, 21, 19, 0.74) 35%,
		rgba(23, 21, 19, 0.56) 48%,
		rgba(23, 21, 19, 0.38) 62%,
		rgba(23, 21, 19, 0.22) 75%,
		rgba(23, 21, 19, 0.09) 87%,
		rgba(23, 21, 19, 0)    100%);
	pointer-events: none;
}

/* -------------------------------------------------- 10 · Utility strip */

.utility {
	background: var(--crema-alta);
	border-bottom: 1px solid var(--sabbia);
}

/*
 * Le quattro colonne condividono tre righe — etichetta, valore, azione — così
 * le righe si leggono per traverso e non ognuna per conto suo. Senza subgrid
 * la dichiarazione cade e ogni blocco resta comunque impaginato, solo senza
 * l'allineamento fra colonne.
 */
.utility__griglia {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: auto auto auto;
}

.utility__blocco {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: subgrid;
	grid-row: span 3;
	align-content: start;
	column-gap: var(--s2);
	padding: var(--s3) var(--s3) var(--s3) 0;
	border-right: 1px solid var(--sabbia);
}

.utility__icona    { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
.utility__etichetta,
.utility__valore,
.utility__azione   { grid-column: 2; }
.utility__etichetta { grid-row: 1; }
.utility__valore    { grid-row: 2; }
.utility__azione    { grid-row: 3; align-self: start; }
.utility__blocco:last-child { border-right: 0; padding-right: 0; }
.utility__blocco:not(:first-child) { padding-left: var(--s3); }

.utility__icona {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--sabbia-scura);
	border-radius: 50%;
	color: var(--carbone);
}
.utility__icona svg { width: 20px; height: 20px; }

.utility__etichetta {
	display: block;
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--testo-tenue);
	margin-bottom: 2px;
}

.utility__valore {
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
}

.utility__valore strong { font-weight: 600; }

.stato {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-weight: 600;
}
.stato::before {
	content: '';
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--sabbia-scura);
}
.stato--aperto::before { background: #2E7D4F; }
.stato--chiuso::before { background: var(--rosso-cupo); }

/*
 * Il simbolo da solo, in una scatoletta di 40 px, in una colonna larga il
 * doppio: sembrava un avanzo. Il nome scritto accanto regge il suo spazio, si
 * legge senza dover riconoscere un glifo, e sostituisce l'etichetta che prima
 * stava nascosta per i soli lettori di schermo.
 */
.utility__social {
	/* Prende la riga del valore e quella dell'azione: se le due targhe non ci
	   stanno affiancate vanno a capo qui dentro, senza allungare la riga dei
	   valori e aprire un buco nelle altre tre colonne. */
	grid-row: 2 / span 2;
	display: flex;
	flex-wrap: wrap;
	align-content: start;
	gap: var(--s1);
	margin-top: 2px;
}
.utility__social a {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	min-height: 44px;
	padding-inline: 12px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--testo);
	text-decoration: none;
	background: var(--crema);
	border: 1px solid var(--sabbia);
	border-radius: var(--radius);
	transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.utility__social a:hover { background: var(--sabbia); border-color: var(--sabbia-scura); }
.utility__social svg { flex: none; width: 18px; height: 18px; }

/* -------------------------------------------------- 11 · Quick worlds */

.mondi {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s2);
}

.mondo {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--carbone-notte);
	color: var(--gesso);
	text-decoration: none;
	isolation: isolate;
}

.mondo img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}
.mondo::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(12, 22, 17, 0.9) 8%, rgba(12, 22, 17, 0.45) 42%, rgba(12, 22, 17, 0.05) 78%);
}
.mondo:hover img,
.mondo:focus-visible img { transform: scale(1.05); }
.mondo:active img { transform: scale(1.02); }

.mondo__testo { transition: transform 0.35s var(--ease); }
.mondo:hover .mondo__testo,
.mondo:focus-visible .mondo__testo { transform: translateY(-3px); }

.mondo__testo {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s2);
	width: 100%;
	padding: var(--s3);
}

.mondo__nome {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 2px;
}

.mondo__nota {
	display: block;
	font-size: var(--fs-sm);
	line-height: 1.35;
	color: #D7D2C6;
	max-width: 22ch;
}

.mondo__freccia {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border: 1.5px solid var(--ottone);
	border-radius: 50%;
	color: var(--ottone);
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.mondo:hover .mondo__freccia { background: var(--ottone); color: var(--carbone-notte); }
.mondo__freccia svg { width: 16px; height: 16px; }

/* -------------------------------------------------- 12 · Split (image + text) */

.split {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--s5) var(--s4);
	/* Il bordo alto della fotografia e la prima riga di testo condividono la
	   stessa linea: con un'immagine molto più alta del testo, centrare lo
	   lascia galleggiare. */
	align-items: start;
}

/*
 * Testo e fotografia stanno sulla stessa riga, sempre.
 * Senza questo, nella variante invertita il testo — che viene prima nel
 * documento ma sta in colonna 8 — spinge il cursore della griglia oltre la
 * colonna 1, e la fotografia scala alla riga successiva.
 */
.split__testo,
.split__media { grid-row: 1; }

.split__testo { grid-column: 1 / span 5; }
.split__media { grid-column: 7 / span 6; }

.split--invertito .split__testo { grid-column: 8 / span 5; }
.split--invertito .split__media { grid-column: 1 / span 6; }

.split__media img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
	object-position: center;
	border-radius: var(--radius-lg);
}

.split__testo p { max-width: 40ch; }

.figura {
	margin: 0;
}
.figura figcaption {
	margin-top: var(--s1);
	font-size: var(--fs-xs);
	color: var(--testo-tenue);
}

/* -------------------------------------------------- 13 · La lavagna (quote) */

.lavagna {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--s4);
	align-items: center;
}

.lavagna__media { grid-column: 1 / span 7; }
.lavagna__media img {
	width: 100%;
	border-radius: var(--radius-lg);
}

.lavagna__frase {
	grid-column: 9 / span 4;
	margin: 0;
}

.lavagna__frase blockquote {
	margin: 0 0 var(--s2);
	font-family: var(--font-mano);
	font-weight: 500;
	font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.3rem);
	line-height: 1.22;
	color: var(--carbone);
}

.lavagna__fonte {
	font-size: var(--fs-sm);
	color: var(--testo-tenue);
}

/* -------------------------------------------------- 14 · Weekend feature */

.weekend {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--s4);
	align-items: center;
}

.weekend__testo { grid-column: 1 / span 6; }
.weekend__media { grid-column: 8 / span 5; }

.weekend__data {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--sabbia);
	margin-bottom: var(--s2);
}

.weekend h2 { margin-bottom: var(--s3); }

.weekend__note {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s1) var(--s2);
	margin: var(--s3) 0 var(--s4);
	padding: 0;
	list-style: none;
}
.weekend__note li {
	font-size: var(--fs-xs);
	font-weight: 500;
	color: var(--gesso);
	border: 1px solid rgba(217, 201, 178, 0.4);
	border-radius: 100px;
	padding: 5px 12px;
}

.weekend__media img {
	width: 100%;
	border-radius: var(--radius-lg);
}

/* ---- La pagina di un appuntamento ----------------------------------------

   Due colonne: i fatti a sinistra, la fotografia a destra. La fotografia non
   si ritaglia. Chi sta al bancone manda il manifesto fatto per Instagram,
   verticale, con il nome del piatto scritto sopra: un ritaglio panoramico gli
   taglia via le parole. Qui la foto sta dentro per intero, alta quanto basta,
   e sotto i 900px scende sotto ai fatti invece di schiacciarli.
-------------------------------------------------------------------------- */

.appuntamento {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--s4);
	align-items: start;
}

@media (min-width: 900px) {
	.appuntamento {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: clamp(var(--s4), 5vw, var(--s6));
		align-items: center;
	}
	.appuntamento--senza-foto { grid-template-columns: minmax(0, 1fr); }
}

.appuntamento__dati { min-width: 0; }

.appuntamento__titolo {
	margin: 0 0 var(--s3);
	text-wrap: balance;
}

.appuntamento__dati .lead { margin: 0 0 var(--s3); }

/* I fatti in chiaro, invece delle pasticche sparse: una riga per cosa, con
   l'etichetta sopra. Si legge anche quando il riassunto manca. */
.appuntamento__fatti {
	margin: 0 0 var(--s4);
	display: grid;
	gap: var(--s3);
	grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
	padding-top: var(--s3);
	border-top: 1px solid rgba(217, 201, 178, 0.25);
}
.appuntamento__fatti div { min-width: 0; }
.appuntamento__fatti dt {
	font-family: var(--font-ui);
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--gesso-tenue);
	margin: 0 0 2px;
}
.appuntamento__fatti dd {
	margin: 0;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--gesso);
}

.appuntamento__completo { margin: 0 0 var(--s3); }
.appuntamento__azione { margin: 0; }

/* La foto si rimpicciolisce finche' ci sta: sia in larghezza che in altezza,
   senza deformarsi e senza perdere un pezzo. */
.appuntamento__foto {
	margin: 0;
	display: grid;
	justify-items: center;
}
.appuntamento__foto img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: min(68vh, 34rem);
	border-radius: var(--radius-lg);
}

/* Sotto i 900px la foto e' sopra ai bottoni di navigazione in fondo: le
   serve un tetto piu' basso, o si mangia tutto lo schermo del telefono. */
@media (max-width: 899px) {
	.appuntamento__foto img { max-height: 56vh; }
}

/* Un filo quando sopra c'e' gia' del testo, per non attaccare i bottoni. */
.section--filo { border-top: 1px solid var(--sabbia); }

/* When no photo has been uploaded yet, the board writes itself. */
.assi {
	display: grid;
	gap: var(--s2);
	padding: var(--s4);
	border: 1px solid rgba(217, 201, 178, 0.32);
	border-radius: var(--radius-lg);
	background: rgba(0, 0, 0, 0.16);
}
.assi__titolo {
	font-family: var(--font-mano);
	font-size: 1.6rem;
	color: var(--sabbia);
	margin: 0;
}
.assi ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s1); }
.assi li {
	display: flex;
	align-items: baseline;
	gap: var(--s2);
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	color: var(--gesso);
	padding-bottom: var(--s1);
	border-bottom: 1px dashed rgba(217, 201, 178, 0.26);
}
.assi li:last-child { border-bottom: 0; padding-bottom: 0; }

/* -------------------------------------------------- 15 · Menu list */

.menu-tabs {
	position: sticky;
	top: var(--header-h);
	z-index: 40;
	display: flex;
	gap: var(--s1);
	margin-bottom: var(--s5);
	padding-block: var(--s2);
	background: var(--crema);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	border-bottom: 1px solid var(--sabbia);
}
.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tabs a {
	flex: none;
	padding: 10px var(--s3);
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--sabbia-scura);
	border-radius: 100px;
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	color: var(--testo);
	white-space: nowrap;
	transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.menu-tabs a:hover { border-color: var(--carbone); }
.menu-tabs a.is-attiva { background: var(--carbone); border-color: var(--carbone); color: var(--gesso); }

.menu-gruppo + .menu-gruppo { margin-top: var(--s6); }

.menu-gruppo__intestazione {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s2);
	padding-bottom: var(--s2);
	border-bottom: 2px solid var(--carbone);
	margin-bottom: var(--s3);
}
.menu-gruppo__intestazione p {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--testo-tenue);
	max-width: 46ch;
}

.voce {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px var(--s3);
	align-items: baseline;
	padding: var(--s3) 0;
	border-bottom: 1px solid var(--sabbia);
}
.voce:last-child { border-bottom: 0; }

.voce__nome {
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}

.voce__prezzo {
	grid-column: 2;
	grid-row: 1;
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 600;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.voce__desc {
	grid-column: 1;
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.5;
	color: var(--testo-tenue);
	max-width: 56ch;
}

.voce__allergeni {
	grid-column: 1 / -1;
	margin: var(--s1) 0 0;
	font-size: var(--fs-xs);
	color: var(--testo-tenue);
}

.voce__tag {
	display: inline-block;
	margin-left: var(--s1);
	padding: 2px 8px;
	border-radius: 100px;
	font-family: var(--font-ui);
	font-size: var(--fs-xs);
	font-weight: 600;
	vertical-align: 3px;
}
.voce__tag--evidenza { background: var(--sabbia); color: var(--testo); }
.voce__tag--esaurito { background: var(--rosso-cupo); color: #fff; }

/* La riga con la fotografia: ci entra perché una foto è stata caricata,
   non perché la voce è segnalata. Vedi template-parts/components/menu-item.php. */
.voce--foto {
	display: grid;
	grid-template-columns: 200px 1fr auto;
	/*
	 * Le tre righe di testo si misurano sul testo; l'altezza in più della
	 * fotografia finisce tutta nella quarta, sotto. Senza, le righe si
	 * allungavano per raggiungere la foto e nome, ingredienti e allergeni
	 * finivano sparpagliati: si leggevano come tre righe slegate invece che
	 * come una voce sola.
	 */
	grid-template-rows: auto auto auto 1fr;
	/* Fra le righe lo stesso respiro della voce senza foto, così il blocco
	   di testo resta unito. Il passo largo serve solo fra le colonne. */
	gap: 4px var(--s3);
	align-items: start;
}
.voce--foto .voce__foto { grid-row: 1 / -1; }
.voce--foto .voce__foto img { border-radius: var(--radius); width: 100%; }
.voce--foto .voce__nome { grid-column: 2; }
.voce--foto .voce__prezzo { grid-column: 3; }
.voce--foto .voce__desc { grid-column: 2 / span 2; }
.voce--foto .voce__allergeni { grid-column: 2 / span 2; }

/* A two-column band with no photograph: a claim on the left, the
   answer or the action on the right. */
.fascia-doppia {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: var(--s4) var(--s6);
	align-items: end;
}
.fascia-doppia .occhiello { margin-bottom: var(--s2); }
.fascia-doppia .lead { max-width: 42ch; }

@media (max-width: 860px) {
	.fascia-doppia { grid-template-columns: 1fr; align-items: start; }
}

/* -------------------------------------------------- 16 · Cards & lists */

.eventi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s4) var(--s3);
}

.evento {
	display: flex;
	flex-direction: column;
	gap: var(--s2);
	text-decoration: none;
	color: inherit;
}
.evento img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}
.evento__data {
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--rosso-cupo);
}
.evento h3 { font-size: var(--fs-lg); }
.evento p { font-size: var(--fs-sm); color: var(--testo-tenue); margin: 0; }
.evento:hover h3 { text-decoration: underline; text-underline-offset: 0.25em; }

.evento__segnaposto {
	width: 100%;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius);
	background: var(--carbone-notte);
	display: grid;
	place-items: center;
	font-family: var(--font-mano);
	font-size: 1.5rem;
	color: var(--sabbia);
	padding: var(--s2);
	text-align: center;
}

.recensioni {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s3);
}

.recensione {
	display: flex;
	flex-direction: column;
	gap: var(--s2);
	padding: var(--s4) var(--s3);
	background: var(--crema-alta);
	border-top: 3px solid var(--sabbia);
	border-radius: 0 0 var(--radius) var(--radius);
}
.recensione blockquote {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--fs-md);
	line-height: 1.45;
}
.recensione figcaption {
	margin-top: auto;
	font-size: var(--fs-sm);
	color: var(--testo-tenue);
}
.stelle { color: var(--ottone-cupo); letter-spacing: 0.1em; }

/* -------------------------------------------------- 17 · Gallery */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	grid-auto-rows: 1fr;
	gap: var(--s2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.gallery li { list-style: none; aspect-ratio: 1 / 1; }
.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
}

/*
 * On the home the gallery is a showcase, not an archive: three columns with
 * one lead photograph twice the size. Six pictures fill it exactly, so the
 * block never ends on a half-empty row.
 */
.gallery--vetrina {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery--vetrina > li:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

/* -------------------------------------------------- 18 · Contacts, map, form */

.contatti-griglia {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--s5) var(--s4);
	align-items: start;
}
.contatti-griglia__info { grid-column: 1 / span 5; }
.contatti-griglia__mappa { grid-column: 7 / span 6; }

.dati {
	display: grid;
	gap: var(--s3);
	margin: 0 0 var(--s4);
}
.dati div { display: grid; gap: 2px; }
.dati dt {
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--testo-tenue);
}
.dati dd {
	margin: 0;
	font-size: var(--fs-md);
	line-height: 1.4;
}
.dati a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.orari {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}
.orari th, .orari td {
	text-align: left;
	padding: 10px 0;
	border-bottom: 1px solid var(--sabbia);
	font-weight: 400;
}
.orari td { text-align: right; font-variant-numeric: tabular-nums; }
.orari tr:last-child th, .orari tr:last-child td { border-bottom: 0; }
.orari .is-oggi th, .orari .is-oggi td { font-weight: 700; }

.mappa {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--sabbia);
	aspect-ratio: 4 / 3;
}
.mappa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Quello che si vede prima di chiedere la mappa: l'indirizzo e i due modi
   per usarlo. Non è un segnaposto vuoto, è già utile così. */
.mappa__anteprima {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--s2);
	height: 100%;
	padding: var(--s4);
	text-align: center;
	color: var(--testo);
}

.mappa__indirizzo {
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	line-height: 1.25;
	margin: 0;
	max-width: 22ch;
}

.mappa__azioni {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s1);
	justify-content: center;
}

.mappa__nota {
	margin: 0;
	font-size: var(--fs-xs);
	color: var(--testo-tenue);
	max-width: 34ch;
}

.avviso {
	padding: var(--s2) var(--s3);
	border-left: 3px solid var(--rosso-cupo);
	background: var(--crema-alta);
	font-size: var(--fs-sm);
	margin-bottom: var(--s4);
}

/* Il modulo: due gruppi, e ogni campo largo quanto il dato che contiene. */

.richiesta {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--s5) var(--s4);
	align-items: start;
}
.richiesta__modulo { grid-column: 1 / span 7; }
.richiesta__aiuto  { grid-column: 9 / span 4; }

.richiesta__aiuto {
	/* Resta accanto al modulo mentre lo compili: il numero di telefono
	   non deve scorrere via proprio quando serve. */
	position: sticky;
	top: calc(var(--header-h) + var(--s3));
	padding: var(--s4);
	background: var(--crema-alta);
	border: 1px solid var(--sabbia);
	border-radius: var(--radius-lg);
}
.richiesta__aiuto h3 { margin-bottom: var(--s2); }
.richiesta__aiuto p { font-size: var(--fs-sm); color: var(--testo-tenue); }

.richiesta__azioni {
	display: grid;
	gap: var(--s1);
	margin: var(--s3) 0;
}
.richiesta__azioni .btn { width: 100%; }

.richiesta__orari {
	margin: 0;
	padding-top: var(--s3);
	border-top: 1px solid var(--sabbia);
	font-size: var(--fs-sm);
	display: grid;
	gap: 6px;
}
.richiesta__orari div { display: flex; justify-content: space-between; gap: var(--s2); }
.richiesta__orari dt { color: var(--testo-tenue); }
.richiesta__orari dd { margin: 0; font-variant-numeric: tabular-nums; }
.richiesta__orari .is-oggi dt,
.richiesta__orari .is-oggi dd { font-weight: 700; color: var(--testo); }

.form { display: grid; gap: var(--s4); }

.gruppo {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	gap: var(--s3);
}

.gruppo__titolo {
	padding: 0 0 var(--s1);
	margin-bottom: var(--s1);
	width: 100%;
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 600;
	border-bottom: 2px solid var(--carbone);
}

.form__riga {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3);
	align-items: start;
}

.campo { display: grid; gap: 6px; margin: 0; }

/* :where() azzera la specificità, così i modificatori qui sotto vincono
   invece di essere annullati dalla regola generale della riga. */
.form__riga > :where(.campo) { flex: 1 1 12rem; }

/* Larghezze scelte sul contenuto, non sulla colonna. */
.campo--largo  { flex: 3 1 13rem; }
.campo--numero { flex: 0 0 7rem; }
.campo--data   { flex: 0 0 11rem; }

/* Al telefono basta poco spazio; la nota sotto resta larga e leggibile. */
.campo--telefono input { max-width: 16rem; }

.campo > label {
	font-size: var(--fs-sm);
	font-weight: 600;
}
.campo__aiuto {
	font-size: var(--fs-xs);
	color: var(--testo-tenue);
}
.campo input,
.campo select,
.campo textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	font: inherit;
	font-size: var(--fs-base);
	color: var(--testo);
	background: var(--crema-alta);
	border: 1px solid var(--sabbia-scura);
	border-radius: var(--radius);
}
.campo textarea { min-height: 128px; resize: vertical; }

/*
 * I comandi che il browser disegna da sé — la freccia della tendina, le
 * frecciette del numero, l'icona del calendario — arrivano con il grigio di
 * sistema e stonano accanto ai campi di testo. Li spegniamo e la freccia la
 * ridisegniamo noi: SVG in linea, nessuna richiesta. Il colore è --testo-tenue
 * scritto a mano, perché dentro un data URI le variabili non arrivano.
 */
.campo select {
	appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%2355524A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.campo input[type='number'] { appearance: textfield; }
.campo input[type='number']::-webkit-outer-spin-button,
.campo input[type='number']::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}

.campo input[type='date']::-webkit-calendar-picker-indicator {
	opacity: 0.55;
	cursor: pointer;
}
.campo input[type='date']:hover::-webkit-calendar-picker-indicator { opacity: 1; }
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
	border-color: var(--carbone);
	box-shadow: inset 0 0 0 1px var(--carbone);
}
.campo--errore input,
.campo--errore select,
.campo--errore textarea { border-color: var(--rosso-cupo); border-width: 2px; }
.campo__errore {
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--rosso-cupo);
}
.obbligatorio { color: var(--rosso-cupo); }

.form__invio {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s2) var(--s3);
	padding-top: var(--s2);
	border-top: 1px solid var(--sabbia);
}
.form__invio .btn { min-height: 56px; padding-inline: var(--s4); }
.form__invio p { flex: 1 1 18rem; margin: 0; }

/* La trappola per i robot: fuori dallo schermo, non nascosta. */
.esca {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.esito {
	padding: var(--s3);
	border-radius: var(--radius);
	font-size: var(--fs-sm);
	margin-bottom: var(--s3);
}
.esito--ok { background: #E4EDE5; border-left: 3px solid #2E7D4F; }
.esito--errore { background: #F3E3E3; border-left: 3px solid var(--rosso-cupo); }

/* Traits, not steps: no numbers, because this is not a sequence. */
.elenco-tratti {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--s3);
	margin: 0;
	padding: 0;
	list-style: none;
}
.elenco-tratti li {
	padding-top: var(--s2);
	border-top: 2px solid var(--sabbia);
	font-size: var(--fs-md);
	font-family: var(--font-display);
	line-height: 1.25;
}

.passi {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--s3);
	margin: 0 0 var(--s5);
	padding: 0;
	counter-reset: passo;
}
.passi li {
	list-style: none;
	padding-top: var(--s2);
	border-top: 2px solid var(--sabbia);
	font-size: var(--fs-sm);
}
.passi li::before {
	counter-increment: passo;
	content: counter(passo);
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 700;
	color: var(--rosso-cupo);
	line-height: 1;
	margin-bottom: 4px;
}

/* -------------------------------------------------- 19 · Footer */

.footer {
	background: var(--carbone);
	color: var(--gesso);
	padding-block: var(--s6) var(--s4);
}

.footer__griglia {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: var(--s5) var(--s4);
	padding-bottom: var(--s5);
	border-bottom: 1px solid rgba(217, 201, 178, 0.25);
}

.footer__logo img { width: 240px; margin-bottom: var(--s3); }
.footer__claim {
	font-family: var(--font-mano);
	font-size: 1.5rem;
	color: var(--sabbia);
	max-width: 18ch;
}

.footer h2 {
	font-family: var(--font-ui);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--sabbia);
	margin-bottom: var(--s2);
	letter-spacing: 0.01em;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--gesso); text-decoration: none; font-size: var(--fs-sm); }
.footer li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.footer__orari { font-size: var(--fs-sm); display: grid; gap: 6px; }
.footer__orari div { display: flex; justify-content: space-between; gap: var(--s2); max-width: 22rem; }
.footer__orari dt { color: var(--gesso-tenue); }
.footer__orari dd { margin: 0; font-variant-numeric: tabular-nums; }

.footer__coda {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2) var(--s4);
	justify-content: space-between;
	align-items: center;
	padding-top: var(--s3);
	font-size: var(--fs-xs);
	color: var(--gesso-tenue);
}
.footer__coda ul { display: flex; gap: var(--s3); }
.footer__coda a { font-size: var(--fs-xs); color: var(--gesso-tenue); }

/* -------------------------------------------------- 20 · Mobile action bar */

.barra-azioni { display: none; }

/* -------------------------------------------------- 21 · Page heads */

.testata {
	background: var(--carbone);
	color: var(--gesso);
	padding-block: calc(var(--s5) + var(--s2)) var(--s5);
}
.testata h1 { color: var(--gesso); margin-bottom: var(--s2); }
.testata .occhiello { color: var(--rosso); }
.testata p {
	max-width: var(--measure-corta);
	color: var(--gesso-tenue);
	font-size: var(--fs-md);
	margin: 0;
}

.vuoto {
	padding: var(--s6) var(--s4);
	text-align: center;
	border: 1px dashed var(--sabbia-scura);
	border-radius: var(--radius-lg);
	background: var(--crema-alta);
}
.vuoto h2 { font-size: var(--fs-lg); margin-bottom: var(--s1); }
.vuoto p { color: var(--testo-tenue); max-width: 40ch; margin-inline: auto; }

.intro-sezione {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s3);
	margin-bottom: var(--s5);
}
.intro-sezione > div { max-width: 44ch; }
.intro-sezione h2 { margin-bottom: var(--s2); }
.intro-sezione p { color: var(--testo-tenue); margin: 0; }
.section--notte .intro-sezione p,
.section--carbone .intro-sezione p { color: var(--gesso-tenue); }


/* =========================================================================
   23 · Materia e movimento

   Il movimento è legato allo scorrimento, non a un cronometro: ogni elemento
   avanza esattamente quanto avanzi tu con la pagina. Scendendo compare,
   risalendo torna indietro e scompare. Non c'è nulla che parta per conto suo
   e non c'è nulla che ti scappi davanti se scorri veloce.

   Tre movimenti, uno per tipo di cosa:
     · lavagna — si scrive a gesso, da sinistra a destra
     · testo   — sale di poco, come una riga che si posa
     · foto    — si posa: parte appena più grande e si assesta

   Senza il supporto del browser, o con "riduci movimento" attivo, la pagina
   è semplicemente ferma e completa.
   ====================================================================== */

/* -------------------------------------------------- Grana dell'ardesia */

/*
 * Rumore frattale in SVG, ~300 byte inline: nessuna richiesta, nessuna
 * immagine da caricare. Dà ai pannelli scuri la superficie ruvida
 * dell'ardesia su cui il locale serve i panini.
 *
 * La grana va sul pannello intero, non sulla scatola del testo: .hero__inner
 * ha una max-width ed è spinta a destra, quindi lasciava scoperta una striscia
 * di fondo liscio sul bordo sinistro e si vedeva il taglio. Sopra la
 * fotografia non si vede comunque: è dietro al contenuto.
 */
.hero,
.section--notte,
.section--carbone,
.testata,
.assi {
	position: relative;
	isolation: isolate;
}

.hero::after,
.section--notte::after,
.section--carbone::after,
.testata::after,
.assi::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.055;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23a)'/%3E%3C/svg%3E");
}

/*
 * Nell'apertura la grana passa anche sopra la fotografia. Se si fermasse al
 * pannello, come fa sulle altre sezioni, la cucitura avrebbe un gradino di
 * texture: il pannello granuloso sta a #1B1917, il velo sopra la foto partiva
 * dal #171513 liscio, e quei quattro livelli su un bordo netto si leggevano
 * come una riga. Sopra la fotografia è pellicola, e non si nota.
 */
.hero::after { z-index: 1; }

/* -------------------------------------------------- I tre movimenti */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {

		/* Il testo si posa: poco spazio, nessun rimbalzo. */
		@keyframes bp-sale {
			from { opacity: 0; transform: translateY(28px); }
			to   { opacity: 1; transform: none; }
		}

		/* La fotografia si assesta: parte appena più grande, non sfuma. */
		@keyframes bp-posa {
			from { opacity: 0; transform: scale(1.045); }
			to   { opacity: 1; transform: none; }
		}

		/* Il gesso attraversa la lavagna. */
		@keyframes bp-scrive {
			from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
			to   { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
		}

		/*
		  * Si muove solo quello che, aprendo la pagina, sta sotto la prima
		  * schermata: lo marca site.js con data-scorre. Quello che è già
		  * davanti agli occhi non aspetta uno scorrimento per farsi leggere —
		  * prima l'ultima riga dell'apertura restava scritta a metà. Senza
		  * script non si muove niente e si legge tutto: è il modo giusto di
		  * rompersi.
		  */
		[data-anima][data-scorre] {
			animation-timeline: view();
			animation-fill-mode: both;
			animation-timing-function: linear;   /* la curva la dà il tuo scorrimento */
		}

		[data-anima='testo'][data-scorre] {
			animation-name: bp-sale;
			animation-range: cover 2% cover 40%;
		}

		[data-anima='foto'][data-scorre] {
			animation-name: bp-posa;
			animation-range: cover 0% cover 34%;
		}

		/* La lavagna si scrive riga per riga: lo sfalsamento sta nelle fasce
		   di scorrimento, non in ritardi a tempo. */
		[data-anima='lavagna'][data-scorre] > * {
			-webkit-mask-image: linear-gradient(90deg, #000 0 45%, transparent 53%);
			        mask-image: linear-gradient(90deg, #000 0 45%, transparent 53%);
			-webkit-mask-size: 250% 100%;
			        mask-size: 250% 100%;
			-webkit-mask-repeat: no-repeat;
			        mask-repeat: no-repeat;
			animation-name: bp-scrive;
			animation-timeline: view();
			animation-fill-mode: both;
			animation-timing-function: linear;
		}

		[data-anima='lavagna'][data-scorre] > :nth-child(1) { animation-range: cover 4%  cover 40%; }
		[data-anima='lavagna'][data-scorre] > :nth-child(2) { animation-range: cover 8%  cover 44%; }
		[data-anima='lavagna'][data-scorre] > :nth-child(3) { animation-range: cover 12% cover 48%; }
		[data-anima='lavagna'][data-scorre] > :nth-child(4) { animation-range: cover 16% cover 52%; }
		[data-anima='lavagna'][data-scorre] > :nth-child(5) { animation-range: cover 20% cover 56%; }
		[data-anima='lavagna'][data-scorre] > :nth-child(6) { animation-range: cover 24% cover 60%; }

		/* I piatti sulla lavagna, uno alla volta. */
		.assi[data-scorre] ul li {
			-webkit-mask-image: linear-gradient(90deg, #000 0 45%, transparent 53%);
			        mask-image: linear-gradient(90deg, #000 0 45%, transparent 53%);
			-webkit-mask-size: 250% 100%;
			        mask-size: 250% 100%;
			-webkit-mask-repeat: no-repeat;
			        mask-repeat: no-repeat;
			animation-name: bp-scrive;
			animation-timeline: view();
			animation-fill-mode: both;
			animation-timing-function: linear;
		}
		.assi[data-scorre] ul li:nth-child(1) { animation-range: cover 14% cover 46%; }
		.assi[data-scorre] ul li:nth-child(2) { animation-range: cover 18% cover 50%; }
		.assi[data-scorre] ul li:nth-child(3) { animation-range: cover 22% cover 54%; }
		.assi[data-scorre] ul li:nth-child(4) { animation-range: cover 26% cover 58%; }
		.assi[data-scorre] ul li:nth-child(5) { animation-range: cover 30% cover 62%; }

		/* Il piatto resta indietro mentre le parole scorrono via. */
		@keyframes bp-resta-indietro {
			from { transform: translateY(0); }
			to   { transform: translateY(72px); }
		}

		@media (min-width: 900px) {
			.hero__media img {
				animation-name: bp-resta-indietro;
				animation-timeline: scroll(root);
				animation-range: 0 100vh;
				animation-fill-mode: both;
				animation-timing-function: linear;
			}
		}
	}
}

/* -------------------------------------------------- Siamo aperti adesso */

/*
 * Il punto verde respira solo quando il locale è davvero aperto: è
 * un'informazione in tempo reale, non un ornamento.
 */
@media (prefers-reduced-motion: no-preference) {
	.stato--aperto::before {
		animation: respiro 2.6s ease-in-out infinite;
	}
}

@keyframes respiro {
	0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.55); }
	60%      { box-shadow: 0 0 0 7px rgba(46, 125, 79, 0); }
}

/* -------------------------------------------------- Risposte al tocco */

.btn:active { transform: translateY(1px); }


/* -------------------------------------------------- Gallery: guardare da vicino */

.gallery button {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	border-radius: var(--radius);
	overflow: hidden;
}
.gallery button img { transition: transform 0.6s var(--ease); }

/* Le altre foto che si aprono: il piatto nel menu, la locandina del weekend.
   Un bottone che non deve sembrare un bottone, solo una foto che si allarga. */
.apri-foto {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: zoom-in;
	border-radius: var(--radius-lg);
}
.voce__foto.apri-foto { border-radius: var(--radius); align-self: start; }
.appuntamento__foto .apri-foto { width: auto; }
.apri-foto img { transition: transform 0.4s var(--ease), filter 0.4s var(--ease); }
.apri-foto:hover img,
.apri-foto:focus-visible img { filter: brightness(1.06); transform: scale(1.015); }
.apri-foto:focus-visible { outline: 2px solid var(--sabbia); outline-offset: 3px; }
.gallery button:hover img,
.gallery button:focus-visible img { transform: scale(1.04); }

.visore {
	/* Hugs the photograph instead of boxing it: portrait shots get no
	   empty margins either side. */
	width: fit-content;
	max-width: 94vw;
	max-height: 94vh;
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--carbone-notte);
	color: var(--gesso);
	overflow: hidden;
}
.visore::backdrop {
	background: rgba(10, 18, 14, 0.9);
	backdrop-filter: blur(3px);
}

.visore__figura {
	margin: 0;
	display: grid;
	grid-template-rows: auto auto;
}
.visore__figura img {
	display: block;
	max-width: 94vw;
	max-height: calc(94vh - 72px);
	width: auto;
	height: auto;
	background: #100E0D;
}
.visore__figura figcaption {
	padding: var(--s2) var(--s3);
	font-size: var(--fs-sm);
	color: var(--gesso-tenue);
	display: flex;
	gap: var(--s2);
	justify-content: space-between;
	align-items: center;
}
.visore__conta { flex: none; font-variant-numeric: tabular-nums; }

.visore__comandi {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--s2);
	pointer-events: none;
}
.visore__comandi button,
.visore__chiudi {
	pointer-events: auto;
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 1px solid rgba(237, 231, 218, 0.35);
	border-radius: 50%;
	background: rgba(15, 26, 19, 0.72);
	color: var(--gesso);
	cursor: pointer;
	transition: background-color 0.18s var(--ease);
}
.visore__comandi button:hover,
.visore__chiudi:hover { background: var(--carbone-chiaro); }
.visore__comandi .gira { transform: rotate(180deg); }
.visore__comandi[hidden] { display: none; }

.visore__chiudi {
	position: absolute;
	top: var(--s2);
	right: var(--s2);
	z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
	.visore[open] { animation: visore-entra 0.24s var(--ease); }
}
@keyframes visore-entra {
	from { opacity: 0; transform: scale(0.97); }
	to   { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
	.visore { max-width: 100vw; max-height: 100vh; border-radius: 0; }
	.visore__figura img { max-width: 100vw; max-height: calc(100vh - 88px); }
	.visore__comandi button { width: 44px; height: 44px; }
}

/* =========================================================================
   22 · Responsive
   Breakpoints follow the tested widths: 1440 · 1280 · 1024 · 768 · 390 · 360
   ====================================================================== */

@media (max-width: 1100px) {
	.header__logo img { width: 148px; }
	.nav-principale ul { gap: var(--s2); }
	.nav-principale a { font-size: var(--fs-xs); }
}

@media (max-width: 900px) {
	.hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.hero__inner {
		order: 2;
		max-width: none;
		margin: 0;
		padding: var(--s5) var(--gutter) var(--s6);
	}
	.hero__testo { max-width: none; }
	.hero__lead { max-width: 34ch; }
	.hero__media { order: 1; aspect-ratio: 4 / 3; }
	.hero__media::before {
		inset: auto 0 0 0;
		width: auto;
		height: clamp(96px, 18vh, 160px);
		background: linear-gradient(to top,
			rgba(23, 21, 19, 1)    0%,
			rgba(23, 21, 19, 0.97) 10%,
			rgba(23, 21, 19, 0.88) 22%,
			rgba(23, 21, 19, 0.74) 35%,
			rgba(23, 21, 19, 0.56) 48%,
			rgba(23, 21, 19, 0.38) 62%,
			rgba(23, 21, 19, 0.22) 75%,
			rgba(23, 21, 19, 0.09) 87%,
			rgba(23, 21, 19, 0)    100%);
	}
}

@media (max-width: 1024px) {
	:root { --header-h: 84px; }

	.header__logo img,
	.header.is-stuck .header__logo img { width: 128px; }

	.header__inner { grid-template-columns: auto 1fr auto; }
	.header__nav { display: none; }
	.header__toggle { display: inline-flex; justify-self: start; order: -1; }
	.header__logo { justify-self: center; }
	.header__azione .btn { padding-inline: var(--s2); }
	/* The label is hidden from view but stays the button's accessible name. */
	.header__azione .btn span {
		position: absolute;
		width: 1px; height: 1px;
		margin: -1px; padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.split, .weekend, .lavagna, .contatti-griglia { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.split__testo, .split--invertito .split__testo,
	.weekend__testo, .lavagna__frase,
	.contatti-griglia__info { grid-column: 1 / -1; grid-row: auto; }
	.split__media, .split--invertito .split__media,
	.weekend__media, .lavagna__media,
	.contatti-griglia__mappa { grid-column: 1 / -1; grid-row: auto; }

	.split { gap: var(--s4); }
	.split--invertito .split__media { order: -1; }
	.weekend__media { order: -1; }
	.lavagna__media { order: -1; }

	.split__media img, .weekend__media img { max-height: 58vh; object-fit: cover; }

	/* Il modulo prende tutta la larghezza: a due colonne, qui, i campi si
	   spezzerebbero su piu' righe. Il pannello dei contatti scende sotto. */
	.richiesta { grid-template-columns: 1fr; }
	.richiesta__modulo, .richiesta__aiuto { grid-column: 1 / -1; }
	.richiesta__aiuto { position: static; }

	.eventi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.recensioni { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.footer__griglia { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	:root { --bar-h: 68px; }

	.hero__mano { font-size: 1.5rem; margin-top: var(--s4); }
	.hero .btn-riga { flex-direction: column; }
	.hero .btn-riga .btn { width: 100%; }

	.utility__griglia { grid-template-columns: repeat(2, 1fr); }
	.utility__blocco {
		padding: var(--s3) var(--s2);
		border-right: 1px solid var(--sabbia);
		border-bottom: 1px solid var(--sabbia);
	}
	.utility__blocco:nth-child(2n) { border-right: 0; padding-right: 0; }
	.utility__blocco:nth-child(odd) { padding-left: 0; }
	.utility__blocco:nth-last-child(-n+2) { border-bottom: 0; }

	.mondi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mondo__testo { padding: var(--s2); }
	.mondo__nota { display: none; }
	.mondo__freccia { width: 32px; height: 32px; }

	.voce--foto { grid-template-columns: 96px 1fr auto; gap: 4px var(--s2); }

	.menu-tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

	.eventi, .recensioni { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery--vetrina { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery--vetrina > li:first-child { grid-row: span 1; }
	/* Five tiles tile cleanly at two columns; the sixth would leave a gap. */
	.gallery--vetrina > li:nth-child(n+6) { display: none; }

	/* Sul telefono ogni campo prende la riga intera. */
	.campo--largo, .campo--numero, .campo--data { flex: 1 1 100%; }
	.campo--telefono input { max-width: none; }
	.form__invio .btn { width: 100%; }

	.footer { padding-bottom: var(--s3); }
	.footer ul { gap: 2px; }
	.footer li a { min-height: 44px; }
	.footer__griglia { grid-template-columns: 1fr; gap: var(--s4); padding-bottom: var(--s4); }
	.footer__coda { flex-direction: column; align-items: flex-start; }

	/* Three persistent actions, no more. Sits above the safe area on iOS. */
	.barra-azioni {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 90;
		display: grid;
		grid-template-columns: repeat(var(--colonne, 3), 1fr);
		background: var(--carbone);
		border-top: 1px solid rgba(217, 201, 178, 0.25);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.barra-azioni a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: 68px;
		color: var(--gesso);
		text-decoration: none;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.01em;
	}
	.barra-azioni a + a { border-left: 1px solid rgba(217, 201, 178, 0.2); }
	.barra-azioni svg { width: 21px; height: 21px; }
	.barra-azioni a:active { background: var(--carbone-chiaro); }
}

@media (max-width: 420px) {
	.utility__icona { width: 36px; height: 36px; }
	.utility__icona svg { width: 17px; height: 17px; }
	.mondo__nome { font-size: var(--fs-base); }
	.voce { grid-template-columns: 1fr auto; }
	.voce--foto { grid-template-columns: 76px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.header, .barra-azioni, .menu-mobile, .btn, .mappa { display: none !important; }
	body { background: #fff; color: #000; }

	/* Su carta non si scorre: tutto quello che aspetta lo scorrimento
	   per comparire va stampato comunque. */
	[data-anima],
	[data-anima] > *,
	.assi ul li,
	.hero__media img {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		-webkit-mask-image: none !important;
		        mask-image: none !important;
	}
}

/* ---- L'invito a recensire -------------------------------------------------

   Sta in fondo ai Contatti, dopo la mappa: lo legge chi e' gia' stato qui e
   sta ricontrollando l'indirizzo, non chi sta ancora decidendo. Discreto di
   proposito — un riquadro che implora recensioni fa l'effetto opposto.
-------------------------------------------------------------------------- */

.invito {
	margin-top: var(--s5);
	padding-top: var(--s4);
	border-top: 1px solid var(--sabbia);
	display: grid;
	gap: var(--s2);
	justify-items: start;
	max-width: var(--measure-corta);
}
.invito__testo {
	margin: 0;
	font-family: var(--font-titolo);
	font-size: var(--fs-lg);
	line-height: 1.2;
}
.invito__spiega {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--testo-tenue);
}
.invito .btn { margin-top: var(--s1); }
