/*
Theme Name: Messe Arte
Theme URI: https://messearte.com/
Author: binary-stars
Description: Custom trilingual (DE/EN/PT) theme for Messe Arte — trade shows, events and cultural productions. Layout and layout imagery live in the theme; all visible copy and content photography are edited in WordPress.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: messearte
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--ink:        #12100f;
	--ink-2:      #1b1715;
	--ink-3:      #272120;
	--ink-line:   #3a322e;

	--bone:       #f5f3f0;
	--bone-2:     #e9e5e0;
	--bone-line:  #d8d2cb;

	--gold:       #c9a227;
	--gold-soft:  #e2c979;
	--gold-deep:  #8a6f2a;

	--red:        #d01b2d;
	--red-deep:   #a5142a;

	--on-dark:    #ece8e4;
	--on-dark-mu: #a8a09a;
	--on-light:   #1d1a18;
	--on-light-mu:#655d57;

	--font-sans:  'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-script:'Great Vibes', 'Segoe Script', cursive;

	--wrap:       1220px;
	--wrap-narrow: 820px;
	--gutter:     clamp(1.25rem, 5vw, 3.5rem);
	--section-y:  clamp(4rem, 9vw, 8.5rem);

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

/* ==========================================================================
   2. Reset / base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--ink);
	color: var(--on-dark);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.72;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }

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

h1, h2, h3, h4 {
	font-weight: 600; line-height: 1.06; letter-spacing: -.02em; margin: 0 0 .5em;
	text-wrap: balance;
	/* German compounds ("Gesamtkoordination") overflow narrow screens otherwise. */
	overflow-wrap: break-word; hyphens: auto;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 999;
	background: var(--gold); color: var(--ink); padding: .7rem 1.2rem;
	font-weight: 600; font-size: .85rem; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

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

.section { padding-block: var(--section-y); position: relative; }

/* Pages without a hero start under the fixed header. */
body.has-solid-header #main > *:first-child { padding-top: calc(var(--section-y) + 84px); }
.section--dark  { background: var(--ink);   color: var(--on-dark); }
.section--dark2 { background: var(--ink-2); color: var(--on-dark); }
.section--light { background: var(--bone);  color: var(--on-light); }
.section--light .muted { color: var(--on-light-mu); }
.muted { color: var(--on-dark-mu); }

.section--light h1, .section--light h2, .section--light h3 { color: var(--on-light); }

/* Hairline: the gold rule that recurs through the brand deck. */
.rule {
	width: 84px; height: 2px; border: 0; margin: 0 0 1.9rem;
	background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 55%, transparent 100%);
}
.rule--red { background: linear-gradient(90deg, var(--red) 0%, var(--red-deep) 70%, transparent 100%); }
.rule--center { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); width: 120px; }

/* ==========================================================================
   4. Type
   ========================================================================== */

.eyebrow {
	font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
	color: var(--gold); margin: 0 0 1.1rem; line-height: 1.4;
}
.section--light .eyebrow { color: var(--gold-deep); }

.display {
	font-size: clamp(2.05rem, 6.2vw, 5.1rem);
	line-height: .98; letter-spacing: -.03em; text-transform: uppercase; font-weight: 600;
}
.h-xl { font-size: clamp(1.6rem, 4.2vw, 3.35rem); text-transform: uppercase; }
.h-lg { font-size: clamp(1.4rem, 3vw, 2.35rem); text-transform: uppercase; }
.h-md { font-size: clamp(1.15rem, 1.5vw, 1.4rem); text-transform: none; letter-spacing: -.01em; }

/* Second headline line carries the emphasis, deck-style. */
.line-accent { color: var(--red); display: block; }
.section--light .line-accent { color: var(--red-deep); }

.lead {
	font-size: clamp(1.02rem, 1.35vw, 1.2rem);
	line-height: 1.72; max-width: 62ch; color: var(--on-dark-mu);
}
.section--light .lead { color: var(--on-light-mu); }

.prose { max-width: 68ch; }
.prose > :last-child { margin-bottom: 0; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
	display: inline-flex; align-items: center; gap: .6rem;
	padding: .95rem 1.7rem;
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
	cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
	line-height: 1.2; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }
