/* Osteria Giosano — foglio di stile principale
   Layout: copertina centrata sulla foto della sala; ogni sezione si apre
   come una finestra di vetro fumé sopra lo sfondo, che si sfoca. */

:root {
	--night: #1b1317;              /* fondo, vinaccia quasi nera */
	--glass: rgba(27, 19, 23, 0.6);
	--glass-strong: rgba(27, 19, 23, 0.82);
	--parchment: #f3e9d8;          /* testo, come l'intonaco della sala */
	--parchment-soft: rgba(243, 233, 216, 0.74);
	--parchment-faint: rgba(243, 233, 216, 0.45);
	--gold: #d4b477;               /* dettagli, l'ottone delle applique */
	--wine-ink: #3a1a2c;           /* inchiostro scuro sulla comanda */
	--teal: #6dbdb6;               /* il verde-acqua dell'insegna */
	--display: "Playfair Display", Georgia, "Times New Roman", serif;
	--body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--display-italic: italic;       /* "normal" per caratteri senza corsivo */
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	color-scheme: dark;
}

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

[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--parchment);
	background: var(--night);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

a { color: var(--gold); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
	outline: 1px solid var(--gold);
	outline-offset: 4px;
}

/* Sfondo */
.bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: var(--night);
}
.bg::before {
	content: "";
	position: absolute;
	inset: -3%;
	background: url("../../images/web/sala-1080.webp") center / cover no-repeat;
	animation: drift 40s ease-in-out infinite alternate;
	transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}
.bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at center, rgba(27, 19, 23, 0.3) 0%, rgba(27, 19, 23, 0.68) 70%, rgba(27, 19, 23, 0.86) 100%);
}
@media (min-width: 1081px) {
	.bg::before { background-image: url("../../images/web/sala-1600.webp"); }
}
.is-open .bg::before { filter: blur(7px) saturate(0.85); transform: scale(1.04); }

@keyframes drift {
	from { transform: scale(1) translate(0, 0); }
	to { transform: scale(1.06) translate(-1%, -1%); }
}

/* Struttura */
.wrapper {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding-block: 6vh 3vh;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Copertina */
.cover {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s var(--ease);
}
.is-open .cover {
	opacity: 0;
	transform: scale(0.97);
	filter: blur(4px);
	pointer-events: none;
}

.cover-logo {
	width: clamp(110px, 14vw, 150px);
	height: auto;
	filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
	margin-bottom: 2rem;
}

.cover-eyebrow span { color: var(--parchment-faint); }
.cover-eyebrow {
	text-wrap: balance;
	line-height: 1.9;
	margin: 0 0 0.9rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--gold);
}

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.1;
	text-wrap: balance;
	margin: 0;
}

h1 {
	font-size: clamp(2.6rem, 7.5vw, 4.8rem);
	letter-spacing: 0.01em;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.cover-tagline {
	max-width: 26rem;
	margin: 0.9rem 0 0;
	font-family: var(--display);
	font-style: var(--display-italic);
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	line-height: 1.45;
	text-wrap: balance;
	color: var(--parchment-soft);
}
.cover-tagline em { color: var(--parchment); }

/* Menu della copertina: solo parole, separate da un punto d'ottone */
.cover-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4rem 1.8rem;
	margin-top: 2.6rem;
}
.cover-nav a {
	position: relative;
	padding: 0.5rem 1.1rem;
	color: var(--parchment);
	text-decoration: none;
	font-family: var(--display);
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
	letter-spacing: 0.01em;
	transition: color 0.3s, transform 0.4s var(--ease);
}
.cover-nav a + a::before {
	content: "·";
	position: absolute;
	left: -0.9rem;
	top: 50%;
	transform: translate(-50%, -50%);
	color: var(--gold);
	pointer-events: none;
}
.cover-nav a { isolation: isolate; }
.cover-nav a:hover,
.cover-nav a:focus-visible { color: var(--wine-ink); font-style: var(--display-italic); }
.cover-nav a:focus-visible { outline: none; }

/* Foglietto di comanda color paglierino: compare al passaggio del mouse,
   un po' storto, con il bordo inferiore strappato dal blocchetto */
