/* ==========================================================================
   AXIX Intelligence: fogli di stile
   1. Variabili   2. Base   3. Struttura   4. Intestazione   5. Contenuto
   6. Sezioni e componenti dei layout   7. Pulsanti   8. News e articoli
   9. Moduli   10. Footer   11. Compatibilità con i contenuti esistenti
   ========================================================================== */

/* 1. Variabili ------------------------------------------------------------ */
:root {
	--ax-ink: #16141C;
	--ax-ink-2: #3F3A52;
	--ax-muted: #55516A;
	--ax-ground: #F6F5F8;
	--ax-white: #FFFFFF;
	--ax-line: #E6E3EC;
	--ax-line-2: #DEDAE6;
	--ax-line-3: #C9C4D6;
	--ax-lavender: #DAD2F3;
	--ax-lavender-ink: #2E2450;
	--ax-blush: #F3D5E5;
	--ax-blush-ink: #4A1E3A;
	--ax-sky: #D2DEF3;
	--ax-sky-ink: #1A2E52;
	--ax-peach: #F5DACD;
	--ax-peach-ink: #4F2614;
	--ax-plum: #2A1745;
	--ax-plum-soft: #C9B9EE;
	--ax-plum-text: #F1ECFA;
	--ax-accent: #5B2A99;
	--ax-logo-a: linear-gradient(160deg, #8C7CF0 0%, #E86AC9 100%);
	--ax-logo-slash: #EE6BB5;

	--ax-sans: "Geist", system-ui, "Segoe UI", sans-serif;
	--ax-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

	--ax-wide: 1240px;
	--ax-content: 760px;
	--ax-gutter: clamp(20px, 4vw, 32px);
	--ax-section: clamp(80px, 10vw, 136px);
	--ax-radius: 24px;
	--ax-radius-sm: 10px;

	--ax-fs-display: clamp(44px, 6.4vw, 88px);
	--ax-fs-h1: clamp(40px, 5.2vw, 68px);
	--ax-fs-h2: clamp(36px, 4.6vw, 60px);
	--ax-fs-h3: clamp(26px, 2.6vw, 32px);
	--ax-fs-statement: clamp(28px, 3.4vw, 44px);
	--ax-fs-lead: clamp(18px, 1.5vw, 20px);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ax-ground);
	color: var(--ax-ink);
	font-family: var(--ax-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ax-accent); }

:focus-visible { outline: 2px solid var(--ax-accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ax-serif);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin: 0;
}
p, li { text-wrap: pretty; }

::selection { background: var(--ax-lavender); color: var(--ax-ink); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--ax-white); clip: auto !important; clip-path: none; color: var(--ax-ink);
	display: block; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px; z-index: 100000;
}

.ax-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--ax-ink); color: var(--ax-ground); padding: 10px 16px; border-radius: var(--ax-radius-sm);
	text-decoration: none; transition: top .15s ease;
}
.ax-skip:focus { top: 12px; color: var(--ax-ground); }

/* 3. Struttura ------------------------------------------------------------ */
.ax-wrap {
	width: 100%;
	max-width: calc(var(--ax-wide) + 2 * var(--ax-gutter));
	margin-inline: auto;
	padding-inline: var(--ax-gutter);
}

.ax-main { display: block; }

/* 4. Intestazione --------------------------------------------------------- */
.ax-header { position: relative; z-index: 50; background: var(--ax-ground); }

.ax-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.ax-logo {
	display: inline-flex;
	align-items: center;
	color: var(--ax-ink);
	text-decoration: none;
	flex: none;
}
.ax-logo:hover { color: var(--ax-ink); }

.ax-logo__frame { display: block; line-height: 0; }
.ax-logo__img { display: block; height: 30px; width: auto; }

/* Ritaglio del logo attuale: il file ha fondo bianco e margini ampi (lettere tra 8–93% in larghezza e 30–71% in altezza). */
.ax-logo__frame.is-trimmed {
	--ax-logo-h: 24px;
	height: var(--ax-logo-h);
	width: calc(var(--ax-logo-h) * 3.681);
	overflow: hidden;
}
.ax-logo__frame.is-trimmed .ax-logo__img {
	height: calc(var(--ax-logo-h) / 0.412);
	width: auto;
	max-width: none;
	margin-left: calc(var(--ax-logo-h) * -0.3478);
	margin-top: calc(var(--ax-logo-h) * -0.7172);
	mix-blend-mode: multiply;
}

