/* ==========================================================================
   Antica Dolceria Artigianale — déco minimale
   Avorio · Oro · Inchiostro | Josefin Sans + Cormorant Garamond
   ========================================================================== */

/* --- 1. Token ------------------------------------------------------------ */

:root {
	--ivory: #faf7f0;
	--ivory-deep: #f2ece0;
	--ink: #1c1a17;
	--ink-soft: #4a443c;
	--gold: #bc8d4b;
	--gold-text: #8c6329;
	--gold-light: #d9c089;
	--rule: rgba(188, 141, 75, .32);

	--font-display: "Josefin Sans", "Futura", sans-serif;
	--font-body: "Cormorant Garamond", Georgia, serif;

	--container: 1180px;
	--gutter: 24px;
	--section-y: clamp(72px, 10vw, 128px);

	--fs-h1: clamp(2.4rem, 5.6vw, 4.6rem);
	--fs-h2: clamp(1.9rem, 4vw, 3rem);
	--fs-h3: clamp(1.4rem, 2.4vw, 1.9rem);
	--fs-body: clamp(1.05rem, 1.15vw, 1.2rem);

	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 50%;
	top: -100px;
	z-index: 999;
	transform: translateX(-50%);
	padding: 12px 22px;
	background: var(--ink);
	color: var(--ivory);
	font-family: var(--font-display);
	font-size: .78rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	transition: top .25s var(--ease);
}

.skip-link:focus { top: 12px; }

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

/* --- 3. Tipografia ------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .22em;
	line-height: 1.2;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: .18em; }
h4 { font-size: 1.05rem; letter-spacing: .2em; font-weight: 400; }

p + p { margin-top: 1.1em; }

.lead {
	font-size: clamp(1.25rem, 1.8vw, 1.55rem);
	font-style: italic;
	line-height: 1.6;
	color: var(--ink-soft);
}

strong { font-weight: 600; }

/* --- 4. Impalcatura ------------------------------------------------------ */

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

.container--wide { max-width: 1480px; }

section[id] { scroll-margin-top: 92px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(54px, 6vw, 80px); }
.section--ivory-deep { background: var(--ivory-deep); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--ivory); }

.center { text-align: center; }

/* --- 5. Componenti déco -------------------------------------------------- */

.eyebrow {
	display: block;
	font-family: var(--font-display);
	font-size: .72rem;
	font-weight: 400;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--gold-text);
	margin-bottom: 18px;
}

/* su fondo scuro o fotografico l'oro chiaro ha contrasto migliore */
.section--ink .eyebrow,
.page-head .eyebrow,
.hero .eyebrow { color: var(--gold-light); }

/* filetto oro con losanga centrale — sostituisce il doppio filetto nero */
.divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-block: 24px 30px;
}

.divider::before,
.divider::after {
	content: "";
	display: block;
	height: 1px;
	width: clamp(44px, 7vw, 86px);
	background: var(--gold);
	opacity: .6;
}

.divider i {
	display: block;
	width: 7px;
	height: 7px;
	border: 1px solid var(--gold);
	transform: rotate(45deg);
}

.divider--start { justify-content: flex-start; }
.divider--start::after { display: none; }

.divider--light::before,
.divider--light::after { background: var(--gold-light); opacity: .75; }
.divider--light i { border-color: var(--gold-light); }

/* cornice doppia sfalsata */
.frame { position: relative; display: block; }
.frame > img,
.frame > .frame__media { position: relative; z-index: 1; }

.frame::after {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	border: 1px solid var(--gold);
	z-index: 0;
	pointer-events: none;
}

.frame--left::after { inset: 18px 18px -18px -18px; }

/* bottoni */
.btn {
	display: inline-block;
	font-family: var(--font-display);
	font-size: .76rem;
	font-weight: 400;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ink);
	border: 1px solid var(--gold);
	padding: 15px 32px;
	transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.btn:hover,
.btn:focus-visible { background: var(--gold); color: var(--ink); }

.btn--light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--light:hover,
.btn--light:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }

