/**
 * Sezioni della home e composizione delle pagine interne.
 * Valgono sul sito e nell'editor.
 */

/* Apertura. */

.gm-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 645px;
	background: var(--gm-mist);
}

.gm-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 78px 44px 34px var(--gm-gutter);
}

.gm-hero .gm-hero__title {
	margin: 0 0 26px;
	font-size: clamp(52px, 5.5vw, 80px);
	letter-spacing: -.06em;
	line-height: 1.08;
}

.gm-hero__intro {
	max-width: 470px;
	margin: 0 0 34px;
	color: var(--gm-muted);
	font-size: 19px;
}

.gm-hero .gm-hero__keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	margin: auto 0 0;
	padding: 52px 0 0;
	list-style: none;
	color: var(--gm-muted);
	font-size: 13px;
}

.gm-hero__keywords li {
	margin: 0;
}

/* Certificazioni. */

.gm-trust {
	display: flex;
	align-items: center;
	gap: 14px 56px;
	padding: 28px var(--gm-gutter);
	border-bottom: 1px solid var(--gm-line);
	font-size: 14px;
}

.gm-trust .gm-trust__lead {
	flex: none;
	margin: 0;
	color: var(--gm-muted);
}

.gm-trust .gm-trust__list {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gm-trust__list li {
	margin: 0;
}

.gm-trust__list a {
	font-weight: 600;
	text-decoration: none;
	transition: color .2s;
}

.gm-trust__list a:hover {
	color: var(--gm-brand);
}

/* L'azienda. */

.gm-company {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	padding: 104px var(--gm-gutter);
}

.gm-company h2 {
	margin: 0;
}

.gm-company__body p {
	margin-bottom: 30px;
	color: var(--gm-muted);
	font-size: 17px;
}

/* Testata di sezione: titolo a sinistra, link a destra. */

.gm-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 48px;
}

.gm-section-head h2 {
	margin: 0;
}

/* Servizi in evidenza. */

.gm-services-home {
	padding: 88px var(--gm-gutter) 96px;
	background: var(--gm-mist);
}

.gm-teasers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.gm-teaser {
	position: relative;
	padding: 26px 0 70px;
	border-top: 1px solid var(--gm-line-strong);
}

.gm-teaser h3 {
	margin: 0 0 14px;
	font-size: 25px;
	letter-spacing: -.035em;
}

.gm-teaser p {
	max-width: 85%;
	margin: 0;
	color: var(--gm-muted);
	font-size: 15px;
}

.gm-teaser::before {
	left: 0;
	bottom: 0;
}

.gm-teaser::after {
	left: 11px;
	bottom: 11px;
}

/* Prodotti in evidenza. */

.gm-products-home {
	padding: 100px var(--gm-gutter);
}

/* Le colonne seguono il numero di card: due prodotti, due colonne larghe. */
.gm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 16px;
}

.gm-cards .is-style-gm-card p:not(.is-style-gm-tag) {
	max-width: 46ch;
}

/* Logo del prodotto come titolo della card (immagine in linea dentro l'h3). */
.gm-cards .is-style-gm-card .gm-card__logo {
	margin: 20px 0 18px;
	line-height: 0;
}

.gm-card__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 52px;
	object-fit: contain;
	object-position: left center;
}

/* Prodotti di una suite dentro la card: etichette con l'icona, in riga. */
.gm-cards .gm-card__modules {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.gm-card__modules li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 4px 14px 4px 4px;
	border: 1px solid var(--gm-card-border);
	border-radius: 999px;
	background: var(--gm-white);
	font-size: 13px;
	font-weight: 550;
	line-height: 1.4;
}

.gm-card__modules li img {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
}

/* Progetto in evidenza. */

.gm-project-home {
	padding: 0 var(--gm-gutter) 90px;
}

.gm-feature.is-style-gm-panel {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 64px;
	padding: 58px 64px;
	border-radius: 9px;
}

.gm-feature .gm-feature__title {
	margin: 0 0 20px;
	font-size: 68px;
}

.gm-feature__text p:not(.is-style-gm-eyebrow) {
	max-width: 480px;
	margin-bottom: 30px;
	color: var(--gm-muted);
}