.nav-ticket {
	position: absolute;
	z-index: -1;
	inset: -0.2rem -0.45rem -0.45rem;
	width: calc(100% + 0.9rem);
	height: calc(100% + 0.65rem);
	overflow: visible;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-10px) rotate(-7deg) scale(0.86);
	transform-origin: 50% 0;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
	transition: opacity 0.2s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-ticket .paper { fill: url(#ticket-paper); }
.nav-ticket .rule { fill: none; stroke: rgba(107, 45, 92, 0.28); stroke-width: 0.6; }
.nav-ticket .margin { fill: none; stroke: rgba(160, 50, 50, 0.35); stroke-width: 0.6; }
.cover-nav a:hover .nav-ticket,
.cover-nav a:focus-visible .nav-ticket {
	opacity: 1;
	transform: rotate(var(--tilt, -2deg));
	animation: sway 3s ease-in-out 0.5s infinite alternate;
}

@keyframes sway {
	from { transform: rotate(var(--tilt, -2deg)); }
	to { transform: rotate(calc(var(--tilt, -2deg) * -0.4)) translateY(1px); }
}

/* Apertura: il logo compare grande al centro, si rimpicciolisce al suo posto,
   poi scendono a cascata le scritte e infine i pulsanti.
   La classe "intro" la mette lo script in <head>, solo alla prima visita. */
/* Tutto entra come portato da una brezza: da sinistra, leggermente
   inclinato e sfocato, con tempi lunghi che si sovrappongono. */
:root { --breeze: cubic-bezier(0.25, 0.46, 0.3, 1); }

html.intro .cover-logo,
html.intro .cover-eyebrow,
html.intro h1,
html.intro .cover-tagline,
html.intro .cover-nav a,
html.intro .cover-call,
html.intro .footer { opacity: 0; }
html.intro .cover-logo { filter: blur(12px) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45)); }
html.intro .bg { opacity: 0.3; }
.bg { transition: opacity 2.4s var(--breeze); }

html.intro.logo-in .cover-logo {
	opacity: 1;
	filter: blur(0) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
	transition: opacity 1.6s var(--breeze), filter 1.8s var(--breeze);
}
html.intro.logo-move .cover-logo {
	transition: opacity 1.6s var(--breeze), filter 1.8s var(--breeze), transform 1.8s cubic-bezier(0.45, 0.05, 0.25, 1);
}
html.intro.logo-move .bg { opacity: 1; }

html.intro.text-in .cover-eyebrow,
html.intro.text-in .cover-tagline,
html.intro.text-in .cover-nav a,
html.intro.text-in .cover-call { animation: breeze 1.8s var(--breeze) both; }
html.intro.text-in h1 { opacity: 1; }
h1 .word { display: inline-block; white-space: nowrap; }
html.intro.text-in h1 .ch {
	display: inline-block;
	animation: breeze-letter 1.4s var(--breeze) both;
	animation-delay: calc(0.25s + var(--i) * 55ms);
}
html.intro.text-in .cover-tagline { animation-delay: 1s; }
html.intro.text-in .cover-nav a:nth-child(1) { animation-delay: 1.4s; }
html.intro.text-in .cover-nav a:nth-child(2) { animation-delay: 1.6s; }
html.intro.text-in .cover-nav a:nth-child(3) { animation-delay: 1.8s; }
html.intro.text-in .cover-nav a:nth-child(4) { animation-delay: 2s; }
html.intro.text-in .cover-call { animation-delay: 2.4s; }
html.intro.text-in .footer { opacity: 1; transition: opacity 1.6s var(--breeze) 2.7s; }

/* Su telefono la brezza è più corta: lo schermo è stretto e il movimento si nota di più */
html[data-dispositivo="telefono"].intro.text-in .cover-eyebrow,
html[data-dispositivo="telefono"].intro.text-in .cover-tagline,
html[data-dispositivo="telefono"].intro.text-in .cover-nav a,
html[data-dispositivo="telefono"].intro.text-in .cover-call,
html[data-dispositivo="orizzontale"].intro.text-in .cover-eyebrow,
html[data-dispositivo="orizzontale"].intro.text-in .cover-tagline,
html[data-dispositivo="orizzontale"].intro.text-in .cover-nav a,
html[data-dispositivo="orizzontale"].intro.text-in .cover-call { animation-name: breeze-corta; }