.btn--ghost { border-color: color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-soft); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.section--light .btn--ghost { border-color: color-mix(in srgb, var(--gold-deep) 50%, transparent); color: var(--gold-deep); }
.section--light .btn--ghost:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

/* Inline "more" link with an arrow that slides. */
.more {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--gold); text-decoration: none;
}
.section--light .more { color: var(--gold-deep); }
.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(5px); }

/* ==========================================================================
   6. Header
   ========================================================================== */

.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	background: transparent;
	transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header.is-stuck,
.site-header.is-open {
	background: color-mix(in srgb, var(--ink) 92%, transparent);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom-color: var(--ink-line);
}
body.has-solid-header .site-header { background: var(--ink); border-bottom-color: var(--ink-line); }

.header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	min-height: 84px;
}

/* Typographic wordmark — replaced automatically if a custom logo is uploaded. */
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; flex: none; }
.brand__messe {
	font-size: 1.42rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
	color: #fff; padding-left: .2em;
}
.brand__arte {
	font-family: var(--font-script); font-size: 1.85rem; color: var(--red);
	margin-top: -.34em; line-height: 1;
}
.brand__since {
	font-size: .44rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
	color: var(--on-dark-mu); margin-top: .22em;
}
.brand img { max-height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 2rem); }
.nav a { text-decoration: none; }

.menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0; position: relative; }
.menu > li > a {
	font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	color: var(--on-dark); padding: .5rem 0; display: inline-block; position: relative;
	white-space: nowrap;
}
.menu > li > a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: .1rem; height: 1px;
	background: var(--gold); transition: right .3s var(--ease);
}
.menu > li > a:hover::after,
.menu > li.current-menu-item > a::after,
.menu > li.current-menu-ancestor > a::after { right: 0; }

/* Sub-menu (Leistungen) */
.menu .sub-menu {
	position: absolute; top: calc(100% + .6rem); left: -1.1rem; min-width: 250px;
	background: var(--ink-2); border: 1px solid var(--ink-line); list-style: none;
	margin: 0; padding: .5rem 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
	box-shadow: 0 24px 48px rgba(0,0,0,.45);
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu .sub-menu a {
	display: block; padding: .62rem 1.4rem; font-size: .82rem; color: var(--on-dark-mu);
	letter-spacing: .04em; transition: color .2s var(--ease), background .2s var(--ease);
}
.menu .sub-menu a:hover { color: #fff; background: var(--ink-3); }

.lang-switch { display: flex; align-items: center; gap: .12rem; font-size: .72rem; font-weight: 600; letter-spacing: .1em; }
.lang-switch a { color: var(--on-dark-mu); padding: .3rem .42rem; text-decoration: none; transition: color .2s var(--ease); }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-current { color: var(--gold); }
.lang-switch span { color: var(--ink-line); }

.burger {
	display: none; background: none; border: 0; cursor: pointer; padding: .6rem; margin-right: -.6rem;
	color: var(--on-dark);
}
.burger span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger span + span { margin-top: 6px; }
.site-header.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1040px) {
	.burger { display: block; }
	.nav {
		position: fixed; inset: 84px 0 auto; display: block;
		background: var(--ink); border-bottom: 1px solid var(--ink-line);
		padding: 1.5rem var(--gutter) 2.5rem; max-height: calc(100dvh - 84px); overflow-y: auto;
		clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease);
	}
	.site-header.is-open .nav { clip-path: inset(0 0 0 0); }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu > li > a { padding: .85rem 0; font-size: .95rem; border-bottom: 1px solid var(--ink-line); }
	.menu > li > a::after { display: none; }
	.menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		background: transparent; border: 0; padding: .2rem 0 .6rem .9rem;
		border-bottom: 1px solid var(--ink-line);
	}
	.menu .sub-menu a { padding: .5rem 0; }
	.nav .btn { margin-top: 1.4rem; width: 100%; justify-content: center; }
	.lang-switch { margin-top: 1.3rem; justify-content: flex-start; font-size: .82rem; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero { position: relative; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero--home { min-height: 100svh; padding-top: 96px; }
.hero--page { min-height: min(74svh, 620px); padding-top: 150px; }

.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--ink-2); }
.hero__media img,
.hero__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	/* Darkened + partly desaturated so the wordmark and headline always win. */
	filter: grayscale(.42) contrast(1.05) brightness(.5);
}
.hero__slide { opacity: 0; transition: opacity 2.2s var(--ease); }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(18,16,15,.72) 0%, rgba(18,16,15,.30) 34%, rgba(18,16,15,.88) 100%),
		radial-gradient(120% 85% at 50% 40%, transparent 30%, rgba(18,16,15,.55) 100%);
}

