/*
 * Orfin Articoli: template articolo e blocchi.
 * Mobile first. Colori presi dal tema attivo: token del design system del nuovo sito se presenti
 * (--navy, --link, --ink, --ink-muted, --surface-alt, --tint-*, --border…), altrimenti quelli del tema attuale
 * (--navy2, --muted, --pale, --line). Il font è sempre quello del tema.
 * Le dimensioni del testo partono da .oa in px e scalano in em: il risultato non dipende dalla
 * dimensione di base impostata dal tema sull'elemento html.
 * Punti di rottura: 480, 640, 768, 1100 px.
 */

:root {
	/* Colori: prima i token del design system del nuovo tema (--navy, --link, --ink…), poi quelli del tema
	   attuale (--navy2, --muted, --pale, --line), infine i valori fissi. Il plugin segue il tema attivo. */
	--oa-navy: var(--navy, #0a3258);
	--oa-navy-2: var(--link, var(--navy2, #124b78));
	--oa-yellow: var(--yellow, #fdca14);
	--oa-yellow-soft: var(--tint-yellow, #fff6db);
	--oa-ink: var(--ink, #18334b);
	--oa-muted: var(--ink-muted, var(--muted, #5f7283));
	--oa-pale: var(--surface-alt, var(--pale, #f3f6f8));
	--oa-blue-soft: var(--tint-blue, #eef4fa);
	--oa-line: var(--border, var(--line, #dce5eb));
	--oa-field: var(--border-control, #6f8394);
	--oa-green: #1d6b3a;
	--oa-green-soft: #eef7f1;
	--oa-amber: #7a5600;
	--oa-red: var(--error, #b3261e);
	--oa-white: #fff;
	--oa-radius: var(--radius-lg, 14px);
	--oa-radius-sm: var(--radius-md, 8px);
	--oa-shadow: 0 1px 2px rgba(10, 50, 88, .06), 0 6px 20px rgba(10, 50, 88, .06);
	--oa-offset: 82px;
	--oa-gutter: 16px;
	--oa-col: 720px;
	--oa-focus: var(--focus-ring, var(--navy2, #124b78));
	/* Testo: tre misure oltre ai titoli. Corpo 17px (18px da 768px), secondario mai sotto 16px, note mai sotto 14px. */
	--oa-fs-2: max(16px, .92em);
	--oa-fs-meta: max(14px, .84em);
}

/* ------------------------------------------------------------------ Base */

html.oa-js { scroll-padding-top: calc(var(--oa-offset) + 16px); }
.oa h2, .oa h3, .oa [id] { scroll-margin-top: 0; } /* il tema usa scroll-margin-top sugli H2: si somma allo scroll-padding */

.oa {
	color: var(--oa-ink);
	font-size: 17px;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-wrap: break-word;
}
.oa *, .oa *::before, .oa *::after { box-sizing: border-box; }
.oa [hidden] { display: none !important; } /* l'attributo hidden vince sempre sugli stili dei componenti */
.oa :focus-visible,
.oa-sticky :focus-visible { outline: 3px solid var(--oa-focus); outline-offset: 2px; border-radius: 4px; }
.oa img { max-width: 100%; height: auto; }

.oa-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.oa-ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.oa-ico--back { transform: scaleX(-1); }

.oa-wrap { width: min(1180px, 100% - 2 * var(--oa-gutter)); margin-inline: auto; }

/* ------------------------------------------------------------------ Barra di lettura */

.oa-progress {
	position: fixed; top: var(--oa-offset); left: 0; right: 0; height: 3px; z-index: 60;
	background: transparent; pointer-events: none;
}
.oa-progress__bar {
	display: block; height: 100%; width: 100%; background: var(--oa-navy-2);
	transform: scaleX(0); transform-origin: 0 50%;
}
.oa-progress__bar::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 0; }

/* ------------------------------------------------------------------ Layout */

.oa-article { padding: 12px 0 48px; }
.oa-layout { display: flex; flex-direction: column; max-width: var(--oa-col); margin-inline: auto; }
.oa-layout > * { margin-top: 0; margin-bottom: 0; }
.oa-layout > * + * { margin-top: 28px; }
.oa-layout > .oa-hero, .oa-layout > .oa-inbreve { margin-top: 20px; }
.oa-layout > .oa-trust, .oa-layout > .oa-rail { margin-top: 16px; }

@media (min-width: 1100px) {
	.oa-layout {
		display: grid;
		max-width: none;
		grid-template-columns: minmax(0, var(--oa-col)) 300px;
		column-gap: clamp(32px, 3.5vw, 64px);
		justify-content: center;
		align-items: start;
	}
	.oa-layout > * { grid-column: 1; }
	.oa-layout > .oa-rail {
		grid-column: 2; grid-row: 1 / span 40; align-self: start; margin-top: 0;
		position: sticky; top: calc(var(--oa-offset) + 20px);
		max-height: calc(100vh - var(--oa-offset) - 40px);
	}
	/* Se l'indice è lungo scorre solo l'indice: la CTA laterale resta sempre visibile. */
	.oa-rail > .oa-toc { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	.oa-rail > .oa-rail__cta { flex: none; }
}

/* ------------------------------------------------------------------ Testata */

.oa-bc { font-size: var(--oa-fs-meta); line-height: 1.4; color: var(--oa-muted); margin: 4px 0 14px; }
.oa-bc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.oa-bc li { display: inline-flex; align-items: center; min-width: 0; }
.oa-bc li + li::before { content: "›"; margin: 0 8px; color: var(--oa-muted); }
.oa-bc a { color: var(--oa-navy-2); text-decoration: underline; text-underline-offset: 2px; padding: 6px 0; }
.oa-bc li[aria-current] { flex: 1 1 0; min-width: 0; max-width: 100%; }
.oa-bc li[aria-current] span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-wrap > .rank-math-breadcrumb, .oa-wrap > nav.rank-math-breadcrumb { font-size: var(--oa-fs-meta); color: var(--oa-muted); margin: 4px 0 14px; }
.oa-wrap > .rank-math-breadcrumb a { color: var(--oa-navy-2); }

.oa-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.oa-tag {
	display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px;
	background: var(--oa-blue-soft); color: var(--oa-navy); font-size: var(--oa-fs-meta); font-weight: 700; letter-spacing: .02em;
	text-decoration: none; text-transform: uppercase;
}
.oa-tag:hover { background: #dfeaf5; }
.oa-title {
	margin: 0; color: var(--oa-navy); font-size: 1.65em; line-height: 1.18; font-weight: 700; letter-spacing: -.01em;
	text-wrap: balance;
}
.oa-lead { margin: 0; font-size: 1.06em; line-height: 1.55; color: var(--oa-ink); }
.oa-byline { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: var(--oa-fs-meta); line-height: 1.45; color: var(--oa-muted); }
.oa-byline p { margin: 0; }
.oa-byline__who { color: var(--oa-ink); }
.oa-byline__who a { color: var(--oa-navy-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.oa-byline__meta { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; }
.oa-byline__time { display: inline-flex; align-items: center; gap: 4px; }
.oa-byline__time .oa-ico { width: 16px; height: 16px; }
.oa-avatar {
	display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
	background: var(--oa-navy); color: var(--oa-white); font-weight: 700; font-size: .95em; object-fit: cover;
}

.oa-hero { margin: 0; }
.oa-hero__img {
	display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover;
	border-radius: var(--oa-radius); background: var(--oa-pale);
}
/* Sotto i 1100 px l'In breve viene prima dell'immagine: contenuto utile subito, senza scorrere oltre una foto. */
@media (max-width: 1099.98px) {
	.oa-layout > * { order: 3; }
	.oa-layout > .oa-head { order: 0; }
	.oa-layout > .oa-inbreve { order: 1; }
	.oa-layout > .oa-fstart { order: 1; }
	.oa-layout > .oa-hero { order: 2; }
}
.oa-hero--full .oa-hero__img { aspect-ratio: auto; object-fit: initial; }
.oa-hero__caption { margin-top: 6px; font-size: var(--oa-fs-meta); color: var(--oa-muted); }

@media (min-width: 768px) {
	.oa { font-size: 18px; }
	.oa-title { font-size: 2.1em; }
	.oa-lead { font-size: 1.1em; }
}
@media (min-width: 1100px) {
	.oa-title { font-size: 2.35em; }
}

/* ------------------------------------------------------------------ In breve */

.oa-inbreve {
	padding: 18px 18px 16px; border-radius: var(--oa-radius); background: var(--oa-blue-soft);
	border: 1px solid #d5e3f0;
}
.oa-inbreve__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.1em; line-height: 1.3; color: var(--oa-navy); }
.oa-inbreve__icon { color: var(--oa-navy-2); }
.oa-inbreve__body > :first-child { margin-top: 0; }
.oa-inbreve__body > :last-child { margin-bottom: 0; }
.oa-inbreve__body ul, .oa-inbreve__body ol { list-style: none; margin: 0; padding: 0; }
.oa-inbreve__body li { position: relative; padding-left: 30px; margin: 8px 0 0; line-height: 1.55; }
.oa-inbreve__body li::before {
	content: ""; position: absolute; left: 2px; top: .3em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--oa-navy-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.oa-inbreve__body p { margin: 8px 0 0; }
.oa-inbreve__more { margin: 12px 0 0; }

/* ------------------------------------------------------------------ Link e bottoni */

.oa-link { display: inline-flex; align-items: center; gap: 6px; color: var(--oa-navy-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.oa-link:hover { text-decoration-thickness: 2px; }

.oa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 20px; border-radius: var(--oa-radius-sm); border: 2px solid transparent;
	font: inherit; font-size: 1em; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
	cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
	-webkit-tap-highlight-color: transparent;
}
.oa-btn .oa-ico { width: 20px; height: 20px; }
.oa-btn--primary { background: var(--oa-yellow); color: var(--oa-navy); border-color: var(--oa-yellow); }
.oa-btn--primary:hover { background: #ffd84a; border-color: #ffd84a; color: var(--oa-navy); }
.oa-btn--secondary { background: var(--oa-white); color: var(--oa-navy); border-color: var(--oa-navy); }
.oa-btn--secondary:hover { background: var(--oa-blue-soft); color: var(--oa-navy); }
.oa-btn--ghost { background: transparent; color: var(--oa-navy-2); border-color: transparent; padding-inline: 10px; }
.oa-btn--ghost:hover { background: var(--oa-pale); }
.oa-btn--block { display: flex; width: 100%; }
.oa-btn--lg { min-height: 56px; font-size: 1.05em; }
.oa-btn[disabled], .oa-btn[aria-busy="true"] { opacity: .65; cursor: progress; }

/* ------------------------------------------------------------------ CTA */

.oa-cta {
	display: grid; gap: 12px; padding: 18px; border-radius: var(--oa-radius);
	background: var(--oa-white); border: 1px solid var(--oa-line); box-shadow: var(--oa-shadow);
}
.oa-cta p { margin: 0; }
.oa-cta__title { font-weight: 700; color: var(--oa-navy); font-size: 1.05em; line-height: 1.35; }
.oa-cta__support { color: var(--oa-muted); font-size: var(--oa-fs-2); line-height: 1.5; margin-top: 2px !important; }
.oa-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.oa-cta__actions .oa-btn { flex: 1 1 auto; }
.oa-cta .oa-note { grid-column: 1 / -1; }
.oa-cta--top { padding: 14px 16px; box-shadow: none; background: var(--oa-pale); border-color: var(--oa-line); }
.oa-cta--top .oa-cta__title { font-size: .98em; }
.oa-cta--middle { border-left: 5px solid var(--oa-yellow); }
.oa-cta--bottom { background: var(--oa-navy); border-color: var(--oa-navy); color: var(--oa-white); --oa-focus: var(--oa-yellow); }
.oa-cta--bottom .oa-cta__title { color: var(--oa-white); }
.oa-cta--bottom .oa-cta__support, .oa-cta--bottom .oa-note { color: #d8e4ef; }
.oa-cta--bottom .oa-link { color: var(--oa-white); }
@media (min-width: 640px) {
	.oa-cta { grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; padding: 20px 22px; }
	.oa-cta__actions .oa-btn { flex: 0 0 auto; }
	.oa-cta__actions { justify-content: flex-end; }
}

/* Primo passo del form dopo l'In breve: tre risposte, un tocco apre il passo successivo. */
.oa-fstart {
	display: grid; gap: 12px; padding: 18px; border-radius: var(--oa-radius);
	background: var(--oa-navy); color: var(--oa-white); --oa-focus: var(--oa-yellow);
}
.oa-fstart p { margin: 0; }
.oa-fstart__step { font-size: var(--oa-fs-meta); font-weight: 700; color: var(--oa-yellow); }
.oa-fstart__q { font-size: 1.3em; line-height: 1.25; font-weight: 700; color: var(--oa-white); }
.oa-fstart__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.oa-fstart__opts > li { display: flex; }
.oa-fstart__opts > li > .oa-fstart__opt { flex: 1; }
.oa-fstart__opt {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px 8px 16px;
	border-radius: var(--oa-radius-sm); background: var(--oa-white); color: var(--oa-navy);
	font-weight: 700; line-height: 1.3; text-decoration: none;
}
.oa-fstart__opt:hover { background: var(--oa-blue-soft); color: var(--oa-navy); }
.oa-fstart__label { flex: 1; min-width: 0; }
.oa-fstart__go { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--oa-yellow); color: var(--oa-navy); }
.oa-fstart__go .oa-ico { width: 20px; height: 20px; }
.oa-fstart__note { font-size: var(--oa-fs-meta); color: #d8e4ef; }
.oa-fstart .oa-link { color: var(--oa-white); justify-self: start; }
@media (min-width: 768px) {
	.oa-fstart { padding: 22px 24px; }
	.oa-fstart__opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.oa-note { font-size: var(--oa-fs-meta); line-height: 1.5; color: var(--oa-muted); }

/* ------------------------------------------------------------------ Fascia fiducia */

.oa-trust {
	list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 10px;
	border-top: 1px solid var(--oa-line); border-bottom: 1px solid var(--oa-line);
	font-size: var(--oa-fs-2); line-height: 1.4;
}
.oa-trust__item { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.oa-trust__item .oa-ico { color: var(--oa-navy-2); width: 20px; height: 20px; margin-top: 1px; }
.oa-trust__item strong { color: var(--oa-navy); }
.oa-trust a { color: var(--oa-navy-2); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 640px) {
	.oa-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ Indice */

.oa-rail { display: flex; flex-direction: column; gap: 16px; }
.oa-toc { border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: var(--oa-white); }
.oa-toc__summary {
	display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px;
	cursor: pointer; list-style: none; font-weight: 700; color: var(--oa-navy);
}
.oa-toc__summary::-webkit-details-marker { display: none; }
.oa-toc__label { display: inline-flex; align-items: center; gap: 8px; }
.oa-toc__count { margin-left: auto; font-weight: 400; font-size: var(--oa-fs-meta); color: var(--oa-muted); }
.oa-toc__chev { transition: transform .2s; color: var(--oa-navy-2); }
.oa-toc[open] .oa-toc__chev { transform: rotate(180deg); }
.oa-toc__nav { padding: 0 8px 10px; }
.oa-toc__list, .oa-toc__sub { list-style: none; margin: 0; padding: 0; counter-reset: oa-toc; }
.oa-toc__item { margin: 0; }
.oa-toc__list > .oa-toc__item { counter-increment: oa-toc; }
.oa-toc a {
	display: block; position: relative; padding: 8px 10px 8px 14px; border-radius: 8px;
	color: var(--oa-ink); text-decoration: none; font-size: var(--oa-fs-2); line-height: 1.4;
}
.oa-toc a:hover { background: var(--oa-pale); text-decoration: underline; }
.oa-toc__sub a { padding-left: 28px; font-size: var(--oa-fs-meta); color: var(--oa-muted); }
.oa-toc a[aria-current] { background: var(--oa-blue-soft); color: var(--oa-navy); font-weight: 700; }
.oa-toc a[aria-current]::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--oa-navy-2); }

.oa-rail__cta { display: none; }
@media (min-width: 1100px) {
	.oa-toc__summary { cursor: default; }
	.oa-rail__cta {
		display: block; padding: 18px; border-radius: var(--oa-radius); background: var(--oa-navy); color: var(--oa-white);
		--oa-focus: var(--oa-yellow);
	}
	.oa-rail__cta p { margin: 0 0 12px; }
	.oa-rail__title { font-weight: 700; font-size: 1.05em; }
	.oa-rail__text { font-size: var(--oa-fs-2); line-height: 1.5; color: #d8e4ef; }
}

/* ------------------------------------------------------------------ Corpo */

.oa-content { font-size: 1em; }
.oa-content > * { margin-top: 0; margin-bottom: 0; }
.oa-content > * + * { margin-top: 1.1em; }
.oa-content p { line-height: 1.72; }
.oa-content h2 {
	margin-top: 2.1em; margin-bottom: 0; color: var(--oa-navy); font-size: 1.45em; line-height: 1.25; font-weight: 700;
	scroll-margin-top: 0; text-wrap: balance; /* lo spazio sopra lo dà scroll-padding-top su html */
}
.oa-content h3 {
	margin-top: 1.7em; color: var(--oa-navy); font-size: 1.18em; line-height: 1.3; font-weight: 700;
	scroll-margin-top: 0;
}
.oa-content h4 { margin-top: 1.4em; font-size: 1.02em; color: var(--oa-navy); }
.oa-content h2 + *, .oa-content h3 + *, .oa-content h4 + * { margin-top: .6em; }
.oa-content h2:empty, .oa-content h3:empty, .oa-content p:empty { display: none; }
.oa-content a:not(.oa-btn):not(.oa-link):not(.or-btn) {
	color: var(--oa-navy-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.oa-content a:not(.oa-btn):not(.oa-link):not(.or-btn):hover { text-decoration-thickness: 2px; color: var(--oa-navy); }
.oa-content ul, .oa-content ol { padding-left: 1.3em; }
.oa-content ul:where(:not([class]), .wp-block-list) { list-style: disc; }
.oa-content ol:where(:not([class]), .wp-block-list) { list-style: decimal; }
.oa-content li { margin: .35em 0; line-height: 1.65; }
.oa-content li::marker { color: var(--oa-navy-2); }
.oa-content strong { color: var(--oa-navy); }
.oa-content blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--oa-yellow); color: var(--oa-ink); }
.oa-content figure { margin-inline: 0; }
.oa-content figcaption { font-size: var(--oa-fs-meta); color: var(--oa-muted); margin-top: 6px; }
.oa-content img { border-radius: var(--oa-radius-sm); }
.oa-content hr { border: 0; border-top: 1px solid var(--oa-line); margin: 2em 0; }
.oa-content .oa-cta, .oa-content .oa-box, .oa-content .oa-check, .oa-content .oa-example, .oa-content .oa-info,
.oa-content .oa-cards, .oa-content .oa-table, .oa-content .oa-tool, .oa-content .wp-block-table { margin-top: 1.6em; margin-bottom: 1.6em; }
.oa-content > h2 { padding-top: .2em; }

/* CTA esistenti negli articoli (tema): stessa leggibilità del nuovo template. */
.oa-content .orfin-cta, .oa-content .or-ctainline { margin-top: 1.6em; margin-bottom: 1.6em; }
.oa-content .or-ctainline p { margin: 0; }
.oa-content .or-ctainline .or-btn { text-decoration: none; }

/* ------------------------------------------------------------------ Box */

.oa-box {
	padding: 16px 18px; border-radius: var(--oa-radius); background: var(--oa-pale);
	border: 1px solid var(--oa-line); border-left-width: 5px;
}
.oa-box__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-weight: 700; color: var(--oa-navy); font-size: 1em; line-height: 1.35; }
.oa-box__title .oa-ico { width: 22px; height: 22px; }
.oa-box__body > :first-child { margin-top: 0; }
.oa-box__body > :last-child { margin-bottom: 0; }
.oa-box__body p { margin: .5em 0 0; }
.oa-box__body ul, .oa-box__body ol { margin: .5em 0 0; padding-left: 1.2em; }
.oa-box--answer { background: var(--oa-blue-soft); border-color: #cfe0ef; border-left-color: var(--oa-navy-2); }
.oa-box--answer .oa-box__body { font-size: 1.04em; }
.oa-box--info { border-left-color: var(--oa-navy-2); }
.oa-box--warning { background: var(--oa-yellow-soft); border-color: #f2df9f; border-left-color: var(--oa-yellow); }
.oa-box--warning .oa-box__title { color: var(--oa-amber); }
.oa-box--tip { background: var(--oa-green-soft); border-color: #cfe6d7; border-left-color: var(--oa-green); }
.oa-box--tip .oa-box__title { color: var(--oa-green); }
.oa-box--source { background: var(--oa-white); border-left-color: var(--oa-navy); }
.oa-box--source .oa-box__body { font-size: var(--oa-fs-2); }
.oa-box--summary { background: var(--oa-white); border: 2px solid var(--oa-navy); border-left-width: 2px; padding: 20px; }
.oa-box--summary .oa-box__title { font-size: 1.25em; margin-bottom: 8px !important; }

/* ------------------------------------------------------------------ Requisiti e documenti */

.oa-check { padding: 16px 18px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: var(--oa-white); }
.oa-check__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; font-weight: 700; color: var(--oa-navy); }
.oa-check__title .oa-ico { color: var(--oa-navy-2); }
.oa-check__body ul, .oa-check__body ol { list-style: none; margin: 0; padding: 0; }
.oa-check__body li { position: relative; margin: 0; padding: 10px 0 10px 34px; border-top: 1px solid var(--oa-line); line-height: 1.5; }
.oa-check__body li:first-child { border-top: 0; }
.oa-check__body li::before {
	content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 6px;
	background: var(--oa-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23124b78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.oa-check--documenti .oa-check__body li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23124b78' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3C/svg%3E");
}
.oa-check__body p { margin: .5em 0 0; }

/* ------------------------------------------------------------------ Esempio pratico */

.oa-example { padding: 18px; border-radius: var(--oa-radius); border: 1px dashed #9fb3c4; background: var(--oa-white); }
.oa-example__label {
	display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; padding: 2px 10px; border-radius: 999px;
	background: var(--oa-pale); color: var(--oa-muted); font-size: var(--oa-fs-meta); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.oa-example__title { margin: 8px 0 6px !important; font-weight: 700; font-size: 1.1em; color: var(--oa-navy); }
.oa-example__list { margin: 0; display: grid; gap: 0; }
.oa-example__row { padding: 10px 0; border-top: 1px solid var(--oa-line); }
.oa-example__row dt { font-weight: 700; color: var(--oa-navy); font-size: var(--oa-fs-2); }
.oa-example__row dd { margin: 2px 0 0; }
.oa-example__disclaimer {
	display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0 !important; padding: 12px 14px; border-radius: var(--oa-radius-sm);
	background: var(--oa-yellow-soft); font-size: var(--oa-fs-2); line-height: 1.5;
}
.oa-example__disclaimer .oa-ico { color: var(--oa-amber); margin-top: 2px; }
@media (min-width: 640px) {
	.oa-example__row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
	.oa-example__row dd { margin: 0; }
}

/* ------------------------------------------------------------------ Infografica a passaggi */

.oa-info { padding: 20px 18px; border-radius: var(--oa-radius); background: var(--oa-pale); }
.oa-info__title { margin: 0 0 4px !important; font-weight: 700; font-size: 1.15em; color: var(--oa-navy); }
.oa-info__intro { margin: 0 0 8px !important; color: var(--oa-muted); }
.oa-info__steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.oa-info__step {
	position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start;
	padding: 0 0 18px; margin: 0;
}
.oa-info__step:last-child { padding-bottom: 0; }
.oa-info__step::before {
	content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: #c3d3e1;
}
.oa-info__step:last-child::before { display: none; }
.oa-info__num {
	grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--oa-navy); color: var(--oa-white); font-weight: 700; font-size: 1.05em; position: relative; z-index: 1;
}
.oa-info__icon { display: none; }
.oa-info__step-title { margin: 8px 0 0 !important; font-weight: 700; color: var(--oa-navy); line-height: 1.3; }
.oa-info__step-text { margin: 2px 0 0 !important; font-size: var(--oa-fs-2); line-height: 1.45; color: var(--oa-ink); }
.oa-info__media { margin: 12px 0 0; }
.oa-info__media img { display: block; width: 100%; height: auto; border-radius: var(--oa-radius-sm); background: var(--oa-white); }
.oa-info__media figcaption { font-size: .82em; color: var(--oa-muted); margin-top: 6px; }
.oa-info__text { margin-top: 10px; }
.oa-info__text > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; color: var(--oa-navy-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) {
	.oa-info { padding: 24px; }
	.oa-info--n4 .oa-info__steps, .oa-info--n5 .oa-info__steps, .oa-info--n2 .oa-info__steps, .oa-info--n3 .oa-info__steps {
		grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 12px;
	}
	.oa-info--n6 .oa-info__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
	.oa-info__step { grid-template-columns: 1fr; padding: 0; text-align: center; justify-items: center; }
	.oa-info__step::before { left: calc(50% + 26px); right: calc(-50% + 26px); top: 21px; bottom: auto; width: auto; height: 2px; }
	.oa-info--n6 .oa-info__step:nth-child(3)::before { display: none; }
	.oa-info__num { grid-row: auto; }
	.oa-info__icon { display: grid; place-items: center; margin-top: 10px; color: var(--oa-navy-2); }
	.oa-info__icon .oa-ico { width: 28px; height: 28px; }
	.oa-info__step-title { margin-top: 6px !important; font-size: .95em; }
	.oa-info__step-text { font-size: var(--oa-fs-2); }
}

/* ------------------------------------------------------------------ Mini-infografiche (card) */

.oa-cards__title { margin: 0 0 10px !important; font-weight: 700; font-size: 1.1em; color: var(--oa-navy); }
.oa-cards__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.oa-minicard { margin: 0; padding: 16px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: var(--oa-white); display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; }
.oa-minicard__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--oa-blue-soft); color: var(--oa-navy-2); }
.oa-minicard__title { margin: 0 !important; font-weight: 700; color: var(--oa-navy); line-height: 1.3; padding-top: 2px; }
.oa-minicard__text { margin: 4px 0 0 !important; font-size: var(--oa-fs-2); line-height: 1.5; }
@media (min-width: 640px) {
	.oa-cards__list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
	.oa-cards--n4 .oa-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.oa-minicard { grid-template-columns: 1fr; row-gap: 8px; }
	.oa-minicard__icon { grid-row: auto; }
}

/* ------------------------------------------------------------------ Tabelle */

.oa-table { position: relative; }
.oa-content .wp-block-table { overflow: visible; }
.oa-table__scroll {
	overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--oa-line); border-radius: var(--oa-radius);
	background:
		linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
		linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(10, 50, 88, .18), rgba(10, 50, 88, 0)) left center / 12px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(10, 50, 88, .18), rgba(10, 50, 88, 0)) right center / 12px 100% no-repeat scroll,
		#fff;
}
.oa-table__table { width: 100%; min-width: 100%; border-collapse: collapse; font-size: var(--oa-fs-2); line-height: 1.45; margin: 0; }
.oa-table__caption, .oa-table__table caption {
	caption-side: top; text-align: left; padding: 12px 14px 10px; font-weight: 700; color: var(--oa-navy); font-size: 1em;
	border-bottom: 1px solid var(--oa-line); background: var(--oa-white);
}
.oa-table__table th, .oa-table__table td { padding: 11px 14px; text-align: left; vertical-align: top; border: 0; border-top: 1px solid var(--oa-line); min-width: 120px; }
.oa-table__table thead th { background: var(--oa-pale); color: var(--oa-navy); font-weight: 700; border-top: 0; white-space: nowrap; }
.oa-table__table tbody tr:nth-child(even) { background: #f8fbfc; }
.oa-table__table tbody th { color: var(--oa-navy); font-weight: 700; }
.oa-table__hint { display: none; margin: 6px 0 0 !important; font-size: var(--oa-fs-meta); color: var(--oa-muted); }
.oa-table__hint::before { content: "↔ Scorri la tabella"; }
.oa-table.is-scrollable .oa-table__hint { display: block; }
.is-style-oa-riepilogo .oa-table__table thead th { background: var(--oa-navy); color: var(--oa-white); }
.is-style-oa-confronto .oa-table__table tbody th[scope="row"], .is-style-oa-confronto .oa-table__table tbody td:first-child {
	position: sticky; left: 0; background: var(--oa-white); z-index: 1; box-shadow: 1px 0 0 var(--oa-line);
}
.is-style-oa-documenti .oa-table__table tbody td:first-child, .is-style-oa-documenti .oa-table__table tbody th:first-child { font-weight: 700; color: var(--oa-navy); }

/* Colonna evidenziata (Tabella › pannello Orfinitalia). */
.oa-hl-2 .oa-table__table tr > :nth-child(2), .oa-hl-3 .oa-table__table tr > :nth-child(3),
.oa-hl-4 .oa-table__table tr > :nth-child(4), .oa-hl-5 .oa-table__table tr > :nth-child(5),
.oa-hl-1 .oa-table__table tr > :nth-child(1) { background: #fff8db; box-shadow: inset 2px 0 0 var(--oa-yellow), inset -2px 0 0 var(--oa-yellow); }
.oa-hl-2 .oa-table__table thead tr > :nth-child(2), .oa-hl-3 .oa-table__table thead tr > :nth-child(3),
.oa-hl-4 .oa-table__table thead tr > :nth-child(4), .oa-hl-5 .oa-table__table thead tr > :nth-child(5),
.oa-hl-1 .oa-table__table thead tr > :nth-child(1) { background: var(--oa-yellow); color: var(--oa-navy); }

/* Mobile: le righe diventano schede, con l'intestazione della colonna accanto a ogni valore. */
@media (max-width: 639.98px) {
	.oa-table--cards .oa-table__scroll { overflow: visible; border: 0; background: none; border-radius: 0; }
	.oa-table--cards .oa-table__table, .oa-table--cards .oa-table__table tbody, .oa-table--cards .oa-table__table tr,
	.oa-table--cards .oa-table__table td, .oa-table--cards .oa-table__table tbody th { display: block; width: auto; min-width: 0; }
	.oa-table--cards .oa-table__table caption { display: block; padding: 0 0 10px; border: 0; background: none; }
	.oa-table--cards .oa-table__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
	.oa-table--cards .oa-table__table tr { margin: 0 0 12px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: var(--oa-white) !important; overflow: hidden; }
	.oa-table--cards .oa-table__table td, .oa-table--cards .oa-table__table tbody th { display: grid; grid-template-columns: minmax(96px, 40%) 1fr; gap: 10px; border-top: 1px solid var(--oa-line); padding: 10px 14px; box-shadow: none !important; }
	.oa-table--cards .oa-table__table tr > :first-child { border-top: 0; }
	.oa-table--cards .oa-table__table td::before, .oa-table--cards .oa-table__table tbody th::before { content: attr(data-label); font-weight: 700; color: var(--oa-navy); font-size: var(--oa-fs-2); }
	.oa-table--cards .oa-table__table td:not([data-label])::before, .oa-table--cards .oa-table__table th:not([data-label])::before { content: none; }
	.oa-table--cards .oa-table__table td:not([data-label]), .oa-table--cards .oa-table__table th:not([data-label]) { grid-template-columns: 1fr; }
	.oa-table--cards .oa-table__table tr > :first-child { background: var(--oa-pale); }
	.oa-table--cards .oa-table__hint { display: none !important; }
}

/* Tabelle degli articoli esistenti senza wrapper (fallback). */
.oa-content table:not(.oa-table__table) { width: 100%; border-collapse: collapse; font-size: var(--oa-fs-2); }
.oa-content table:not(.oa-table__table) th, .oa-content table:not(.oa-table__table) td { padding: 10px 12px; border: 1px solid var(--oa-line); text-align: left; }

/* ------------------------------------------------------------------ Strumenti */

.oa-tool { padding: 20px 18px; border-radius: var(--oa-radius); border: 2px solid var(--oa-navy); background: var(--oa-white); }
.oa-tool__label { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; font-size: var(--oa-fs-meta); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--oa-navy-2); }
.oa-tool__title { margin: 4px 0 6px !important; font-weight: 700; font-size: 1.15em; color: var(--oa-navy); line-height: 1.3; }
.oa-tool__intro { margin: 0 0 12px !important; font-size: var(--oa-fs-2); }
.oa-tool__form { display: grid; gap: 14px; }
.oa-tool__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.oa-tool__field > legend, .oa-tool__field > label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--oa-navy); font-size: .95em; padding: 0; }
.oa-tool__radios { display: flex; flex-wrap: wrap; gap: 8px; }
.oa-tool__radios .oa-choice { flex: 1 1 140px; }
.oa-tool__form .oa-btn { justify-self: start; }
.oa-tool__checklist { margin: 8px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
.oa-checkitem { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--oa-field); border-radius: var(--oa-radius-sm); cursor: pointer; line-height: 1.4; }
.oa-checkitem input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--oa-navy); }
.oa-checkitem:has(input:checked) { background: var(--oa-green-soft); border-color: var(--oa-green); }
.oa-checkitem:has(input:checked) span { text-decoration: line-through; text-decoration-color: rgba(21, 40, 59, .45); }
.oa-tool__progress { margin: 10px 0 0 !important; font-weight: 700; color: var(--oa-navy); font-size: var(--oa-fs-2); }
.oa-tool__note { margin: 4px 0 0 !important; font-size: var(--oa-fs-meta); color: var(--oa-muted); }
.oa-tool__result { margin-top: 16px; padding: 16px; border-radius: var(--oa-radius-sm); background: var(--oa-blue-soft); }
.oa-tool__result:focus { outline: none; }
.oa-tool__result:focus-visible { outline: 3px solid var(--oa-focus); }
.oa-tool__result > p { margin: 0; }
.oa-tool__result-label { font-weight: 700; color: var(--oa-navy); }
.oa-tool__result-value { font-size: 1.8em; font-weight: 700; color: var(--oa-navy); line-height: 1.2; margin-top: 4px !important; font-variant-numeric: tabular-nums; }
.oa-tool__result-note { margin-top: 6px !important; line-height: 1.55; }
.oa-tool__disclaimer { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px !important; font-size: var(--oa-fs-meta); color: var(--oa-ink); line-height: 1.5; }
.oa-tool__disclaimer .oa-ico { color: var(--oa-navy-2); margin-top: 1px; }
.oa-tool__cta { margin-top: 14px; }
@media (max-width: 479.98px) { .oa-tool__cta .oa-btn, .oa-tool__form .oa-btn { width: 100%; } }

/* ------------------------------------------------------------------ Recensioni */

.oa-reviews__title, .oa-faq__title, .oa-sources__title, .oa-related__title, .oa-authors__title, .oa-formintro__title {
	margin: 0 0 14px; color: var(--oa-navy); font-size: 1.45em; line-height: 1.25; font-weight: 700;
	scroll-margin-top: 0;
}
.oa-stars { display: inline-flex; gap: 2px; color: #c9d4de; vertical-align: -3px; }
.oa-star { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.oa-star--on { color: #e2a400; }
.oa-reviews__score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: var(--oa-fs-2); color: var(--oa-muted); }
.oa-reviews__score strong { color: var(--oa-navy); }
.oa-reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oa-review { margin: 0; }
.oa-review figure { margin: 0; height: 100%; padding: 16px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: var(--oa-white); display: flex; flex-direction: column; gap: 8px; }
.oa-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--oa-fs-meta); color: var(--oa-muted); margin: 0; }
.oa-review__who strong { color: var(--oa-ink); }
.oa-review__text { margin: 0; padding: 0; border: 0; font-size: .96em; line-height: 1.6; }
.oa-review__text p { margin: 0; }
.oa-review__src { margin: auto 0 0; font-size: var(--oa-fs-meta); }
.oa-review__src a, .oa-reviews__all a { color: var(--oa-navy-2); }
.oa-reviews__empty { margin: 0; padding: 14px 16px; border-radius: var(--oa-radius); background: var(--oa-pale); }
.oa-reviews__all { margin: 8px 0 0; }
@media (min-width: 768px) { .oa-reviews__list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* ------------------------------------------------------------------ FAQ */

.oa-faq__list { border-top: 1px solid var(--oa-line); }
.oa-faq__item { border-bottom: 1px solid var(--oa-line); }
.oa-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 4px;
	cursor: pointer; list-style: none; font-weight: 700; color: var(--oa-navy); line-height: 1.4;
}
.oa-faq__q::-webkit-details-marker { display: none; }
.oa-faq__q:hover span { text-decoration: underline; text-underline-offset: 3px; }
.oa-faq__icon { display: grid; flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--oa-blue-soft); color: var(--oa-navy-2); transition: transform .2s; }
.oa-faq__item[open] .oa-faq__icon { transform: rotate(180deg); }
.oa-faq__a { padding: 0 4px 16px; }
.oa-faq__a > :first-child { margin-top: 0; }
.oa-faq__a > :last-child { margin-bottom: 0; }
.oa-faq__a p { margin: .5em 0 0; }

/* ------------------------------------------------------------------ Fonti, disclaimer */

.oa-sources { padding: 18px; border-radius: var(--oa-radius); background: var(--oa-pale); }
.oa-sources__title { font-size: 1.2em; margin-bottom: 8px; }
.oa-sources__list ul, .oa-sources__list ol { margin: 0; padding-left: 1.2em; }
.oa-sources__list li { margin: 6px 0; line-height: 1.5; font-size: var(--oa-fs-2); }
.oa-sources__list a { color: var(--oa-navy-2); text-decoration: underline; text-underline-offset: 3px; }
.oa-sources__pub { color: var(--oa-muted); font-size: var(--oa-fs-2); }
.oa-sources__pub::before { content: "— "; }
.oa-sources__checked { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: var(--oa-fs-meta); color: var(--oa-muted); }

.oa-disclaimer { margin-top: 28px; padding: 14px 16px; border-radius: var(--oa-radius-sm); border: 1px solid var(--oa-line); font-size: var(--oa-fs-meta); line-height: 1.55; color: var(--oa-muted); }
.oa-disclaimer p, .oa-disclaimer__text { margin: 0; }
.oa-disclaimer__text p + p { margin-top: .6em; }

/* ------------------------------------------------------------------ Introduzione al form e form */

.oa-formintro { padding-top: 8px; }
.oa-formintro__lead { margin: 0 0 12px; }
.oa-formintro__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.oa-formintro__list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: var(--oa-fs-2); line-height: 1.5; }
.oa-formintro__list .oa-ico { color: var(--oa-navy-2); margin-top: 2px; }
.oa-formintro__list strong { color: var(--oa-navy); }
.oa-formintro__privacy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; font-size: var(--oa-fs-meta); color: var(--oa-muted); }
.oa-formintro__privacy a { color: var(--oa-navy-2); text-decoration: underline; }

.oa-form {
	margin-top: 16px !important; padding: 20px 16px; border-radius: var(--oa-radius); background: var(--oa-white);
	border: 2px solid var(--oa-navy); box-shadow: var(--oa-shadow); scroll-margin-top: 0;
	min-height: 360px;
}
.oa-form--embed { min-height: 0; }
.oa-form__form { margin: 0; }
.oa-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oa-form__alert { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--oa-radius-sm); background: #fdecea; color: var(--oa-red); font-weight: 600; }
.oa-form__progress { margin: 0 0 16px; }
.oa-form__steplabel { margin: 0 0 6px; font-size: var(--oa-fs-meta); font-weight: 700; color: var(--oa-muted); }
.oa-form__bar { height: 6px; border-radius: 6px; background: var(--oa-pale); overflow: hidden; }
.oa-form__bar > span { display: block; height: 100%; width: 0; background: var(--oa-navy-2); border-radius: 6px; transition: width .25s; }

.oa-step { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.oa-step__q { display: block; margin: 0 0 6px; padding: 0; font-weight: 700; font-size: 1.15em; line-height: 1.3; color: var(--oa-navy); }
.oa-step__q:focus { outline: none; }
.oa-step__q:focus-visible { outline: 3px solid var(--oa-focus); outline-offset: 4px; }
.oa-step__hint { margin: 0 0 10px; font-size: var(--oa-fs-2); color: var(--oa-muted); line-height: 1.45; }
.oa-optional { font-weight: 400; color: var(--oa-muted); font-size: var(--oa-fs-meta); }
.oa-choices { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .oa-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.oa-choice {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; margin: 0;
	border: 1.5px solid var(--oa-field); border-radius: var(--oa-radius-sm); background: var(--oa-white);
	cursor: pointer; font-weight: 600; line-height: 1.3; transition: border-color .15s, background-color .15s;
}
.oa-choice--sm { min-height: 48px; padding: 10px 12px; font-size: .95em; }
.oa-choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--oa-navy); }
.oa-choice:hover { border-color: var(--oa-navy-2); background: var(--oa-blue-soft); }
.oa-choice:has(input:checked) { border-color: var(--oa-navy); border-width: 2px; background: var(--oa-blue-soft); }
.oa-choice:has(input:focus-visible) { outline: 3px solid var(--oa-focus); outline-offset: 2px; }

.oa-field { margin: 12px 0 0; }
.oa-field > label { display: block; margin: 0 0 6px; font-weight: 700; color: var(--oa-navy); font-size: .95em; }
.oa-input {
	display: block; width: 100%; min-height: 52px; padding: 12px 14px; margin: 0;
	border: 1.5px solid var(--oa-field); border-radius: var(--oa-radius-sm); background: var(--oa-white);
	color: var(--oa-ink); font: inherit; font-size: 16px; line-height: 1.3; /* 16px: niente zoom automatico su iPhone */
	-webkit-appearance: none; appearance: none;
}
.oa-input:focus { border-color: var(--oa-navy); outline: 3px solid rgba(18, 75, 120, .25); outline-offset: 0; }
.oa-input[aria-invalid="true"] { border-color: var(--oa-red); }
.oa-select {
	background: var(--oa-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23124b78' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 20px no-repeat;
	padding-right: 40px;
}
.oa-error { display: flex; gap: 6px; margin: 8px 0 0; color: var(--oa-red); font-size: var(--oa-fs-2); font-weight: 600; line-height: 1.4; }
.oa-error[hidden] { display: none; }
.oa-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--oa-red); color: #fff; font-size: 12px; font-weight: 700; margin-top: 1px; }

.oa-combo { position: relative; }
.oa-combo__list {
	/* Nel flusso della pagina, non sopra: non copre il bottone Avanti né finisce sotto la tastiera. */
	position: static; margin: 6px 0 0; padding: 4px; list-style: none;
	max-height: 280px; overflow-y: auto; background: var(--oa-white); border: 1.5px solid var(--oa-navy); border-radius: var(--oa-radius-sm);
	box-shadow: 0 10px 30px rgba(10, 50, 88, .15);
}
.oa-combo__list li { margin: 0; padding: 12px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.oa-combo__list li[aria-selected="true"], .oa-combo__list li:hover { background: var(--oa-blue-soft); color: var(--oa-navy); }
.oa-combo__list li small { color: var(--oa-muted); margin-left: 4px; }

.oa-summary { margin: 4px 0 16px; padding: 0; border: 1px solid var(--oa-line); border-radius: var(--oa-radius-sm); }
.oa-summary__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--oa-line); }
.oa-summary__row:first-child { border-top: 0; }
.oa-summary dt { font-size: var(--oa-fs-meta); color: var(--oa-muted); grid-column: 1; }
.oa-summary dd { margin: 0; font-weight: 600; grid-column: 1; overflow-wrap: anywhere; }
.oa-summary__edit { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 6px 10px; border: 0; background: none; color: var(--oa-navy-2); font: inherit; font-size: var(--oa-fs-2); font-weight: 600; text-decoration: underline; cursor: pointer; }

.oa-consent { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--oa-radius-sm); background: var(--oa-pale); font-size: var(--oa-fs-2); line-height: 1.5; cursor: pointer; }
.oa-consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--oa-navy); }
.oa-consent a { color: var(--oa-navy-2); text-decoration: underline; }
.oa-step[data-oa-step="riepilogo"] .oa-btn--primary { margin-top: 16px; }
.oa-step[data-oa-step="riepilogo"] .oa-note { margin: 8px 0 0; }

.oa-form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.oa-form__nav [data-oa-next] { margin-left: auto; min-width: 140px; }
.oa-form__done { padding: 8px 0; }
.oa-form__done:focus { outline: none; }
.oa-form__done-title { margin: 0 0 6px; font-size: 1.2em; font-weight: 700; color: var(--oa-navy); }

/* Con JavaScript il form diventa una domanda per schermata. */
.oa-form.is-wizard .oa-step { display: none; margin-bottom: 8px; }
.oa-form.is-wizard .oa-step.is-current { display: block; }
.oa-form.is-wizard { min-height: 0; }
@media (min-width: 768px) { .oa-form { padding: 28px; } }

/* ------------------------------------------------------------------ Correlati, autori */

.oa-related__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oa-card { position: relative; margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: var(--oa-white); transition: border-color .15s, box-shadow .15s; }
.oa-card:not(:has(.oa-card__media)) { grid-template-columns: 1fr; }
.oa-card:hover { border-color: var(--oa-navy-2); box-shadow: var(--oa-shadow); }
.oa-card__media { aspect-ratio: 1; border-radius: var(--oa-radius-sm); overflow: hidden; background: var(--oa-pale); }
.oa-card__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.oa-card__body { min-width: 0; }
.oa-card__cat { margin: 0 0 2px; font-size: var(--oa-fs-meta); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--oa-navy-2); }
.oa-card__title { margin: 0; font-size: 1em; line-height: 1.35; }
.oa-card__title a { color: var(--oa-navy); text-decoration: none; }
.oa-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--oa-radius); }
.oa-card__title a:hover { text-decoration: underline; }
.oa-card__title a:focus-visible { outline: none; }
.oa-card:has(a:focus-visible) { outline: 3px solid var(--oa-focus); outline-offset: 2px; }
.oa-card__desc { margin: 4px 0 0; font-size: var(--oa-fs-2); line-height: 1.5; color: var(--oa-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) {
	.oa-related__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.oa-card { grid-template-columns: 1fr; padding: 0 0 14px; overflow: hidden; }
	.oa-card__media { aspect-ratio: 16 / 9; border-radius: 0; }
	.oa-card__body { padding: 0 14px; }
}

.oa-authors__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oa-person { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 16px; border-radius: var(--oa-radius); background: var(--oa-pale); }
.oa-person .oa-avatar { width: 56px; height: 56px; font-size: 1.1em; }
.oa-person__body p { margin: 0; }
.oa-person__label { display: block; font-size: var(--oa-fs-meta); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--oa-muted); }
.oa-person__name { font-weight: 700; color: var(--oa-navy); }
.oa-person__name a { color: var(--oa-navy); }
.oa-person__role { font-size: var(--oa-fs-2); color: var(--oa-navy-2); font-weight: 600; margin-top: 2px !important; }
.oa-person__bio { font-size: var(--oa-fs-2); line-height: 1.55; margin-top: 6px !important; }
.oa-person__more { font-size: var(--oa-fs-meta); margin-top: 6px !important; }
.oa-person__more a { color: var(--oa-navy-2); }

/* ------------------------------------------------------------------ Barra CTA mobile */

.oa-sticky {
	position: fixed; z-index: 50; left: 12px; right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	display: flex; align-items: center; gap: 6px; max-width: 520px; margin-inline: auto; padding: 6px;
	border-radius: 16px; background: var(--oa-navy); box-shadow: 0 8px 28px rgba(10, 50, 88, .28);
	--oa-focus: var(--oa-yellow);
	transform: translateY(0); opacity: 1; transition: transform .22s ease, opacity .22s ease, visibility 0s linear 0s;
}
.oa-sticky[hidden] { display: none; }
.oa-sticky.is-off { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s; }
.oa-sticky__btn { flex: 1; min-height: 48px; padding: 8px 12px; font-size: 16px; line-height: 1.15; }
@media (max-width: 419.98px) { .oa-sticky__btn { font-size: 15px; } .oa-sticky__btn .oa-ico { display: none; } }
.oa-sticky__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.oa-sticky__close:hover { background: rgba(255, 255, 255, .12); }
@media (min-width: 1100px) { .oa-sticky { display: none !important; } }

/* ------------------------------------------------------------------ Pagina di conferma */

.oa-thanks { padding: 40px 0 64px; }
.oa-thanks__wrap { max-width: 640px; }
.oa-thanks__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 0 16px; border-radius: 50%; background: var(--oa-green-soft); color: var(--oa-green); }
.oa-thanks__icon .oa-ico { width: 40px; height: 40px; }
.oa-thanks__title:focus { outline: none; }
.oa-thanks .oa-lead { margin: 10px 0 24px; }
.oa-thanks__next { padding: 20px; border-radius: var(--oa-radius); background: var(--oa-pale); }
.oa-thanks__next h2 { margin: 0 0 12px; font-size: 1.2em; color: var(--oa-navy); }
.oa-thanks__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oa-thanks__steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; line-height: 1.5; }
.oa-thanks__steps .oa-ico { color: var(--oa-navy-2); margin-top: 2px; }
.oa-thanks .oa-note { margin: 16px 0 0; }
.oa-thanks__phone { margin: 16px 0 0; }
.oa-thanks__phone a { color: var(--oa-navy-2); font-weight: 700; }
.oa-thanks__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0 0; }

/* ------------------------------------------------------------------ Movimento, stampa */

@media (prefers-reduced-motion: reduce) {
	html.oa-js { scroll-behavior: auto; } /* il tema imposta scroll-behavior: smooth per tutti */
	.oa *, .oa-sticky, .oa-progress__bar { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.oa-progress, .oa-sticky, .oa-rail, .oa-cta, .oa-fstart, .oa-form, .oa-formintro, .oa-tool__cta { display: none !important; }
	.oa-layout { display: block; }
	.oa { font-size: 12pt; }
}

/* Schermi molto stretti (320 px): titolo e sottotitolo un po' più compatti. */
@media (max-width: 359.98px) {
	.oa-title { font-size: 1.5em; }
	.oa-lead { font-size: 1em; }
}

/* Pagina del preventivo ([orfin_preventivo]): il form è nella prima schermata. Finché form.js non lo trasforma
   in passaggi lo spazio è riservato e il form resta invisibile (niente salti di layout); se lo script non arriva,
   dopo 3 secondi compare comunque, nella versione con tutte le domande. */
html.oa-js .oa-pageform .oa-form:not(.is-wizard) { height: 623px; overflow: hidden; visibility: hidden; animation: oa-reveal 0s linear 3s forwards; }
@media (min-width: 640px) { html.oa-js .oa-pageform .oa-form:not(.is-wizard) { height: 410px; } }
@keyframes oa-reveal { to { visibility: visible; height: auto; overflow: visible; } }

/* Intestazione dell'indice su una riga anche con il testo a 18px. */
.oa-toc__label, .oa-toc__count { white-space: nowrap; }

/* CTA degli articoli: proporzioni e leggibilità nella colonna desktop. */
@media (min-width: 1100px) {
	.oa-article .oa-fstart { gap: 14px; padding: 26px 28px; }
	.oa-article .oa-fstart__opts {
		grid-template-columns: minmax(0, .95fr) minmax(0, 1.18fr) minmax(0, .95fr);
		gap: 10px;
	}
	.oa-article .oa-fstart__opt { min-height: 78px; gap: 8px; padding: 12px 14px; }
	.oa-article .oa-fstart__label { font-size: .9em; }
	.oa-article .oa-fstart__go { width: 32px; height: 32px; }
	.oa-article .oa-rail__cta { padding: 20px; }
	.oa-article .oa-rail__cta .oa-btn { min-height: 52px; }
	.oa-article .oa-content .or-ctainline {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 22px 26px;
	}
	.oa-article .oa-content .or-ctainline .or-btn { justify-self: start; }
	.oa-article .oa-toc__summary { gap: 6px; padding-inline: 10px; }
}
