/* ==========================================================================
   Quintal do Love — main.css
   Tema escuro para as fotos se destacarem. Sem frameworks.
   ========================================================================== */

:root {
	/* Paleta grená: fundo #800000, superfícies derivadas dele, dourado para ações. */
	--qdl-bg: #800000;
	--qdl-surface: #6B0000;   /* cards */
	--qdl-band: #5C0000;      /* seção da galeria, barras */
	--qdl-deep: #460000;      /* rodapé */
	--qdl-line: rgba(255, 236, 228, .16);
	--qdl-line-2: rgba(255, 236, 228, .32);
	--qdl-text: #FFF4EC;
	--qdl-muted: #F4D9D2;
	--qdl-subtle: #E7BDB5;
	--qdl-gold: #FEC268;
	--qdl-gold-2: #FFD99A;
	--qdl-accent: #FEC268;    /* CTA principal (ingressos) */
	--qdl-rose: #FFB8C6;      /* "Love" manuscrito */
	--qdl-cream: #FFF4EC;     /* CTA secundário (galeria) */
	--qdl-ink: #4A0000;       /* texto sobre dourado/creme */
	--qdl-overlay: rgba(70, 0, 0, .86);
	--qdl-bar: rgba(92, 0, 0, .94);
	--qdl-photo-bg: #170404;  /* lightbox: quase preto para a foto brilhar */
	--qdl-paper: #FFF7F2;
	--qdl-paper-text: #3A0A0A;
	--qdl-paper-link: #800000;

	--qdl-f-display: "Fraunces", Georgia, "Times New Roman", serif;
	--qdl-w-display: 400;     /* Fraunces fina, casa com o traço da logo */
	--qdl-f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--qdl-f-script: "Yellowtail", "Brush Script MT", cursive;

	--qdl-radius: 24px;
	--qdl-radius-sm: 16px;
	--qdl-gutter: clamp(16px, 3vw, 32px);
	--qdl-max: 1280px;
	--qdl-header-h: 100px;
}

/* Superfícies acompanham a cor de fundo escolhida no Personalizar. */
@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--qdl-surface: color-mix(in srgb, var(--qdl-bg) 84%, #000);
		--qdl-band: color-mix(in srgb, var(--qdl-bg) 72%, #000);
		--qdl-deep: color-mix(in srgb, var(--qdl-bg) 55%, #000);
		--qdl-overlay: color-mix(in srgb, var(--qdl-deep) 86%, transparent);
		--qdl-bar: color-mix(in srgb, var(--qdl-band) 94%, transparent);
		--qdl-paper-link: var(--qdl-bg);
	}
}
::selection { background: var(--qdl-gold); color: var(--qdl-ink); }

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--qdl-bg);
	color: var(--qdl-text);
	font-family: var(--qdl-f-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--qdl-gold); text-decoration: none; }
a:hover { color: var(--qdl-gold-2); }
:focus-visible { outline: 3px solid var(--qdl-gold); outline-offset: 3px; border-radius: 6px; }
.btn--accent:focus-visible, .btn--gold:focus-visible, .tab[aria-selected="true"]:focus-visible, .pill[aria-current]:focus-visible { outline-color: var(--qdl-cream); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--qdl-gold); color: var(--qdl-ink); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--qdl-ink); }

