/*
 * Pagine a sezioni diverse dalla home (Chi siamo, Contatti) e modulo di
 * contatto: solo classi nuove, costruite sui token e sui componenti del mockup.
 */

/* Storia: stessa sezione "reading" della home, con titolo. */
.page-story h2 {
	margin-bottom: 30px;
}

.page-story h2 > span {
	color: var(--blue);
}

.page-story .reading-intro {
	margin-bottom: 0;
}

/*
 * Loghi dei clienti: griglia in scala di grigi, il logo torna a colori al
 * passaggio del mouse (la transizione si spegne con prefers-reduced-motion
 * tramite la regola globale del mockup).
 */
.clients {
	border-top: 1px solid var(--line);
}

.clients h2 {
	margin-bottom: 18px;
}

.clients h2 > span {
	color: var(--blue);
}

.clients .clients-note {
	max-width: 720px;
	margin-bottom: 44px;
}

.clients-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.clients-grid > li {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
}

.clients-grid img {
	display: block;
	width: 100%;
	max-width: 174px;
	height: auto;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.2s, opacity 0.2s;
}

.clients-grid > li:hover img {
	filter: none;
	opacity: 1;
}

@media (max-width: 1200px) {

	.clients-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 950px) {

	.clients-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {

	.clients .clients-note {
		margin-bottom: 32px;
	}

	.clients-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}

	.clients-grid > li {
		padding: 14px;
	}
}

@media (max-width: 480px) {

	.clients-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/*
 * "Come nasce": titolo a sinistra / testo a destra come .expertise-heading
 * del mockup, ma con tre paragrafi diretti invece di uno solo, quindi
 * l'allineamento in fondo alla riga (align-items:end, adatto a un solo breve
 * paragrafo) diventa "start" e i paragrafi, che nel mockup non hanno margine
 * verticale proprio (unico paragrafo), qui hanno uno spazio tra loro. Le due
 * card sotto sono .expertise-card invariate (2 colonne, 1 sotto 720px: regola
 * del mockup, non toccata). Il link finale riusa .text-link del mockup, qui
 * reso blu per coerenza con gli altri usi fuori dall'header scuro (come
 * .deliverables e .evidence in home-extra.css).
 */
.spinoff .expertise-heading {
	align-items: start;
}

.spinoff .expertise-heading > p + p {
	margin-top: 20px;
}

.spinoff .text-link {
	color: var(--blue);
}

.spinoff .spinoff-link {
	margin-top: 40px;
}

@media (max-width: 720px) {

	.spinoff .spinoff-link {
		margin-top: 30px;
	}
}

/* Recapiti: tre card sul modello di .expertise-card. */
.contact-channels {
	background: #f4f2ff;
	border-top: 1px solid #e0e7f0;
}

.contact-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.contact-cards .expertise-card p {
	margin-bottom: 10px;
}

.contact-cards .expertise-card p:last-child {
	margin-bottom: 0;
}

.contact-cards a {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-color: #b9cbe8;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

.contact-cards a:hover {
	text-decoration-color: currentcolor;
}

/* Modulo di contatto. */
.contact-form-section .contact-grid {
	align-items: start;
}

.cwv-contact-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.cwv-contact-form p {
	margin: 0;
}

.cwv-contact-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.875rem;
	font-weight: 500;
}

.cwv-contact-required {
	font-weight: 400;
	color: var(--muted);
}

.cwv-contact-field input,
.cwv-contact-field textarea {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #c3ccd8;
	border-radius: 3px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
}

.cwv-contact-field textarea {
	min-height: 170px;
	resize: vertical;
}

.cwv-contact-field input:focus-visible,
.cwv-contact-field textarea:focus-visible,
.cwv-contact-privacy input:focus-visible {
	outline: 3px solid var(--bright);
	outline-offset: 2px;
	border-color: var(--blue);
}

.cwv-contact-privacy {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--muted);
}

.cwv-contact-privacy input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--blue);
}

