/**
 * Home — hero, buscas, últimos acessados
 * Figma: 2305:710 + 2305:806
 */

.gl-home {
	background: var(--color-white);
}

/* Home: fundo branco (shell padrão é bege) */
body.home.gl-shell,
body.gl-shell:has(.gl-home) {
	background: var(--color-white);
}

/* Headline 06 — pai força h2 ~1.6rem / #1d1d1d */
body .gl-home h2.gl-home-section-title,
body .gl-home h2.gl-home-recent__title,
.gl-home-section-title,
.gl-home-recent__title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	font-family: var(--font-family-base) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--color-black, #46272d) !important;
}

.gl-home-section-title--border {
	padding-top: 32px !important;
	border-top: 2px solid var(--color-brand);
	margin-bottom: 0 !important;
}

body .gl-home .gl-home-recent__title {
	margin: 0 !important;
}

.gl-home-empty {
	margin: 0;
	padding: 24px 0;
	font-size: 14px;
	color: var(--color-neutral-05);
	line-height: 1.45;
}

.gl-home-empty a {
	color: var(--color-brand);
	font-weight: 600;
}

/* ---- Hero — Figma 2305:710 ---- */
.gl-home-hero {
	position: relative;
	overflow: visible;
	background: var(--color-white);
	padding: 0 24px 48px;
	border-bottom: none;
}

/* Faixa bege + grafismo (129px no Figma) */
.gl-home-hero__grafismo {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 129px;
	background-color: var(--color-neutral-01);
	background-image: url("../images/header-grafismo.svg");
	background-repeat: no-repeat;
	/* Altura extra cobre o deslocamento do parallax (±bleed) sem revelar falhas */
	background-position: center center;
	background-size: auto calc(100% + 64px);
	border-bottom: 1px solid var(--color-neutral-02);
	pointer-events: none;
	overflow: hidden;
}

.gl-home-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 639px;
	margin: 0 auto;
	padding-top: 35px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
}

.gl-home-hero__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
}

.gl-home-hero__emblem {
	width: 178px;
	height: 178px;
	margin: 0;
	will-change: transform;
}

.gl-home-hero__emblem img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Hero title — pai força h1 ~1.8rem / #1d1d1d; Figma 32px */
body .gl-home h1.gl-home-hero__title,
.gl-home-hero__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--font-family-base) !important;
	font-size: 32px !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--color-black, #46272d) !important;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0;
}

.gl-home-hero__title-sigla {
	color: var(--color-brand, #00968f) !important;
	font-size: inherit !important;
	font-weight: 700 !important;
	line-height: inherit !important;
}

.gl-home-hero__title-sep {
	color: var(--color-neutral-03, #c1b49a) !important;
	font-size: inherit !important;
	font-weight: 700 !important;
	line-height: inherit !important;
	margin: 0 0.25em;
}

.gl-home-hero__title-name {
	color: var(--color-black, #46272d) !important;
	font-size: inherit !important;
	font-weight: 700 !important;
	line-height: inherit !important;
}

.gl-home-hero__desc {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--color-neutral-05);
	max-width: 100%;
}

/* ---- Home search ---- */
.gl-search-suggest--home {
	width: 100%;
	max-width: 100%;
}

.gl-home-search {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 44px;
	padding: 12px 7px 12px 16px;
	background: var(--color-white);
	border: 2px solid var(--color-neutral-03);
	border-radius: 0 24px 24px 0;
	box-sizing: border-box;
	gap: 8px;
}

.gl-home-search__input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-family: var(--font-family-base);
	font-size: 14px;
	color: var(--color-text);
	outline: none;
	padding: 0;
	line-height: 1.45;
	-webkit-appearance: none;
	appearance: none;
}

.gl-home-search__input::-webkit-search-decoration,
.gl-home-search__input::-webkit-search-results-button,
.gl-home-search__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.gl-home-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 16px;
	height: 16px;
	margin: 0 4px 0 0;
	padding: 0;
	cursor: pointer;
	background: center / 12px 12px no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 2.5l7 7M9.5 2.5l-7 7' stroke='%239a9790' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.gl-home-search__input::-webkit-search-cancel-button:hover {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 2.5l7 7M9.5 2.5l-7 7' stroke='%2346272d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.gl-home-search__input::placeholder {
	color: var(--color-neutral-04);
	opacity: 1;
}

