/* =============================================================
   Festival Na Minha Casa — folha de estilo principal do tema
   Recria o design existente (antes feito em Elementor) com CSS
   simples, e acrescenta os separadores de Edições.
   ============================================================= */

@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/raleway-700.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/roboto-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
	--font-heading: "Raleway", Arial, Helvetica, sans-serif;
	--font-body: "Inter", Arial, Helvetica, sans-serif;
	--font-roboto: "Roboto", Arial, Helvetica, sans-serif;

	--content-max-width: 1050px;
	--section-padding-y: 100px;
	--section-padding-x: 40px;
}

@media (max-width: 1024px) {
	:root {
		--content-max-width: 820px;
		--section-padding-y: 70px;
		--section-padding-x: 32px;
	}
}

@media (max-width: 767px) {
	:root {
		--content-max-width: 100%;
		--section-padding-y: 50px;
		--section-padding-x: 20px;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font-body);
	color: #7A7A7A;
	background: #ffffff;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #000;
	color: #fff;
	padding: 8px 16px;
	z-index: 10000;
}
.skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* =============================================================
   Cabeçalho
   ============================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 80px;
	padding: 0 24px;
	background: #ffffff;
	border-bottom: 1px solid #000000;
}

.site-header__logo img {
	display: block;
	width: 140px;
	height: auto;
}

@media (max-width: 1024px) {
	.site-header {
		min-height: 90px;
		padding: 0 16px;
	}
	.site-header__logo img {
		width: 140px;
	}
}

@media (max-width: 767px) {
	.site-header {
		min-height: 10vh;
		padding: 10px 12px;
		flex-wrap: wrap;
		gap: 8px;
	}
	.site-header__logo img {
		width: 87px;
	}
}

/* =============================================================
   Separadores de Edições — vivem dentro da barra do cabeçalho, no
   lugar onde antes estava o botão de bilhetes.
   ============================================================= */

.editions-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.editions-tab {
	font-family: var(--font-roboto);
	font-weight: 600;
	font-size: 14px;
	color: #292D2E;
	background: #F0F0EE;
	border: none;
	border-radius: 5px;
	padding: 8px 18px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.editions-tab:hover {
	background: #e2e2de;
}
.editions-tab.is-active {
	background: #021F59;
	color: #ffffff;
}

@media (max-width: 767px) {
	.editions-tab {
		font-size: 12px;
		padding: 6px 14px;
	}
}

.editions-panel {
	display: none;
}
.editions-panel.is-active {
	display: block;
}

/* Texto escrito normalmente na caixa de conteúdo do artigo "Edição"
   (título/negrito da barra de ferramentas, sem precisar de HTML) —
   fica automaticamente com o estilo do site. */
/* ".edition-body" nunca tem padding ou largura máxima próprios: cada
   secção (".edition-intro", ".edition-roundtable", etc.) já trata do
   seu próprio espaço por cima/baixo e por dentro (na "__inner") — dar
   também padding aqui só criava uma faixa em branco a mais, entre
   secções, sem seres tu a controlá-la. A largura máxima + padding
   lateral aplicam-se só ao texto solto (h2/h3/p escritos diretamente,
   sem estarem dentro de nenhuma secção) através do seletor "> h2/h3/p"
   abaixo. */
.edition-body > h2,
.edition-body > h3,
.edition-body > p {
	max-width: var(--content-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--section-padding-x);
	padding-right: var(--section-padding-x);
	box-sizing: border-box;
}
.edition-body h2 {
	margin-top: 0;
	margin-bottom: 20px;
	text-align: left;
	font-family: var(--font-heading);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	color: #021F59;
}
.edition-body h3 {
	margin-top: 32px;
	margin-bottom: 12px;
	font-family: var(--font-roboto);
	font-size: 24px;
	font-weight: 600;
	color: #021F59;
}
.edition-body p {
	margin-top: 0;
	margin-bottom: 20px;
	font-family: var(--font-body);
	font-size: 19px;
	line-height: 1.7;
	color: #3a3a3a;
}
.edition-body em {
	font-style: italic;
}
.edition-body strong {
	font-weight: 700;
}
.edition-body a {
	color: #842A70;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.edition-body h2 {
		font-size: 30px;
	}
	.edition-body h3 {
		font-size: 20px;
	}
	.edition-body p {
		font-size: 17px;
	}
}

/* =============================================================
   Edição — hero (cartaz)
   ============================================================= */

/* A imagem vem da "Imagem Destacada" do artigo — funciona tanto para
   um cartaz largo como para um vertical, sem precisar de nenhuma
   variante especial: a imagem mantém sempre a sua proporção original,
   nunca é cortada nem esticada. Largura sempre 100% (nunca sobra
   espaço nas laterais), altura proporcional à imagem. Uma div vazia
   (sem Imagem Destacada válida) fica com 0 de altura, em vez de
   reservar o ecrã todo sem nada lá dentro. */