.cwv-contact-privacy a {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cwv-contact-form .button {
	align-self: flex-start;
	cursor: pointer;
	font-family: inherit;
}

.cwv-contact-field [aria-invalid="true"],
.cwv-contact-privacy [aria-invalid="true"] {
	border-color: #c5221f;
	outline: 1px solid #c5221f;
}

.cwv-contact-notice:focus {
	outline: 3px solid var(--bright);
	outline-offset: 2px;
}

.cwv-contact-notice {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-left-width: 4px;
	border-radius: 3px;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.cwv-contact-notice.is-success {
	border-color: #b7dfc3;
	border-left-color: #188038;
	background: #eef8f1;
	color: #117d62;
}

.cwv-contact-notice.is-error {
	border-color: #f3c2bd;
	border-left-color: #c5221f;
	background: #fdf0ef;
	color: #a50e0e;
}

/* Illustrazione sotto "Raccontaci il tuo progetto.", come quelle della home. */
.contact-form-section .contact-illustration {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	margin-top: 40px;
}

@media (max-width: 720px) {

	.contact-form-section .contact-illustration {
		max-width: 360px;
		margin: 28px auto 0;
	}
}

/*
 * Mappa (blocco cwv/map): altezza riservata con --cwv-map-h, quindi nessun CLS
 * quando l'iframe (lazy, sotto la piega) viene caricato.
 */
.contact-map {
	border-top: 1px solid var(--line);
}

.cwv-map {
	width: 100%;
	margin: 0;
}

.cwv-map iframe {
	display: block;
	width: 100%;
	height: var(--cwv-map-h, 420px);
	border: 0;
	border-radius: 10px;
	background: var(--soft);
}

.cwv-map.is-grayscale iframe {
	filter: grayscale(100%);
}

.cwv-map figcaption {
	margin-top: 18px;
}

/* Stesso stile di .text-link del mockup. */
.cwv-map figcaption a {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--blue);
}

.cwv-map figcaption a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
}

/* Anteprima statica nell'editor: nessuna richiesta a Google da wp-admin. */
.cwv-map-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--cwv-map-h, 420px);
	border: 1px dashed #b8c2cf;
	border-radius: 10px;
	background: #eceff3;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.875rem;
	text-align: center;
}

/*
 * Contrasto WCAG AA (≥ 4,5:1), come in blog.css: stessa tinta del mockup, solo
 * più scura, per le sezioni della home riusate qui. La home resta identica al
 * mockup perché questo file non vi viene caricato.
 */
.contact-grid .eyebrow {
	color: #56568a;
}

.contact-grid .mono-label {
	color: #646e7e;
}

.contact-alt {
	color: #5a5a8a;
}

.domain {
	color: #6e757f;
}

.footer-top > span {
	color: #6c7684;
}

.source-note {
	color: #6b7686;
}

@media (max-width: 950px) {

	.contact-cards {
		grid-template-columns: 1fr;
		gap: 23px;
	}
}

/*
 * Sotto 720px mappa più bassa: !important per prevalere sulla variabile
 * inline del blocco.
 */
@media (max-width: 720px) {

	.cwv-map,
	.cwv-map-preview {
		--cwv-map-h: 320px !important;
	}
}

/*
 * Versioni PHP: rami da 5.4 a 8.1 come schede, matrice ramo × distribuzione
 * (ruoli ARIA di tabella, a schede sotto i 950px) e distribuzioni.
 */
.versions-branches h2 > span,
.versions-matrix h2 > span,
.versions-distros h2 > span {
	color: var(--blue);
}

.branch-grid {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
}

.branch-card {
	background: #fff;
	border: 1px solid #e2e4f3;
	border-top: 3px solid var(--blue);
	border-radius: 10px;
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
}

.branch-card:nth-child(n+4) {
	border-top-color: var(--bright);
}

.branch-card:nth-child(n+9) {
	border-top-color: #00c2aa;
}

.branch-label {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.75px;
	color: #56568a;
}

.branch-version {
	font-size: 3rem;
	line-height: 1.05;
	letter-spacing: -1.5px;
	font-weight: 500;
	color: #14144a;
	margin: 4px 0 16px;
}

.branch-card p {
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0;
	color: #465467;
}

.branch-card .branch-eol b {
	font-weight: 600;
	color: #14144a;
}

.branch-card .branch-last {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #e2e4f3;
	font-size: 0.8125rem;
}

.branch-card .branch-eol + .branch-last {
	margin-top: 14px;
}

.branch-card code {
	font-family: var(--mono);
	font-size: 0.8125rem;
	color: var(--blue);
}

.branch-card.branch-vendor {
	background: var(--soft);
	border-top-color: #b8bdd6;
	border-style: dashed;
	border-top-style: solid;
}

.branch-vendor .branch-version {
	color: #56568a;
}

.versions-matrix {
	background: var(--soft);
}

.versions-matrix .source-note {
	color: #56568a;
}

.vm-legend {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-size: 0.875rem;
	color: #465467;
}

.vm-legend li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vm-swatch {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	flex-shrink: 0;
}

.version-matrix {
	background: #fff;
	border: 1px solid #e2e4f3;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 24px;
}

.vm-row {
	display: grid;
	grid-template-columns: 150px repeat(4, minmax(0, 1fr));
	border-top: 1px solid #e2e4f3;
}

