/**
 * Axtheme - the stylesheet.
 *
 * Values of the ratified mockup, direction B (docs/wiki/raw/specifiche/
 * 2026-11-08-mockup-b-identita-propria/stile.css), reduced to what the
 * templates, parts and patterns use. Colours are theme.json presets: the dark
 * theme at the end redefines them, so no rule here needs a dark twin.
 */

/* ==========================================================================
 * Base
 * ======================================================================= */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

/* The mockup's sizes assume border-box; WordPress does not set it. Scoped to
   the theme's own components, at zero specificity, so a form plugin or the
   editor chrome is not re-boxed behind its back. */
:where(.ax-utility, .ax-header, .ax-home, .ax-page, .ax-contact, .ax-footer),
:where(.ax-utility, .ax-header, .ax-home, .ax-page, .ax-contact, .ax-footer) *,
:where(.ax-utility, .ax-header, .ax-home, .ax-page, .ax-contact, .ax-footer) *::before,
:where(.ax-utility, .ax-header, .ax-home, .ax-page, .ax-contact, .ax-footer) *::after {
	box-sizing: border-box;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 6px;
}

.ax-hero :focus-visible,
.ax-page-head :focus-visible {
	outline-color: var(--wp--preset--color--forest);
}

.ax-contact :focus-visible,
.ax-footer :focus-visible {
	outline-color: #fff;
}

.ax-container {
	width: min(var(--wp--custom--container), calc(100% - 64px));
	margin-inline: auto;
}

.ax-eyebrow {
	margin: 0 0 16px;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.ax-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	border: 1px solid transparent;
	transition: transform 0.18s;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.ax-button-light .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--forest);
}

/* ==========================================================================
 * Utility bar and header
 * ======================================================================= */
.ax-utility {
	background: var(--wp--preset--color--band);
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
}

.ax-utility .ax-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	padding-block: 8px;
}

.ax-utility p {
	margin: 0;
}

.ax-utility-label {
	flex: 1 1 440px;
	min-width: 0;
}

.ax-utility-links {
	display: flex;
	align-items: center;
	gap: 24px;
}

.ax-utility-links a {
	position: relative;
	color: inherit;
	text-decoration: none;
}

/* A 44px target around a 12px line, without making the bar taller. */
.ax-utility-links p > a::before {
	content: "";
	position: absolute;
	inset: auto 0;
	top: 50%;
	height: 44px;
	transform: translateY(-50%);
}

.ax-utility-links a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ax-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ax-header-inner {
	min-height: 84px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	position: relative;
}

.ax-header .wp-block-site-logo img {
	width: 148px;
	height: auto;
	filter: var(--ax-logo-filter, none);
}

.ax-header-actions {
	display: flex;
	align-items: center;
	gap: 28px;
}

.ax-header .wp-block-navigation {
	gap: 28px;
}

.ax-header .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-block: 8px;
	border-bottom: 2px solid transparent;
}

.ax-header .wp-block-navigation-item__content:hover {
	border-color: var(--wp--preset--color--ink);
}

/* The core paints submenus and the phone overlay white with black text; here
   they take the page's surface and ink, so they follow the dark theme. The
   selectors outweigh the core's :not(.has-background) rules. */
.ax-header .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container,
.ax-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--line);
}

.ax-header .wp-block-button__link {
	white-space: nowrap;
}

/* "Accedi" as a menu item exists for the phone overlay only; above 600px the
   plugin's button in the header does the job. */
.ax-header .ax-nav-principale .ax-nav-accedi {
	display: none;
}

.ax-header .ax-nav-accedi > .wp-block-navigation-item__content {
	padding: 12px 23px;
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	font-weight: 700;
}

/* Search: the core block as an icon that opens the field. */
.ax-header-search .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 0;
	border: 0;
}

.ax-header-search .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	background: transparent;
	color: var(--wp--preset--color--ink);
}

.ax-header-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.ax-header-search .wp-block-search__input {
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font: inherit;
}