.edition-hero {
	width: 100%;
	overflow: hidden;
}
.edition-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* =============================================================
   Edição — introdução (fundo em gradiente)
   ============================================================= */

/* Truque de "full bleed": a secção ocupa sempre a largura toda do
   ecrã, mesmo estando dentro de ".edition-body" (que já não tem
   largura máxima nenhuma, mas isto garante o mesmo mais adiante se
   algum dia houver outro contentor com largura limitada por cima). O
   padding lateral do conteúdo vive só na "__inner" de cada secção. */
.edition-intro,
.edition-concerts,
.edition-roundtable,
.edition-gallery {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.edition-intro {
	padding: var(--section-padding-y) 0;
	background: radial-gradient(at center center, #A6327D 0%, #3D0C32 100%);
}

.edition-intro__inner {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 var(--section-padding-x);
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Os seletores aqui usam ".edition-intro __x" (secção + elemento) em
   vez de só ".edition-intro__x" de propósito: o conteúdo desta secção
   vive dentro de ".edition-body" (a caixa de texto livre do artigo), e
   ".edition-body h2/p" (mais específico, por juntar classe + tag) senão
   ganhava sempre a esta cor, ficando o texto escuro ilegível em cima do
   fundo em gradiente. */
.edition-intro .edition-intro__title {
	margin: 0;
	text-align: left;
	font-family: var(--font-heading);
	font-size: 60px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.5px;
	color: #ffffff;
}

.edition-intro .edition-intro__text {
	font-family: var(--font-body);
	font-size: 22px;
	line-height: 1.6;
	color: #ffffff;
}
.edition-intro .edition-intro__text p {
	margin: 0 0 32px;
	color: #ffffff;
}
.edition-intro .edition-intro__text a {
	color: #F7F6F4;
}

@media (max-width: 1024px) {
	.edition-intro .edition-intro__title {
		font-size: 40px;
	}
	.edition-intro .edition-intro__text {
		font-size: 24px;
	}
}

@media (max-width: 767px) {
	.edition-intro .edition-intro__title {
		font-size: 25px;
		line-height: 1.3;
	}
	.edition-intro .edition-intro__text {
		font-size: 20px;
	}
}

/* =============================================================
   Edição — Concertos
   ============================================================= */

.edition-concerts {
	padding: var(--section-padding-y) 0;
	background: #ffffff;
}

.edition-concerts__inner {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 var(--section-padding-x);
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.edition-concerts .edition-concerts__title {
	margin: 0;
	text-align: center;
	font-family: var(--font-heading);
	font-size: 72px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.5px;
	color: #021F59;
}

.concerts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 1fr;
	gap: 20px;
}

.concerts-grid a {
	display: block;
	border-radius: 5px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.concerts-grid a:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.concerts-grid img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 5px;
}

@media (max-width: 1024px) {
	.edition-concerts .edition-concerts__title {
		font-size: 40px;
	}
	.concerts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.edition-concerts .edition-concerts__title {
		font-size: 25px;
		line-height: 1.3;
	}
	.concerts-grid {
		grid-template-columns: 1fr;
	}
}

/* =============================================================
   Edição — Mesa-redonda / Notas biográficas
   ============================================================= */

.edition-roundtable {
	padding: var(--section-padding-y) 0;
	background: radial-gradient(at center center, #3E608C 0%, #021F59 100%);
}

.edition-roundtable__inner {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 var(--section-padding-x);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
}

.edition-roundtable .edition-roundtable__title {
	margin: 0;
	text-align: left;
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.5px;
	color: #ffffff;
}

.edition-roundtable .edition-roundtable__text {
	font-family: var(--font-body);
	font-size: 28px;
	line-height: 1.6;
	color: #ffffff;
}
.edition-roundtable .edition-roundtable__text p {
	margin: 0 0 32px;
	color: #ffffff;
}

.edition-roundtable .edition-roundtable__subtitle {
	margin: 0;
	font-family: var(--font-roboto);
	font-size: 24px;
	font-weight: 600;
	color: #ffffff;
}

.bios-grid {
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: 100%;
}

.edition-roundtable .bio-card__title {
	margin: 0 0 8px;
	font-family: var(--font-roboto);
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
}

.edition-roundtable .bio-card__text {
	font-family: var(--font-roboto);
	font-size: 14px;
	line-height: 1.6;
	color: #ffffff;
}
.edition-roundtable .bio-card__text p {
	margin: 0 0 12px;
	color: #ffffff;
}

@media (max-width: 1024px) {
	.edition-roundtable .edition-roundtable__title {
		font-size: 40px;
	}
	.edition-roundtable .edition-roundtable__text {
		font-size: 24px;
	}
}

@media (max-width: 767px) {
	.edition-roundtable .edition-roundtable__title {
		font-size: 25px;
		line-height: 1.3;
	}
	.edition-roundtable .edition-roundtable__text {
		font-size: 20px;
	}
}

/* =============================================================
   Edição — Galeria (usada pela 1ª Edição)
   ============================================================= */

.edition-gallery {
	padding: var(--section-padding-y) 0;
	background: #ffffff;
}

.edition-gallery__inner {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 var(--section-padding-x);
}

.edition-gallery .edition-gallery__title {
	margin: 0 0 30px;
	text-align: center;
	font-family: var(--font-heading);
	font-size: 72px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.5px;
	color: #021F59;
}

.gallery-grid {
	columns: 3;
	column-gap: 19px;
	margin: 30px 0;
}

@media (max-width: 1024px) {
	.gallery-grid {
		columns: 2;
	}
}

.gallery-grid a {
	display: block;
	margin-bottom: 19px;
	break-inside: avoid;
	position: relative;
	overflow: hidden;
	cursor: zoom-in;
}

.gallery-grid img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.35s ease;
}

.gallery-grid a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.gallery-grid a:hover::after {
	opacity: 1;
}
.gallery-grid a:hover img {
	transform: scale(1.04);
}

@media (max-width: 1024px) {
	.edition-gallery .edition-gallery__title {
		font-size: 40px;
	}
}

@media (max-width: 767px) {
	.edition-gallery .edition-gallery__title {
		font-size: 25px;
		line-height: 1.3;
	}
	.gallery-grid {
		columns: 1;
	}
	.festival-concerts-grid {
		columns: 1;
	}
}

/* Grelha do shortcode [festival_concerts] — igual à galeria, mas cada
   imagem pode ter o seu próprio link (ex.: bilhética) e mostra o
   título por baixo. Nome próprio ("festival-concerts-grid") para não
   colidir com ".concerts-grid" da secção "Edição — Concertos" acima,
   que usa um layout diferente (grid fixo em vez de colunas). */
.festival-concerts-grid {
	columns: 3;
	column-gap: 19px;
	margin: 30px 0;
}
@media (max-width: 1024px) {
	.festival-concerts-grid {
		columns: 2;
	}
}
.festival-concerts-grid a {
	display: block;
	margin-bottom: 19px;
	break-inside: avoid;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}
.festival-concerts-grid img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.35s ease;
}
.festival-concerts-grid a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.festival-concerts-grid a:hover::after {
	opacity: 1;
}
.festival-concerts-grid a:hover img {
	transform: scale(1.04);
}
.festival-concert-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 10px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
	color: #fff;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
}

/* Lightbox simples para a galeria */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}
.lightbox.is-open {
	display: flex;
}
.lightbox__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}
.lightbox__img {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border: none;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	padding: 10px 16px;
	border-radius: 999px;
}
.lightbox__close {
	top: 20px;
	right: 20px;
}
.lightbox__prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}
.lightbox__next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* =============================================================
   Rodapé
   ============================================================= */

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 140px;
	padding: var(--section-padding-y) var(--section-padding-x);
	background: #ffffff;
	border-top: 1px solid #7A7A7A;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}