.vm-row.vm-head {
	border-top: 0;
	background: var(--dark);
	color: #fff;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.5px;
	line-height: 1.5;
}

.vm-head > span {
	padding: 16px 18px;
}

.vm-branch,
.vm-cell {
	padding: 16px 18px;
}

.vm-cell {
	border-left: 1px solid #e2e4f3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
}

.vm-branch {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vm-branch strong {
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.4px;
	color: #14144a;
}

.vm-branch small {
	font-family: var(--mono);
	font-size: 0.6875rem;
	color: #56568a;
}

.vm-item {
	font-size: 0.8125rem;
	line-height: 1.45;
	padding: 4px 9px;
	border-radius: 5px;
	border-left: 3px solid transparent;
}

.vm-swatch.is-vendor,
.vm-item.is-vendor {
	background: #ddfaf2;
	border-color: #00a08c;
	color: #0b4f45;
}

/* Badge del backport di PHP Legacy: pieno dove è l'unica strada, chiaro dove
   il fornitore della distribuzione corregge ancora il ramo. */
.vm-item.is-legacy {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--blue);
	border-color: var(--dark);
	color: #fff;
	font-weight: 500;
}

.vm-item.is-legacy.is-also {
	background: #ece6ff;
	border-color: var(--blue);
	color: #2a1a73;
	font-weight: 400;
}

.vm-inf {
	font-size: 1.125rem;
	line-height: 1;
	font-weight: 700;
	color: #00fccc;
}

.is-also .vm-inf {
	color: var(--blue);
}

.vm-swatch.is-legacy {
	background: var(--blue);
}

.vm-swatch.is-vendor {
	background: #00a08c;
}

.branch-card .branch-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	margin-top: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.6;
}

.versions-distros .distro-list {
	margin: 0 0 20px;
	padding-left: 18px;
	color: #14144a;
	font-size: 1rem;
	line-height: 1.7;
}

.versions-distros .distro-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.versions-distros .expertise-card {
	padding: 30px;
}

.versions-distros .expertise-card h3 {
	font-size: 1.375rem;
}

.versions-distros .expertise-card p:last-child {
	margin: auto 0 0;
	font-size: 0.875rem;
}

@media (max-width: 1200px) {

	.vm-row {
		grid-template-columns: 120px repeat(4, minmax(0, 1fr));
	}

	.versions-distros .distro-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 950px) {

	.version-matrix {
		background: none;
		border: 0;
		border-radius: 0;
		overflow: visible;
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	.vm-row.vm-head {
		display: none;
	}

	.vm-row {
		display: block;
		background: #fff;
		border: 1px solid #e2e4f3;
		border-radius: 10px;
	}

	.vm-branch {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		flex-wrap: wrap;
		background: var(--dark);
		border-radius: 9px 9px 0 0;
	}

	.vm-branch strong {
		color: #fff;
	}

	.vm-branch small {
		color: #b8c3e6;
	}

	.vm-cell {
		border-left: 0;
		border-top: 1px solid #e2e4f3;
		display: grid;
		grid-template-columns: 150px 1fr;
		gap: 7px 16px;
		align-items: start;
	}

	.vm-cell::before {
		content: attr(data-label);
		grid-row: span 3;
		font-family: var(--mono);
		font-size: 0.6875rem;
		line-height: 1.5;
		color: #56568a;
		padding-top: 4px;
	}

	.vm-cell > .vm-item {
		grid-column: 2;
		justify-self: start;
	}

	.vm-row > .vm-cell:first-of-type {
		border-top: 0;
	}
}

@media (max-width: 720px) {

	.branch-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.branch-card {
		padding: 18px 16px 14px;
	}

	.branch-version {
		font-size: 2.5rem;
	}

	.vm-cell {
		grid-template-columns: 1fr;
	}

	.vm-cell::before {
		grid-row: auto;
		padding-top: 0;
	}

	.vm-cell > .vm-item {
		grid-column: 1;
	}

	.versions-distros .distro-grid {
		grid-template-columns: 1fr;
	}
}

/*
 * Pagine "Aggiornamento e upgrade" per piattaforma: percorso di upgrade a
 * tappe, tabella delle versioni (ruoli ARIA, a schede sotto i 950px), ostacoli,
 * metodo, approfondimenti, domande e collegamenti alle altre piattaforme.
 */
.platform-path h2 > span,
.platform-table h2 > span,
.platform-blockers h2 > span,
.platform-method h2 > span {
	color: var(--blue);
}

.path-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 28px;
}