.hero__inner { position: relative; width: 100%; padding-bottom: clamp(3rem, 7vw, 6rem); }

/* Large centred wordmark for the home hero — the "logo first" the client asked
   for, without a splash screen that would cost LCP and indexable content. */
.hero__brand { text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.hero__brand .brand__messe { font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: .17em; }
.hero__brand .brand__arte  { font-size: clamp(3.2rem, 10vw, 7.4rem); }
.hero__brand .brand__since { font-size: clamp(.5rem, 1vw, .68rem); letter-spacing: .42em; }
.hero__brand img { margin-inline: auto; max-height: clamp(90px, 17vw, 190px); }

.hero__headline { max-width: 20ch; }
.hero--home .hero__headline { margin-inline: auto; text-align: center; max-width: 24ch; }
.hero--home .hero__lead { margin-inline: auto; text-align: center; }
.hero--home .btn-row { justify-content: center; }

.hero__lead { color: #ded8d2; max-width: 58ch; margin-top: 1.6rem; }

.hero__trust {
	display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.4rem;
	font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mu);
}
.hero--home .hero__trust { justify-content: center; }
.hero__trust span { display: inline-flex; align-items: center; gap: .7rem; }
.hero__trust span + span::before { content: "•"; color: var(--gold); }

.scroll-cue {
	position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
	width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent);
	animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: .25; height: 30px; } 50% { opacity: 1; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ==========================================================================
   8. Statement / big number / strip
   ========================================================================== */

.statement { border: 1px solid var(--ink-line); padding: clamp(2rem, 5vw, 4rem); position: relative; background: var(--ink-2); }
.statement::before {
	content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
	background: linear-gradient(90deg, var(--gold), transparent 60%);
}
.section--light .statement { background: #fff; border-color: var(--bone-line); }

.chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; list-style: none; padding: 0; }
.chips li {
	margin: 0; padding: .55rem 1.1rem; border: 1px solid var(--ink-line);
	font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-soft);
}
.section--light .chips li { border-color: var(--bone-line); color: var(--gold-deep); }

.bignum { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.bignum__figure {
	font-size: clamp(5rem, 15vw, 11rem); font-weight: 700; line-height: .8; letter-spacing: -.05em;
	color: transparent; -webkit-text-stroke: 2px var(--gold); text-stroke: 2px var(--gold);
}
@media (max-width: 760px) { .bignum { grid-template-columns: 1fr; } }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.strip__item { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.3rem); }
.section--light .strip { background: var(--bone-line); border-color: var(--bone-line); }
.section--light .strip__item { background: var(--bone); }
.strip__item strong { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; font-weight: 600; }
.section--light .strip__item strong { color: var(--gold-deep); }

/* ==========================================================================
   9. Tiles & cards
   ========================================================================== */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }

.tile {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: clamp(360px, 42vw, 470px); padding: clamp(1.6rem, 3vw, 2.4rem);
	overflow: hidden; text-decoration: none; color: var(--on-dark); background: var(--ink-2);
	border: 1px solid var(--ink-line);
}
.tile__img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(.25) brightness(.78); transition: transform .8s var(--ease), filter .6s var(--ease);
}
.tile:hover .tile__img { transform: scale(1.06); filter: grayscale(0) brightness(.86); }
.tile::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(18,16,15,.05) 0%, rgba(18,16,15,.22) 38%, rgba(18,16,15,.66) 62%, rgba(18,16,15,.95) 100%);
}
/* Lift the text above the photo and its scrim — but not the photo itself,
   which stays absolutely positioned to fill the tile. */
