/*
Theme Name: Formazione AI Act
Theme URI: https://formazioneaiact.it
Description: Tema figlio di Twenty Twenty-Five per formazioneaiact.it, con la grafica della vecchia home della piattaforma.
Author: Emooc Plus srl
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: formazioneaiact
*/

html { overflow-x: clip; }

/* ===== Header ===== */
.fa-header {
	background:
		radial-gradient(500px 160px at 90% 0%, rgba(139, 92, 246, .35), transparent 70%),
		linear-gradient(160deg, #0b1030 0%, #141a4a 100%);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.fa-header a { color: #fff; }
.fa-header .wp-block-navigation a { text-decoration: none; font-weight: 600; }
.fa-header .wp-block-navigation a:hover,
.fa-header .wp-block-navigation a:focus-visible { color: #67e8f9; }
.fa-header .wp-block-navigation .fa-nav-cta a {
	background: linear-gradient(90deg, #22d3ee, #67e8f9);
	color: #0b1030 !important;
	padding: .45em 1em;
	border-radius: 10px;
}
.fa-header .wp-block-navigation__responsive-container.is-menu-open { background: #0b1030 !important; color: #fff !important; }
.fa-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.2rem; }
.fa-header .wp-block-navigation__responsive-container.is-menu-open .fa-nav-cta a { padding: .5em 1.1em !important; margin-top: .5em; }

.fa-wordmark { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.fa-wordmark a { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: #fff; }
.fa-wordmark a::before {
	content: "";
	flex: 0 0 auto;
	width: 1.6em; height: 1.6em;
	border-radius: .45em;
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55) 0 12%, transparent 13%),
		linear-gradient(135deg, #22d3ee, #8b5cf6 55%, #ec4899);
	box-shadow: 0 6px 16px -6px rgba(34, 211, 238, .7);
}

.fa-header .wc-block-mini-cart__button { color: #fff; padding: .25em; }
.fa-header .wc-block-mini-cart__badge { background: #22d3ee; color: #0b1030; border-color: #0b1030; }

/* ===== Footer ===== */
.fa-footer { background: #0b1030; color: #8f95c4; font-size: .9rem; }
.fa-footer strong { color: #c9cdf0; }
.fa-footer a { color: #c9cdf0; }
.fa-footer a:hover, .fa-footer a:focus-visible { color: #67e8f9; }
.fa-footer .fa-footer-brand { color: #fff; font-weight: 800; margin: 0; }
.fa-legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4em 1.4em; }
.fa-legal-links li { margin: 0; }

/* ===== WooCommerce ===== */
.fa-qty-hint { margin: 0 0 .75rem; font-size: .95rem; color: var(--wp--preset--color--accent-4); }
.fa-qty-hint strong { display: block; color: var(--wp--preset--color--contrast); }
.woocommerce .quantity .qty { min-height: 2.8em; }

/* Focus visibile ovunque */
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Header, contenuto e footer attaccati (niente blockGap tra le parti del template) */
.home .wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > footer { margin-block-start: var(--wp--preset--spacing--60); }
.home .wp-site-blocks > footer { margin-block-start: 0; }

@media (max-width: 420px) {
	.fa-wordmark { font-size: 1rem; }
}