.path-step {
	position: relative;
	background: #fff;
	border: 1px solid #e2e4f3;
	border-radius: 10px;
	padding: 24px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.path-step:not(:last-child)::after {
	content: "→";
	position: absolute;
	top: 50%;
	right: -24px;
	width: 20px;
	transform: translateY(-50%);
	text-align: center;
	font-size: 1.25rem;
	color: var(--blue);
}

.path-index {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: #56568a;
}

.path-label {
	font-size: 1.375rem;
	line-height: 1.25;
	letter-spacing: -0.4px;
	font-weight: 500;
	color: #14144a;
}

.path-php {
	align-self: flex-start;
	font-family: var(--mono);
	font-size: 0.75rem;
	line-height: 1.5;
	padding: 3px 9px;
	border-radius: 5px;
	background: #ece6ff;
	color: #2a1a73;
}

.path-step p {
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0;
	color: #465467;
}

.path-step.is-target {
	background: var(--dark);
	border-color: var(--dark);
}

.path-step.is-target .path-label {
	color: #fff;
}

.path-step.is-target .path-index,
.path-step.is-target p {
	color: #c4cbe8;
}

.path-step.is-target .path-php {
	background: #00fccc;
	color: #00003a;
}

.platform-table {
	background: var(--soft);
}

.platform-table .source-note {
	color: #56568a;
}

.data-table {
	background: #fff;
	border: 1px solid #e2e4f3;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 24px;
}

.dt-row {
	display: grid;
	grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
	border-top: 1px solid #e2e4f3;
}

.cols-3 .dt-row {
	grid-template-columns: 1.1fr repeat(2, minmax(0, 1.4fr));
}

.cols-2 .dt-row {
	grid-template-columns: 1fr 2fr;
}

.dt-row > span {
	padding: 15px 18px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #465467;
}

.dt-row > span + span {
	border-left: 1px solid #e2e4f3;
}

.dt-row .dt-first {
	font-weight: 500;
	color: #14144a;
}

.dt-row.dt-head {
	border-top: 0;
	background: var(--dark);
}

.dt-head > span {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.5px;
	color: #fff;
}

.dt-head > span + span {
	border-left-color: #2a2a60;
}

.platform-blockers {
	border-top: 1px solid var(--line);
}

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

.blocker-card {
	border-top: 2px solid var(--blue);
	padding-top: 22px;
}

.blocker-card:nth-child(3n+2) {
	border-top-color: var(--bright);
}

.blocker-card:nth-child(3n) {
	border-top-color: #00c2aa;
}

.blocker-card h3 {
	font-size: 1.25rem;
	letter-spacing: -0.3px;
	margin-bottom: 12px;
	color: #14144a;
}

.blocker-card p {
	font-size: 0.9375rem;
	margin: 0 0 12px;
}

.platform-method .section-intro a {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.reading-grid.items-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reading-grid.items-1 {
	grid-template-columns: minmax(0, 1fr);
	max-width: 720px;
}

.platform-others {
	display: flex;
	align-items: baseline;
	gap: 14px 28px;
	padding-block: 0 72px;
}

.platform-others > .mono-label {
	white-space: nowrap;
}

.platform-others > div {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.platform-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid #d3d3ee;
	border-radius: 999px;
	font-size: 0.875rem;
	color: #14144a;
	transition: border-color 0.18s, color 0.18s;
}

.platform-chip:hover {
	border-color: var(--blue);
	color: var(--blue);
}

@media (max-width: 1200px) {

	.path-steps {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.path-step:not(:last-child)::after {
		content: none;
	}

	.blocker-grid,
	.reading-grid.items-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 950px) {

	.data-table {
		background: none;
		border: 0;
		border-radius: 0;
		overflow: visible;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.data-table .dt-row.dt-head {
		display: none;
	}

	.data-table .dt-row {
		display: block;
		background: #fff;
		border: 1px solid #e2e4f3;
		border-radius: 10px;
	}

	.dt-row > span {
		display: grid;
		grid-template-columns: 150px 1fr;
		gap: 16px;
		padding: 12px 18px;
	}

	.dt-row > span + span {
		border-left: 0;
		border-top: 1px solid #e2e4f3;
	}

	.dt-row > span[data-label]::before {
		content: attr(data-label);
		font-family: var(--mono);
		font-size: 0.6875rem;
		line-height: 1.5;
		color: #56568a;
		padding-top: 3px;
	}

	.dt-row .dt-first {
		display: block;
		background: var(--dark);
		color: #fff;
		border-radius: 9px 9px 0 0;
	}

	.platform-others {
		flex-direction: column;
		padding-bottom: 56px;
	}
}

@media (max-width: 720px) {

	.path-steps,
	.blocker-grid,
	.reading-grid.items-3 {
		grid-template-columns: 1fr;
	}

	.dt-row > span {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* Pulsanti nella hero delle pagine interne: distanza dal testo come in home. */
.page-hero .hero-actions {
	margin-top: 27px;
}

@media (max-width: 720px) {

	.page-hero .hero-actions {
		margin-top: 25px;
	}
}

/*
 * Pagina App Upgrading: cosa cambia tra le versioni di PHP, le 14 piattaforme
 * raggruppate con il collegamento alla pagina dedicata, metodo, cosa ricevi e
 * la fascia Patching + App Upgrading.
 */
.upgrading-changes h2 > span,
.upgrading-platforms h2 > span,
.upgrading-method h2 > span,
.upgrading-deliverables h2 > span {
	color: var(--blue);
}

.change-grid {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.change-card {
	background: #fff;
	border: 1px solid #e2e4f3;
	border-top: 3px solid var(--blue);
	border-radius: 10px;
	padding: 24px;
}

.change-card:nth-child(2) {
	border-top-color: var(--bright);
}

.change-card:nth-child(3) {
	border-top-color: #d6334a;
}

.change-card:nth-child(4) {
	border-top-color: #00c2aa;
}

.change-version {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: #56568a;
}

.change-card h3 {
	font-size: 1.25rem;
	letter-spacing: -0.3px;
	margin: 10px 0 12px;
	color: #14144a;
}

.change-card p {
	font-size: 0.9375rem;
	margin: 0;
}

.change-card code,
.upgrade-card-path {
	font-family: var(--mono);
	font-size: 0.8125rem;
}

.change-card code {
	color: #2a1a73;
}

.upgrading-platforms {
	background: var(--soft);
}

.upgrade-group + .upgrade-group {
	margin-top: 40px;
}

.upgrade-group-title {
	margin: 0 0 16px;
	font-weight: 400;
}

.upgrade-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.upgrade-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fff;
	border: 1px solid #e2e4f3;
	border-radius: 10px;
	padding: 22px;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.upgrade-card:hover {
	border-color: var(--blue);
	box-shadow: 0 16px 36px -28px rgba(20, 20, 74, 0.6);
}

.upgrade-card-head {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 32px;
}

.upgrade-card-head img {
	display: block;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	object-fit: contain;
}

.upgrade-card-head img.is-wide {
	width: 64px;
	height: 24px;
	flex-basis: 64px;
}

.upgrade-card h3 {
	font-size: 1.25rem;
	letter-spacing: -0.4px;
	color: #14144a;
}

.platform-monogram {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border-radius: 8px;
	background: #ece6ff;
	color: #2a1a73;
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 700;
}

.upgrade-card-tagline {
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
	color: #465467;
}

.upgrade-card-path {
	align-self: flex-start;
	padding: 4px 9px;
	border-radius: 5px;
	background: #ece6ff;
	color: #2a1a73;
	line-height: 1.5;
}

.upgrade-card-link {
	margin-top: auto;
	padding-top: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--blue);
}

.upgrading-deliverables h2 {
	font-size: 2.625rem;
	line-height: 1.2;
}

.upgrading-deliverables .deliverables-grid > div > p {
	font-size: 1.0625rem;
	max-width: 475px;
	margin-top: 24px;
}

.upgrading-bridge {
	padding-top: 0;
}

.bridge-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 50px;
	padding: 44px;
	border-radius: 10px;
	background: var(--dark);
	color: #fff;
}

.bridge-band .eyebrow {
	color: #00fccc;
}

.bridge-band h2 > span {
	color: #00cfff;
}

.bridge-band p {
	color: #c9cbe6;
	font-size: 1.0625rem;
}

.bridge-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 30px;
}

.bridge-links .text-link {
	color: #fff;
}

.bridge-links .text-link:hover {
	color: #00fccc;
}

@media (max-width: 1200px) {

	.change-grid,
	.upgrade-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 950px) {

	.bridge-band {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 32px;
	}

	.upgrading-deliverables h2 {
		font-size: 2.25rem;
	}
}

@media (max-width: 720px) {

	.change-grid,
	.upgrade-cards {
		grid-template-columns: 1fr;
	}

	.bridge-band {
		padding: 28px 22px;
	}

	.upgrading-deliverables h2 {
		font-size: 2.125rem;
	}
}

/*
 * Pagina Patching: equazione pacchetto + patch = PHP patchato, sei fasi,
 * terminale di verifica, esempio PHP 5.6.40, formule, limiti.
 */
.patching-equation h2 > span,
.patching-phases h2 > span,
.patching-version h2 > span,
.patching-plans h2 > span,
.patching-limits h2 > span {
	color: var(--blue);
}

.eq-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr);
	align-items: stretch;
	gap: 20px;
}

.eq-card {
	border: 1px solid #e2e4f3;
	border-top: 3px solid var(--bright);
	border-radius: 10px;
	padding: 28px;
	background: #fff;
}

.eq-card.is-fix {
	border-top-color: var(--blue);
}

.eq-card.is-result {
	background: var(--dark);
	border-color: var(--dark);
	border-top-color: #00fccc;
}

.eq-card h3 {
	font-size: 1.5rem;
	letter-spacing: -0.5px;
	margin-bottom: 14px;
	color: #14144a;
}

.eq-card p {
	font-size: 0.9375rem;
	margin: 0;
}

.eq-card.is-result .eyebrow {
	color: #00fccc;
}

.eq-card.is-result h3 {
	color: #fff;
}

.eq-card.is-result p {
	color: #c9cbe6;
}

.eq-op {
	align-self: center;
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1;
	color: var(--blue);
}

.patching-phases {
	background: var(--soft);
}

.phases-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
	gap: 70px;
	align-items: start;
}

.phases-intro {
	position: sticky;
	top: 120px;
}

.phases-intro h2 {
	margin-bottom: 24px;
}

.phases-intro p {
	font-size: 1.0625rem;
}

.phases-intro .text-link {
	color: var(--blue);
}

.phase-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.phase {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 18px;
	padding: 24px;
	border: 1px solid #e2e4f3;
	border-radius: 10px;
	background: #fff;
}

.phase-num {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ece6ff;
	color: var(--blue);
	font-family: var(--mono);
	font-size: 0.875rem;
	font-weight: 700;
}

.phase:nth-child(3) .phase-num {
	background: var(--blue);
	color: #fff;
}

.phase h3 {
	font-size: 1.25rem;
	letter-spacing: -0.3px;
	margin: 4px 0 8px;
	color: #14144a;
}

.phase p {
	font-size: 0.9375rem;
	margin: 0;
}

.version-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.terminal {
	border-radius: 10px;
	overflow: hidden;
	background: #00003a;
	box-shadow: 0 28px 60px -34px rgba(19, 36, 60, 0.6);
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #14145c;
}

.terminal-bar > span {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #3a3a8a;
}

.terminal-bar small {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: #b8c3e6;
}

.terminal-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 24px 26px;
	overflow-x: auto;
}

