/* Festival de Música — Workshops e Oficinas
   Medidas extraídas do Figma (node 5:572). */

.fw-wrap {
	--fw-orange: #eb6642;
	--fw-yellow: #f7d61a;
	--fw-card: #0c2461;
	--fw-btn-text: #29336b;

	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: 20px 10px 50px;
	max-width: 1181px; /* 1161 + padding lateral */
	margin-inline: auto;
	box-sizing: border-box;
	font-family: Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
	color: #fff;
}

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

/* ---- ícones exportados do Figma ---- */

.fw-wrap .fw-ic {
	position: relative;
	display: block;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	overflow: hidden;
}

.fw-wrap .fw-ic i {
	position: absolute;
	display: block;
}

.fw-wrap .fw-ic img {
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.fw-wrap .fw-ic--download i { inset: 12.5%; }
.fw-wrap .fw-ic--download img { inset: -5.56%; }
.fw-wrap .fw-ic--users i { inset: 12.5% 8.64% 12.5% 8.56%; }
.fw-wrap .fw-ic--users img { inset: -5.56% -5.03%; }
.fw-wrap .fw-ic--clock i { inset: 8.33%; }
.fw-wrap .fw-ic--clock img { inset: -5%; }
.fw-wrap .fw-ic--graduation i { inset: 14.83% 8.33% 12.92% 8.33%; }
.fw-wrap .fw-ic--graduation img { inset: -5.77% -5%; }
.fw-wrap .fw-ic--calendar i { inset: 8.33% 12.5%; }
.fw-wrap .fw-ic--calendar img { inset: -5% -5.56%; }
.fw-wrap .fw-ic--arrow i { inset: 8.33%; }
.fw-wrap .fw-ic--arrow img { inset: -5%; }
.fw-wrap .fw-ic--pin i { inset: 8.33% 16.67%; }
.fw-wrap .fw-ic--pin img { inset: -5% -6.25%; }

/* ---- abas + download ---- */

.fw-wrap .fw-tabs {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 72px;
	flex-wrap: wrap;
}

/* Temas Elementor estilizam `button` e `a` de forma agressiva. Os seletores abaixo
   usam a forma elemento+classe para vencer regras tipo `.elementor-widget button`,
   e zeram as propriedades que os temas costumam injetar. */
.fw-wrap button.fw-tab,
.fw-wrap a.fw-download,
.fw-wrap a.fw-btn,
.fw-wrap button.fw-mais {
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	white-space: nowrap;
	font-family: inherit;
	font-style: normal;
	cursor: pointer;
	transition: none;
}

.fw-wrap button.fw-tab,
.fw-wrap a.fw-download {
	display: flex;
	align-items: center;
	gap: 11px;
	background: var(--fw-orange);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 7px 10px;
	font-size: 18px;
	font-weight: 500;
	line-height: 18px;
	text-align: center;
}

/* ponytail: o Figma desenha as duas abas idênticas — quem indica a aba ativa é o
   título da seção logo abaixo. Só o hover é adicional. */
.fw-wrap button.fw-tab:hover,
.fw-wrap a.fw-download:hover,
.fw-wrap button.fw-tab:focus,
.fw-wrap a.fw-download:focus {
	background: var(--fw-orange);
	color: #fff;
	filter: brightness(1.08);
}

.fw-wrap button.fw-tab:focus-visible,
.fw-wrap a.fw-download:focus-visible { outline: 2px solid var(--fw-yellow); outline-offset: 2px; }

.fw-wrap a.fw-download { margin-left: auto; }

/* ---- painel + título da seção ---- */

.fw-wrap .fw-panel { display: none; }
.fw-wrap .fw-panel.is-active {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fw-wrap .fw-head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10px;
}

.fw-wrap .fw-head h2 {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 32px;
	font-weight: 600;
	line-height: 32px;
	color: #fff;
}

.fw-wrap .fw-rule {
	height: 6px;
	padding: 2px 0;
}

.fw-wrap .fw-rule span {
	display: block;
	width: 191px;
	max-width: 100%;
	height: 100%;
	border-top: 2px solid var(--fw-yellow);
}

/* ---- grade de cards ---- */

.fw-wrap .fw-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 35px;
}

.fw-wrap .fw-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--fw-card);
	border-radius: 15px;
	padding: 50px;
}

.fw-wrap .fw-card__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 600;
	line-height: 26px;
	color: #fff;
}

/* ---- metadados ---- */

.fw-wrap .fw-meta {
	list-style: none;
	margin: 0;
	padding: 14px 0 5px;
	display: grid;
	/* ponytail: 2 colunas iguais em vez do 274.75px fixo do Figma — lá o bloco
	   de metadados (548px) estoura o conteúdo do card (463px). */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 27px 10px;
}