.container { width: 100%; max-width: calc(var(--qdl-max) + var(--qdl-gutter) * 2); margin-inline: auto; padding-inline: var(--qdl-gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: 28px 40px; }
.center { display: flex; justify-content: center; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.muted { color: var(--qdl-muted); }
.small { font-size: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }

/* Tipografia --------------------------------------------------------------- */
.eyebrow { margin: 0; color: var(--qdl-gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.eyebrow--sm { letter-spacing: .12em; font-size: 13px; }
.label { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--qdl-subtle); }
.h2 { margin: 0; font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.01em; }
.h2--xl { font-size: clamp(40px, 5.4vw, 64px); }
.h3 { margin: 0; font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.h3 a { color: var(--qdl-text); }
.script { font-family: var(--qdl-f-script); font-weight: 400; color: var(--qdl-rose); letter-spacing: 0; }
.lead { font-size: 19px; color: var(--qdl-muted); margin: 0; }
.page-title { margin: 0; font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: clamp(48px, 7vw, 88px); line-height: .96; letter-spacing: -.01em; }
.page-title .script { font-size: 1.12em; }
.page-title--md { font-size: clamp(36px, 5vw, 72px); }
.link-strong { font-weight: 700; }

/* Botões ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--qdl-f-body); font-weight: 700; font-size: 16px; line-height: 1.1; text-align: center;
	cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 48px; padding: 0 20px; }
.btn--lg { min-height: 56px; padding: 0 30px; }
.btn--accent { background: var(--qdl-accent); color: var(--qdl-ink); }
.btn--accent:hover { color: var(--qdl-ink); filter: brightness(1.08); }
.btn--gold { background: var(--qdl-cream); color: var(--qdl-ink); }
.btn--gold:hover { color: var(--qdl-ink); background: #fff; }
.btn--outline-gold { border-color: var(--qdl-gold); color: var(--qdl-gold); background: transparent; }
.btn--outline-gold:hover { background: var(--qdl-gold); color: var(--qdl-ink); }
.btn--ghost { border: 1px solid var(--qdl-line-2); color: var(--qdl-text); background: transparent; font-weight: 500; }
.btn--ghost:hover { border-color: var(--qdl-subtle); color: var(--qdl-text); }
.btn--ghost-gold { color: var(--qdl-gold); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--qdl-line-2);
	background: transparent; color: var(--qdl-text); cursor: pointer;
}
.icon-btn:hover { color: var(--qdl-text); border-color: var(--qdl-subtle); }

/* Header ------------------------------------------------------------------ */
/* Fixo no topo; ao rolar (.is-scrolled, via main.js) fica mais baixo e ganha sombra. */
.site-header {
	position: sticky; top: 0; z-index: 30;
	border-bottom: 1px solid var(--qdl-line); background: var(--qdl-bar);
	-webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
	transition: box-shadow .2s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
.site-header__inner { display: flex; align-items: center; gap: 32px; padding-block: 14px; transition: padding .2s ease; }
.is-scrolled .site-header__inner { padding-block: 8px; }
.brand { flex: none; }
.brand .custom-logo-link { display: block; transition: opacity .15s ease; }
.brand .custom-logo-link:hover { opacity: .85; }
/* Logo em branco: o PNG é laranja com fundo transparente, o filtro só troca a cor. */
.brand .custom-logo { width: auto; max-height: 64px; filter: brightness(0) invert(1); transition: max-height .2s ease; }
.is-scrolled .brand .custom-logo { max-height: 48px; }
.brand-text { font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: 22px; color: var(--qdl-text); }
.site-nav { flex: 1 1 auto; display: flex; align-items: center; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 32px; font-weight: 500; font-size: 16px; letter-spacing: .01em; }
.site-nav .menu a { position: relative; color: var(--qdl-text); display: inline-block; padding-block: 10px; }
.site-nav .menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
	background: var(--qdl-gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .menu [aria-current="page"] { color: var(--qdl-gold); }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .menu [aria-current="page"]::after { transform: scaleX(1); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav__cta { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__actions .icon-btn { width: 44px; height: 44px; transition: border-color .15s ease, background-color .15s ease; }
.site-header__actions .icon-btn:hover { background: rgba(255, 244, 236, .08); }
.site-header__actions .btn { min-height: 44px; margin-left: 4px; }
/* Desktop: 3 colunas iguais nas pontas, menu no centro exato da página. */
@media (min-width: 901px) {
	.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
	.site-nav { justify-content: center; }
	.site-nav .menu { flex-wrap: nowrap; }
	.site-header__actions { justify-self: end; }
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.cart-count {
	position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--qdl-gold); color: var(--qdl-ink);
	font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.hide-sm { display: none; }
	.site-header__inner { gap: 16px; }
	/* Painel ocupa a tela abaixo do header; main.js trava a rolagem do body. */
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain;
		flex-direction: column; align-items: stretch; gap: 28px;
		background: var(--qdl-bg); border-top: 1px solid var(--qdl-line);
		padding: 12px var(--qdl-gutter) calc(32px + env(safe-area-inset-bottom));
		display: none;
	}
	.site-nav.is-open { display: flex; animation: qdl-nav-in .2s ease; }
	.site-nav .menu { flex-direction: column; gap: 0; font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: 28px; }
	.site-nav .menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--qdl-line); }
	.site-nav .menu a::after { display: none; }
	.site-nav .sub-menu a { padding-left: 16px; font-size: .75em; }
	.site-nav__cta { display: inline-flex; width: 100%; min-height: 56px; }
	.brand .custom-logo, .is-scrolled .brand .custom-logo { max-height: 48px; }
}
@keyframes qdl-nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.nav-open { overflow: hidden; }
body.nav-open .quickbar { display: none; } /* o painel já tem o CTA de ingressos */

/* Hero -------------------------------------------------------------------- */
.hero { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px); }
.hero--mosaic { grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title { margin: 0; font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: clamp(60px, 9vw, 112px); line-height: .92; letter-spacing: -.01em; }
.hero__title .script { font-size: 1.18em; display: inline-block; }
.hero__lead { margin: 0; max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--qdl-muted); }
/* Capa com um evento: texto + arte do evento (sem cortar o flyer). */
.hero--event { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero__event-title { margin: 0; font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: clamp(44px, 6vw, 84px); line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
.hero__when { margin: 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: var(--qdl-gold); }
.hero__when time::first-letter { text-transform: uppercase; }
.hero__price { margin: 0; font-size: 18px; color: var(--qdl-muted); }
.hero__price .amount { color: var(--qdl-text); font-weight: 700; }
.hero__cover { display: block; justify-self: end; width: 100%; max-width: 560px; border-radius: var(--qdl-radius); overflow: hidden; background: var(--qdl-surface); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transition: transform .25s ease; }
.hero__cover:hover { transform: translateY(-4px); }
.hero__cover-img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.hero--event.is-past .hero__cover-img { filter: saturate(.85); }
@media (max-width: 900px) {
	.hero--event { grid-template-columns: 1fr; }
	.hero--event .hero__cover { order: -1; justify-self: stretch; max-width: none; }
}
.hero__mosaic { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(150px, 18vw, 250px)); gap: 12px; color: var(--qdl-text); }
.hero__tile { width: 100%; height: 100%; object-fit: cover; border-radius: var(--qdl-radius); background: var(--qdl-surface); }
.hero__tile--1 { grid-row: span 2; }
.hero__caption { position: absolute; left: 16px; bottom: 16px; max-width: calc(50% - 32px); padding: 8px 14px; border-radius: 999px; background: var(--qdl-overlay); font-size: 14px; font-weight: 500; }
.hero__mosaic:hover .hero__caption { color: var(--qdl-gold); }

/* Seções ------------------------------------------------------------------ */
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.section__head .eyebrow { margin-bottom: 10px; }
#eventos { padding-top: 0; }
.band { background: var(--qdl-band); border-block: 1px solid var(--qdl-line); }

/* Eventos ----------------------------------------------------------------- */
.events { display: grid; gap: 24px; }
.event {
	display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	background: var(--qdl-surface); border: 1px solid var(--qdl-line); border-radius: 28px; overflow: hidden;
}
.event__media { display: block; background: var(--qdl-band); }
.event__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.event__body { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.event__date { margin: 0; color: var(--qdl-gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.event__title { margin: 0; font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.event__title a { color: var(--qdl-text); }
.event__title a:hover { color: var(--qdl-gold); }
.event__desc { margin: 0; }
.event__price { margin: 0; font-weight: 700; font-size: 20px; color: var(--qdl-gold); }
.event__price del { color: var(--qdl-subtle); font-weight: 400; }
.event__price ins { text-decoration: none; }
@media (max-width: 760px) { .event { grid-template-columns: 1fr; } .event__media img { aspect-ratio: 4 / 5; max-height: 460px; } }

.empty-card {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 24px;
	padding: clamp(24px, 4vw, 44px); border-radius: 28px; border: 1.5px dashed var(--qdl-line-2);
}
.empty-card p { margin: 0; }
.empty-card__title { font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 6px !important; }

/* Galeria na home ---------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tab {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px;
	border-radius: 999px; border: 1px solid var(--qdl-line-2); background: transparent; color: var(--qdl-text);
	font-weight: 500; font-size: 15px; cursor: pointer;
}
.tab__date { color: var(--qdl-subtle); font-size: 13px; }
.tab[aria-selected="true"] { background: var(--qdl-text); color: var(--qdl-ink); border-color: var(--qdl-text); font-weight: 700; }
.tab[aria-selected="true"] .tab__date { color: #8A3A3A; }

.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 200px); gap: 12px; margin-bottom: 32px; }
.mosaic[hidden] { display: none; }
.mosaic__tile { position: relative; display: block; overflow: hidden; border-radius: 20px; background: var(--qdl-surface); }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic__tile:hover img { transform: scale(1.04); }
.mosaic__tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__tile:nth-child(3) { grid-row: span 2; }
.mosaic__more {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
	border-radius: 20px; background: var(--qdl-band); border: 1.5px solid var(--qdl-gold); color: var(--qdl-text); font-weight: 500; padding: 12px;
}
.mosaic__more:hover { background: var(--qdl-deep); color: var(--qdl-text); }
.mosaic__num { font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: clamp(28px, 3vw, 40px); color: var(--qdl-gold); line-height: 1; }
@media (max-width: 700px) {
	.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; }
	.mosaic__tile:nth-child(3) { grid-row: span 1; }
	.mosaic__tile:nth-child(n+5) { display: none; }
	.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--qdl-gutter) * -1); padding-inline: var(--qdl-gutter); }
	.tabs::-webkit-scrollbar { display: none; }
	.tab { flex: none; white-space: nowrap; }
	.hero__caption { max-width: none; right: 16px; border-radius: 14px; }
}

/* Sobre + parceiros ---------------------------------------------------------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; background: var(--qdl-surface); }
.about__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.partners { padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 20px; }
.partners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 45%), 1fr)); gap: 12px; }
.partners__item { height: 96px; border-radius: 18px; border: 1px solid var(--qdl-line); background: var(--qdl-surface); display: flex; align-items: center; justify-content: center; padding: 16px; }
.partners__item a { display: contents; }
/* Logos nas cores originais: filtro em logos de terceiros sobre grená deixa as escuras ilegíveis. */
.partners__item img { max-height: 56px; width: auto; object-fit: contain; }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--qdl-deep); border-top: 1px solid var(--qdl-line); padding: 64px 0 40px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand p { margin: 0; }
.site-footer__name { font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: 22px; }
.footer__label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--qdl-subtle); }
.footer__list, .site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer nav a { color: var(--qdl-text); display: inline-block; padding: 6px 0; }
.site-footer nav a:hover { color: var(--qdl-gold); }
.site-footer__copy { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--qdl-line); color: var(--qdl-subtle); font-size: 14px; }

/* Barra rápida (mobile) ----------------------------------------------------- */
.quickbar { display: none; }
@media (max-width: 760px) {
	.quickbar {
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px;
		border-radius: 999px; background: var(--qdl-overlay); border: 1px solid var(--qdl-line-2);
		backdrop-filter: blur(8px);
	}
	.quickbar .btn { min-height: 48px; padding: 0 12px; }
	body { padding-bottom: 88px; }
	.qdl-paper-page .quickbar { display: none; }
	.qdl-paper-page { padding-bottom: 0; }
}

/* Páginas ------------------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding-block: clamp(40px, 6vw, 72px) 32px; }
.page-head > div { display: flex; flex-direction: column; gap: 12px; }
.page-head__aside { max-width: 380px; margin: 0; }
.page-head--simple { padding-top: 0; }
.page-head--gallery { padding-bottom: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; }

.prose { max-width: 760px; font-size: 18px; color: var(--qdl-muted); }
.prose h2, .prose h3, .prose h4 { color: var(--qdl-text); font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); line-height: 1.15; margin: 1.8em 0 .5em; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 23px; } .prose h4 { font-size: 19px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--qdl-radius-sm); }
.prose strong { color: var(--qdl-text); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 3px solid var(--qdl-gold); }
.entry-thumb img { border-radius: var(--qdl-radius); margin-bottom: 32px; }
.post-list { display: grid; gap: 28px; }
.post-item { padding-bottom: 28px; border-bottom: 1px solid var(--qdl-line); }
.nav-links { display: flex; gap: 10px; margin-top: 32px; }
.nav-links .page-numbers { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--qdl-line-2); color: var(--qdl-text); }
.nav-links .current { background: var(--qdl-text); color: var(--qdl-ink); }

/* Blocos do editor em páginas escuras */
.prose .wp-block-button__link { background: var(--qdl-accent); color: var(--qdl-ink); border-radius: 999px; text-decoration: none; font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border-bottom: 1px solid var(--qdl-line); padding: 10px 8px; text-align: left; }
.prose details { border: 1px solid var(--qdl-line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.prose summary { cursor: pointer; color: var(--qdl-text); font-weight: 700; }

/* Papel claro (carrinho/checkout/conta): formulários e iframes de pagamento */
.paper {
	background: var(--qdl-paper); color: var(--qdl-paper-text);
	border-radius: 28px; padding: clamp(20px, 4vw, 48px);
}
.paper a { color: var(--qdl-paper-link); text-decoration: underline; text-underline-offset: 3px; }
.paper a:hover { color: var(--qdl-ink); }

/* Galerias (listagem) --------------------------------------------------------- */
.featured-gallery__link { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; color: var(--qdl-text); }
.featured-gallery__cover { position: relative; min-height: clamp(360px, 42vw, 560px); border-radius: 28px; overflow: hidden; background: var(--qdl-surface); }
.featured-gallery__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-gallery__link:hover .featured-gallery__cover img { transform: scale(1.03); }
.featured-gallery__info {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
	padding: clamp(20px, 3vw, 32px); background: var(--qdl-overlay);
}
.featured-gallery__info .eyebrow { margin-bottom: 6px; }
.featured-gallery__side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }
.featured-gallery__side img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 22px; background: var(--qdl-surface); }
/* Altura fixa no desktop: miniaturas em retrato esticavam o bloco (capa com ~1900px). */
@media (min-width: 901px) { .featured-gallery__link { height: clamp(360px, 42vw, 560px); } .featured-gallery__side { min-height: 0; } }
@media (max-width: 800px) {
	.featured-gallery__link { grid-template-columns: 1fr; }
	.featured-gallery__side { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 110px; }
}
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; margin-top: 24px; }
.gallery-card { display: flex; flex-direction: column; gap: 14px; color: var(--qdl-text); }
.gallery-card:hover .gallery-card__title { color: var(--qdl-gold); }
.gallery-card__media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 140px); gap: 8px; }
.gallery-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: var(--qdl-surface); }
.gallery-card__media img:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-card__media img:only-child { grid-column: span 3; }
.gallery-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gallery-card__title { margin: 0; font-family: var(--qdl-f-display); font-weight: var(--qdl-w-display); font-size: 24px; line-height: 1.1; transition: color .15s; }
.gallery-card__date { color: var(--qdl-gold); font-weight: 700; white-space: nowrap; }

/* Galeria (edição) ---------------------------------------------------------- */
.gallery-bar { position: sticky; top: 0; z-index: 15; background: var(--qdl-bar); backdrop-filter: blur(8px); border-block: 1px solid var(--qdl-line); }
.gallery-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-block: 10px; }
.gallery-bar__count { margin: 0; font-size: 15px; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--qdl-line-2); color: var(--qdl-text); font-size: 15px; font-weight: 500; white-space: nowrap; }
.pill:hover { color: var(--qdl-text); border-color: var(--qdl-subtle); }
.pill[aria-current="page"] { background: var(--qdl-text); color: var(--qdl-ink); border-color: var(--qdl-text); font-weight: 700; }