.term-line {
	font-family: var(--mono);
	font-size: 0.875rem;
	line-height: 1.55;
	white-space: pre;
	color: #fff;
}

.term-line.is-cmt {
	margin-top: 10px;
	color: #a9b3d9;
}

.term-line.is-cmt:first-child {
	margin-top: 0;
}

.term-line.is-out {
	color: #00fccc;
}

.change-cols {
	display: grid;
	gap: 16px;
}

.change-col {
	border: 1px solid #e2e4f3;
	border-radius: 10px;
	padding: 24px;
	background: #fff;
}

.change-col h3 {
	font-size: 1.25rem;
	margin-bottom: 12px;
	color: #14144a;
}

.change-col.is-same {
	border-left: 4px solid #00c2aa;
}

.change-col.is-new {
	border-left: 4px solid var(--blue);
}

.change-col ul {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 6px;
	font-size: 0.9375rem;
	color: #465467;
}

.change-col code,
.example-band code {
	font-family: var(--mono);
	font-size: 0.8125rem;
}

.patching-example {
	padding-top: 0;
}

.example-band {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 50px;
	align-items: center;
	padding: 48px;
	border-radius: 10px;
	background: var(--dark);
}

.example-band .eyebrow {
	color: #00fccc;
}

.example-band h2 {
	color: #fff;
	margin-bottom: 20px;
}