.ax-wordmark {
	font-family: var(--ax-sans);
	font-weight: 600;
	font-size: 25px;
	letter-spacing: 0.05em;
	line-height: 1;
}
.ax-wordmark__a {
	background: var(--ax-logo-a);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ax-wordmark__slash { color: var(--ax-logo-slash); }

.ax-nav { display: flex; align-items: center; gap: 28px; }
.ax-menu + .ax-lang { margin-left: 12px; }

.ax-menu,
.ax-menu ul { list-style: none; margin: 0; padding: 0; }

.ax-menu { display: flex; align-items: center; gap: 32px; }
.ax-menu > li { position: relative; }
.ax-menu a {
	display: inline-block;
	padding: 8px 0;
	font-size: 15px;
	color: var(--ax-ink);
	text-decoration: none;
}
.ax-menu a:hover { color: var(--ax-accent); }
.ax-menu .current-menu-item > a,
.ax-menu .current_page_item > a,
.ax-menu .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 8px;
}

/* Selettore di lingua */
.ax-lang { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; font-size: 13px; font-weight: 500; }
.ax-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0 6px; border-radius: 8px; color: var(--ax-muted); text-decoration: none; }
.ax-lang a:hover { color: var(--ax-ink); background: rgba(22, 20, 28, .05); }
.ax-lang a[aria-current="true"] { color: var(--ax-ink); background: var(--ax-white); box-shadow: inset 0 0 0 1px var(--ax-line-2); }

/* Sottomenu */
.ax-menu .sub-menu {
	position: absolute; top: 100%; left: -18px; min-width: 220px;
	background: var(--ax-white); border: 1px solid var(--ax-line); border-radius: 14px;
	padding: 10px; box-shadow: 0 24px 48px -24px rgba(22, 20, 28, .25);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
}
.ax-menu .sub-menu a { display: block; padding: 8px 10px; border-radius: 8px; }
.ax-menu .sub-menu a:hover { background: var(--ax-ground); }
.ax-menu li:hover > .sub-menu,
.ax-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.ax-nav-toggle {
	display: none;
	align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-right: -10px;
	background: none; border: 0; border-radius: var(--ax-radius-sm); color: var(--ax-ink); cursor: pointer;
}
.ax-nav-toggle line { transition: transform .2s ease; transform-origin: center; }
.ax-nav-open .ax-nav-toggle__top { transform: translateY(4px) rotate(45deg); }
.ax-nav-open .ax-nav-toggle__bottom { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
	.ax-nav-toggle { display: inline-flex; }
	.ax-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 28px;
		padding: 8px var(--ax-gutter) 32px;
		background: var(--ax-ground); border-bottom: 1px solid var(--ax-line);
		box-shadow: 0 30px 40px -30px rgba(22, 20, 28, .2);
	}
	.ax-nav-open .ax-nav { display: flex; }
	.ax-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ax-menu > li { border-bottom: 1px solid var(--ax-line); }
	.ax-menu a { display: block; padding: 14px 0; font-family: var(--ax-serif); font-size: 26px; }
	.ax-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; background: none; padding: 0 0 12px 16px; min-width: 0;
	}
	.ax-menu .sub-menu a { font-family: var(--ax-sans); font-size: 17px; padding: 8px 0; }
	.ax-nav__cta { align-self: flex-start; }
	.ax-lang a { min-width: 44px; min-height: 44px; font-size: 15px; }
}

/* 5. Contenuto ------------------------------------------------------------ */
.ax-page-header { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 5vw, 64px); }
.ax-page-header .ax-wrap { display: flex; flex-direction: column; gap: 24px; }
.ax-page-header__title {
	font-weight: 300;
	font-size: var(--ax-fs-h1);
	line-height: 1.04;
	letter-spacing: -0.022em;
	max-width: 1000px;
}
.ax-page-header__lead {
	margin: 0;
	max-width: 680px;
	font-size: var(--ax-fs-lead);
	line-height: 1.5;
	color: var(--ax-ink-2);
}
.ax-page-header__lead p { margin: 0; }
.ax-page-header__search { max-width: 560px; }

/* Larghezze del contenuto: testo a 760px, blocchi "ampi" a 1240px, "pieni" a tutta pagina. */
.ax-entry { display: flow-root; padding-bottom: var(--ax-section); }
.ax-page--canvas .ax-entry,
.ax-is-canvas .ax-entry { padding-bottom: 0; }