@keyframes breeze-corta {
	0%   { opacity: 0; transform: translate(-12px, 4px) rotate(-1deg); filter: blur(4px); }
	60%  { opacity: 1; filter: blur(0); }
	100% { opacity: 1; transform: none; filter: none; }
}

@keyframes breeze {
	0%   { opacity: 0; transform: translate(-26px, 6px) rotate(-1.5deg); filter: blur(6px); }
	55%  { opacity: 1; filter: blur(0); }
	80%  { transform: translate(3px, -1px) rotate(0.3deg); }
	100% { opacity: 1; transform: none; filter: none; }
}
@keyframes breeze-letter {
	0%   { opacity: 0; transform: translate(-0.5em, -0.2em) rotate(-10deg); filter: blur(5px); }
	60%  { opacity: 1; filter: blur(0); }
	85%  { transform: translate(0.04em, 0.02em) rotate(1deg); }
	100% { opacity: 1; transform: none; filter: none; }
}

@keyframes rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

/* Pulsante di chiamata: su telefono apre l'app Telefono col numero */
.cover-call {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.8rem;
	padding: 0.7rem 1.4rem;
	border: 1px solid rgba(212, 180, 119, 0.5);
	border-radius: 999px;
	background: rgba(27, 19, 23, 0.35);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--parchment-soft);
	text-decoration: none;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.cover-call svg { width: 1rem; height: 1rem; fill: var(--gold); transition: fill 0.3s; }
.cover-call span {
	color: var(--parchment);
	letter-spacing: 0.1em;
	font-variant-numeric: tabular-nums;
}
.cover-call:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.cover-call:hover span { color: var(--night); }
.cover-call:hover svg { fill: var(--night); }

/* Finestre */
.panels {
	position: fixed;
	inset: 0;
	z-index: 5;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-block: max(5vh, env(safe-area-inset-top, 0px)) 5vh;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	visibility: hidden;
}
.is-open .panels { visibility: visible; }

.panel {
	position: relative;
	width: min(100%, 42rem);
	margin: auto 0;
	padding: 2.8rem 3rem 2.4rem;
	background: var(--glass);
	backdrop-filter: blur(20px) saturate(1.1);
	-webkit-backdrop-filter: blur(20px) saturate(1.1);
	border-radius: 4px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.panel.active { opacity: 1; transform: none; }

.panel h2 {
	font-size: clamp(2rem, 5vw, 2.6rem);
	margin-bottom: 1.4rem;
}
.panel h3 {
	font-size: 1.35rem;
	font-style: var(--display-italic);
	color: var(--gold);
	margin: 1.9rem 0 0.6rem;
}
.panel p {
	margin: 0 0 0.75em;
	max-width: 60ch;
	color: var(--parchment-soft);
	hyphens: auto;
}
.panel strong { color: var(--parchment); font-weight: 600; }
.panel em { color: var(--parchment); }
.panel .lead {
	font-family: var(--display);
	font-size: 1.3rem;
	line-height: 1.4;
	color: var(--parchment);
	margin-bottom: 0.6em;
}

.panel-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 0.35s var(--ease);
}
.panel-close::before,
.panel-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.1rem;
	height: 1px;
	margin-left: -0.55rem;
	background: var(--parchment);
	transform: rotate(45deg);
	transition: background 0.3s;
}
.panel-close::after { transform: rotate(-45deg); }
.panel-close:hover { transform: rotate(90deg); }
.panel-close:hover::before,
.panel-close:hover::after { background: var(--gold); }

/* Chi siamo: foto contenuta accanto al testo.
   Sempre ".panel .intro": la classe "intro" sulla pagina intera è quella dell'animazione d'apertura */
.panel .intro {
	display: grid;
	grid-template-columns: 13rem 1fr;
	gap: 1.6rem;
	align-items: start;
}
.panel-photo { margin: 0; overflow: hidden; border-radius: 3px; }
.panel-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 30%; }
.intro-text p:last-child { margin-bottom: 0; }