.gm-feature .wp-block-image.is-style-gm-framed {
	min-height: 260px;
	margin: 0;
	background: var(--gm-white);
}

/* Pagine interne. */

.gm-media-text {
	display: grid;
	grid-template-columns: .9fr 1fr;
	align-items: center;
	gap: 65px;
}

.gm-media-text > .wp-block-image {
	margin: 0;
}

.gm-media-text__body p {
	color: var(--gm-muted);
	font-size: 17px;
}

.gm-documents h2 {
	margin-bottom: 35px;
}

.gm-services {
	counter-reset: gm-service;
}

/* Pagina di un progetto. */
.gm-project > .wp-block-image.is-style-gm-mark {
	margin-bottom: 40px;
}

.gm-project > .wp-block-image.is-style-gm-mark img {
	max-width: min(100%, 350px);
	max-height: 180px;
}

.gm-funding.is-style-gm-panel {
	padding: 32px;
	background: var(--gm-mist);
	font-size: 14px;
}

.gm-funding .wp-block-image {
	margin: 0 0 30px;
}

.gm-funding .wp-block-image img {
	max-width: 100%;
	max-height: 92px;
}

.gm-funding p {
	margin-bottom: 10px;
	color: var(--gm-muted);
}

.gm-contacts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
}

.gm-place-panel h2 {
	margin-bottom: 25px;
}

.gm-place-panel .gm-place-panel__address {
	font-size: 21px;
}

.gm-contacts + .is-style-gm-notice {
	margin-top: 70px;
}

.gm-cta-block {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 55px 0 0;
	border-top: 1px solid var(--gm-line);
}

.gm-cta-block h2 {
	margin: 0;
}

@media (min-width: 1600px) {
	.gm-hero__copy {
		padding-right: 65px;
	}
}

@media (max-width: 1100px) {
	.gm-hero__copy {
		padding-top: 56px;
	}

	.gm-hero .gm-hero__title {
		font-size: 61px;
	}

	.gm-media-text {
		gap: 35px;
	}
}

@media (max-width: 800px) {
	.gm-hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.gm-hero__copy {
		padding: 50px var(--gm-pad-x) 32px;
	}

	.gm-hero .gm-hero__title {
		font-size: clamp(46px, 11vw, 70px);
	}

	.gm-hero__intro {
		font-size: 17px;
	}

	.gm-hero .gm-hero__keywords {
		padding-top: 36px;
		gap: 4px 18px;
	}

	.gm-trust {
		flex-direction: column;
		align-items: flex-start;
		padding-top: 22px;
		padding-bottom: 22px;
	}

	.gm-trust .gm-trust__list {
		justify-content: flex-start;
	}

	.gm-company {
		grid-template-columns: 1fr;
		gap: 26px;
		padding-top: 65px;
		padding-bottom: 65px;
	}

	.gm-services-home,
	.gm-products-home {
		padding-top: 65px;
		padding-bottom: 65px;
	}

	.gm-section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin-bottom: 30px;
	}

	.gm-teasers {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.gm-teaser {
		padding: 22px 60px 26px 0;
	}

	/* La freccia ha già il suo spazio a destra. */
	.gm-teaser p {
		max-width: none;
	}

	.gm-teaser::before {
		top: 26px;
		right: 0;
		bottom: auto;
		left: auto;
	}

	.gm-teaser::after {
		top: 37px;
		right: 11px;
		bottom: auto;
		left: auto;
	}

	.gm-project-home {
		padding-bottom: 60px;
	}

	.gm-feature.is-style-gm-panel {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 35px;
	}

	.gm-feature .gm-feature__title {
		font-size: 52px;
	}

	.gm-media-text,
	.gm-contacts {
		grid-template-columns: 1fr;
		gap: 35px;
	}

	.gm-contacts + .is-style-gm-notice {
		margin-top: 44px;
	}
}

@media (max-width: 450px) {
	.wp-block-group.is-style-gm-card {
		min-height: 250px;
	}

	.gm-hero .wp-block-button__link {
		gap: 16px;
		padding: 12px 14px;
		font-size: 14px;
	}

	.gm-feature.is-style-gm-panel {
		padding: 30px 24px;
	}
}