.ax-entry > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, pre, table, hr, figure, form, details, address,
	.wp-block-image, .wp-block-table, .wp-block-quote, .wp-block-pullquote, .wp-block-embed, .wp-block-buttons,
	.wp-block-group, .wp-block-columns, .wp-block-separator, .wp-block-list, .wp-block-file, .wp-block-gallery,
	.wp-block-media-text, .wp-block-code, .wp-block-preformatted, .wp-block-details, .wp-block-cover, .wp-block-video,
	.wp-block-audio, .fluentform, #toc_container) {
	width: min(var(--ax-content), calc(100% - 2 * var(--ax-gutter)));
	margin-inline: auto;
}
.ax-entry > .alignwide { width: min(var(--ax-wide), calc(100% - 2 * var(--ax-gutter))); max-width: none; margin-inline: auto; }
.ax-entry > .alignfull { width: 100%; max-width: none; margin-inline: 0; }
.ax-entry > .alignleft { float: left; margin: 0.4em 1.6em 1em max(var(--ax-gutter), calc(50% - var(--ax-content) / 2)); max-width: 46%; }
.ax-entry > .alignright { float: right; margin: 0.4em max(var(--ax-gutter), calc(50% - var(--ax-content) / 2)) 1em 1.6em; max-width: 46%; }

/* Ritmo verticale del testo corrente */
.ax-entry > * { margin-top: 0; margin-bottom: 0; }
.ax-entry > * + * { margin-top: 1.15em; }
.ax-entry > .alignfull + .alignfull,
.ax-entry > .alignfull:first-child { margin-top: 0; }
.ax-entry > :where(h2, h3, h4) { margin-top: 1.9em; }
.ax-entry > :where(h2, h3, h4) + * { margin-top: 0.6em; }
:where(.ax-entry) > h2 { font-size: clamp(30px, 3vw, 38px); font-weight: 400; }
:where(.ax-entry) > h3 { font-size: clamp(24px, 2.2vw, 28px); font-weight: 400; }
:where(.ax-entry) > h4 { font-size: 21px; font-weight: 500; }
:where(.ax-entry) > :is(h5, h6) { font-family: var(--ax-sans); font-size: 17px; font-weight: 600; letter-spacing: 0; }
:where(.ax-entry) :where(p, li) { color: var(--ax-ink-2); }
:where(.ax-entry) :where(p, li) a { color: var(--ax-ink); text-decoration: underline; }
:where(.ax-entry) :where(p, li) a:hover { color: var(--ax-accent); }
:where(.ax-entry) :where(ul, ol) { padding-left: 1.3em; }
:where(.ax-entry) li + li { margin-top: 0.4em; }
:where(.ax-entry) strong { font-weight: 600; }

.ax-entry blockquote,
.ax-entry .wp-block-quote {
	margin-block: 2em; padding: 0; border: 0;
	font-family: var(--ax-serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; color: var(--ax-ink);
}
.ax-entry blockquote p { color: var(--ax-ink); margin: 0; }
.ax-entry blockquote cite,
.ax-entry .wp-block-quote cite {
	display: block; margin-top: 16px; font-family: var(--ax-sans); font-size: 14px; font-style: normal; color: var(--ax-muted);
}

.ax-entry figure { margin-block: 2em; }
.ax-entry figure img { border-radius: 16px; }
.ax-entry figcaption,
.ax-entry .wp-element-caption { margin-top: 10px; font-size: 14px; color: var(--ax-muted); text-align: left; }

.ax-entry hr,
.ax-entry .wp-block-separator { border: 0; border-top: 1px solid var(--ax-line-2); margin-block: 3em; }

.ax-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ax-entry th, .ax-entry td { padding: 12px 14px; border-bottom: 1px solid var(--ax-line); text-align: left; vertical-align: top; }
.ax-entry th { font-weight: 600; color: var(--ax-ink); }
.ax-entry .wp-block-table { overflow-x: auto; }

.ax-entry code { font-size: 0.9em; background: var(--ax-white); border: 1px solid var(--ax-line); border-radius: 6px; padding: 0.1em 0.35em; }
.ax-entry pre { background: var(--ax-white); border: 1px solid var(--ax-line); border-radius: 14px; padding: 20px; overflow-x: auto; font-size: 14px; }

.ax-page-links { margin-top: 2em; font-size: 15px; }

/* Indice dei contenuti (plugin Table of Contents Plus) */
#toc_container {
	background: var(--ax-white) !important; border: 1px solid var(--ax-line) !important; border-radius: 16px;
	padding: 20px 24px !important; font-size: 15px; width: auto !important; display: block !important;
}
#toc_container .toc_title { font-weight: 600; text-align: left !important; margin: 0 0 8px; }
#toc_container ul { padding-left: 1em; }