.tile > :not(.tile__img) { position: relative; z-index: 1; }
.tile h3 { color: #fff; }
.tile p { color: #cdc6c0; font-size: .95rem; margin-bottom: 1.1rem; }
.tile .more { color: var(--gold-soft); }

/* Hairline grid. Borders live on the cards (collapsed with negative margins)
   rather than on the container, so a part-filled last row leaves no empty
   boxes hanging in the grid. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
	background: var(--ink); padding: clamp(1.5rem, 2.6vw, 2.2rem); display: flex; flex-direction: column;
	text-decoration: none; color: inherit; transition: background .3s var(--ease);
	min-height: 100%; border: 1px solid var(--ink-line); margin: 0 -1px -1px 0;
}
a.card:hover { background: var(--ink-2); }
.section--light .card { background: var(--bone); border-color: var(--bone-line); }
.section--light a.card:hover { background: #fff; }

.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 1.3rem; filter: grayscale(.25); transition: filter .4s var(--ease); }
a.card:hover .card__img { filter: grayscale(0); }
.card__no { font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: var(--gold); margin-bottom: .8rem; }
.section--light .card__no { color: var(--gold-deep); }
.card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .7rem; }
.card p { font-size: .94rem; color: var(--on-dark-mu); }
.section--light .card p { color: var(--on-light-mu); }
.card .more { margin-top: auto; padding-top: 1.2rem; }

/* ==========================================================================
   10. Accordion, lists, steps
   ========================================================================== */

.acc { border-top: 1px solid var(--ink-line); }
.section--light .acc { border-top-color: var(--bone-line); }
.acc__item { border-bottom: 1px solid var(--ink-line); }
.section--light .acc__item { border-bottom-color: var(--bone-line); }
.acc__btn {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	background: none; border: 0; cursor: pointer; text-align: left; color: inherit;
	font-family: inherit; font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 600; letter-spacing: -.01em;
	padding: 1.35rem 0; line-height: 1.3;
}
.acc__btn:hover { color: var(--gold); }
.section--light .acc__btn:hover { color: var(--gold-deep); }
.acc__icon { position: relative; flex: none; width: 16px; height: 16px; }
.acc__icon::before, .acc__icon::after {
	content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: var(--gold);
	transition: transform .3s var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 1.4rem; color: var(--on-dark-mu); max-width: 74ch; }
.section--light .acc__panel p { color: var(--on-light-mu); }
@media (prefers-reduced-motion: reduce) { .acc__panel { transition: none; } }

.tick-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 700px) { .tick-list { columns: 1; } }
.tick-list li {
	break-inside: avoid; padding: .78rem 0 .78rem 1.9rem; position: relative;
	border-bottom: 1px solid var(--ink-line); margin: 0;
}
.section--light .tick-list li { border-bottom-color: var(--bone-line); }
.tick-list li::before {
	content: ""; position: absolute; left: 0; top: 1.42rem; width: 9px; height: 1.5px; background: var(--gold);
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem); counter-reset: step; }
.step { position: relative; padding-top: 2.2rem; border-top: 1px solid var(--ink-line); }
.section--light .step { border-top-color: var(--bone-line); }
.step::before {
	content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 2px; background: var(--red);
}
.step__no { font-size: .74rem; font-weight: 600; letter-spacing: .2em; color: var(--gold); margin-bottom: .7rem; }
.section--light .step__no { color: var(--gold-deep); }
.step h3 { font-size: 1.02rem; text-transform: uppercase; }
.step p { font-size: .93rem; color: var(--on-dark-mu); }
.section--light .step p { color: var(--on-light-mu); }

/* ==========================================================================
   11. Carousel + lightbox
   ========================================================================== */