/* Grade "justificada": mantém a ordem, sem saltos ao carregar mais */
.photos { --row: 260px; display: flex; flex-wrap: wrap; gap: 10px; }
.photos::after { content: ""; flex-grow: 999; }
.photo {
	position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--qdl-surface);
	flex: var(--r, 1.5) 1 calc(var(--r, 1.5) * var(--row)); aspect-ratio: var(--r, 1.5);
	cursor: zoom-in;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.photo:hover img { transform: scale(1.03); }
.photo.is-new { animation: qdl-in .45s ease both; }
@keyframes qdl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .photos { --row: 150px; gap: 6px; } .photo { border-radius: 10px; } }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 28px; text-align: center; }
.load-more p { margin: 0; }
.load-more .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Lightbox ------------------------------------------------------------------ */
.lightbox {
	width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: var(--qdl-photo-bg); color: var(--qdl-text); overscroll-behavior: contain;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: var(--qdl-photo-bg); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(12px, 2vw, 28px); }
.lightbox__meta { display: flex; flex-direction: column; min-width: 0; }
.lightbox__title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__count { font-size: 14px; }
.lightbox__actions { display: flex; gap: 8px; }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 28px); padding: 0 clamp(8px, 2vw, 28px); touch-action: pan-y; }
.lightbox__figure { margin: 0; flex: 1; height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; transition: opacity .2s; }
.lightbox__img.is-loading { opacity: .35; }
.lightbox__nav {
	flex: none; width: 56px; height: 56px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--qdl-cream); color: var(--qdl-ink); display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__hint { margin: 0; padding: 12px 16px 18px; text-align: center; font-size: 14px; }
@media (max-width: 700px) {
	.lightbox__nav { position: absolute; bottom: 64px; width: 52px; height: 52px; }
	.lightbox__nav[data-lb="prev"] { left: 16px; }
	.lightbox__nav[data-lb="next"] { right: 16px; }
	.lightbox__hint { display: none; }
	.lightbox__stage { padding: 0; }
	.lightbox__img { border-radius: 0; }
}
html.has-lightbox { overflow: hidden; }

.toast {
	position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 1000;
	padding: 12px 20px; border-radius: 999px; background: var(--qdl-gold); color: var(--qdl-ink); font-weight: 700;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* WP core ------------------------------------------------------------------- */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: 14px; color: var(--qdl-subtle); }
.entry-content--builder { max-width: none; }

/* Enquadramento das fotos de evento: recorte ancorado no terço de cima, onde
   ficam os rostos (fotos em retrato centralizadas cortavam as cabeças). */
.hero__tile, .mosaic__tile img, .about__media img,
.featured-gallery__cover img, .featured-gallery__side img,
.gallery-card__media img, .photo img { object-position: 50% 22%; }
.featured-gallery__cover img { object-position: 50% 10%; } /* capa larga: rosto fica mais no alto */