.fw-wrap .fw-meta li {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	min-height: 24px;
}

.fw-wrap .fw-meta li span {
	padding-left: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 18px;
	color: #fff;
}

.fw-wrap .fw-meta li:nth-child(n+3) span { padding-left: 6px; }

/* ---- resumo ---- */

.fw-wrap .fw-resumo {
	margin: 0;
	padding: 12px 0 14px;
	font-size: 16px;
	font-weight: 400;
	line-height: 23px;
	color: #fff;
}

.fw-wrap .fw-resumo b { font-weight: 700; }

/* ---- rodapé do card ---- */

.fw-wrap .fw-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.fw-wrap .fw-publico {
	flex: 1 0 0;
	min-width: 0;
	padding-top: 12px;
	font-size: 18px;
	font-weight: 600;
	font-style: italic;
	line-height: 23px;
	color: #fff;
}

.fw-wrap a.fw-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	margin-left: auto; /* sem público-alvo, o botão continua encostado à direita */
	background: var(--fw-yellow);
	color: var(--fw-btn-text);
	border: 0;
	border-radius: 20px;
	padding: 12px 24px;
	font-size: 20px;
	font-weight: 500;
	line-height: 20px;
	text-align: center;
}

.fw-wrap a.fw-btn:hover,
.fw-wrap a.fw-btn:focus,
.fw-wrap a.fw-btn:visited {
	background: var(--fw-yellow);
	color: var(--fw-btn-text);
}

/* ---- carregar mais ---- */

.fw-wrap .fw-card--oculto { display: none; }

.fw-wrap button.fw-mais {
	align-self: center;
	margin-top: 12px;
	background: transparent;
	color: var(--fw-yellow);
	border: 2px solid var(--fw-yellow);
	border-radius: 20px;
	padding: 10px 24px;
	font-size: 20px;
	font-weight: 500;
	line-height: 20px;
}

.fw-wrap button.fw-mais:hover,
.fw-wrap button.fw-mais:focus {
	background: var(--fw-yellow);
	color: var(--fw-btn-text);
}

.fw-wrap button.fw-mais:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- shows: abas amarelas, card por palco ---- */

.fw-wrap--shows button.fw-tab {
	background: var(--fw-yellow);
	color: var(--fw-btn-text);
	border-radius: 20px;
	padding: 10px 22px;
}

.fw-wrap--shows button.fw-tab:hover,
.fw-wrap--shows button.fw-tab:focus {
	background: var(--fw-yellow);
	color: var(--fw-btn-text);
}

.fw-wrap--shows .fw-tabs { justify-content: flex-end; }

.fw-wrap .fw-card.fws-card {
	gap: 18px;
	padding: 40px;
	border-radius: 20px;
}

/* Horário e palco lado a lado: o horário ocupa só o que precisa, o palco pega o
   resto e quebra a linha se for longo. Trocar para `column` empilha de novo. */
.fw-wrap .fws-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap; /* com `wrap`, o palco pula de linha inteiro em vez de o texto quebrar */
	gap: 12px 24px;
}

.fw-wrap .fws-meta li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	min-height: 24px;
	flex: 0 0 auto;
}

.fw-wrap .fws-meta li:last-child {
	flex: 1 1 auto;
	min-width: 0;
}

.fw-wrap .fws-meta li span {
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	color: #fff;
}

.fw-wrap .fws-data {
	align-self: flex-start;
	display: inline-block;
	background: var(--fw-orange);
	color: #fff;
	border-radius: 20px;
	padding: 8px 22px;
	font-size: 17px;
	font-weight: 600;
	line-height: 20px;
	white-space: nowrap;
}

/* ---- responsivo ---- */

/* Abaixo de 1024 as 2 colunas ficariam estreitas demais para o bloco de
   metadados: empilha e mantém o card na largura do Figma (563px), centralizado. */
@media (max-width: 1023px) {
.fw-wrap .fw-grid {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}
.fw-wrap .fw-card {
		width: 100%;
		max-width: 563px;
	}
}

@media (max-width: 640px) {
.fw-wrap .fw-card { padding: 28px; }
.fw-wrap .fw-meta { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fw-wrap a.fw-download { margin-left: 0; }
.fw-wrap .fw-foot { flex-direction: column; align-items: flex-start; }
.fw-wrap a.fw-btn { margin-left: 0; }
.fw-wrap .fw-card.fws-card { padding: 28px; }
.fw-wrap .fws-meta { flex-direction: column; }
.fw-wrap--shows .fw-tabs { justify-content: flex-start; }
.fw-wrap .fw-head h2 { font-size: 26px; line-height: 28px; }
}