/* Galleria */
.gallery { position: relative; margin-top: 1.8rem; }
.gallery-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 10px) / 2);
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.shot {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	border-radius: 3px;
	overflow: hidden;
	background: rgba(243, 233, 216, 0.05);
	cursor: zoom-in;
	scroll-snap-align: start;
}
.shot img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.08);
	filter: brightness(0.82) saturate(0.95);
	transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), filter 0.5s;
}
.shot img.loaded { opacity: 1; transform: scale(1); }
.shot::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 120%, rgba(212, 180, 119, 0.28), transparent 60%);
	opacity: 0;
	transition: opacity 0.5s;
}
.shot:hover img.loaded,
.shot:focus-visible img.loaded { transform: scale(1.06); filter: brightness(1) saturate(1.05); }
.shot:hover::after { opacity: 1; }

.gallery-btn {
	position: absolute;
	top: calc(50% - 0.9rem);
	width: 2.6rem;
	height: 2.6rem;
	margin-top: -1.3rem;
	border: 0;
	border-radius: 50%;
	background: var(--glass-strong);
	color: var(--parchment);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.3s, background 0.3s;
}
.gallery-btn:hover { background: rgba(212, 180, 119, 0.3); }
.gallery-btn.prev { left: 8px; }
.gallery-btn.next { right: 8px; }
.gallery-btn:disabled { opacity: 0; pointer-events: none; }

.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 0.9rem; }
.gallery-dots span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--parchment-faint);
	transition: background 0.3s, transform 0.3s;
}
.gallery-dots span.on { background: var(--gold); transform: scale(1.4); }

