/* Materials archive and downloads */
.page-template-template-materiais,
.page-template-template-arquivos-materiais,
.page-template-template-materiais #fullpage,
.page-template-template-arquivos-materiais #fullpage {
	background: #fff;
}

.materials-header {
	display: block !important;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.materials-view {
	box-sizing: border-box;
	min-height: calc(100vh - 112px);
	padding: 18px 0 64px;
	background: #fff;
	color: #111;
}

.materials-view *, .materials-view *::before, .materials-view *::after { box-sizing: border-box; }
.materials-view__container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 0; }

.materials-breadcrumb {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 25px;
	color: #b9bbc0;
	font: 15px 'Verdana', sans-serif;
}
.materials-breadcrumb a, .materials-breadcrumb strong { color: inherit; font-size: inherit; }
.materials-breadcrumb strong { color: #161616; }
.materials-breadcrumb__home { display: inline-flex; }
.materials-breadcrumb__home svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.materials-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 30px;
}
.materials-hero__identity { display: flex; align-items: center; gap: 5rem; min-width: 0; }
.materials-hero h1, .materials-not-found h1 {
	margin: 0;
	color: #050505;
	font-family: 'Gotham Bold', 'Open Sans', sans-serif;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.05;
}
.materials-hero .material-description { max-width: 560px; margin: 8px 0 0; color: #666970; font-size: 14px; line-height: 1.45; }
.material-cover { flex: 0 0 auto; }
.material-cover img { display: block; width: auto; max-width: 120px; height: auto; max-height: 82px; object-fit: contain; }

.materials-list, .materials-files-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.materials-list + .materials-files-list { margin-top: 16px; }
.materials-list__item, .materials-files-list__item { margin: 0; list-style: none; }
.material-card, .materials-files-list__item {
	display: flex;
	align-items: center;
	min-height: 108px;
	padding: 20px 20px 20px 24px;
	border: 1px solid #c8c8cb;
	border-radius: 13px;
	background: #fff;
}
.material-card { min-height: 136px; gap: 20px; color: #111; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.material-card:hover, .material-card:focus { border-color: #FF6915; box-shadow: 0 8px 24px rgba(255, 105, 21, .18); transform: translateY(-1px); }
.material-card__visual { display: grid; flex: 0 0 96px; width: 96px; height: 96px; place-items: center; }
.material-card__image { display: block; width: auto; max-width: 92px; height: auto; max-height: 92px; object-fit: contain; }
.material-card__fallback { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 7px; background: linear-gradient(135deg, #0878ec, #08c8e8); color: #fff; font: 700 22px 'Gotham Bold', sans-serif; }
.material-card__content { flex: 1 1 auto; min-width: 0; }
.material-card__title, .material-file__title { margin: 0 0 5px; color: #070707; font-family: 'Gotham Bold', 'Open Sans', sans-serif; font-size: 16px; line-height: 1.25; }
.material-card__description, .material-file__description { margin: 0; color: #4e5158; font-size: 14px; line-height: 1.4; }

.materials-files-list__item { justify-content: space-between; gap: 24px; }
.material-file__main { display: flex; align-items: center; flex: 1 1 auto; gap: 20px; min-width: 0; }
.material-file__content { min-width: 0; }
.material-file__image {
	display: grid;
	flex: 0 0 84px;
	width: 84px;
	height: 84px;
	place-items: center;
	border-radius: 8px;
	background: #f2f3f5;
}
.material-file__thumbnail {
	display: block;
	width: auto;
	max-width: 80px;
	height: auto;
	max-height: 80px;
	object-fit: contain;
}
.material-file__icon { position: relative; display: block; flex: 0 0 34px; width: 34px; height: 38px; border: 4px solid #c8c9cb; border-top: 0; border-radius: 2px; }
.material-file__icon::before { position: absolute; top: 0; right: -4px; width: 13px; height: 13px; border-top: 4px solid #c8c9cb; border-right: 4px solid #c8c9cb; content: ''; }
.material-file__icon span { position: absolute; top: 10px; left: 5px; z-index: 1; padding: 3px 2px; border-radius: 2px; background: #bfc0c2; color: #fff; font: 700 8px/1 'Verdana', sans-serif; }
.material-file__actions { display: flex; flex: 0 0 auto; gap: 12px; }

.materials-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 136px;
	height: 42px;
	padding: 0 18px;
	border: 1px solid #FF6915;
	border-radius: 9px;
	background: #fff;
	color: #FF6915;
	font: 700 13px 'Open Sans', sans-serif;
	text-align: center;
	transition: box-shadow .2s ease, transform .2s ease;
}
.materials-action:hover, .materials-action:focus { box-shadow: 0 5px 15px rgba(255, 105, 21, .24); color: #FF6915; transform: translateY(-1px); }
.materials-action--primary { border-color: transparent; background: #FF6915; color: #fff; }
.materials-action--primary:hover, .materials-action--primary:focus { color: #fff; }
.material-card > .materials-action { margin-left: auto; }

.materials-empty, .materials-not-found { margin: 24px 0; padding: 28px; border-radius: 13px; background: #f5f6f8; color: #62656b; }
.materials-back { display: inline-block; margin-top: 26px; color: #FF6915; font-weight: 700; }
.materials-back:hover, .materials-back:focus { color: #FF6915; }
.materials-not-found p { margin: 12px 0 20px; }
.materials-not-found .materials-action { width: max-content; }

@media (max-width: 767px) {
	.materials-view { padding: 20px 0 42px; }
	.materials-view__container { width: min(100% - 28px, 1180px); }
	.materials-breadcrumb { overflow: hidden; margin-bottom: 20px; font-size: 13px; white-space: nowrap; }
	.materials-breadcrumb strong { overflow: hidden; text-overflow: ellipsis; }
	.materials-hero { align-items: stretch; flex-direction: column; gap: 22px; }
	.materials-hero h1 { font-size: 34px; }
	.material-cover img { max-width: 86px; max-height: 64px; }
	.material-card, .materials-files-list__item { align-items: flex-start; padding: 18px; }
	.material-card { flex-wrap: wrap; }
	.material-card__visual { flex-basis: 72px; width: 72px; height: 72px; }
	.material-card__image { max-width: 68px; max-height: 68px; }
	.material-card > .materials-action { width: 100%; margin: 2px 0 0; }
	.materials-files-list__item { flex-direction: column; }
	.material-file__actions { width: 100%; }
	.material-file__actions .materials-action { flex: 1 1 50%; min-width: 0; }
}

@media (min-width: 992px) {
	.materials-view {
		padding-top: 110px;
	}
}

@media (max-width: 430px) {
	.materials-hero__identity { align-items: flex-start; }
}