.site-footer__brand img {
	width: 160px;
	height: auto;
}

.site-footer__social {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #F0F0EE;
	color: #292D2E;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.site-footer__social svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.site-footer__social a:hover {
	background: #277877;
	color: #ffffff;
}

.site-footer__contacts {
	max-width: 360px;
}
.site-footer__contacts h3 {
	margin: 0 0 24px;
	font-family: var(--font-roboto);
	font-size: 36px;
	font-weight: 700;
	color: #292D2E;
}
.site-footer__contacts p {
	margin: 0 0 20px;
	font-family: var(--font-body);
	font-size: 20px;
	line-height: 1.6;
	color: #7A7A7A;
}
.site-footer__contacts p:last-child {
	margin-bottom: 0;
}
.site-footer__contacts a {
	text-decoration: none;
	color: #18242D;
}
.site-footer__contacts a:hover {
	color: #54595F;
}

/* "flex-basis: 100%" força esta linha a saltar para baixo, ocupando a
   largura toda, dentro do mesmo ".site-footer" em flex (que já tem
   "flex-wrap: wrap") — sem precisar de nenhum contentor extra. A
   margem/borda por cima separam-na claramente do resto do rodapé, em
   vez de ficar "colada" à linha de cima. */
.site-footer__updated {
	flex-basis: 100%;
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #e5e5e3;
	text-align: center;
	font-family: var(--font-body);
	font-size: 13px;
	color: #9a9a9a;
}

@media (max-width: 1024px) {
	.site-footer {
		gap: 80px;
	}
	.site-footer__contacts h3 {
		font-size: 28px;
	}
	.site-footer__contacts p {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.site-footer {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 40px;
	}
	.site-footer__contacts h3 {
		font-size: 25px;
	}
	.site-footer__contacts p {
		font-size: 16px;
	}
}

/* =============================================================
   Modelo de reserva genérico (index.php)
   ============================================================= */

.generic-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}
.generic-content h1 {
	font-family: var(--font-heading);
	color: #021F59;
}
.generic-content .page-content p {
	line-height: 1.8;
}