/* 6. Sezioni e componenti dei layout ---------------------------------------- */
/* Le sezioni sono gruppi "a tutta larghezza"; il contenitore interno .ax-inner limita la larghezza. */
.ax-section {
	padding-block: var(--ax-section);
	background: var(--ax-ground);
	color: var(--ax-ink);
}
.ax-section.has-white-background-color,
.ax-section--white { background: var(--ax-white); border-block: 1px solid var(--ax-line); }
.ax-section--white + .ax-section--white { border-top: 0; }
.ax-section.has-plum-background-color,
.ax-section--plum { background: var(--ax-plum); color: var(--ax-plum-text); }
.ax-section--hero { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(48px, 6vw, 72px); }
.ax-section--flush-top { padding-top: 0; }
.ax-section--compact { padding-block: clamp(64px, 8vw, 112px); }

.ax-inner {
	width: 100%;
	max-width: calc(var(--ax-wide) + 2 * var(--ax-gutter));
	margin-inline: auto;
	padding-inline: var(--ax-gutter);
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 5vw, 56px);
}
.ax-inner--narrow { max-width: calc(980px + 2 * var(--ax-gutter)); }
.ax-inner--tight { gap: 24px; }

/* Nei contenitori dei layout le distanze sono date da "gap", non dai margini dei blocchi. */
body :is(.ax-section, .ax-inner, .ax-split, .ax-stack, .ax-card, .ax-card__body, .ax-rule-row, .ax-cp, .ax-cp__item,
	.ax-timeline, .ax-timeline__row, .ax-timeline__body, .ax-facts, .ax-fact, .ax-list, .ax-list__row, .ax-labelled,
	.ax-labelled__body, .ax-cta, .ax-contact, .ax-contact__block, .ax-steps, .ax-step, .ax-form-card) > * {
	margin-block: 0;
}

.ax-stack { display: flex; flex-direction: column; gap: 20px; }
.ax-stack--lg { gap: 32px; }
.ax-stack--sm { gap: 12px; }

/* Testi */
.ax-eyebrow {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--ax-sans); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ax-ink-2);
}
.ax-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.ax-eyebrow--plain::before { display: none; }
.ax-section--plum .ax-eyebrow { color: var(--ax-plum-soft); }