.btn--gold { color: var(--gold-light); border-color: var(--gold); }
.btn--gold:hover,
.btn--gold:focus-visible { background: var(--gold); color: var(--ink); }

/* --- 6. Header ----------------------------------------------------------- */

.header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 90;
	padding-block: 18px;
	transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}

.header::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 1px;
	background: var(--rule);
	opacity: 0;
	transition: opacity .4s var(--ease);
}

.header.is-stuck {
	background: rgba(250, 247, 240, .94);
	backdrop-filter: blur(10px);
	padding-block: 10px;
}

.header.is-stuck::after { opacity: 1; }

/* a menu aperto l'header deve stare sopra l'overlay, altrimenti il
   pulsante di chiusura resta sepolto dal contesto di impilamento */
body.is-locked .header { z-index: 110; background: none; backdrop-filter: none; }
body.is-locked .header::after { opacity: 0; }

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.header__logo img {
	width: 190px;
	transition: width .4s var(--ease), filter .4s var(--ease);
}

.header.is-stuck .header__logo img,
body.is-locked .header__logo img {
	filter: brightness(.78) saturate(1.15);
}

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

.nav__list {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 34px);
}

.nav__list a {
	position: relative;
	font-family: var(--font-display);
	font-size: .74rem;
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #fff;
	padding-block: 6px;
	transition: color .3s var(--ease);
}

.header.is-stuck .nav__list a { color: var(--ink); }

.nav__list a::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .35s var(--ease);
}

.nav__list a:hover::after,
.nav__list a:focus-visible::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav__list .nav__cta {
	border: 1px solid rgba(255, 255, 255, .5);
	padding: 10px 20px;
}

.nav__list .nav__cta::after { display: none; }
.nav__list .nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.header.is-stuck .nav__list .nav__cta { border-color: var(--gold); }

/* toggle mobile */
.nav-toggle {
	display: none;
	width: 46px;
	height: 38px;
	position: relative;
	z-index: 110;
}

.nav-toggle span {
	position: absolute;
	left: 9px;
	right: 9px;
	height: 1px;
	background: #fff;
	transition: transform .35s var(--ease), opacity .25s var(--ease), background .3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

.header.is-stuck .nav-toggle span { background: var(--ink); }

.nav-toggle[aria-expanded="true"] span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 7. Overlay mobile --------------------------------------------------- */

.nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: var(--ivory);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 36px;
	padding: 100px 24px 48px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
	overflow-y: auto;
}

.nav-overlay.is-open { opacity: 1; visibility: visible; transform: none; }

.nav-overlay__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	text-align: center;
}

.nav-overlay__list a {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 5vw, 1.6rem);
	font-weight: 300;
	letter-spacing: .26em;
	text-transform: uppercase;
}

.nav-overlay__contacts {
	text-align: center;
	font-size: 1rem;
	line-height: 1.9;
	color: var(--ink-soft);
}

.nav-overlay__contacts a { border-bottom: 1px solid var(--rule); }

/* --- 8. Hero ------------------------------------------------------------- */

.hero {
	position: relative;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
}

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s var(--ease);
}

.hero__slide.is-active { opacity: 1; }

.hero__media {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	transform: scale(1.06);
	transition: transform 7s linear;
}

.hero__slide.is-active .hero__media { transform: scale(1); }

.hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 18, 16, .62) 0%, rgba(20, 18, 16, .3) 42%, rgba(20, 18, 16, .72) 100%);
}

.hero__caption {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #fff;
	padding-inline: var(--gutter);
}

.hero__caption .eyebrow { color: var(--gold-light); }

.hero__headline {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: var(--fs-h1);
	line-height: 1.2;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 6px;
	text-shadow: 0 2px 28px rgba(0, 0, 0, .35);
}

.hero__tagline {
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-style: italic;
	color: rgba(255, 255, 255, .9);
	margin-bottom: 34px;
}