.carousel { position: relative; }
.carousel__track {
	display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none; padding-bottom: .5rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
	flex: 0 0 clamp(280px, 62vw, 620px); scroll-snap-align: center;
	position: relative; border: 0; padding: 0; background: none; cursor: zoom-in;
}
.carousel__item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; filter: grayscale(.2); transition: filter .4s var(--ease); }
.carousel__item:hover img { filter: grayscale(0); }
.carousel__cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.2rem .9rem; text-align: left;
	font-size: .8rem; color: #e6e0da; letter-spacing: .04em;
	background: linear-gradient(transparent, rgba(18,16,15,.85));
}
.carousel__nav { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.4rem; }
.carousel__btn {
	width: 46px; height: 46px; border: 1px solid var(--ink-line); background: transparent; color: inherit;
	cursor: pointer; font-size: 1.1rem; line-height: 1; transition: border-color .25s var(--ease), background .25s var(--ease);
}
.carousel__btn:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.section--light .carousel__btn { border-color: var(--bone-line); }
.carousel__dots { display: flex; gap: .45rem; align-items: center; margin-right: auto; }
.carousel__dot { width: 26px; height: 2px; background: var(--ink-line); border: 0; padding: 0; cursor: pointer; transition: background .25s var(--ease); }
.carousel__dot.is-active { background: var(--gold); }
.section--light .carousel__dot { background: var(--bone-line); }
.section--light .carousel__dot.is-active { background: var(--gold-deep); }

.lightbox {
	position: fixed; inset: 0; z-index: 200; background: rgba(10,9,8,.95);
	display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
	opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84svh; width: auto; object-fit: contain; }
.lightbox__cap { color: var(--on-dark-mu); font-size: .85rem; margin-top: 1rem; text-align: center; }
.lightbox__close, .lightbox__prev, .lightbox__next {
	position: absolute; background: none; border: 1px solid var(--ink-line); color: #fff;
	width: 48px; height: 48px; cursor: pointer; font-size: 1.2rem; line-height: 1;
}
.lightbox__close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lightbox__prev { left: clamp(.5rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(.5rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lightbox button:hover { border-color: var(--gold); }

/* ==========================================================================
   12. Contact + footer
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.contact-card { background: var(--ink-2); padding: clamp(1.6rem, 3vw, 2.4rem); }
.contact-card strong { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; font-weight: 600; }
.contact-card a, .contact-card address {
	font-style: normal; font-size: clamp(1rem, 1.6vw, 1.24rem); font-weight: 500; color: #fff;
	text-decoration: none; letter-spacing: -.01em; line-height: 1.5; display: block;
}
.contact-card a:hover { color: var(--gold-soft); }

.site-footer { background: var(--ink-2); border-top: 1px solid var(--ink-line); padding-block: clamp(3.5rem, 6vw, 5.5rem) 0; }
.footer-grid {
	display: grid; gap: clamp(2rem, 4vw, 3.5rem);
	grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.footer-about p { font-size: .93rem; color: var(--on-dark-mu); max-width: 42ch; }
/* The slogan is set in caps like the brand graphics; the script face is
   reserved for "Arte" in the wordmark, where it stays legible. */
.footer-slogan {
	font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold); margin-top: 1.4rem; line-height: 1.6;
}
.footer-col h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .62rem; }
.footer-col a { font-size: .92rem; color: var(--on-dark-mu); text-decoration: none; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: .8rem; margin-top: 1.1rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink-line); color: var(--on-dark-mu); transition: border-color .2s var(--ease), color .2s var(--ease); }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
	margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--ink-line);
	padding-block: 1.6rem 2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.8rem;
	align-items: center; justify-content: space-between;
	font-size: .8rem; color: var(--on-dark-mu);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   13. Editorial content (legal pages, WP editor output)
   ========================================================================== */

.entry-content { max-width: 76ch; }
.entry-content h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); text-transform: none; margin-top: 2.6rem; }
.entry-content h3 { font-size: 1.08rem; text-transform: none; margin-top: 1.9rem; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content a { color: var(--gold-deep); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.6rem; font-size: .93rem; }
.entry-content th, .entry-content td { text-align: left; padding: .8rem 1rem; border: 1px solid var(--bone-line); }
.entry-content th { background: var(--bone-2); font-weight: 600; }
.entry-content img { margin-block: 1.6rem; }

/* ==========================================================================
   14. Reveal on scroll (subtle; disabled for reduced motion)
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