.ax-display {
	font-family: var(--ax-serif);
	font-weight: 300;
	font-size: var(--ax-fs-display);
	line-height: 1.02;
	letter-spacing: -0.025em;
	max-width: 1040px;
}
.ax-h1 { font-weight: 300; font-size: var(--ax-fs-h1); line-height: 1.04; letter-spacing: -0.022em; max-width: 1000px; }
.ax-h2 { font-weight: 300; font-size: var(--ax-fs-h2); line-height: 1.05; letter-spacing: -0.02em; max-width: 780px; }
.ax-h3 { font-weight: 400; font-size: var(--ax-fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
.ax-h4 { font-weight: 400; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
.ax-statement {
	font-family: var(--ax-serif); font-weight: 300; font-size: var(--ax-fs-statement);
	line-height: 1.22; letter-spacing: -0.015em; color: var(--ax-ink);
}
.ax-serif-lead { font-family: var(--ax-serif); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.35; }
.ax-lead { font-size: var(--ax-fs-lead); line-height: 1.55; color: var(--ax-ink-2); max-width: 640px; }
.ax-body { font-size: 17px; color: var(--ax-ink-2); max-width: 680px; }
.ax-small { font-size: 14px; color: var(--ax-muted); }
.ax-section--plum :is(p, li) { color: #D9D0EC; }
.ax-section--plum .ax-serif-lead { color: #E4DCF5; }
.ax-section--plum :where(h1, h2, h3, h4, .ax-statement) { color: var(--ax-plum-text); }

/* Riga titolo + testo a lato */
.ax-split {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 24px clamp(32px, 6vw, 80px);
}
.ax-split > :first-child { flex: 1 1 520px; min-width: 0; }
.ax-split > :last-child:not(:first-child) { flex: 1 1 300px; max-width: 440px; }
.ax-split--top { align-items: flex-start; }
.ax-split--even > *, .ax-split--even > :last-child:not(:first-child) { flex: 1 1 460px; max-width: none; }

/* Riga con filetto superiore (testo + azioni) */
.ax-rule-row {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 28px clamp(32px, 6vw, 64px);
	padding-top: 32px; border-top: 1px solid var(--ax-line-2);
}
.ax-rule-row > .ax-lead,
.ax-rule-row > p { flex: 1 1 460px; max-width: 640px; }
.ax-rule-row--center { align-items: center; }
.ax-section--plum .ax-rule-row { border-color: rgba(241, 236, 250, .2); }

/* Etichetta a sinistra + corpo (dichiarazioni, chi siamo) */
.ax-labelled { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 6vw, 80px); }
.ax-labelled__label { flex: 0 1 220px; font-size: 14px; font-weight: 500; color: var(--ax-muted); padding-top: 0.7em; }
.ax-labelled__body { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* Card */
.ax-cards.wp-block-columns { gap: 20px; margin: 0; flex-wrap: wrap; }
@media (min-width: 782px) { .ax-cards.wp-block-columns { flex-wrap: nowrap; } }
.ax-cards > .wp-block-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ax-cards > .wp-block-column > * { margin: 0; flex: 1 1 auto; }

.ax-card {
	position: relative;
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	border-radius: var(--ax-radius);
	padding: clamp(28px, 3vw, 40px);
	background: var(--ax-white);
	color: var(--ax-ink);
	min-width: 0;
}
.ax-card.has-background { padding: clamp(28px, 3vw, 40px); }
.ax-card--outline { background: var(--ax-white); border: 1px solid var(--ax-line); }
.ax-card--soft { background: var(--ax-ground); }
.ax-card--tall { min-height: 300px; }
.ax-card--hero { min-height: clamp(360px, 36vw, 460px); }
.ax-card--feature { min-height: 360px; }
.ax-card--sm { padding: 28px; gap: 24px; border-radius: 20px; }
.ax-card--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.ax-card--row > .ax-card__body { flex: 1 1 420px; }
.ax-card.has-ink-background-color,
.ax-card--dark { background: var(--ax-ink); color: var(--ax-ground); }
.ax-card.has-plum-background-color { color: var(--ax-plum-text); }

.ax-card :is(p, li) { color: inherit; }
.ax-card .ax-card__label { font-size: 14px; font-weight: 500; color: rgba(22, 20, 28, .72); display: flex; justify-content: space-between; gap: 16px; }
.ax-card.has-ink-background-color .ax-card__label,
.ax-card--dark .ax-card__label,
.ax-card.has-plum-background-color .ax-card__label { color: var(--ax-plum-soft); }
.ax-card__body { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.ax-card__title { font-family: var(--ax-serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 30px); line-height: 1.15; }
.ax-card__title--lg { font-weight: 400; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
.ax-card__title--xl { font-weight: 300; font-size: clamp(34px, 3.6vw, 44px); line-height: 1.08; }
.ax-card__title--sm { font-size: clamp(22px, 2vw, 26px); }
.ax-card__text { font-size: 16px; line-height: 1.55; max-width: 480px; }
.has-lavender-background-color .ax-card__text { color: var(--ax-lavender-ink); }
.has-blush-background-color .ax-card__text { color: var(--ax-blush-ink); }
.has-sky-background-color .ax-card__text { color: var(--ax-sky-ink); }
.has-peach-background-color .ax-card__text { color: var(--ax-peach-ink); }
.has-white-background-color .ax-card__text,
.ax-card--outline .ax-card__text { color: var(--ax-muted); }
.has-ink-background-color .ax-card__text,
.ax-card--dark .ax-card__text { color: #D4D0DE; }
.ax-card__more { font-size: 16px; }
.ax-card__more a { text-decoration: none; }
.ax-card__more a::after { content: " →"; }
.ax-card__serif { font-family: var(--ax-serif); font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }

/* L'intera card diventa cliccabile tramite il link dell'ultimo paragrafo */
.ax-card--link { transition: transform .2s ease; }
.ax-card--link :where(.ax-card__more, .ax-card__serif) a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ax-card--link:hover { transform: translateY(-2px); }
.ax-card--link a { color: inherit; }
.ax-card a { text-decoration: none; }
.ax-card .ax-card__text a { text-decoration: underline; }
.ax-card--link a:hover { color: inherit; }

.ax-card__icon { line-height: 0; }
.ax-card__icon svg { width: 56px; height: 56px; }
.ax-swatch { width: 40px; height: 40px; border-radius: 10px; display: block; }
.ax-swatch--round { border-radius: 50%; }
.ax-swatch--leaf { border-radius: 10px 10px 10px 40px; }

/* Etichette a pillola nelle card */
.ax-tags-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.ax-tags-row span { border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px; opacity: .85; }

/* Illustrazione: linea dei punti di controllo */
.ax-illus-line { position: relative; height: 120px; }
.ax-illus-line::before { content: ""; position: absolute; left: 0; right: 0; top: 59px; height: 2px; background: var(--ax-ink); }
.ax-illus-line__dots { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.ax-illus-line__dots span { width: 22px; height: 22px; border-radius: 50%; background: var(--ax-lavender); border: 2px solid var(--ax-ink); }
.ax-illus-line__dots span.is-key { width: 56px; height: 56px; background: var(--ax-ink); border: 0; }

/* Sette punti di controllo */
.ax-cp {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px; background: rgba(241, 236, 250, .18); border: 1px solid rgba(241, 236, 250, .18);
	border-radius: 16px; overflow: hidden;
}
@media (min-width: 1100px) { .ax-cp { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .ax-cp__item:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.ax-cp__item { background: var(--ax-plum); padding: 24px 20px; display: flex; flex-direction: column; gap: 28px; }
.ax-cp__item.is-highlight { background: var(--ax-lavender); color: var(--ax-ink); }
.ax-cp__key { font-size: 14px; color: var(--ax-plum-soft); }
.ax-cp__item.is-highlight .ax-cp__key { color: #3B2A66; }
.ax-cp__name { font-size: 16px; line-height: 1.35; color: var(--ax-plum-text); }
.ax-cp__item.is-highlight .ax-cp__name { color: var(--ax-ink); font-weight: 500; }

/* Cronologia */
.ax-timeline { display: flex; flex-direction: column; border-top: 1px solid var(--ax-line-2); }
.ax-timeline__row {
	display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 5vw, 64px);
	padding: 28px 0; border-bottom: 1px solid var(--ax-line-2);
}
.ax-timeline__year { flex: 0 0 180px; font-family: var(--ax-serif); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; font-weight: 300; }
.ax-timeline__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ax-timeline__title { font-family: var(--ax-sans); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.ax-timeline__text { color: var(--ax-ink-2); font-size: 16px; max-width: 640px; }

/* Numeri chiave */
.ax-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.ax-fact { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ax-line-2); }
.ax-fact__num { font-family: var(--ax-serif); font-weight: 300; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.ax-fact__label { font-size: 15px; color: var(--ax-ink-2); max-width: 260px; }

/* Elenchi a righe (riconoscimenti, credenziali) */
.ax-list { display: flex; flex-direction: column; border-top: 1px solid var(--ax-line-2); }
.ax-list__row {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
	gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--ax-line-2);
}
.ax-list__title { flex: 1 1 420px; font-family: var(--ax-serif); font-weight: 400; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
.ax-list__meta { flex: 0 1 380px; font-size: 15px; color: var(--ax-muted); }
.ax-list__text { flex: 1 1 100%; font-size: 16px; color: var(--ax-ink-2); max-width: 760px; }

/* Passi di metodo */
.ax-steps.wp-block-columns { gap: 20px; margin: 0; }
.ax-step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--ax-ink); }
.ax-step__n { font-size: 14px; font-weight: 500; color: var(--ax-muted); }
.ax-step__title { font-family: var(--ax-serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.ax-step__text { font-size: 16px; color: var(--ax-ink-2); }

/* Banda finale di contatto */
.ax-cta {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 40px; border-radius: 28px; padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px);
	background: var(--ax-blush);
}
.ax-cta.has-background { padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px); }
.ax-cta > :first-child { flex: 1 1 520px; max-width: 760px; }
.ax-cta__title { font-family: var(--ax-serif); font-weight: 300; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }

/* Citazione */
.ax-quote.wp-block-quote { margin: 0; padding: 0; border: 0; }
.ax-quote p { font-family: var(--ax-serif); font-weight: 300; font-size: var(--ax-fs-statement); line-height: 1.25; letter-spacing: -0.012em; color: var(--ax-ink); margin: 0; }
.ax-quote cite { display: block; margin-top: 20px; font-size: 14px; font-style: normal; color: var(--ax-muted); }

/* Contatti */
.ax-contact { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); align-items: flex-start; }
.ax-contact > :first-child { flex: 1 1 340px; }
.ax-contact > :last-child { flex: 1.4 1 460px; min-width: 0; }
.ax-contact__block { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--ax-line-2); }
.ax-contact__label { font-size: 14px; color: var(--ax-muted); }
.ax-contact__value { font-family: var(--ax-serif); font-size: 24px; line-height: 1.3; }
.ax-contact__value a { text-decoration: none; }
.ax-form-card { background: var(--ax-white); border: 1px solid var(--ax-line); border-radius: var(--ax-radius); padding: clamp(24px, 3vw, 40px); }

/* Ritratto del fondatore */
.ax-portrait img { border-radius: var(--ax-radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Su schermi piccoli le card perdono le altezze minime */
@media (max-width: 781px) {
	.ax-card--hero, .ax-card--tall, .ax-card--feature { min-height: 0; }
	.ax-card { gap: 28px; }
	.ax-illus-line { height: 80px; }
	.ax-illus-line::before { top: 39px; }
	.ax-illus-line__dots span.is-key { width: 40px; height: 40px; }
	.ax-timeline__year { flex-basis: 100%; }
}

/* 7. Pulsanti ------------------------------------------------------------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-buttons > .wp-block-button { margin: 0; }

.ax-btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 13px 22px;
	border: 1px solid var(--ax-ink); border-radius: var(--ax-radius-sm);
	background: var(--ax-ink); color: var(--ax-ground);
	font-family: var(--ax-sans); font-size: 15px; font-weight: 500; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ax-btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover { background: #2C2838; border-color: #2C2838; color: var(--ax-ground); }

.ax-btn--outline,
.is-style-ax-outline .wp-block-button__link {
	background: transparent; color: var(--ax-ink); border-color: var(--ax-line-3);
}
.ax-btn--outline:hover,
.is-style-ax-outline .wp-block-button__link:hover { background: var(--ax-white); color: var(--ax-ink); border-color: var(--ax-ink); }

.is-style-ax-light .wp-block-button__link { background: var(--ax-plum-text); color: var(--ax-plum); border-color: var(--ax-plum-text); }
.is-style-ax-light .wp-block-button__link:hover { background: var(--ax-white); color: var(--ax-plum); border-color: var(--ax-white); }
.ax-section--plum .is-style-ax-outline .wp-block-button__link,
.has-ink-background-color .is-style-ax-outline .wp-block-button__link { color: var(--ax-plum-text); border-color: rgba(241, 236, 250, .35); }
.ax-section--plum .is-style-ax-outline .wp-block-button__link:hover,
.has-ink-background-color .is-style-ax-outline .wp-block-button__link:hover { background: rgba(241, 236, 250, .08); color: var(--ax-plum-text); border-color: var(--ax-plum-text); }

.is-style-ax-link .wp-block-button__link,
.ax-arrow-link {
	min-height: 0; padding: 4px 0; background: none; border: 0; color: inherit; font-weight: 500; font-size: 16px; text-decoration: none;
}
.is-style-ax-link .wp-block-button__link::after,
.ax-arrow-link::after { content: "→"; transition: transform .15s ease; }
.is-style-ax-link .wp-block-button__link:hover,
.ax-arrow-link:hover { background: none; color: var(--ax-accent); }
.is-style-ax-link .wp-block-button__link:hover::after,
.ax-arrow-link:hover::after { transform: translateX(3px); }

.ax-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 8. News e articoli ------------------------------------------------------ */
.ax-listing { padding-bottom: var(--ax-section); }

.ax-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
	gap: 40px 24px;
}
.ax-post-card { position: relative; display: flex; flex-direction: column; gap: 18px; }
.ax-post-card__media {
	aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--ax-lavender);
	display: flex; align-items: center; justify-content: center;
}
.ax-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ax-post-card:hover .ax-post-card__media img { transform: scale(1.02); }
.ax-post-card__glyph { width: 30%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ax-ink); position: relative; }
.ax-post-card__glyph::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--ax-ink); }
.ax-post-card__body { display: flex; flex-direction: column; gap: 10px; }
.ax-post-card__title { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; font-weight: 400; }
.ax-post-card__title a { text-decoration: none; }
.ax-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.ax-post-card__excerpt { margin: 0; font-size: 15px; color: var(--ax-muted); }

.ax-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ax-muted); }
.ax-meta__cat { color: var(--ax-ink); font-weight: 500; }

.ax-empty { font-size: 18px; color: var(--ax-muted); }

.ax-pagination { margin-top: 64px; }
.ax-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ax-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--ax-line-2); border-radius: var(--ax-radius-sm); text-decoration: none; font-size: 15px;
}
.ax-pagination .page-numbers.current { background: var(--ax-ink); color: var(--ax-ground); border-color: var(--ax-ink); }
.ax-pagination .page-numbers.dots { border: 0; }

.ax-article__header { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 56px); }
.ax-article__head { max-width: calc(880px + 2 * var(--ax-gutter)); display: flex; flex-direction: column; gap: 20px; }
.ax-back { font-size: 14px; color: var(--ax-muted); text-decoration: none; }
.ax-article__title { font-weight: 300; font-size: clamp(38px, 4.8vw, 60px); line-height: 1.06; letter-spacing: -0.02em; }
.ax-article__lead { margin: 0; font-family: var(--ax-serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--ax-ink-2); }
.ax-article__byline { margin: 0; font-size: 14px; color: var(--ax-muted); }
.ax-article__media { margin-top: clamp(32px, 4vw, 48px); margin-bottom: 0; }
.ax-article__media img { width: 100%; border-radius: var(--ax-radius); aspect-ratio: 16 / 8; object-fit: cover; }
.ax-entry--article { font-size: 18px; line-height: 1.7; }
.ax-article__footer { width: min(var(--ax-content), calc(100% - 2 * var(--ax-gutter))); margin: -48px auto var(--ax-section); }