/* The open field is a bar under the header, as wide as the container, on a
   band across the page. The band reaches the edges through a spread shadow
   clipped to its own height: 100vw would add the scrollbar's width and a
   horizontal scroll. */
.ax-header-search:not(.wp-block-search__searchfield-hidden)::before {
	content: "";
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 1;
	height: 80px;
	background: var(--wp--preset--color--surface);
	box-shadow:
		0 0 0 100vmax var(--wp--preset--color--surface),
		0 1px 0 100vmax var(--wp--preset--color--line);
	clip-path: inset(0 -100vmax -1px);
}

.ax-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	position: absolute;
	top: calc(100% + 16px);
	right: 0;
	left: 0;
	z-index: 2;
	width: auto;
	height: 48px;
}

/* The core navigation switches to its overlay below 600px, a fixed
   breakpoint; the mockup collapses the menu at 880px. */
@media (max-width: 880px) {
	.ax-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.ax-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.ax-header-actions .wp-block-navigation {
		order: 1;
	}
}

/* ==========================================================================
 * Social links (core block from the plugin) and the light/dark switch
 * ======================================================================= */
.ax-social.wp-block-social-links {
	gap: 8px;
	margin: 0;
}

/* The core gives each item a line box: 40px of height around a 28px target
   in the utility bar. The item is only a frame. */
.ax-social .wp-social-link {
	display: flex;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.ax-social .wp-social-link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 11px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	color: inherit;
}

.ax-social .wp-social-link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.ax-utility .ax-social {
	gap: 3px;
	padding-left: 14px;
	border-left: 1px solid var(--wp--preset--color--line);
}

.ax-utility .ax-social .wp-social-link a {
	min-width: 28px;
	min-height: 28px;
	padding: 5px;
	border: 0;
	border-radius: 4px;
}

.ax-utility .ax-social .wp-social-link svg {
	width: 15px;
	height: 15px;
}

/* The plugin's switch is a label around a checkbox (no script): the box is
   hidden but keeps focus, the label is the 28px target. Negative block margins
   let it overhang into the bar's padding instead of making the line taller. */