.hero__slide .hero__caption > * {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.hero__slide.is-active .hero__caption > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__caption > *:nth-child(2) { transition-delay: .12s; }
.hero__slide.is-active .hero__caption > *:nth-child(3) { transition-delay: .2s; }
.hero__slide.is-active .hero__caption > *:nth-child(4) { transition-delay: .28s; }
.hero__slide.is-active .hero__caption > *:nth-child(5) { transition-delay: .36s; }

.hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 36px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 16px;
}

.hero__dots button {
	width: 10px;
	height: 10px;
	border: 1px solid rgba(255, 255, 255, .7);
	transform: rotate(45deg);
	transition: background .3s var(--ease), border-color .3s var(--ease);
}

.hero__dots button[aria-selected="true"] { background: var(--gold-light); border-color: var(--gold-light); }

/* --- 9. Tre valori ------------------------------------------------------- */

.values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.values__item {
	text-align: center;
	padding: 10px clamp(16px, 3vw, 42px);
}

.values__item + .values__item { border-left: 1px solid var(--rule); }

.values__icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 18px;
	color: var(--gold);
}

.values__item h2 { font-size: 1rem; letter-spacing: .24em; margin-bottom: 10px; }
.values__item p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin: 0; }

/* --- 10. Griglia a due colonne ------------------------------------------- */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 7vw, 96px);
	align-items: center;
}

.split--reverse .split__media { order: -1; }

.split__text .btn { margin-top: 32px; }

/* --- 11. Fascia logo ----------------------------------------------------- */

.emblem {
	position: relative;
	padding-block: clamp(90px, 13vw, 170px);
	background-position: center;
	background-size: cover;
	text-align: center;
}

.emblem::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(18, 16, 14, .62);
}

.emblem__inner {
	position: relative;
	z-index: 1;
	display: inline-block;
	padding: clamp(28px, 5vw, 52px) clamp(32px, 7vw, 86px);
	border: 1px solid rgba(217, 192, 137, .5);
	outline: 1px solid rgba(217, 192, 137, .22);
	outline-offset: 9px;
}

.emblem__inner img { width: min(420px, 62vw); margin-inline: auto; }

.emblem__claim {
	font-style: italic;
	color: rgba(250, 247, 240, .85);
	margin-top: 18px;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* --- 12. Prodotti -------------------------------------------------------- */

.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2vw, 28px);
	margin-top: clamp(44px, 5vw, 64px);
}

.product__img {
	position: relative;
	display: block;
	overflow: hidden;
}

.product img {
	width: 100%;
	aspect-ratio: 17 / 30;
	object-fit: cover;
	transition: transform .8s var(--ease);
}

.product__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(188, 141, 75, 0) 45%, rgba(28, 26, 23, .45));
	opacity: 0;
	transition: opacity .5s var(--ease);
}

.product:hover img { transform: scale(1.05); }
.product:hover .product__img::after { opacity: 1; }

.product figcaption {
	margin-top: 16px;
	font-family: var(--font-display);
	font-size: .76rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	text-align: center;
	color: var(--ink-soft);
}

/* --- 13. Orari ----------------------------------------------------------- */

.hours-panel {
	border: 1px solid rgba(217, 192, 137, .42);
	outline: 1px solid rgba(217, 192, 137, .18);
	outline-offset: 10px;
	padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 80px);
	text-align: center;
}

.hours {
	max-width: 520px;
	margin: 36px auto 0;
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.hours li {
	display: flex;
	align-items: baseline;
	padding-block: 12px;
}

.hours li + li { border-top: 1px solid rgba(217, 192, 137, .18); }

.hours__day {
	font-family: var(--font-display);
	font-size: .78rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--gold-light);
	white-space: nowrap;
}

.hours__dots {
	flex: 1;
	height: 1px;
	margin-inline: 14px;
	background-image: radial-gradient(circle, rgba(217, 192, 137, .6) 1px, transparent 1px);
	background-size: 6px 1px;
	background-repeat: repeat-x;
	transform: translateY(-5px);
}

.hours__time { white-space: nowrap; color: var(--ivory); }