.ax-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ax-tags a { display: inline-block; font-size: 14px; padding: 6px 12px; border: 1px solid var(--ax-line-2); border-radius: 999px; text-decoration: none; }

.ax-related { background: var(--ax-white); border-top: 1px solid var(--ax-line); padding-block: clamp(64px, 8vw, 112px); }
.ax-related .ax-wrap { display: flex; flex-direction: column; gap: 40px; }
.ax-related .ax-split { align-items: baseline; }

.ax-comments { padding-bottom: var(--ax-section); }
.ax-comments__inner { max-width: calc(var(--ax-content) + 2 * var(--ax-gutter)); display: flex; flex-direction: column; gap: 32px; }
.ax-comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.ax-comment-list .comment-body { padding: 20px 0; border-top: 1px solid var(--ax-line); font-size: 16px; }
.ax-comment-list .avatar { border-radius: 50%; }

/* 404 */
.ax-404 { padding: clamp(80px, 12vw, 160px) 0; }
.ax-404 .ax-wrap { display: flex; flex-direction: column; gap: 28px; }
.ax-404__title { font-weight: 300; font-size: var(--ax-fs-h1); line-height: 1.05; letter-spacing: -0.02em; max-width: 900px; }
.ax-404__search { max-width: 560px; }

/* 9. Moduli --------------------------------------------------------------- */
.ax-search { display: flex; gap: 10px; }
.ax-search__input { flex: 1 1 auto; min-width: 0; }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"],
input[type="number"], input[type="password"], input[type="date"], select, textarea,
.fluentform .ff-el-form-control {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font: inherit; font-size: 16px; color: var(--ax-ink);
	background: var(--ax-white);
	border: 1px solid var(--ax-line-3);
	border-radius: var(--ax-radius-sm);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
textarea, .fluentform textarea.ff-el-form-control { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus,
.fluentform .ff-el-form-control:focus {
	outline: none; border-color: var(--ax-ink); box-shadow: 0 0 0 3px rgba(91, 42, 153, .18);
}
label, .fluentform .ff-el-input--label label { font-size: 14px; font-weight: 500; color: var(--ax-ink-2); }

/* Fluent Forms */
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-btn-submit,
.fluentform .ff_submit_btn_wrapper .ff-btn {
	min-height: 48px; padding: 13px 24px !important;
	background: var(--ax-ink) !important; color: var(--ax-ground) !important; border: 1px solid var(--ax-ink) !important;
	border-radius: var(--ax-radius-sm) !important; font-family: var(--ax-sans); font-size: 15px; font-weight: 500;
	box-shadow: none !important;
}
.fluentform .ff-btn-submit:hover { background: #2C2838 !important; }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: #B42318; }
.fluentform .error, .fluentform .text-danger { color: #B42318; font-size: 14px; }
.ff-message-success { border: 1px solid var(--ax-line); border-radius: var(--ax-radius-sm); background: var(--ax-white); padding: 16px 18px; box-shadow: none; }

/* 10. Footer -------------------------------------------------------------- */
.ax-footer { border-top: 1px solid var(--ax-line); padding: 64px 0 40px; font-size: 14px; }
.ax-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.ax-footer__brand { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.ax-footer__brand p { margin: 0; font-size: 15px; color: var(--ax-ink-2); }
.ax-footer__cols { flex: 0 1 720px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px 56px; }
.ax-footer__title { font-family: var(--ax-sans); font-size: 14px; font-weight: 400; color: var(--ax-muted); letter-spacing: 0; margin-bottom: 14px; }
.ax-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ax-footer__list a { text-decoration: none; }
.ax-footer__list a:hover { text-decoration: underline; color: var(--ax-ink); }
.ax-footer__bottom {
	margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ax-line);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--ax-muted); font-size: 13px;
}
.ax-footer__bottom p { margin: 0; }
.ax-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.ax-legal a { text-decoration: none; }
.ax-legal a:hover { text-decoration: underline; }

/* 11. Compatibilità con i contenuti esistenti (GenerateBlocks) --------------
   Le pagine costruite con GenerateBlocks mantengono la loro impaginazione;
   qui allineiamo solo caratteri e pulsanti allo stile del tema. */
.ax-entry .gb-headline,
.ax-entry h1.gb-headline, .ax-entry h2.gb-headline { font-family: var(--ax-serif); font-weight: 400; }
.ax-entry .gb-button {
	border-radius: var(--ax-radius-sm) !important;
	background-color: var(--ax-ink) !important;
	color: var(--ax-ground) !important;
	font-family: var(--ax-sans);
	font-weight: 500;
}
.ax-entry .gb-button:hover { background-color: #2C2838 !important; }

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Stampa */
@media print {
	.ax-header, .ax-footer, .ax-related, .ax-comments, .ax-nav-toggle { display: none !important; }
	body { background: #fff; }
}