.ax-utility .ax-utility-links .scheme-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	min-height: 28px;
	margin: -5px 0 -5px 3px;
	padding: 5px;
	border-radius: 4px;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.scheme-toggle input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.scheme-toggle:has(input:focus-visible) {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.scheme-toggle .icon {
	width: 15px;
	height: 15px;
}

.scheme-toggle .moon {
	display: var(--ax-scheme-moon, block);
}

.scheme-toggle .sun {
	display: var(--ax-scheme-sun, none);
}

/* ==========================================================================
 * Home: opening
 * ======================================================================= */
/* Text on the logo's aqua stays dark in both themes: 7.1:1. Headings take the
   logo's grey (7.36:1 on white; 3.95:1 on the aqua, large text only); the dark
   theme gives them the ink. */
:root {
	--ax-on-aqua: #2f3030;
	--ax-heading: var(--wp--preset--color--forest);
}

.ax-hero,
.ax-page-head,
.ax-band.has-mint-background-color {
	--ax-heading: var(--wp--preset--color--forest);
}

.ax-hero {
	background: var(--wp--preset--color--teal);
	color: var(--ax-on-aqua);
}

.ax-hero-inner {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 65px;
	align-items: center;
	padding-block: 65px 70px;
}

.ax-hero h1 {
	max-width: 670px;
	margin: 0 0 24px;
}

/* The full stop of the mockup's titles, drawn: a typed one would be read. */
.ax-hero h1::after {
	content: "";
	display: inline-block;
	width: 0.12em;
	height: 0.12em;
	margin-left: 0.035em;
	border-radius: 50%;
	background: currentColor;
}

.ax-hero-lead {
	max-width: 610px;
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.ax-hero-actions {
	margin-top: 30px;
}

.ax-hero .wp-block-button__link {
	background: var(--wp--preset--color--forest);
	color: #fff;
}

.ax-hero-visual {
	position: relative;
	padding: 34px 0 8px 25px;
	isolation: isolate;
}

.ax-visual-grid {
	position: absolute;
	inset: 55px 0 25px;
	z-index: -1;
	background:
		repeating-linear-gradient(0deg, transparent 0, transparent 39px, #2f303024 40px),
		repeating-linear-gradient(90deg, transparent 0, transparent 39px, #2f303024 40px);
}

.ax-visual-grid::before {
	content: "";
	position: absolute;
	inset: -15px 18px 35px;
	border: 1px solid #2f303070;
	border-radius: 50%;
}

.ax-learning-card {
	margin-right: 22px;
	padding: 25px 28px;
	border: 1px solid var(--wp--preset--color--forest);
	border-radius: 18px 18px 4px 18px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	box-shadow: 10px 12px 0 var(--wp--preset--color--forest);
	transform: rotate(-3deg);
}

.ax-learning-symbol {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-bottom: 26px;
	border-radius: 18px;
	background: var(--wp--preset--color--teal);
	color: var(--ax-on-aqua);
}

.ax-learning-symbol .ax-icon {
	width: 42px;
	height: 42px;
}

.ax-learning-card .ax-eyebrow {
	margin-bottom: 12px;
	font-size: 0.625rem;
}

.ax-learning-title {
	max-width: 320px;
	margin: 0;
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.04em;
}

.ax-learning-ticket {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 31px 0 0 50px;
	padding: 18px 22px;
	border-radius: 4px 18px 18px 18px;
	background: var(--wp--preset--color--forest);
	color: #fff;
	box-shadow: 6px 6px 0 #ffffff6b;
	transform: rotate(3deg);
}

.ax-learning-ticket .ax-icon {
	width: 32px;
	height: 32px;
}

.ax-learning-ticket p {
	margin: 0;
	font-size: 0.75rem;
}

.ax-learning-ticket strong {
	display: block;
	font-size: 0.875rem;
}

/* ==========================================================================
 * Home: sections
 * ======================================================================= */
.ax-section {
	padding-block: 80px;
}

.ax-section h2 {
	max-width: 750px;
	margin: 0;
}

.ax-mode-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin-top: 42px;
}

.ax-mode-card {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--preset--color--paper);
}

.ax-mode-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

.ax-mode-top .ax-icon {
	width: 38px;
	height: 38px;
	color: var(--wp--preset--color--ink);
}

.ax-mode-card h3 {
	margin: 0 0 12px;
}

.ax-mode-card h3 a {
	text-decoration: none;
}

.ax-mode-card h3 a:hover {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.ax-mode-card p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

.ax-section .ax-container > p {
	max-width: 50rem;
	margin-block-start: 24px;
}

.ax-section .ax-container > .wp-block-buttons {
	margin-block-start: 32px;
}

.ax-areas {
	gap: 12px;
}

.ax-areas .wp-block-button__link {
	border-color: currentColor;
}

/* Brand fields keep their light background in the dark theme. The logo's grey on its
   aqua is 3.95:1, too little for body text: the band's text takes the dark on-aqua. */
.ax-band.has-mint-background-color.has-forest-color {
	color: var(--ax-on-aqua) !important;
}

.ax-band :focus-visible {
	outline-color: var(--wp--preset--color--forest);
}

/* ==========================================================================
 * Internal pages
 * ======================================================================= */
.ax-page {
	overflow-x: clip;
}

.ax-page-head {
	padding-block: clamp(3rem, 6vw, 5rem) clamp(2.25rem, 4vw, 3.5rem);
	background: var(--wp--preset--color--teal);
	color: var(--ax-on-aqua);
}

.ax-page-head h1 {
	max-width: 30ch;
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.12;
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: auto;
}

.ax-page-head .ax-eyebrow,
.ax-page-head a {
	color: inherit;
}

.ax-page-head p {
	margin: 1rem 0 0;
}

.ax-page-head .wp-block-search {
	max-width: 50rem;
	margin-top: 1.75rem;
}

.ax-page-head .wp-block-search__input {
	min-height: 48px;
	border: 1px solid var(--wp--preset--color--forest);
	border-radius: var(--wp--custom--radius);
	background: #fff;
	color: var(--wp--preset--color--forest);
}

.ax-page-head .wp-block-search__button,
.ax-page-head .wp-block-button__link {
	background: var(--wp--preset--color--forest);
	color: #fff;
}

.ax-page-body {
	padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 7vw, 6rem);
}

/* padding-inline 0: the constrained layout adds the root padding on top of
   the container, which already keeps the text off the viewport's edge. */
.ax-page-body .entry-content {
	padding-inline: 0;
}

.ax-page-body .entry-content > * + * {
	margin-block-start: 1.25rem;
}

.ax-page-image {
	margin-bottom: 2.5rem;
}

.ax-page-image img {
	border-radius: 16px;
}

.ax-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	overflow: clip;
}

.ax-card .wp-block-post-featured-image {
	margin: 0;
}

.ax-card-body {
	padding: 22px;
}

.ax-card-meta {
	font-size: var(--wp--preset--font-size--x-small);
}

.ax-card-title {
	margin: 8px 0 12px;
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.ax-card-title a {
	text-decoration: none;
}

.ax-card-title a:hover {
	text-decoration: underline;
}

.ax-card .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

.ax-pagination {
	gap: 8px;
	margin-top: 2.5rem;
}

.ax-pagination a,
.ax-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.ax-post-nav {
	gap: 1rem 2rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ax-post-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* The theme's block gap is 0: page patterns get their rhythm here. */
.ax-page-body .entry-content > h2,
.ax-page-body .entry-content > .ax-columns {
	margin-block-start: 3rem;
}

.ax-page-body .wp-block-column > * + *,
.ax-page-body .ax-band > * + *,
.ax-page-body .ax-plugin-output > * + *,
.ax-faq > * + * {
	margin-block-start: 1.25rem;
}

.ax-page-body .wp-block-list > li + li {
	margin-block-start: 0.5rem;
}

.ax-columns {
	gap: 2rem 4rem;
}

.ax-page-body .ax-band {
	margin-block-start: 4rem;
	padding: clamp(1.75rem, 4vw, 3rem);
	border-radius: 16px;
}

.ax-page-body .entry-content > .ax-faq + .ax-faq {
	margin-block-start: 0;
}

.ax-faq {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ax-faq summary {
	padding-block: 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

.ax-faq[open] {
	padding-bottom: 1rem;
}

/* ==========================================================================
 * Contact band, footer and legal bar: always on the logo's grey
 * ======================================================================= */
.ax-contact {
	padding-block: 69px 73px;
	background: var(--wp--preset--color--forest);
	color: #fff;
	border-bottom: 1px solid #acadad;
}

.ax-contact-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 23px 70px;
	align-items: center;
}

.ax-contact h2 {
	grid-row: 1 / span 2;
	max-width: 590px;
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.ax-contact .wp-block-buttons {
	align-self: end;
}

.ax-contact-direct {
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.9375rem;
}

.ax-contact-direct p {
	margin: 0;
}

.ax-contact-direct a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #fff;
	text-underline-offset: 5px;
}

.ax-footer {
	padding-top: 59px;
	background: var(--wp--preset--color--forest);
	color: #fff;
}

.ax-footer-main {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 65px;
	padding-bottom: 41px;
}

/* The footer is always dark: the logo is drawn white, as the mockup's white
   wordmark. */
.ax-footer .wp-block-site-logo img {
	width: 135px;
	height: auto;
	filter: brightness(0) invert(1);
}

.ax-footer-description {
	max-width: 260px;
	margin: 15px 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--on-forest);
}

.ax-footer-brand .ax-social {
	margin-top: 21px;
	color: #fff;
}

.ax-footer-brand .ax-social .wp-social-link a {
	border-color: #acadad;
}

.ax-footer h2 {
	margin: 0 0 14px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0;
}

.ax-footer a {
	color: var(--wp--preset--color--on-forest);
	text-decoration: none;
}

.ax-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ax-footer-links .wp-block-navigation__container {
	gap: 0;
	font-size: 0.875rem;
	font-weight: 400;
}

.ax-footer-links .wp-block-navigation-item__content,
.ax-footer address a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.ax-footer address {
	margin: 0;
	font-style: normal;
	font-size: 0.875rem;
	color: var(--wp--preset--color--on-forest);
}

.ax-map-link {
	margin: 8px 0 0;
}

/* The marks are a transparent PNG drawn for a light page. */
.ax-certifications {
	margin: 20px 0 0;
}

.ax-certifications img {
	display: block;
	max-width: 100%;
	height: auto;
	padding: 8px 10px;
	border-radius: var(--wp--custom--radius);
	background: #fff;
}

.ax-map-link a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.ax-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding-block: 22px 25px;
	border-top: 1px solid #acadad;
	font-size: 0.75rem;
	color: var(--wp--preset--color--on-forest);
}

.ax-footer-bottom p {
	margin: 0;
}

.ax-legal-links .wp-block-navigation__container {
	gap: 9px 20px;
	font-size: 0.75rem;
	font-weight: 400;
}

.ax-legal-links .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* ==========================================================================
 * Responsive: the mockup's breakpoints
 * ======================================================================= */
@media (max-width: 1100px) {
	.ax-header .wp-block-navigation,
	.ax-header-actions {
		gap: 20px;
	}

	.ax-footer-main {
		gap: 35px;
	}
}

@media (max-width: 980px) {
	.ax-hero-inner {
		gap: 36px;
		padding-block: 61px 65px;
	}

	.ax-hero-visual {
		padding-left: 10px;
	}

	.ax-learning-card {
		margin-right: 18px;
		padding-inline: 22px;
	}

	.ax-learning-title {
		font-size: 2rem;
	}

	.ax-learning-ticket {
		margin-left: 30px;
	}

	.ax-mode-grid {
		gap: 25px;
	}

	.ax-mode-card {
		padding: 22px;
	}

	.ax-contact-inner {
		column-gap: 35px;
	}
}

@media (max-width: 880px) {
	.ax-header-inner {
		min-height: 78px;
	}

	.ax-header .wp-block-site-logo img {
		width: 137px;
	}

	.ax-hero-inner {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	.ax-hero-visual {
		width: 100%;
		max-width: 480px;
		margin-inline: auto;
		padding-inline: 15px 5px;
	}

	.ax-section {
		padding-block: 60px;
	}

	.ax-mode-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ax-mode-card {
		padding: 26px;
	}

	.ax-contact-inner {
		grid-template-columns: 1fr;
	}

	.ax-contact h2 {
		grid-row: auto;
		margin-bottom: 12px;
	}

	.ax-footer-bottom {
		flex-direction: column;
		align-items: start;
		gap: 12px;
	}
}

@media (max-width: 600px) {
	.ax-container {
		width: calc(100% - 36px);
	}

	.ax-utility .ax-container {
		padding-block: 7px;
		font-size: 0.6875rem;
	}

	.ax-utility-links {
		gap: 0;
	}

	.ax-utility-phone,
	.ax-utility .ax-social {
		display: none;
	}

	.ax-header-inner {
		min-height: 72px;
	}

	.ax-header .wp-block-site-logo img {
		width: 126px;
	}

	.ax-header-actions {
		gap: 18px;
	}

	.ax-header:has(.ax-nav-accedi) .ax-header-actions .header-cta {
		display: none;
	}

	.ax-header .ax-nav-principale .ax-nav-accedi {
		display: flex;
	}

	.ax-hero-inner {
		gap: 34px;
		padding-block: 43px 44px;
	}

	.ax-hero-lead {
		font-size: 1rem;
	}

	.ax-hero-visual {
		padding-top: 14px;
	}

	.ax-learning-card {
		margin-right: 14px;
	}

	.ax-learning-title {
		font-size: 1.875rem;
	}

	.ax-learning-ticket {
		margin-left: 25px;
		padding-inline: 18px;
	}

	.ax-section {
		padding-block: 49px 54px;
	}

	.ax-mode-grid {
		margin-top: 32px;
	}

	.ax-contact {
		padding-block: 49px 54px;
	}

	.ax-contact-inner {
		row-gap: 24px;
	}

	.ax-contact h2 {
		margin-bottom: 1px;
		font-size: 2rem;
	}

	.ax-footer {
		padding-top: 43px;
	}

	.ax-footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 31px 24px;
		padding-bottom: 32px;
	}

	.ax-footer-brand {
		grid-column: 1 / -1;
	}

	.ax-footer-description {
		max-width: 310px;
	}

	.ax-footer address {
		font-size: 0.8125rem;
		overflow-wrap: anywhere;
	}

	.ax-footer-bottom {
		padding-block: 20px 24px;
	}

	.ax-legal-links .wp-block-navigation__container {
		gap: 10px 17px;
	}
}

@media (max-width: 360px) {
	.ax-utility .ax-container {
		justify-content: center;
	}

	.ax-header-inner {
		gap: 18px;
	}

	.ax-header-actions {
		gap: 10px;
	}

	.ax-footer-main {
		grid-template-columns: 1fr;
	}

	.ax-footer-brand {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}

	.wp-block-button__link:hover {
		transform: none;
	}
}

/* ==========================================================================
 * Dark theme
 *
 * It follows the device. The plugin forces one side with html[data-theme];
 * with "auto" it renders the #tema-scuro checkbox, which inverts the device's
 * scheme on this page. The three blocks hold the same values. Teal,
 * the logo's grey and aqua and the text on grey are the brand's fixed fields:
 * listed with their own values so every preset has a declared dark value. Minimum text contrast in
 * the dark pairs: 7.95:1.
 * ======================================================================= */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]):not(:has(#tema-scuro:checked)) {
		color-scheme: dark;
		--wp--preset--color--ink: #e9eaea;
		--wp--preset--color--muted: #bcbdbd;
		--wp--preset--color--surface: #1f2020;
		--wp--preset--color--paper: #262727;
		--wp--preset--color--band: #191a1a;
		--wp--preset--color--line: #4d4f4f;
		--wp--preset--color--teal: #78ccc8;
		--wp--preset--color--forest: #555656;
		--wp--preset--color--mint: #78ccc8;
		--wp--preset--color--on-forest: #ffffff;
		--ax-heading: var(--wp--preset--color--ink);
		--ax-logo-filter: brightness(0) invert(1);
		--ax-scheme-moon: none;
		--ax-scheme-sun: block;
	}
}

