.rt-projects {
	--rt-accent: #ff4a17;
	--rt-panel: #f4f4f4;
	--rt-dark: #101827;
	--rt-radius: 14px;
	font-family: inherit;
}

.rt-projects__filters {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 6px;
	margin: 0 auto 48px;
	background: var(--rt-panel);
	border-radius: 10px;
}

.rt-projects__filters {
	display: flex;
	justify-content: center;
	width: fit-content;
	margin-inline: auto;
}

.rt-filter {
	appearance: none;
	border: 0;
	cursor: pointer;
	background: #fff;
	color: #6b7280;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 14px 24px;
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rt-filter:hover {
	color: var(--rt-accent);
}

.rt-filter.is-active {
	background: var(--rt-accent);
	color: #fff;
}

.rt-projects__grid {
	display: grid;
	gap: 40px 56px;
}

.rt-cols-1 { grid-template-columns: 1fr; }
.rt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rt-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rt-card {
	position: relative;
	padding-bottom: 70px;
}

.rt-card[hidden] { display: none; }

.rt-card__media {
	border-radius: var(--rt-radius);
	overflow: hidden;
	aspect-ratio: 16 / 11;
}

.rt-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.rt-card__img--empty {
	background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
}

.rt-card:hover .rt-card__img { transform: scale(1.05); }

.rt-card__panel {
	position: absolute;
	left: 14%;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 26px 26px 26px 30px;
	background: var(--rt-panel);
	border-radius: 10px;
}

.rt-card__label {
	margin: 0 0 8px;
	color: var(--rt-accent);
	font-size: 14px;
	font-weight: 500;
}

.rt-card__title {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.rt-card__title a {
	color: var(--rt-dark);
	text-decoration: none;
}

.rt-card__title a:hover { color: var(--rt-accent); }

.rt-card__arrow {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--rt-dark);
	color: #fff;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.rt-card__arrow:hover {
	background: var(--rt-accent);
	transform: translateX(3px);
	color: #fff;
}

.rt-projects__empty {
	text-align: center;
	color: #6b7280;
}

@media (max-width: 991px) {
	.rt-cols-2, .rt-cols-3 { grid-template-columns: 1fr; }
	.rt-projects__grid { gap: 32px; }
}

@media (max-width: 575px) {
	.rt-card__panel {
		position: static;
		margin-top: -30px;
		margin-left: 16px;
		margin-right: 16px;
		padding: 20px;
	}
	.rt-card { padding-bottom: 0; }
	.rt-card__title { font-size: 18px; }
	.rt-card__arrow { width: 46px; height: 46px; }
	.rt-filter { padding: 10px 14px; font-size: 12px; }
}
.rt-projects .rt-filter__count {
	display: inline-block;
	margin-left: .35em;
	font-size: .78em;
	opacity: .6;
}

/* ---------- Equipe ---------- */

.rt-team__head {
	text-align: center;
	margin-bottom: 48px;
}

.rt-team__eyebrow {
	display: inline-block;
	padding: 10px 26px;
	border-radius: 999px;
	background: var(--rt-panel);
	color: var(--rt-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rt-team__title {
	margin: 20px 0 0;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.15;
	font-weight: 800;
	color: var(--rt-dark);
}

.rt-team__grid {
	display: grid;
	gap: 32px;
}

.rt-team-cols-1 { grid-template-columns: 1fr; }
.rt-team-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rt-team-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-team-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rt-member__media {
	position: relative;
	border-radius: var(--rt-radius);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--rt-panel);
}

.rt-member__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	z-index: 2;
	background: linear-gradient(to right, var(--rt-accent) 0 50%, var(--rt-dark) 50% 100%);
}

.rt-member__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.rt-member__img--empty {
	background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
}

.rt-member:hover .rt-member__img { transform: scale(1.05); }

/* Overlay de hover: painel vermelho com nome/cargo e fundo escuro com as redes */
.rt-member__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--rt-dark);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rt-member:hover .rt-member__overlay,
.rt-member:focus-within .rt-member__overlay {
	opacity: 1;
	visibility: visible;
}

.rt-member__overlay-head {
	background: var(--rt-accent);
	border-radius: 0 0 var(--rt-radius) var(--rt-radius);
	padding: 28px 20px 26px;
	text-align: center;
}

.rt-member__overlay-name {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.rt-member__overlay-role {
	margin: 8px 0 0;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rt-member__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 18px;
	margin: 0;
	padding: 0 16px 44px;
	list-style: none;
}

.rt-member__social a {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.25s ease;
}

.rt-member__social a:hover,
.rt-member__social a:focus-visible {
	color: var(--rt-accent);
}

.rt-member__info {
	text-align: center;
	padding: 20px 8px 0;
}

.rt-member__name {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.rt-member__name a {
	color: var(--rt-dark);
	text-decoration: none;
}

.rt-member__name a:hover { color: var(--rt-accent); }

.rt-member__role {
	margin: 8px 0 0;
	font-size: 14px;
	color: #6b7280;
}

@media (max-width: 991px) {
	.rt-team-cols-3, .rt-team-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
	.rt-team-cols-2, .rt-team-cols-3, .rt-team-cols-4 { grid-template-columns: 1fr; }
}
