/* ----- SERVIÇOS MAIS ACESSADOS ------------------------------------------------ */

#servicos {
	margin-top: 50px;
	margin-bottom: 100px;
}

#servicos h3 {
	margin-bottom: 40px;
	font-size: 24px;
	font-weight: 600;
}

#servicos .servicos-lista {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	justify-content: center;
	align-content: center;
}

#servicos .servicos-lista li {
	background: #e5e5e5;
	border-radius: 5px;
	border-bottom: 5px solid #00A898;
	margin: 0;
	padding: 20px 10px 10px;
	list-style: none;
    line-height: 1;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

#servicos .servicos-lista li:before {
	content: none;
}

#servicos .servicos-lista img {
	width: 130px;
	height: 65px;
	margin: 0 auto 20px;
}

#servicos .servicos-lista a {
	color: #555;
	text-transform: uppercase;
	text-decoration: none;
}

@media only screen and (min-width: 600px) {

	#servicos .servicos-lista {
		grid-template-columns: repeat(3, 1fr);
	}

}

@media only screen and (min-width: 800px) {

	#servicos .servicos-lista {
		grid-template-columns: repeat(auto-fit, 180px);
		justify-content: stretch;
	}

	#servicos .servicos-lista img {
		filter: grayscale(1) opacity(0.8);
	}

	#servicos .servicos-lista img:hover {
		filter: grayscale(0) opacity(1);
	}

}

/* ----- NOTÍCIAS --------------------------------------------------------------- */

#noticias {
	margin-top: 50px;
	margin-bottom: 100px;
	padding-bottom: 100px;
}

#noticias .noticias-lista li:before {
	content: none;
}

#noticias h3 {
	margin-bottom: 40px;
	font-size: 24px;
	font-weight: 600;
}

.noticias-lista {
	margin: 0 0 2em;
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
	grid-template-areas: "a" "b" "c" "d";
	align-content: center;
	justify-items: center;
}

.noticias-lista li {
	width: 100%;
}

.noticias-lista .noticia-foto {
    background-color: #eee;
    background-position: center center;
    background-size: cover;
    margin-bottom: 1em;
    width: 100%;
    height: 250px;
}
.noticias-lista .noticia-data {
	color: #666;
	display: inline-block;
	font-size: 13px;
}

.noticias-lista .noticia-item:nth-child(1) {
	grid-area: a;
}

.noticias-lista .noticia-item:nth-child(2) {
	grid-area: b;
}

.noticias-lista .noticia-item:nth-child(3) {
	grid-area: c;
}

.noticias-lista .noticia-item:nth-child(4) {
	grid-area: d;
}

.noticias-lista .noticia-item:nth-child(2) .noticia-resumo,
.noticias-lista .noticia-item:nth-child(3) .noticia-resumo,
.noticias-lista .noticia-item:nth-child(4) .noticia-resumo {
	display: none;
}

#noticias .saiba-mais {
	background: #fff;
	color: #00A898;
	border: 1px solid #00A898;
	border-radius: 3px;
	width: fit-content;
	margin-top: 40px;
	padding: 8px;
	display: inline-block;
	float: right;
	clear: both;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

@media only screen and (min-width: 1024px) {

	.noticias-lista {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 40px;
		grid-template-areas:
			"a a a"
			"b c d";
	}

	.noticias-lista .noticia-item .noticia-foto {
		aspect-ratio: 3 / 2;
		height: auto;
	}

	.noticias-lista .noticia-item:nth-child(1) {
		min-height: 280px;
		position: relative;
	}

	.noticias-lista .noticia-item:nth-child(1) .noticia-data {
		position: absolute;
		top: 0;
		left: 0;
	}

	.noticias-lista .noticia-item:nth-child(1) .noticia-foto {
		width: 350px;
		position: absolute;
		top: 20px;
		left: 0;
	}
	
	.noticias-lista .noticia-item:nth-child(1) .noticia-titulo {
		background: #00A898;
		color: #fff;
		padding: 10px 15px;
		position: absolute;
		left: 320px;
		top: 40px;
		text-decoration: none;
	}

	.noticias-lista .noticia-item:nth-child(1) .noticia-resumo {
		position: absolute;
		left: 360px;
		top: 120px;
	}

	.noticias-lista .noticia-item:nth-child(1) .noticia-resumo {
		height: 110px;
	}

	.noticias-lista .noticia-item:nth-child(1) .noticia-resumo p {
		height: 90px;
		overflow: hidden;
	}
	
	.noticias-lista .noticia-item:nth-child(1) .noticia-resumo p:after {
		content: '[...]';
		display: block;
		position: absolute;
		left: 0;
		bottom: -0.3em;
	}
	
}