.hours-panel__foot {
	margin-top: 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 32px;
	justify-content: center;
	align-items: center;
	color: rgba(250, 247, 240, .78);
}

/* --- 14. Rinfresco ------------------------------------------------------- */

.triptych {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	max-width: 430px;
}

.triptych img { width: 100%; object-fit: cover; }
.triptych > :nth-child(1) img,
.triptych > :nth-child(2) img { aspect-ratio: 61 / 129; }
.triptych > :nth-child(3) { grid-column: 1 / -1; }
.triptych > :nth-child(3) img { aspect-ratio: 470 / 84; }

/* --- 15. Vieni a trovarci ------------------------------------------------ */

.visit__details {
	margin-top: 28px;
	display: grid;
	gap: 18px;
}

.visit__row { display: flex; gap: 14px; align-items: flex-start; }

.visit__row dt {
	font-family: var(--font-display);
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold-text);
	min-width: 104px;
	padding-top: 6px;
}

.visit__row dd { margin: 0; }

.map {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--ivory-deep) center/cover no-repeat;
	overflow: hidden;
}

.map iframe { width: 100%; height: 100%; border: 0; }

.map__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	background: var(--ivory-deep);
	color: var(--ink-soft);
	text-align: center;
	padding: 24px;
}

.map__placeholder svg { width: 36px; height: 36px; color: var(--gold-text); }

/* --- 16. Footer ---------------------------------------------------------- */

.footer {
	background: var(--ink);
	color: rgba(250, 247, 240, .75);
	padding-block: clamp(64px, 8vw, 96px) 32px;
	text-align: center;
}

.footer__logo img { width: min(340px, 70vw); margin-inline: auto; }

.footer__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(28px, 4vw, 56px);
	margin-top: clamp(44px, 6vw, 68px);
}

.footer__cols > * + * { border-left: 1px solid rgba(217, 192, 137, .18); }

.footer h4 {
	color: var(--gold-light);
	font-size: .74rem;
	letter-spacing: .26em;
	margin-bottom: 14px;
}

.footer a:hover { color: var(--gold-light); }

.footer__social {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: clamp(40px, 5vw, 60px);
}

.footer__social a {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(217, 192, 137, .4);
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--gold-light);
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer__social svg { width: 16px; height: 16px; }

.footer__legal {
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid rgba(217, 192, 137, .14);
	font-family: var(--font-display);
	font-size: .66rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(250, 247, 240, .5);
}

.footer__legal a { border-bottom: 1px solid rgba(217, 192, 137, .35); }

/* scroll up */
.scroll-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 80;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--ink);
	color: var(--gold-light);
	border: 1px solid rgba(217, 192, 137, .4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}

.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top svg { width: 14px; height: 14px; }

/* --- 17. Intestazione pagine interne ------------------------------------- */

.page-head {
	position: relative;
	min-height: clamp(380px, 52vh, 520px);
	display: grid;
	place-items: center;
	text-align: center;
	background-position: center;
	background-size: cover;
	padding: 140px var(--gutter) 70px;
	color: #fff;
}

.page-head::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 16, 14, .7) 0%, rgba(18, 16, 14, .45) 50%, rgba(18, 16, 14, .72) 100%);
}

.page-head__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
	padding: clamp(26px, 4vw, 44px) clamp(22px, 5vw, 56px);
	border: 1px solid rgba(217, 192, 137, .38);
}

.page-head h1 { color: #fff; }
.page-head .eyebrow { color: var(--gold-light); }
.page-head p { color: rgba(255, 255, 255, .86); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.breadcrumb {
	font-family: var(--font-display);
	font-size: .68rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: 36px;
}

.breadcrumb a { border-bottom: 1px solid var(--rule); }
.breadcrumb span { color: var(--gold-text); margin-inline: 8px; }

/* --- 18. Galleria -------------------------------------------------------- */

.albums {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
	gap: clamp(28px, 4vw, 48px);
	justify-content: center;
}

.album figure { position: relative; overflow: hidden; }

.album img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .9s var(--ease);
}

.album figure::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(28, 26, 23, .18);
	transition: background .5s var(--ease);
}

