/**
 * ESG - Studio Torta
 * Allineato al container Elementor della pagina (niente max-width custom).
 */

.st-esg,
.st-esg *,
.st-esg *::before,
.st-esg *::after {
	box-sizing: border-box;
}

.st-esg {
	font-family: 'Montserrat', sans-serif;
	color: #707070;
	width: 100%;
}

.st-esg__container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* --- Testata ----------------------------------------------------------- */

.st-esg__head {
	margin-bottom: 24px;
}

.st-esg__title {
	margin: 0 0 10px;
	font-family: inherit;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.5;
	letter-spacing: 0.26px;
	color: #707070;
	text-transform: uppercase;
}

.st-esg__subtitle {
	margin: 0;
	font-family: inherit;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0.18px;
	color: #707070;
}

/* --- Documenti --------------------------------------------------------- */

.st-esg--documenti {
	padding: 40px 0 20px;
}

.st-esg-docs {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.st-esg-doc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	padding: 20px;
	background-color: #f5f5f5;
}

.st-esg-doc__media {
	flex: 0 0 302px;
	width: 302px;
	max-width: 100%;
	min-height: 200px;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	overflow: hidden;
}

.st-esg-doc__img {
	display: block;
	max-height: 200px;
	max-width: 48%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.st-esg-doc__media .st-esg-doc__img:only-child {
	max-width: 70%;
	max-height: 150px;
}

.st-esg-doc__body {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	min-width: 0;
}

.st-esg-doc__title {
	margin: 0;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	color: #707070;
}

.st-esg-doc__text {
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.14px;
	color: #707070;
}

.st-esg-doc__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: 1px solid #000;
	border-radius: 2px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.14px;
	text-transform: uppercase;
	text-decoration: none;
	color: #707070;
	background: transparent;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.st-esg-doc__cta:hover,
.st-esg-doc__cta:focus {
	background-color: #fff;
	color: #07263a;
	text-decoration: none;
}

/* --- Certificazioni ---------------------------------------------------- */

.st-esg--certificazioni {
	padding: 40px 0;
}

.st-esg-group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #cfcfcf;
}

.st-esg-group__title {
	margin: 0;
	flex: 1 1 auto;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: 0.22px;
	text-transform: uppercase;
	color: #707070;
}

.st-esg-group__logo {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
}

.st-esg-group__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.st-esg-certs {
	display: grid;
	gap: 20px;
}

.st-esg-certs--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-esg-certs--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-esg-certs--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.st-esg-cert {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background-color: #fff;
}

.st-esg-cert__media {
	position: relative;
	width: 100%;
	aspect-ratio: 303 / 172;
	overflow: hidden;
	background-color: #dfeaf0;
}

.st-esg-cert__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.st-esg-cert__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 4px 16px;
	border-radius: 70px;
	background-color: #fff;
	font-weight: 400;
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: 0.1px;
	text-transform: uppercase;
	color: #707070;
	white-space: nowrap;
}

.st-esg-cert__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-height: 167px;
	padding: 20px;
	background-color: #f4f7fc;
}

.st-esg-cert__copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.st-esg-cert__title {
	margin: 0;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: 0.18px;
	text-transform: uppercase;
	color: #707070;
}

.st-esg-cert__text {
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.14px;
	color: #707070;
}

.st-esg-cert__chip {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	padding: 4px 16px;
	border: 1px solid #cfcfcf;
	border-radius: 70px;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0.14px;
	color: #707070;
	white-space: nowrap;
}

/* --- Responsive -------------------------------------------------------- */

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

	.st-esg-doc {
		gap: 24px;
	}

	.st-esg-doc__media {
		flex-basis: 100%;
		width: 100%;
	}
}

@media (max-width: 575px) {
	.st-esg__title {
		font-size: 22px;
	}

	.st-esg-certs--cols-2,
	.st-esg-certs--cols-3,
	.st-esg-certs--cols-4 {
		grid-template-columns: 1fr;
	}

	.st-esg-group {
		flex-wrap: wrap;
	}

	.st-esg-cert__chip {
		white-space: normal;
	}
}
