/* ================================================================
 * IGM 2026 – CERTIFICAZIONI PAGE /certificazioni/ (design option C, 2026-11-16)
 * Loaded only on that page (functions.php, $igm_pages 'certificazioni'), after igm-2026.css.
 * Page content (page ID 2024), Divi sections with the classes "igm-scope igm-sec igm-ce-…":
 *   igm-ce-hero   title (one Code module)
 *   igm-ce-sec    one certificate: Code module with [igm_certificato …] (igm-2026-certificazioni.php)
 *                 a certificate with inverti="1" gets the picture on the left and a light background
 *   igm-ce-end    "Domande sulle certificazioni?" + Contattaci
 * Section rules repeat the ".et-db #et-boc .et-l" selector: with Theme Builder header/footer
 * Divi wraps the page in #et-boc, and the shared .igm-sec rule in igm-2026.css uses it too.
 *
 * [20.1] title   [20.2] certificate block   [20.3] contact line   [20.4] tablets and phones
 * ================================================================ */

/* [20.1] Title */
.et_pb_section.igm-ce-hero,
.et-db #et-boc .et-l .et_pb_section.igm-ce-hero {
	padding-top: 72px;
	padding-bottom: 24px;
}
.igm-ce-h1 {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--igm-font);
	font-size: clamp(34px, 4.2vw, 50px);
	line-height: 1.08;
	letter-spacing: -0.025em;
	font-weight: 800;
	color: var(--igm-inchiostro);
}
.igm-ce-lead {
	max-width: 720px;
	margin: 0;
	padding: 0;
	font-size: 18px;
}

/* [20.2] Certificate block */
.et_pb_section.igm-ce-sec,
.et-db #et-boc .et-l .et_pb_section.igm-ce-sec {
	padding-top: 56px;
	padding-bottom: 72px;
}
.et_pb_section.igm-ce-sec:has(.igm-ce--rev),
.et-db #et-boc .et-l .et_pb_section.igm-ce-sec:has(.igm-ce--rev) {
	padding-top: 72px;
	background: var(--igm-lavanda);
}
.igm-ce {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 64px;
	align-items: start;
	scroll-margin-top: 24px;
}
.igm-ce--rev {
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}
.igm-ce--rev .igm-ce__fig {
	order: -1;
}
.igm-ce__t {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--igm-font);
	font-size: clamp(28px, 2.8vw, 36px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 800;
	color: var(--igm-inchiostro);
}
.igm-ce__intro {
	margin: 0 0 24px;
	padding: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--igm-testo);
}
.igm-scope table.igm-ce__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}
.igm-scope .igm-ce table.igm-ce__table th,
.igm-scope .igm-ce table.igm-ce__table td {
	padding: 14px 0;
	border: 0;
	border-top: 1px solid var(--igm-bordo);
	vertical-align: top;
	text-align: left;
	font-weight: 700;
}
.igm-scope .igm-ce table.igm-ce__table th {
	width: 42%;
	padding-right: 16px;
	color: var(--igm-testo);
}
.igm-scope .igm-ce table.igm-ce__table td {
	color: var(--igm-inchiostro);
}
.igm-ce__fig {
	margin: 0;
}
.igm-ce__link {
	display: block;
	padding: 16px;
	border: 1px solid var(--igm-bordo);
	border-radius: 16px;
	background: var(--igm-bianco);
	box-shadow: 0 12px 40px rgba(94, 42, 114, 0.12);
	transition: transform .15s;
}
.igm-ce__link:hover {
	transform: translateY(-2px);
}
.igm-ce__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}
.igm-ce__cap {
	margin-top: 12px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	color: var(--igm-viola);
}

/* [20.3] Contact line */
.et_pb_section.igm-ce-end,
.et-db #et-boc .et-l .et_pb_section.igm-ce-end {
	padding-top: 56px;
}
.igm-ce-end__box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 32px;
	border-top: 1px solid var(--igm-bordo);
}
.igm-ce-end__t {
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--igm-font);
	font-size: 22px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--igm-inchiostro);
}
.igm-ce-end__d {
	margin: 0;
	padding: 0;
	font-size: 15px;
	color: var(--igm-testo);
}

/* [20.4] Tablets and phones */
@media (max-width: 1000px) {
	.igm-ce,
	.igm-ce--rev {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.igm-ce--rev .igm-ce__fig {
		order: 0;
	}
	.igm-ce__fig {
		max-width: 420px;
	}
}
@media (max-width: 600px) {
	.et_pb_section.igm-ce-hero,
	.et-db #et-boc .et-l .et_pb_section.igm-ce-hero {
		padding-top: 48px;
	}
	.et_pb_section.igm-ce-sec,
	.et-db #et-boc .et-l .et_pb_section.igm-ce-sec {
		padding-top: 40px;
		padding-bottom: 56px;
	}
	.igm-scope .igm-ce table.igm-ce__table th,
	.igm-scope .igm-ce table.igm-ce__table td {
		display: block;
		width: auto;
		padding: 4px 0;
	}
	.igm-scope .igm-ce table.igm-ce__table th {
		padding-top: 14px;
	}
	.igm-scope .igm-ce table.igm-ce__table td {
		border-top: 0;
	}
	.igm-ce-end__box .igm-btn {
		width: 100%;
	}
}