.album:hover img { transform: scale(1.05); }
.album:hover figure::after { background: rgba(188, 141, 75, .28); }

.album__body { text-align: center; margin-top: 26px; }
.album__body h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.album__count {
	display: block;
	margin-top: 12px;
	font-family: var(--font-display);
	font-size: .7rem;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--gold-text);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(14px, 1.6vw, 24px);
}

.gallery-grid button {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	padding: 0;
}

.gallery-grid img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .8s var(--ease);
}

.gallery-grid button::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(188, 141, 75, 0);
	transition: background .4s var(--ease);
}

.gallery-grid button::before {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 12px;
	border: 1px solid rgba(255, 255, 255, .7);
	opacity: 0;
	transform: scale(.94);
	transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.gallery-grid button:hover img,
.gallery-grid button:focus-visible img { transform: scale(1.06); }
.gallery-grid button:hover::after,
.gallery-grid button:focus-visible::after { background: rgba(188, 141, 75, .3); }
.gallery-grid button:hover::before,
.gallery-grid button:focus-visible::before { opacity: 1; transform: none; }

/* --- 19. Lightbox -------------------------------------------------------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(16, 14, 12, .96);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 72px 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s var(--ease), visibility .35s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox img {
	max-width: min(1100px, 92vw);
	max-height: 82vh;
	width: auto;
	object-fit: contain;
}

.lightbox__btn {
	position: absolute;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	color: var(--gold-light);
	border: 1px solid rgba(217, 192, 137, .35);
	transition: background .3s var(--ease), color .3s var(--ease);
}

.lightbox__btn:hover { background: var(--gold); color: var(--ink); }
.lightbox__btn svg { width: 16px; height: 16px; }

.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

.lightbox__counter {
	position: absolute;
	bottom: 22px;
	left: 0;
	right: 0;
	text-align: center;
	font-family: var(--font-display);
	font-size: .72rem;
	letter-spacing: .24em;
	color: rgba(250, 247, 240, .6);
}

/* --- 20. Reveal ---------------------------------------------------------- */

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* --- 21. Responsive ------------------------------------------------------ */

@media (max-width: 1024px) {
	.products { grid-template-columns: repeat(2, 1fr); }
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.header__logo img { width: 160px; }
	.header.is-stuck .header__logo img { width: 134px; }
}

@media (max-width: 860px) {
	.nav { display: none; }
	.nav-toggle { display: block; }

	.split { grid-template-columns: 1fr; gap: 44px; }
	.split--reverse .split__media { order: 0; }
	.split__text { text-align: center; }
	.split__text .divider--start { justify-content: center; }
	.split__text .divider--start::after { display: block; }

	.triptych { margin-inline: auto; }

	.values { grid-template-columns: 1fr; gap: 36px; }
	.values__item + .values__item { border-left: 0; border-top: 1px solid var(--rule); padding-top: 34px; }

	.footer__cols { grid-template-columns: 1fr; }
	.footer__cols > * + * { border-left: 0; border-top: 1px solid rgba(217, 192, 137, .18); padding-top: 28px; }

	.frame::after { inset: 12px -12px -12px 12px; }
	.frame--left::after { inset: 12px 12px -12px -12px; }

	.visit__row { flex-direction: column; gap: 2px; align-items: center; }
	.visit__row dt { padding-top: 0; min-width: 0; }
}

@media (max-width: 560px) {
	:root { --gutter: 18px; }

	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.products { grid-template-columns: repeat(2, 1fr); }
	.hours li { flex-direction: column; align-items: center; gap: 4px; }
	.hours__dots { display: none; }
	.hero__dots { bottom: 24px; }
	.lightbox { padding: 64px 12px; }
	.lightbox__prev { left: 8px; }
	.lightbox__next { right: 8px; }
	.lightbox__btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
	.reveal { opacity: 1; transform: none; }
	.hero__media { transform: none; }
}