.example-band h2 > span {
	color: #00cfff;
}

.example-band p {
	color: #c9cbe6;
}

.example-band code {
	color: #fff;
}

.example-band .text-link {
	color: #fff;
}

.example-band .text-link:hover {
	color: #00fccc;
}

.example-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 18px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border-top: 3px solid #00cfff;
}

.stat.is-ours {
	border-top-color: #a48cff;
}

.stat strong {
	font-size: 3rem;
	line-height: 1;
	font-weight: 500;
	letter-spacing: -1.5px;
	color: #fff;
}

.stat span {
	font-size: 0.875rem;
	line-height: 1.5;
	color: #c9cbe6;
}

.patching-plans {
	background: var(--soft);
}

.plan-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.plan-card {
	padding: 32px;
	border: 1px solid #e2e4f3;
	border-top: 3px solid #d6334a;
	border-radius: 10px;
	background: #fff;
}

.plan-card + .plan-card {
	border-top-color: var(--blue);
}

.plan-card h3 {
	font-size: 1.75rem;
	letter-spacing: -0.6px;
	color: #14144a;
}

.plan-card .plan-sub {
	margin: 8px 0 18px;
}

.plan-card ul {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 8px;
	font-size: 0.9375rem;
	color: #14144a;
}

.plans-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 36px;
}