.gl-home-search__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.gl-home-search__submit-label {
	font-family: var(--font-family-base);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1.15;
	color: var(--color-black);
}

.gl-home-search__submit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 1000px;
	background: var(--color-brand);
	color: var(--color-white);
}

.gl-home-search__submit:hover .gl-home-search__submit-icon {
	background: #007a74;
}

/* ---- Searches ---- */
.gl-home-searches {
	padding: 40px 24px 24px;
	background: var(--color-white);
}

.gl-home-searches__inner {
	max-width: 860px;
	margin: 0 auto;
}

.gl-home-searches__list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--color-white);
	border: 1px solid var(--color-neutral-02);
	border-radius: 4px;
	overflow: hidden;
}

.gl-home-searches__list > li + li .gl-home-searches__row {
	border-top: 1px solid var(--color-neutral-02);
}

.gl-home-searches__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
}

.gl-home-searches__row:hover {
	background: var(--color-neutral-01);
	text-decoration: none;
}

.gl-home-searches__left,
.gl-home-searches__right {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.gl-home-searches__icon {
	color: var(--color-brand);
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.gl-home-searches__term {
	font-size: 14px;
	color: var(--color-black);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gl-home-searches__time {
	font-size: 14px;
	color: var(--color-neutral-04);
	white-space: nowrap;
}

.gl-home-searches__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1px solid var(--color-neutral-02);
	border-radius: 12px;
	color: var(--color-brand);
	background: var(--color-white);
	flex-shrink: 0;
}

/* ---- Recent items — Figma 2305:840 (container 1302px) ---- */
.gl-home-recent {
	background: var(--color-neutral-01, #f6f5f2);
	border-top: 1px solid var(--color-brand, #00968f);
	padding: 0;
	width: 100%;
}

.gl-home-recent__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 1302px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.gl-home-recent__header {
	width: 100%;
	padding: 32px 32px 0;
	box-sizing: border-box;
}

.gl-home-recent__content {
	width: 100%;
	padding: 24px 32px 40px;
	box-sizing: border-box;
}

.gl-home-recent__content > .gl-home-empty {
	padding: 8px 0 0;
}

.gl-home-recent__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gl-home-recent__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gl-home-recent__card {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	padding: 24px;
	background: var(--color-white);
	border: 1px solid var(--color-neutral-02);
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

.gl-home-recent__card:hover,
.gl-home-recent__card:focus {
	text-decoration: none !important;
	border-color: var(--color-brand);
}

.gl-home-recent__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

body .gl-home-recent h3.gl-home-recent__card-title,
.gl-home-recent__card-title {
	margin: 0 !important;
	font-family: var(--font-family-base) !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	color: var(--color-black, #46272d) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.gl-home-recent__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.gl-home-recent__meta-label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--color-black, #46272d);
}

.gl-home-recent__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 112px;
	background: var(--color-neutral-01, #f6f5f2);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--color-text-link, #005f6b);
	white-space: nowrap;
}

.gl-home-recent__arrow {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	display: block;
	/* Figma: seta aponta à direita (asset original aponta à esquerda) */
	transform: scaleX(-1);
}

@media (max-width: 768px) {
	.gl-home-hero {
		padding: 0 16px 40px;
	}

	.gl-home-hero__grafismo {
		height: 100px;
	}

	.gl-home-hero__emblem {
		width: 120px;
		height: 120px;
	}

	.gl-home-hero__title {
		font-size: 24px;
	}

	.gl-home-recent__header,
	.gl-home-recent__content {
		padding-left: 16px;
		padding-right: 16px;
	}

	body .gl-home-recent h3.gl-home-recent__card-title,
	.gl-home-recent__card-title {
		font-size: 18px !important;
	}

	.gl-home-recent__card {
		padding: 16px;
		gap: 12px;
	}

	.gl-home-searches__time {
		display: none;
	}
}
