/* Footer - Figma 235:402 (desktop), 225:68 (mobile). Sempre caricato. */
.cc-footer {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: calc(100% - 48px);
	max-width: 1440px;
	margin: 0 auto 24px;
	padding: 24px;
	background: var(--cc-navy);
	border-radius: var(--wp--custom--radius--hero);
}

/* Dopo il lead form navy a tutta larghezza il footer resta attaccato: le due fasce si fondono. */
main:has(> .cc-lead:last-child) + .cc-footer {
	width: auto;
	max-width: none;
	margin: 0;
	padding-inline: max(24px, calc((100% - 1392px) / 2));
	border-radius: 0 0 var(--wp--custom--radius--hero) var(--wp--custom--radius--hero);
}

.cc-footer__links {
	display: flex;
	flex-direction: column;
	gap: 54.5px;
	padding: 64px 64px 45px;
	background: #fff;
	border-radius: var(--wp--custom--radius--card);
}

.cc-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.cc-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-size: 15px;
	line-height: normal;
}

.cc-footer__title {
	margin: 0 0 18px;
	font-family: var(--cc-font-heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--outro);
	line-height: 1.5;
	color: var(--cc-navy);
}

.cc-footer__col a,
.cc-footer__col span {
	font-size: 15px;
	line-height: normal;
	color: var(--wp--preset--color--testo-footer);
	text-decoration: none;
}

.cc-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.cc-footer__contact {
	margin: 0;
	font-size: 15px;
	color: var(--wp--preset--color--testo-footer);
}

.cc-footer__contact a {
	color: inherit;
	text-decoration: none;
}

.cc-footer__sep {
	margin: 0 12px;
}

.cc-footer__actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cc-footer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px; /* 0.10.0 (B3): taglia M */
	padding: 13px 26px;
	line-height: 1.3;
	background: var(--cc-red);
	color: #fff;
	border-radius: var(--wp--custom--radius--tondo);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--outro);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--cc-ease);
}

.cc-footer__social {
	display: flex;
	gap: 12px;
}

.cc-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: var(--wp--preset--color--grigio-chiaro);
	border-radius: var(--wp--custom--radius--tondo);
	transition: background-color var(--cc-ease), transform var(--cc-ease);
}

.cc-footer__social img {
	width: 18px;
	height: 18px;
}

.cc-footer__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 40px 24px; /* 05/11: riquadro piu basso (il nome grande c'e gia nell'hero) */
	background: var(--wp--preset--color--crema);
	border-radius: var(--wp--custom--radius--card);
	color: var(--cc-navy);
}

.cc-footer__brand-logo {
	width: 110px;
	height: auto;
	flex: none;
}

.cc-footer__wordmark {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cc-footer__name {
	margin: 0;
	font-family: var(--cc-font-heading);
	font-weight: 800;
	font-size: 84px;
	line-height: 1;
}

.cc-footer__tagline {
	margin: 0;
	font-family: var(--cc-font-script);
	font-size: 30px;
	line-height: 1.2;
}

.cc-footer__legal {
	margin: 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--nota);
	color: rgba(255, 255, 255, 0.85); /* 0.10.0 (C3): era 0.6, 4,18:1 */
}

/* 0.11.5: disclaimer del cliente, righe di lettura comoda. */
.cc-footer__legal--disclaimer {
	max-width: 880px;
	margin-inline: auto;
	line-height: 1.5;
}

/* Hover (PROPOSTA). */
@media (hover: hover) {
	.cc-footer__col a:hover,
	.cc-footer__contact a:hover {
		color: var(--cc-navy);
		text-decoration: underline;
		text-underline-offset: 4px;
	}

	.cc-footer__cta:hover {
		background: var(--cc-red-hover);
	}

	.cc-footer__social a:hover {
		background: var(--wp--preset--color--lavanda-bordo);
		transform: translateY(-2px);
	}
}

/* Focus su fondo navy: anello bianco per i link esterni alla card bianca. */
.cc-footer__links :where(a):focus-visible {
	outline-color: var(--cc-navy);
}

@media (max-width: 1100px) {
	.cc-footer__name {
		font-size: 64px; /* 05/11: in scala col desktop a 84 */
		line-height: 1;
	}

	.cc-footer__tagline {
		font-size: 26px;
	}

	.cc-footer__links {
		padding: 48px 32px 40px;
	}
}

@media (max-width: 768px) {
	.cc-footer {
		width: calc(100% - 24px);
		margin-bottom: 12px;
		gap: 12px;
		padding: 16px 12px;
		border-radius: var(--wp--custom--radius--card);
	}

	main:has(> .cc-lead:last-child) + .cc-footer {
		width: auto;
		margin-bottom: 0;
		padding-inline: 12px;
		border-radius: 0;
	}

	.cc-footer__links {
		gap: 28px;
		padding: 32px 24px;
		border-radius: var(--wp--custom--radius--chip);
	}

	.cc-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}

	.cc-footer__col ul {
		gap: 10px;
		font-size: 13px;
	}

	.cc-footer__title {
		margin-bottom: 10px;
		font-size: var(--wp--preset--font-size--piccolo);
	}

	.cc-footer__col a,
	.cc-footer__col span,
	.cc-footer__col .cc-footer__prefs {
		font-size: 13px;
	}

	.cc-footer__bottom {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
		text-align: center;
	}

	.cc-footer__contact {
		order: 2;
		font-size: 12px;
	}

	.cc-footer__actions {
		order: 1;
		flex-direction: column;
		align-items: stretch;
	}

	.cc-footer__cta {
		padding: 13px 26px;
		text-align: center;
	}

	.cc-footer__social {
		display: none;
	}

	.cc-footer__brand {
		flex-direction: column;
		gap: 6px;
		padding: 32px 16px;
		border-radius: var(--wp--custom--radius--chip);
		text-align: center;
	}

	.cc-footer__brand-logo {
		width: 56px;
	}

	.cc-footer__wordmark {
		align-items: center;
		gap: 4px;
	}

	.cc-footer__name {
		font-weight: 900;
		font-size: 34px;
		line-height: 1.1;
	}

	.cc-footer__tagline {
		max-width: 12em;
		font-size: 22px;
	}

	.cc-footer__legal {
		font-size: 12px; /* 0.10.0 (C3): minimo 12, era 11 */
	}
}

/* Preferenze cookie: bottone con l'aspetto dei link di colonna. */
.cc-footer__prefs {
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: 15px;
	line-height: normal;
	color: var(--wp--preset--color--testo-footer);
	text-align: left;
	cursor: pointer;
}

@media (hover: hover) {
	.cc-footer__prefs:hover {
		color: var(--cc-navy);
		text-decoration: underline;
		text-underline-offset: 4px;
	}
}

/* S8 #1 - Avviso emergenze nel footer: sopra la riga contatti, centrato. */
.cc-footer__avviso {
	padding: 14px 20px;
	background: var(--wp--preset--color--grigio-chiaro);
	border-radius: var(--wp--custom--radius--chip);
	color: var(--wp--preset--color--testo-footer);
	text-align: center;
}

/* S8 #10 - Telefono: link del footer con area di tocco alta 44 px (WCAG 2.5.8) e testo a 14 px. */
@media (max-width: 768px) {
	.cc-footer__col ul {
		gap: 0;
	}

	.cc-footer__col a,
	.cc-footer__col span,
	.cc-footer__col .cc-footer__prefs {
		display: flex;
		align-items: center;
		min-height: 44px;
		font-size: var(--wp--preset--font-size--piccolo);
	}

	.cc-footer__title {
		margin-bottom: 4px;
	}

	.cc-footer__contact a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}