.plans-links .text-link {
	color: var(--blue);
}

.limit-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.limit-list li {
	padding-top: 20px;
	border-top: 2px solid #d6334a;
}

.limit-list h3 {
	font-size: 1.1875rem;
	margin-bottom: 10px;
	color: #14144a;
}

.limit-list p {
	font-size: 0.9375rem;
	margin: 0;
}

.limits-bridge {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	flex-wrap: wrap;
	padding: 28px 32px;
	border-radius: 10px;
	background: #f0ebff;
}

.limits-bridge p {
	margin: 0;
	font-size: 1.25rem;
	color: #14144a;
}

@media (max-width: 1200px) {

	.eq-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.eq-op {
		justify-self: center;
	}

	.phases-grid,
	.version-grid,
	.example-band {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.phases-intro {
		position: static;
	}

	.limit-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {

	.phase {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 20px;
	}

	.example-band {
		padding: 28px 22px;
	}

	.example-stats,
	.plan-grid,
	.limit-list {
		grid-template-columns: 1fr;
	}

	.plan-card {
		padding: 24px;
	}
}

/*
 * Richiesta di supporto a passi (blocco cwv/support-request). Senza JavaScript
 * tutti i passi sono visibili uno sotto l'altro; con .is-enhanced (view.js) ne
 * resta visibile uno alla volta, con indicatore di avanzamento e riepilogo.
 */
.cwv-support-form [hidden] {
	display: none !important;
}

.cwv-support-form .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cwv-support-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 28px;
	scroll-margin-top: 110px;
}

.support-progress ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	counter-reset: none;
}

.support-progress li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 12px;
	border-top: 3px solid #e2e4f3;
	font-size: 0.875rem;
	color: #56568a;
}

.support-progress-num {
	display: grid;
	place-items: center;
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	background: #ece6ff;
	color: #2a1a73;
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 700;
}

.support-progress li.is-done {
	border-top-color: #00c2aa;
}

.support-progress li.is-done .support-progress-num {
	background: #00c2aa;
	color: #fff;
}

.support-progress li[aria-current="step"] {
	border-top-color: var(--blue);
	color: #14144a;
	font-weight: 500;
}

.support-progress li[aria-current="step"] .support-progress-num {
	background: var(--blue);
	color: #fff;
}

.support-step {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.cwv-support-form:not(.is-enhanced) .support-step + .support-step {
	padding-top: 36px;
	border-top: 1px solid var(--line);
}

.support-step-title {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 1.75rem;
	letter-spacing: -0.6px;
	color: #14144a;
	scroll-margin-top: 110px;
}

.support-step-title:focus {
	outline: none;
}

.support-step-title:focus-visible {
	outline: 3px solid var(--bright);
	outline-offset: 4px;
}

.support-step-num {
	font-family: var(--mono);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--blue);
}

.support-step-intro {
	margin: -14px 0 0;
	font-size: 1rem;
}

.support-group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.support-group legend {
	padding: 0;
	margin-bottom: 10px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #14144a;
}

.support-hint {
	margin: -4px 0 10px;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.support-choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
}

.support-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #c3ccd8;
	border-radius: 8px;
	background: #fff;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: #14144a;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.support-choice:hover {
	border-color: var(--blue);
}

.support-choice:has(:checked) {
	border-color: var(--blue);
	background: #f3efff;
	box-shadow: inset 0 0 0 1px var(--blue);
}

.support-choice:has(:focus-visible) {
	outline: 3px solid var(--bright);
	outline-offset: 2px;
}

.support-choice input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--blue);
}

.support-choice input:focus-visible {
	outline: none;
}