/* Visualizzatore foto */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: grid;
	place-items: center;
	padding: max(3.5rem, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(3.5rem, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	background: rgba(15, 10, 12, 0.94);
	opacity: 0;
	transition: opacity 0.35s var(--ease);
}
.lightbox.active { opacity: 1; }
.lightbox-stage { margin: 0; display: grid; justify-items: center; gap: 0.8rem; }
.lightbox-stage img {
	max-width: min(100%, 1100px);
	max-height: calc(100vh - 9rem);
	max-height: calc(100svh - 9rem);
	border-radius: 3px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
	transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.lightbox-stage img.swap { opacity: 0; transform: scale(0.97); }
.lightbox figcaption {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	color: var(--parchment-faint);
	font-variant-numeric: tabular-nums;
}
.lightbox-btn {
	position: absolute;
	top: 50%;
	width: 3.2rem;
	height: 3.2rem;
	margin-top: -1.6rem;
	border: 0;
	background: transparent;
	color: var(--parchment);
	font-size: 2.6rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.3s, transform 0.3s var(--ease);
}
.lightbox-btn:hover { color: var(--gold); }
.lb-prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(8px, env(safe-area-inset-right, 0px)); }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
.lightbox-close { top: max(1rem, env(safe-area-inset-top, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); }

/* Riquadri del menù */
.tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
.tile {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 3px;
	text-decoration: none;
	color: var(--parchment);
}
.tile img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: brightness(0.75);
	transition: transform 0.9s var(--ease), filter 0.5s;
}
.tile:hover img { transform: scale(1.05); filter: brightness(0.6); }
.tile-wide { margin: 1.6rem 0 1rem; }
.tile-wide img { aspect-ratio: 21 / 8; }
.tile-label {
	position: absolute;
	inset: auto 0 0 0;
	display: grid;
	gap: 0.15rem;
	padding: 1.4rem 1.2rem 1rem;
	background: linear-gradient(transparent, rgba(27, 19, 23, 0.85));
}
.tile-title { font-family: var(--display); font-size: 1.4rem; line-height: 1.15; }
.tile-sub {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
}

/* Contenuti di Google (caricati solo con consenso) */
.embed {
	position: relative;
	border-radius: 3px;
	overflow: hidden;
	background: rgba(243, 233, 216, 0.06);
}
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.calendar { height: 440px; }
.calendar iframe { background: #fff; }
.map { height: 320px; }
.map iframe { filter: grayscale(0.2) contrast(1.05); }
.embed-consent {
	height: 100%;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 0.9rem;
	padding: 1.5rem;
	text-align: center;
}
.embed-consent p { margin: 0; font-size: 0.9rem; max-width: 30ch; }
.embed-accept,
.consent-btn {
	padding: 0.6rem 1.4rem;
	border: 1px solid rgba(212, 180, 119, 0.6);
	border-radius: 999px;
	background: transparent;
	color: var(--parchment);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
}
.embed-accept:hover,
.consent-btn:hover { background: var(--gold); color: var(--night); }

.map-link { margin: 0.5rem 0 0 !important; max-width: none !important; text-align: right; }
.map-link a { font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.map-link a:hover { color: var(--parchment); }

/* Calendario delle serate */
.cal { display: grid; gap: 1.4rem; margin-top: 1.2rem; }
.cal-mese { padding: 1rem 1.1rem 1.1rem; border-radius: 3px; background: rgba(243, 233, 216, 0.06); border: 1px solid rgba(212, 180, 119, 0.18); }
.cal-testa { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.panel .cal-titolo { margin: 0; font-family: var(--display); font-size: 1.25rem; color: var(--parchment); text-transform: capitalize; }
.cal-nav {
	width: 2.4rem; height: 2.4rem; border-radius: 50%;
	border: 1px solid rgba(212, 180, 119, 0.45); background: transparent; color: var(--gold);
	font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.cal-nav:hover:not(:disabled) { background: var(--gold); color: var(--night); }
.cal-nav:disabled { opacity: 0.25; cursor: default; }
.cal-griglia { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; text-align: center; font-variant-numeric: tabular-nums; }
.cal-sett { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment-faint); padding-bottom: 0.3rem; }
.cal-g {
	position: relative; aspect-ratio: 1; display: grid; place-items: center;
	width: min(100%, 2.5rem); justify-self: center;
	border: 0; border-radius: 50%; background: none; padding: 0;
	font: inherit; font-size: 0.92rem; color: var(--parchment-soft);
}
.cal-g.passato { color: var(--parchment-faint); opacity: 0.55; }
.cal-g.oggi { box-shadow: inset 0 0 0 1px var(--teal); color: var(--teal); }
.cal-g.serata {
	cursor: pointer; color: var(--night); font-weight: 700;
	background: var(--gold); transition: transform 0.2s, background 0.2s;
}
.cal-g.serata:hover { transform: scale(1.08); background: var(--parchment); }
.cal-g.serata.scelto { background: var(--parchment); box-shadow: 0 0 0 2px var(--gold); }

.cal-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.cal-lista li {
	display: grid; gap: 0.15rem; padding: 0.8rem 0.9rem;
	border-left: 2px solid rgba(212, 180, 119, 0.35);
	transition: background 0.4s, border-color 0.4s;
}
.cal-lista li.evidenzia { background: rgba(212, 180, 119, 0.12); border-left-color: var(--gold); }
.cal-lista time { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cal-ora { color: var(--parchment-faint); margin-left: 0.4rem; }
.cal-lista a { color: var(--parchment); text-decoration: none; font-family: var(--display); font-size: 1.2rem; transition: color 0.3s; justify-self: start; }
.cal-lista a::after { content: " PDF"; font-family: var(--body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); }
.cal-lista a:hover { color: var(--gold); font-style: var(--display-italic); }
.cal-lista small { color: var(--parchment-faint); font-size: 0.84rem; }
.cal-salva {
	justify-self: start; margin-top: 0.35rem; padding: 0.35rem 0.9rem;
	border: 1px solid rgba(212, 180, 119, 0.5); border-radius: 999px; background: transparent;
	color: var(--parchment-soft); font: 700 0.66rem var(--body); letter-spacing: 0.16em; text-transform: uppercase;
	cursor: pointer; transition: background 0.3s, color 0.3s;
}
.cal-salva:hover { background: var(--gold); color: var(--night); }
.cal-vuoto { font-style: var(--display-italic); }

/* Eventi */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.doc-list a {
	display: inline-flex;
	align-items: baseline;
	gap: 0.6rem;
	color: var(--parchment);
	text-decoration: none;
	font-family: var(--display);
	font-size: 1.2rem;
	transition: color 0.3s;
}
.doc-list a::after {
	content: "PDF";
	font-family: var(--body);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--gold);
}
.doc-list a:hover { color: var(--gold); font-style: var(--display-italic); }
.doc-list small { display: block; color: var(--parchment-faint); font-size: 0.84rem; }

.motto {
	margin: 2.2rem auto 0 !important;
	text-align: center;
	font-family: var(--display);
	font-style: var(--display-italic);
	font-size: 1.45rem;
	color: var(--parchment) !important;
}

/* Contatti */
.contact-cols {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.2rem 2rem;
	margin-bottom: 1.6rem;
}
address {
	font-style: normal;
	font-family: var(--display);
	font-size: 1.4rem;
	line-height: 1.35;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1rem; }
.contact-list span {
	min-width: 6rem;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--parchment-faint);
}
.contact-list a {
	color: var(--parchment);
	font-weight: 600;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
	word-break: break-word;
	transition: color 0.3s;
}
.contact-list a:hover { color: var(--gold); }
.contact-list .social { gap: 0.4rem; margin-top: 0.5rem; margin-left: -0.6rem; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; }
.social svg { width: 1.15rem; height: 1.15rem; fill: var(--parchment-soft); transition: fill 0.3s; }
.social a:hover svg { fill: var(--gold); }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 0.9rem; }
.hours th, .hours td { text-align: left; padding: 0.32rem 0.6rem; font-size: 0.95rem; }
.hours th { font-weight: 600; width: 34%; }
.hours .off { color: var(--parchment-faint); font-style: var(--display-italic); }
.hours tr.today th, .hours tr.today td:not(.off) { color: var(--teal); }
.hours tr.today th::after {
	content: "oggi";
	margin-left: 0.5rem;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.hours-note a { font-weight: 600; text-decoration: none; }

/* Piè di pagina */
.footer {
	text-align: center;
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	color: var(--parchment-faint);
	transition: opacity 0.45s;
}
.footer p { margin: 0.15rem 0; }
.footer a,
.footer button {
	color: var(--parchment-soft);
	background: none;
	border: 0;
	padding: 0;
	font-size: inherit;
	letter-spacing: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.footer a:hover, .footer button:hover { color: var(--gold); }
.is-open .footer { opacity: 0; pointer-events: none; }

/* Avviso cookie */
.consent {
	position: fixed;
	z-index: 70;
	left: max(16px, env(safe-area-inset-left, 0px));
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	max-width: 40rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem 1.4rem;
	padding: 1.1rem 1.3rem;
	background: var(--glass-strong);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--parchment-soft);
}
.consent p { flex: 1 1 18rem; margin: 0; }
.consent-actions { display: flex; gap: 0.6rem; }

/* Pagina privacy e cookie */
.policy {
	position: relative;
	z-index: 1;
	width: min(100%, 44rem);
	margin: 4vh auto;
	padding: 2.6rem 2.8rem 2.2rem;
	background: var(--glass-strong);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 4px;
}
.policy h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 0.4rem; }
.policy .updated { color: var(--parchment-faint); font-size: 0.85rem; margin-bottom: 1.6rem; }
.policy h2 { font-size: 1.3rem; font-style: var(--display-italic); color: var(--gold); margin: 1.7em 0 0.45em; }
.policy p, .policy li { color: var(--parchment-soft); max-width: 62ch; }
.policy p { margin: 0 0 0.7em; }
.policy ul { margin: 0 0 0.8em; padding-left: 1.2rem; }
.policy li { margin-bottom: 0.3em; }
.policy strong { color: var(--parchment); font-weight: 600; }
.policy a { word-break: break-word; }
.policy .back { display: inline-block; margin-bottom: 1.4rem; font-weight: 600; text-decoration: none; }

/* Tablet */
@media (max-width: 1024px) {
	.panel { width: min(100%, 40rem); padding: 2.6rem 2.4rem 2.2rem; }
	.panel .intro { grid-template-columns: 11rem 1fr; gap: 1.3rem; }
	.calendar { height: 420px; }
}

/* Mobile */
@media (max-width: 760px) {
	body { font-size: 0.97rem; }
	.wrapper { padding-block: 5vh 2.5vh; }
	.cover-logo { width: 100px; margin-bottom: 1.5rem; }
	.cover-eyebrow { font-size: 0.64rem; letter-spacing: 0.22em; }
	h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
	.cover-tagline { font-size: 1.05rem; max-width: 20rem; }
	.cover-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 0; margin-top: 2rem; width: min(100%, 20rem); }
	.cover-nav a { padding: 0.55rem 0.5rem; font-size: 1.3rem; }
	.cover-nav a + a::before { display: none; }

	.panels { padding-block: 0; padding-left: 0; padding-right: 0; }
	.panel {
		width: 100%;
		min-height: 100%;
		margin: 0;
		padding: calc(3.6rem + env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) calc(2.4rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
		border-radius: 0;
		background: var(--glass-strong);
	}
	/* La X resta sempre raggiungibile mentre si scorre */
	.panel .panel-close {
		position: sticky;
		z-index: 8;
		top: calc(0.6rem + env(safe-area-inset-top, 0px));
		display: block;
		margin: -3rem -0.6rem 0 auto;
		border-radius: 50%;
		background: var(--glass-strong);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}
	.panel h2 { font-size: 2rem; margin-bottom: 1.1rem; }
	.panel h3 { font-size: 1.25rem; margin-top: 1.6rem; }
	.panel .lead { font-size: 1.15rem; }

	.panel .intro { grid-template-columns: 1fr; gap: 1.1rem; }
	.panel-photo img { aspect-ratio: 2 / 1; object-position: 55% 25%; }

	.tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
	.tile img { aspect-ratio: 1 / 1; }
	.tile-label { padding: 1rem 0.8rem 0.75rem; }
	.tile-title { font-size: 1.15rem; }
	.tile-sub { font-size: 0.58rem; letter-spacing: 0.16em; }
	.tile-wide img { aspect-ratio: 2 / 1; }

	.gallery-track { grid-auto-columns: 78%; gap: 8px; }
	.gallery-btn { display: none; }
	.calendar { height: 380px; }
	.map { height: 260px; }
	.contact-cols { flex-direction: column; gap: 1rem; }
	.hours th, .hours td { padding: 0.3rem 0.3rem; font-size: 0.88rem; }
	.hours th { width: 30%; }
	.lightbox { padding-inline: 0; }
	.lightbox-stage img { border-radius: 0; max-height: calc(100dvh - 8rem); }
	.lightbox-btn { top: auto; bottom: max(0.5rem, env(safe-area-inset-bottom, 0px)); margin-top: 0; }
	.consent { padding: 1rem; gap: 0.8rem; }
	.consent-actions { width: 100%; }
	.consent-btn { flex: 1; }
	.policy { margin: 0 auto; padding: 2rem 1.25rem; border-radius: 0; }
}

/* Telefoni piccoli */
@media (max-width: 380px) {
	.cover-nav a { font-size: 1.15rem; }
	.tiles { grid-template-columns: 1fr; }
	.tile img { aspect-ratio: 16 / 9; }
	.contact-list span { min-width: 5.2rem; }
	.hours th, .hours td { font-size: 0.82rem; }
}

/* Telefono in orizzontale */
@media (max-height: 500px) and (orientation: landscape) {
	.wrapper { padding-block: 1.2rem 0.8rem; }
	.cover-logo { width: 64px; margin-bottom: 0.6rem; }
	.cover-eyebrow { margin-bottom: 0.4rem; }
	h1 { font-size: 2.4rem; }
	.cover-tagline { margin-top: 0.4rem; }
	.cover-nav { display: flex; width: auto; margin-top: 1rem; }
	.cover-nav a { padding: 0.3rem 0.9rem; font-size: 1.15rem; }
	.cover-call { margin-top: 0.8rem; }
	.lightbox-stage img { max-height: calc(100dvh - 3rem); }
	.lightbox-btn { top: 50%; bottom: auto; margin-top: -1.6rem; }
}

/* Schermi touch: niente effetti "hover" che restano attaccati dopo il tocco */
@media (hover: none) {
	.tile:hover img { transform: none; filter: brightness(0.75); }
	.shot:hover img.loaded { transform: none; filter: brightness(0.82) saturate(0.95); }
	.shot:hover::after { opacity: 0; }
	.cover-nav a:hover { color: var(--parchment); font-style: normal; }
	.cover-nav a:hover .nav-ticket { opacity: 0; animation: none; }
	.panel-close:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bg::before, .nav-ticket { animation: none !important; }
	.nav-ticket { transition: opacity 0.2s; }
	.cover, .panel, .bg::before, .footer, .lightbox, .lightbox-stage img, .shot img, .tile img { transition: none; }
}