@media (prefers-color-scheme: light) {
	:root:has(#tema-scuro:checked) {
		color-scheme: dark;
		--wp--preset--color--ink: #e9eaea;
		--wp--preset--color--muted: #bcbdbd;
		--wp--preset--color--surface: #1f2020;
		--wp--preset--color--paper: #262727;
		--wp--preset--color--band: #191a1a;
		--wp--preset--color--line: #4d4f4f;
		--wp--preset--color--teal: #78ccc8;
		--wp--preset--color--forest: #555656;
		--wp--preset--color--mint: #78ccc8;
		--wp--preset--color--on-forest: #ffffff;
		--ax-heading: var(--wp--preset--color--ink);
		--ax-logo-filter: brightness(0) invert(1);
		--ax-scheme-moon: none;
		--ax-scheme-sun: block;
	}
}

html[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--ink: #e9eaea;
	--wp--preset--color--muted: #bcbdbd;
	--wp--preset--color--surface: #1f2020;
	--wp--preset--color--paper: #262727;
	--wp--preset--color--band: #191a1a;
	--wp--preset--color--line: #4d4f4f;
	--wp--preset--color--teal: #78ccc8;
	--wp--preset--color--forest: #555656;
	--wp--preset--color--mint: #78ccc8;
	--wp--preset--color--on-forest: #ffffff;
	--ax-heading: var(--wp--preset--color--ink);
	--ax-logo-filter: brightness(0) invert(1);
	--ax-scheme-moon: none;
	--ax-scheme-sun: block;
}