.support-choice img {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.is-cards .support-choices {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-cards .support-choice {
	align-items: flex-start;
	flex-wrap: wrap;
	padding: 18px;
}

.is-cards .support-choice input {
	margin-top: 3px;
}

.is-cards .support-choice strong {
	font-size: 1.125rem;
	font-weight: 600;
}

.is-cards .support-choice span {
	flex-basis: 100%;
	padding-left: 30px;
	font-size: 0.875rem;
	color: #465467;
}

.is-chips .support-choices {
	display: flex;
	flex-wrap: wrap;
}

.is-chips .support-choice {
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 999px;
}

.is-platforms .support-choices {
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.cwv-support-form select {
	display: block;
	width: 100%;
	max-width: 520px;
	padding: 13px 16px;
	border: 1px solid #c3ccd8;
	border-radius: 3px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}

.cwv-support-form select:focus-visible {
	outline: 3px solid var(--bright);
	outline-offset: 2px;
	border-color: var(--blue);
}

.cwv-support-form .support-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.875rem;
	font-weight: 500;
}

.cwv-support-form .cwv-contact-privacy {
	flex-wrap: wrap;
}

.cwv-support-form .cwv-contact-privacy label {
	display: inline;
	margin: 0;
	flex: 1;
	font-weight: 400;
}

.support-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.support-error {
	flex-basis: 100%;
	margin: 8px 0 0;
	padding-left: 12px;
	border-left: 3px solid #c5221f;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #a50e0e;
}

.support-group.is-invalid .support-choice,
.cwv-support-form select[aria-invalid="true"],
.cwv-support-form .support-field [aria-invalid="true"] {
	border-color: #c5221f;
}

.support-urgent {
	margin: 0;
	padding: 16px 18px;
	border-left: 4px solid #d6334a;
	border-radius: 3px;
	background: #fdf0ef;
	font-size: 0.9375rem;
	color: #6d1a1a;
}

.support-urgent a {
	font-weight: 600;
	color: #a50e0e;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.support-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding-top: 8px;
}

.cwv-support-form .button {
	cursor: pointer;
	font-family: inherit;
}

.cwv-support-form .button:disabled {
	opacity: 0.6;
	cursor: progress;
}

.cwv-support-form .button.is-secondary {
	background: #fff;
	color: var(--blue);
}

.cwv-support-form .button.is-secondary:hover {
	background: #f3efff;
}

.support-next,
.support-submit {
	margin-left: auto;
}

.support-summary-list {
	display: grid;
	gap: 16px;
}

.support-summary-group {
	padding: 20px 22px;
	border: 1px solid #e2e4f3;
	border-radius: 10px;
	background: #fff;
}

.support-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 10px;
}

.support-summary-head h3 {
	font-size: 1.125rem;
	color: #14144a;
}

.support-edit {
	min-height: 44px;
	padding: 0 6px;
	border: 0;
	background: none;
	color: var(--blue);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.support-summary-group dl {
	display: grid;
	grid-template-columns: minmax(0, 220px) 1fr;
	gap: 6px 18px;
	margin: 0;
	font-size: 0.9375rem;
}

.support-summary-group dt {
	color: #56568a;
}

.support-summary-group dd {
	margin: 0;
	color: #14144a;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {

	.support-choice {
		transition: none;
	}
}

@media (max-width: 950px) {

	.is-cards .support-choices {
		grid-template-columns: 1fr;
	}

	/* Solo i numeri a vista (il nome è nel titolo), letti dagli screen reader. */
	.support-progress-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@media (max-width: 720px) {

	.support-row,
	.support-summary-group dl {
		grid-template-columns: 1fr;
	}

	.support-summary-group dd {
		margin-bottom: 8px;
	}

	.support-step-title {
		font-size: 1.5rem;
	}

	.support-nav .button {
		flex: 1 1 100%;
		margin-left: 0;
	}
}

/* Pagina Richiedi supporto: modulo a sinistra, colonna laterale a destra. */
.support-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 60px;
	align-items: start;
}

.support-aside {
	position: sticky;
	top: 120px;
	display: grid;
	gap: 16px;
}

.aside-card {
	padding: 24px;
	border: 1px solid #e2e4f3;
	border-radius: 10px;
	background: #fff;
}

.aside-card .eyebrow {
	margin-bottom: 12px;
}

.aside-card p {
	margin: 0 0 10px;
	font-size: 0.9375rem;
}

.aside-card.is-urgent {
	background: var(--dark);
	border-color: var(--dark);
}

.aside-card.is-urgent .eyebrow {
	color: #00fccc;
}

.aside-card.is-urgent p {
	color: #c9cbe6;
}

.aside-phone,
.aside-mail {
	display: inline-flex;
	gap: 10px;
	margin: 4px 0 10px;
	font-size: 1.5rem;
	letter-spacing: -0.4px;
}

.aside-phone {
	color: #fff;
}

.aside-mail {
	font-size: 1.25rem;
	color: var(--blue);
}

.aside-card .aside-note {
	margin: 0;
	font-size: 0.8125rem;
}

.aside-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.aside-steps li {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 12px;
}

.aside-num {
	font-family: var(--mono);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--blue);
	padding-top: 2px;
}

.aside-steps h3 {
	font-size: 1rem;
	color: #14144a;
	margin-bottom: 4px;
}

.aside-steps p {
	margin: 0;
	font-size: 0.875rem;
}

.page-hero .hero-description a {
	color: #00fccc;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

@media (max-width: 1200px) {

	.support-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.support-aside {
		position: static;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}
