/* =========================================================================
 * MadWeb Official — child stylesheet
 *
 * Scoped to body.madtheme-official (functions.php adds the class). Every rule
 * below is either an `mwo-*` class or a WordPress class that only appears inside
 * one of these sections, so the blog, the archives and the parents' templates
 * keep the look MadTheme gives them.
 *
 * Colours come from the parent presets (base, base-2, base-3, contrast, accent,
 * secondary) wherever the surface must follow dark mode, and from the seven
 * `official-*` custom colours in theme.json only for the brand panels that stay
 * dark in both modes. The ink panels therefore carry their own text colour.
 * ========================================================================= */

body.madtheme-official {
	--mwo-ink: var(--wp--custom--color--official-ink, #0d1120);
	--mwo-ink-2: var(--wp--custom--color--official-ink-2, #171c30);
	--mwo-on-ink: var(--wp--custom--color--official-on-ink, #f4f5fb);
	--mwo-on-ink-muted: var(--wp--custom--color--official-on-ink-muted, #aeb6ce);
	--mwo-cream: var(--wp--custom--color--official-cream, #f7f3ea);
	--mwo-amber: var(--wp--custom--color--official-amber, #f5cb74);
	--mwo-amber-ink: var(--wp--custom--color--official-amber-ink, #2a1f05);
	--mwo-radius: 22px;
	--mwo-radius-sm: 14px;
	--mwo-border: color-mix(in srgb, var(--wp--preset--color--contrast) 13%, transparent);
	--mwo-border-strong: color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	--mwo-shadow: 0 26px 50px -32px rgba(10, 14, 28, 0.55);
	--mwo-shadow-soft: 0 14px 30px -22px rgba(10, 14, 28, 0.45);
	--mwo-gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Section rhythm and headings ---------- */

.mwo-section {
	padding-block: clamp(52px, 6.5vw, 104px);
}

.mwo-hero {
	padding-block: clamp(48px, 6vw, 92px) clamp(56px, 7vw, 112px);
}

.mwo-head {
	max-width: 44rem;
	margin-inline: 0 !important;
	margin-bottom: clamp(28px, 3.4vw, 48px);
}

.mwo-head--center {
	margin-inline: auto !important;
	text-align: center;
}

.mwo-eyebrow {
	margin: 0 0 14px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.75;
}

.mwo-eyebrow::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-inline-end: 10px;
	border-radius: 50%;
	background: var(--mwo-amber);
	vertical-align: 0.05em;
}

.mwo-display,
.mwo-h2 {
	font-family: var(--wp--preset--font-family--literata, Georgia, serif);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.06;
}

.mwo-display {
	font-size: clamp(2.4rem, 5.4vw, 4.2rem);
	margin: 0 0 20px;
	text-wrap: balance;
}

.mwo-h2 {
	font-size: clamp(1.85rem, 3.2vw, 2.85rem);
	margin: 0 0 16px;
	text-wrap: balance;
}

.mwo-lead {
	font-size: clamp(1.05rem, 1.5vw, 1.22rem);
	line-height: 1.55;
	margin: 0 0 26px;
	max-width: 36rem;
}

.mwo-note {
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.72;
	margin: 18px 0 0;
}

/* ---------- Surfaces ---------- */

.mwo-ink {
	background: var(--mwo-ink);
	color: var(--mwo-on-ink);
}

.mwo-ink :where(h1, h2, h3, h4, h5, h6, p, li, span) {
	color: inherit;
}

.mwo-ink .mwo-lead,
.mwo-ink .mwo-note,
.mwo-ink .mwo-eyebrow {
	color: var(--mwo-on-ink-muted);
}

.mwo-ink a:not(.wp-block-button__link):not(.mwo-btn) {
	color: var(--mwo-on-ink);
	text-decoration-color: color-mix(in srgb, var(--mwo-on-ink) 45%, transparent);
}

.mwo-cream {
	background: var(--mwo-cream);
	color: var(--wp--custom--color--official-ink, #0d1120);
}

.mwo-cream :where(h1, h2, h3, h4, h5, h6, p, li, span) {
	color: inherit;
}

/* A hairline between sections on the normal background. */
.mwo-banded {
	background: var(--wp--preset--color--base-2);
}

/* ---------- Buttons ---------- */

.mwo-btn {
	margin: 0;
}

.mwo-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.78em 1.4em;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.15;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mwo-btn--primary .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

.mwo-btn--primary .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 86%, var(--wp--preset--color--contrast));
	color: var(--wp--preset--color--base);
	transform: translateY(-1px);
}

.mwo-btn--ghost .wp-block-button__link {
	background: transparent;
	color: inherit;
	border-color: var(--mwo-border-strong);
}

.mwo-btn--ghost .wp-block-button__link:hover {
	background: color-mix(in srgb, currentColor 10%, transparent);
	transform: translateY(-1px);
}

/* On the ink panels the primary action is the launch amber: it is the one
   colour that reads as "periodo di lancio" and it carries dark ink text. */
.mwo-ink .mwo-btn--primary .wp-block-button__link,
.mwo-ink .mwo-btn--primary .wp-block-button__link:hover {
	background: var(--mwo-amber);
	color: var(--mwo-amber-ink);
}

.mwo-ink .mwo-btn--ghost .wp-block-button__link {
	color: var(--mwo-on-ink);
	border-color: color-mix(in srgb, var(--mwo-on-ink) 42%, transparent);
}

.mwo-ink .mwo-btn--ghost .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--mwo-on-ink) 12%, transparent);
}

/* ---------- Hero ---------- */

.mwo-hero__grid {
	align-items: center;
	gap: clamp(32px, 5vw, 68px);
}

.mwo-hero__copy .wp-block-buttons {
	gap: 12px;
	margin-block: 0 4px;
}

.mwo-hero__copy .mwo-lead {
	color: var(--mwo-on-ink-muted);
}

.mwo-checks {
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--mwo-on-ink-muted);
}

.mwo-checks li {
	margin: 0;
	padding-inline-start: 22px;
	position: relative;
}

.mwo-checks li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.42em;
	width: 12px;
	height: 7px;
	border-inline-start: 2px solid var(--mwo-amber);
	border-bottom: 2px solid var(--mwo-amber);
	transform: rotate(-45deg);
}

/* Product mock: a small browser window with a post card and two tool chips.
   Built with blocks and CSS, so there is no screenshot to age or replace. */
.mwo-mock {
	border-radius: var(--mwo-radius);
	background: #ffffff;
	color: #14172a;
	box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.14);
	overflow: hidden;
	transform: rotate(-1.1deg);
}

@media (prefers-reduced-motion: no-preference) {

	.mwo-mock {
		transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.mwo-mock:hover {
		transform: rotate(0deg) translateY(-4px);
	}
}

.mwo-mock__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	border-bottom: 1px solid #e8e9f4;
	background: #f8f9ff;
}

.mwo-mock__bar::before {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin-inline-end: 34px;
	border-radius: 50%;
	background: #ff5f57;
	box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
}

.mwo-mock__bar p {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #5d6480;
}

.mwo-mock__body {
	padding: clamp(14px, 2vw, 20px);
	display: grid;
	gap: 14px;
}

.mwo-mock__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--mwo-radius-sm);
	background:
		radial-gradient(120% 120% at 15% 15%, rgba(255, 255, 255, 0.35), transparent 55%),
		linear-gradient(135deg, #2a3193 0%, #4b55e0 52%, #f5cb74 100%);
	overflow: hidden;
}

.mwo-mock__thumb::after {
	content: "";
	position: absolute;
	inset: auto -10% -35% auto;
	width: 62%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	filter: blur(2px);
}

.mwo-mock__thumb .mwo-pill {
	position: absolute;
	inset-block-end: 10px;
	inset-inline-start: 10px;
	z-index: 1;
}

.mwo-mock__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--literata, Georgia, serif);
	font-size: 1.06rem;
	font-weight: 600;
	line-height: 1.28;
	color: #14172a;
}

.mwo-mock__meta {
	margin: 0;
	font-size: 0.76rem;
	color: #6a7089;
}

.mwo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mwo-pill,
.mwo-chips .wp-block-group {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 5px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 9%, transparent);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.mwo-mock .mwo-chips .mwo-pill {
	background: #eef0fc;
	color: #3a3f78;
}

.mwo-pill--amber {
	background: var(--mwo-amber);
	color: var(--mwo-amber-ink);
}

/* ---------- The three pillars ---------- */

.mwo-pillars {
	gap: 18px;
}

.mwo-pillar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(20px, 2.4vw, 30px);
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius);
	background: var(--wp--preset--color--base);
	box-shadow: var(--mwo-shadow-soft);
}

.mwo-pillar__kicker {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.mwo-pillar h3 {
	margin: 0;
	font-size: 1.34rem;
	line-height: 1.2;
}

.mwo-pillar p {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
}

.mwo-pillar__link {
	margin: auto 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

/* The closing line of a benefit card is a claim, not a link: a hairline and muted
 * ink keep it from looking like a broken "read more" when there is nothing to open. */
.mwo-pillar p.mwo-pillar__claim {
	margin: auto 0 0;
	padding-top: 10px;
	border-top: 1px solid var(--mwo-border);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
}

.mwo-pillar__link a {
	text-decoration: none;
}

.mwo-pillar__link a::after {
	content: " →";
	display: inline-block;
	transition: transform 0.18s ease;
}

.mwo-pillar__link a:hover::after {
	transform: translateX(3px);
}

/* ---------- Benefit section: the way into the blog ----------
 * The three benefit cards end on a line of entry points to the blog, so the
 * section still hands the reader somewhere to go without turning into a menu.
 * Pills never wrap their label: they wrap as a group instead. */

.mwo-explore {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 26px 0 0 !important;
	padding-top: 20px;
	border-top: 1px solid var(--mwo-border);
}

.mwo-explore p {
	margin: 0 !important;
}

.mwo-explore .mwo-explore__lead {
	flex: 1 1 240px;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--wp--preset--color--secondary);
}

.mwo-explore__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: none !important;
}

.mwo-explore__item a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--mwo-border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.mwo-explore__item a::after {
	content: "→";
	color: var(--wp--preset--color--accent);
}

.mwo-explore__item a:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 55%, var(--mwo-border));
	background: color-mix(in srgb, var(--wp--preset--color--accent) 8%, var(--wp--preset--color--base));
}

@media (max-width: 781px) {

	.mwo-explore .mwo-explore__lead {
		flex-basis: 100%;
	}
}

/* ---------- Service or rented space ----------
 * Two columns: what renting space hands back to you, and what is already
 * mounted here. The left one is deliberately quiet (dash, muted ink); the
 * right one is the answer and carries the accent. */

.mwo-compare {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
	max-width: none !important;
}

/* The columns are block groups: the grid sizes them, so the constrained
 * layout's own max-width and sibling margins have to step aside. */
.mwo-compare > .mwo-compare__col {
	max-width: none !important;
	margin: 0 !important;
	width: auto;
}

@media (max-width: 781px) {

	.mwo-compare {
		grid-template-columns: minmax(0, 1fr);
	}
}

.mwo-compare__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.4vw, 30px);
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius);
	background: var(--wp--preset--color--base);
}

.mwo-compare__col--here {
	--mwo-compare-here-surface: color-mix(in srgb, var(--wp--preset--color--accent) 8%, var(--wp--preset--color--base));
	--mwo-compare-here-border: color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent);
	--mwo-compare-here-label: var(--wp--preset--color--accent);
	border-color: var(--mwo-compare-here-border);
	background: var(--mwo-compare-here-surface);
	box-shadow: var(--mwo-shadow-soft);
}

/* Dark mode: on the dark band a 7% accent veil reads as the same colour, so the
 * answer column is lifted onto an elevated surface (base-3, lighter than the
 * card beside it) with the accent carried harder in the border. Same idea as
 * the light palette: the eye lands on the right. The selectors mirror the
 * parent theme's dark-mode switch, so the panel follows it in every mode. */
body.dark-mode:not(.dark-mode-off) .mwo-compare__col--here,
html.dark-mode .mwo-compare__col--here,
html[data-theme="dark"] body .mwo-compare__col--here {
	--mwo-compare-here-surface: color-mix(in srgb, var(--wp--preset--color--accent) 17%, var(--wp--preset--color--base-3));
	--mwo-compare-here-border: color-mix(in srgb, var(--wp--preset--color--accent) 58%, transparent);
	--mwo-compare-here-label: color-mix(in srgb, var(--wp--preset--color--accent) 55%, #ffffff);
	box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.9);
}

@media (prefers-color-scheme: dark) {

	body.dark-mode-auto:not(.dark-mode-off) .mwo-compare__col--here,
	html:not(.dark-mode-off) body.dark-mode-auto .mwo-compare__col--here {
		--mwo-compare-here-surface: color-mix(in srgb, var(--wp--preset--color--accent) 17%, var(--wp--preset--color--base-3));
		--mwo-compare-here-border: color-mix(in srgb, var(--wp--preset--color--accent) 58%, transparent);
		--mwo-compare-here-label: color-mix(in srgb, var(--wp--preset--color--accent) 55%, #ffffff);
		box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.9);
	}
}

.mwo-compare__label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

/* The label is small and bold: on the tinted surface the plain accent only
 * reaches 3.3:1 in dark, so the dark rules below lighten it. */
.mwo-compare__col--here .mwo-compare__label {
	color: var(--mwo-compare-here-label);
}

.mwo-compare__list {
	display: grid;
	gap: 12px;
	margin: 0 !important;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--wp--preset--color--secondary);
}

.mwo-compare__list li {
	position: relative;
	margin: 0;
	padding-inline-start: 24px;
}

.mwo-compare__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 3px;
	top: 0.62em;
	width: 10px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	opacity: 0.45;
}

.mwo-compare__col--here .mwo-compare__list {
	color: var(--wp--preset--color--contrast);
}

.mwo-compare__col--here .mwo-compare__list li::before {
	top: 0.4em;
	width: 12px;
	height: 7px;
	border-inline-start: 2px solid var(--wp--preset--color--accent);
	border-bottom: 2px solid var(--wp--preset--color--accent);
	background: none;
	opacity: 1;
	transform: rotate(-45deg);
}

.mwo-compare__note {
	max-width: 44rem;
	margin: 22px 0 0 !important;
}

/* ---------- Plugin suite ---------- */

.mwo-grid {
	gap: 16px;
}

.mwo-plugin {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(18px, 2vw, 24px);
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius-sm);
	background: var(--wp--preset--color--base);
	height: 100%;
}

.mwo-plugin__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.mwo-mono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	border-radius: 11px;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 12%, transparent);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--custom--font-mono, monospace);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.mwo-tag {
	margin: 0;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

.mwo-plugin h3 {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.25;
}

.mwo-plugin p {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--wp--preset--color--secondary);
}

.mwo-plugin__meta {
	margin: auto 0 0;
	padding-top: 6px;
	font-size: 0.72rem;
	color: var(--wp--preset--color--secondary);
	opacity: 0.8;
}

.mwo-inline-list {
	max-width: 52rem;
	margin: 26px auto 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
}

/* ---------- Theme showcase ---------- */

.mwo-showcase {
	align-items: center;
	gap: clamp(28px, 4vw, 56px);
}

.mwo-swatches {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mwo-swatch {
	margin: 0;
	border-radius: var(--mwo-radius-sm);
	overflow: hidden;
	border: 1px solid var(--mwo-border);
	background: var(--wp--preset--color--base);
}

.mwo-swatch__color {
	display: block;
	height: 54px;
}

.mwo-swatch__name {
	display: block;
	padding: 8px 10px;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
}

.mwo-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.mwo-specs li {
	margin: 0;
	padding: 14px 16px;
	border-radius: var(--mwo-radius-sm);
	background: var(--wp--preset--color--base-2);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.35;
}

.mwo-specs strong {
	display: block;
	font-size: 1.24rem;
	line-height: 1.2;
}

/* ---------- Plans ---------- */

.mwo-plans {
	align-items: stretch;
	gap: 18px;
}

.mwo-plan {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(22px, 2.6vw, 32px);
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius);
	background: var(--wp--preset--color--base);
	height: 100%;
	position: relative;
}

.mwo-plan--featured {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent) inset, var(--mwo-shadow);
}

.mwo-plan__badge {
	align-self: flex-start;
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mwo-amber);
	color: var(--mwo-amber-ink);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mwo-plan__name {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.mwo-plan__price {
	margin: 0;
	font-family: var(--wp--preset--font-family--literata, Georgia, serif);
	font-size: clamp(2rem, 3vw, 2.6rem);
	font-weight: 600;
	line-height: 1;
}

.mwo-plan__price span {
	font-family: var(--wp--preset--font-family--primary, sans-serif);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--wp--preset--color--secondary);
}

.mwo-plan__desc {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
}

.mwo-plan__features {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
	font-size: var(--wp--preset--font-size--x-small);
}

.mwo-plan__features li {
	margin: 0;
	padding-inline-start: 22px;
	position: relative;
	line-height: 1.45;
}

.mwo-plan__features li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.4em;
	width: 11px;
	height: 6px;
	border-inline-start: 2px solid var(--wp--preset--color--accent);
	border-bottom: 2px solid var(--wp--preset--color--accent);
	transform: rotate(-45deg);
}

.mwo-plan__cta {
	margin: auto 0 0;
	padding-top: 10px;
}

.mwo-plan__cta .wp-block-button,
.mwo-plan__cta .wp-block-button__link {
	width: 100%;
}

.mwo-plan__storage {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 1rem);
	font-weight: 600;
}

.mwo-plans__note {
	margin: 22px 0 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
}

/* ---------- Plans comparison ----------
 * The table states what the three cards already say: every feature reads
 * "Incluso" in all three columns, the storage row is the only one that differs.
 * It scrolls inside its own figure on narrow screens instead of widening the
 * page.
 */

.mwo-compare {
	margin-top: clamp(28px, 3vw, 44px);
}

.mwo-compare__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
}

.mwo-compare__table {
	margin: 0;
	overflow-x: auto;
}

.mwo-compare__table table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--x-small);
}

.mwo-compare__table th,
.mwo-compare__table td {
	padding: 10px 14px;
	border: 1px solid var(--mwo-border);
	text-align: center;
	white-space: nowrap;
}

.mwo-compare__table thead th {
	background: var(--wp--preset--color--base-2);
	font-weight: 600;
}

.mwo-compare__table tbody th {
	text-align: start;
	font-weight: 500;
	white-space: normal;
}

.mwo-compare__table .mwo-compare__diff {
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.mwo-compare__table .mwo-compare__same {
	color: var(--wp--preset--color--secondary);
}

/* ---------- Steps ---------- */

.mwo-steps-row {
	gap: 18px;
	counter-reset: mwo-step;
}

.mwo-step-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 4px 0 0;
	border-top: 2px solid var(--mwo-border-strong);
}

.mwo-step-card__num {
	margin: 0;
	font-family: var(--wp--custom--font-mono, monospace);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
}

.mwo-step-card h3 {
	margin: 0;
	font-size: 1.12rem;
}

.mwo-step-card p {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
}

/* ---------- Blog ---------- */

/* The categories block writes its class on the <ul> itself, so the pill lives on
   the list item: the count is a text node next to the link, not inside it. */
.mwo-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 clamp(24px, 3vw, 36px);
	padding: 0;
	list-style: none;
}

.mwo-cats li {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border: 1px solid var(--mwo-border);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.mwo-cats li:hover {
	border-color: var(--wp--preset--color--accent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 8%, transparent);
}

.mwo-cats li a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.mwo-cats li a:hover {
	text-decoration: none;
}

.mwo-post {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius-sm);
	background: var(--wp--preset--color--base);
	overflow: hidden;
	transition: border-color 0.18s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mwo-post:hover {
	border-color: var(--mwo-border-strong);
	box-shadow: var(--mwo-shadow-soft);
}

@media (prefers-reduced-motion: no-preference) {

	.mwo-post:hover {
		transform: translateY(-3px);
	}
}

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

.mwo-post .wp-block-post-title {
	margin: 0;
	padding: 16px 18px 6px;
	font-size: 1.04rem;
	line-height: 1.3;
}

.mwo-post .wp-block-post-title a {
	text-decoration: none;
}

.mwo-post .wp-block-post-terms {
	padding: 0 18px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

.mwo-post .wp-block-post-date {
	padding: 4px 18px 18px;
	font-size: 0.74rem;
	color: var(--wp--preset--color--secondary);
	opacity: 0.8;
}

.mwo-blog__more {
	margin: 28px 0 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

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

.mwo-faq {
	display: grid;
	gap: 10px;
	max-width: 48rem;
	margin-inline: auto;
}

.mwo-faq details {
	margin: 0;
	padding: 0;
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius-sm);
	background: var(--wp--preset--color--base);
	overflow: hidden;
}

.mwo-faq summary {
	position: relative;
	padding: 16px 48px 16px 18px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.mwo-faq summary::-webkit-details-marker {
	display: none;
}

.mwo-faq summary::after {
	content: "+";
	position: absolute;
	inset-inline-end: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--custom--font-mono, monospace);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent);
}

.mwo-faq details[open] summary::after {
	content: "−";
}

.mwo-faq details > p {
	margin: 0;
	padding: 0 18px 18px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
	max-width: none;
}

/* ---------- Closing call to action ---------- */

.mwo-cta {
	padding-block: clamp(56px, 7vw, 104px);
	padding-inline: clamp(20px, 4vw, 56px);
	text-align: center;
	border-radius: var(--mwo-radius);
}

.mwo-cta .mwo-display {
	margin-inline: auto;
	max-width: 34rem;
}

.mwo-cta .mwo-lead {
	margin-inline: auto;
	max-width: 32rem;
	color: var(--mwo-on-ink-muted);
}

.mwo-cta .wp-block-buttons {
	justify-content: center;
	gap: 12px;
}

/* ---------- Header ---------- */

.mwo-header > .mwo-header__inner {
	padding-block: 12px;
	gap: 18px;
}

.mwo-brand {
	gap: 10px;
}

.mwo-brand .wp-block-site-title {
	margin: 0;
	font-size: 1.06rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.mwo-header__right {
	gap: clamp(10px, 1.6vw, 22px);
}

/* The site's main menu is the one the parent theme built: besides the four
 * links it carries a mobile-only copy of them plus the docs and account links
 * that this header already prints in the top bar. Left alone, the overlay at
 * phone width lists Home and Contatti twice. Here the menu is the same at every
 * breakpoint: the four links, once. */
.mwo-header .mwo-mainnav .mw-nav-mobile-only,
.mwo-header .mwo-mainnav .mw-nav-mobile-divider,
.mwo-header .mwo-mainnav .wp-block-navigation__responsive-container.is-menu-open .mw-nav-mobile-only,
.mwo-header .mwo-mainnav .wp-block-navigation__responsive-container.is-menu-open .mw-nav-mobile-divider {
	display: none !important;
}

/* ...and the four links stay visible when the parent theme hides them under
 * 782px, because here the same list is the mobile menu too. */
.mwo-mainnav .mw-nav-desktop-only {
	display: flex !important;
}

.mwo-header__right .wp-block-navigation {
	font-size: var(--wp--preset--font-size--x-small);
}

.mwo-header__link {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.mwo-header__link a {
	text-decoration: none;
}

.mwo-header__cta .wp-block-button__link {
	padding: 0.62em 1.1em;
	font-size: var(--wp--preset--font-size--x-small);
}

.mwo-header .mw-dark-toggle {
	width: 38px;
	height: 38px;
}

@media (max-width: 781px) {

	.mwo-header__cta {
		display: none;
	}

	.mwo-header__link {
		display: none;
	}
}

/* ---------- Footer ---------- */

.mwo-footer {
	padding-block: clamp(40px, 5vw, 64px) 26px;
	border-top: 1px solid var(--mwo-border);
	background: var(--wp--preset--color--base-2);
}

.mwo-footer__cols {
	gap: clamp(24px, 3vw, 44px);
}

.mwo-footer__brand p {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
	margin: 8px 0 0;
	max-width: 22rem;
}

.mwo-footer .wp-block-site-title {
	margin: 0;
	font-size: 1.06rem;
	font-weight: 700;
}

.mwo-footer__heading {
	margin: 0 0 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

.mwo-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 7px;
	font-size: var(--wp--preset--font-size--x-small);
}

.mwo-footer li {
	margin: 0;
}

.mwo-footer a {
	text-decoration: none;
}

.mwo-footer a:hover {
	text-decoration: underline;
}

.mwo-footer__bottom {
	margin-top: clamp(28px, 4vw, 46px);
	padding-top: 18px;
	border-top: 1px solid var(--mwo-border);
	gap: 12px;
	font-size: 0.76rem;
	color: var(--wp--preset--color--secondary);
}

.mwo-footer__bottom p {
	margin: 0;
}

.mwo-footer__bottom .wp-block-group {
	gap: 16px;
}

/* ---------- Onboarding page ---------- */

.mwo-onboard-page {
	padding-block: clamp(36px, 5vw, 64px);
}

.mwo-onboard {
	max-width: 74rem;
	margin-inline: auto;
}

.mwo-onboard__head {
	margin-bottom: clamp(26px, 3.5vw, 40px);
}

.mwo-onboard__title {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--literata, Georgia, serif);
	font-size: clamp(2rem, 3.6vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.08;
}

.mwo-onboard__lead {
	margin: 0 0 18px;
	color: var(--wp--preset--color--secondary);
	max-width: 40rem;
}

.mwo-progress {
	height: 8px;
	max-width: 26rem;
	border-radius: 999px;
	background: var(--wp--preset--color--base-3);
	overflow: hidden;
}

.mwo-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--wp--preset--color--accent);
	transition: width 0.3s ease;
}

.mwo-onboard__count {
	margin: 8px 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
}

.mwo-onboard__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
	gap: clamp(22px, 3vw, 38px);
	align-items: start;
}

@media (max-width: 1023px) {

	.mwo-onboard__grid {
		grid-template-columns: 1fr;
	}
}

.mwo-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
	counter-reset: none;
}

.mwo-step {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
	margin: 0;
	padding: clamp(16px, 2vw, 22px);
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius-sm);
	background: var(--wp--preset--color--base);
}

.mwo-step.is-done {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 6%, var(--wp--preset--color--base));
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 35%, var(--mwo-border));
}

.mwo-step__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-top: 2px;
	border-radius: 50%;
	border: 2px dashed var(--mwo-border-strong);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--wp--preset--color--base);
}

.mwo-step.is-done .mwo-step__mark {
	border: 0;
	background: var(--wp--preset--color--accent);
}

.mwo-step__body {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.mwo-step__title {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.3;
}

.mwo-step__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
	max-width: 36rem;
}

.mwo-step__link {
	justify-self: start;
	margin-top: 6px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.mwo-step__state {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	white-space: nowrap;
}

.mwo-step.is-done .mwo-step__state {
	color: var(--wp--preset--color--accent);
}

.mwo-onboard__side {
	display: grid;
	gap: 14px;
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px);
}

@media (max-width: 1023px) {

	.mwo-onboard__side {
		position: static;
	}
}

.mwo-preview {
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius-sm);
	background: var(--wp--preset--color--base);
	overflow: hidden;
}

.mwo-preview__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-bottom: 1px solid var(--mwo-border);
	background: var(--wp--preset--color--base-2);
	font-size: 0.7rem;
	color: var(--wp--preset--color--secondary);
}

.mwo-preview__bar::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff5f57;
	box-shadow: 11px 0 0 #febc2e, 22px 0 0 #28c840;
	margin-inline-end: 30px;
}

.mwo-preview iframe {
	display: block;
	width: 100%;
	height: clamp(240px, 30vw, 340px);
	border: 0;
	background: #fff;
}

.mwo-preview__foot {
	padding: 12px;
	display: grid;
	gap: 10px;
}

.mwo-preview__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.mwo-preview__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mwo-onboard__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6em 1.1em;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-decoration: none;
}

.mwo-onboard__cta:hover {
	color: var(--wp--preset--color--base);
	text-decoration: none;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 86%, var(--wp--preset--color--contrast));
}

.mwo-onboard__cta--ghost {
	background: transparent;
	border-color: var(--mwo-border-strong);
	color: var(--wp--preset--color--contrast);
}

.mwo-onboard__cta--ghost:hover {
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
	color: var(--wp--preset--color--contrast);
}

.mwo-onboard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
}

.mwo-help {
	padding: 16px 18px;
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius-sm);
	background: var(--wp--preset--color--base-2);
	font-size: var(--wp--preset--font-size--x-small);
}

.mwo-help p {
	margin: 0 0 8px;
	color: var(--wp--preset--color--secondary);
	max-width: none;
}

.mwo-help__title {
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.mwo-help a {
	font-weight: 600;
}

/* ---------- Ultimate Multisite, brand touches ----------
 * The parent theme already owns UM's dark mode (white surfaces, tokens, tables).
 * Here only the shape and the action colour change, so /register/ does not look
 * like a different product than the landing that sent the visitor there.
 */

body.madtheme-official .wu-styling .wu-form input:not([type="submit"]),
body.madtheme-official .wu-styling .wu-checkout-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.madtheme-official .wu-styling .wu-checkout-form select,
body.madtheme-official .wu-styling .wu-checkout-form textarea,
body.madtheme-official .wu-styling .wu-form select,
body.madtheme-official .wu-styling .wu-form textarea {
	border-radius: 10px;
}

body.madtheme-official .wu-styling button[type="submit"],
body.madtheme-official .wu-styling .wu-checkout-form button[type="submit"],
body.madtheme-official .wu-styling input[type="submit"],
body.madtheme-official .wu-styling .wu-submit-bg {
	border-radius: 999px;
	font-weight: 600;
}

body.madtheme-official .wu-styling .wu-relative.wu-block,
body.madtheme-official .wu-styling .wu-bg-white {
	border-radius: var(--mwo-radius-sm);
}

/* ---------- Column counts ----------
 * Core's grid layout auto-fits as many columns as the available width allows, so
 * the two-item hero would sit in the first two of three columns, and a row of
 * three cards would leave a fourth column empty. These sections have a known
 * number of items, so the count is stated here and core's auto-fit is overridden.
 * Tablet and mobile keep the grid from the block, restated so no width leaves a
 * card orphaned. `mwo-grid` is the shared class of the pillar row, the plugin
 * suite, the plans and the steps row: three of each on desktop is correct.
 */

@media (min-width: 1024px) {

	.mwo-hero__grid {
		grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr) !important;
	}

	.mwo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	/* Three plans, one column each: equal cards, and the comparison beside them
	 * reads left to right in the same order. */
	.mwo-plans {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.mwo-showcase {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) !important;
	}

	.mwo-swatches {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 782px) and (max-width: 1023px) {

	.mwo-hero__grid,
	.mwo-showcase {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.mwo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	/* Three plan cards in two columns would leave the third alone in its row, so
	 * they stack here and stay readable. */
	.mwo-plans {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.mwo-swatches {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 781px) {

	.mwo-hero__grid,
	.mwo-grid,
	.mwo-showcase,
	.mwo-swatches {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* ---------- Cards own their spacing ----------
 * A group with `layout: constrained` gives every child `margin-inline: auto` and a
 * content-size cap, which is what keeps long text readable in a section. Inside a
 * flex or grid card it does the opposite: each paragraph shrinks to its own width
 * and centres — the plan name sat in the middle of the card, and the hero mock's
 * thumbnail (a child with no text) collapsed to zero width. The cards below set
 * their own gap, so their children lose both the auto margins and the cap.
 */

.mwo-plan > *,
.mwo-pillar > *,
.mwo-plugin > *,
.mwo-step-card > *,
.mwo-post > *,
.mwo-swatch > *,
.mwo-mock > *,
.mwo-mock__body > * {
	margin: 0 !important;
	max-width: none !important;
}

/* The one margin the card does need: the action sits at the bottom. */
.mwo-plan > .mwo-plan__cta,
.mwo-pillar > .mwo-pillar__link,
.mwo-plugin > .mwo-plugin__meta {
	margin-top: auto !important;
}

/* ---------- Specificity, where a class meets a section rule ----------
 * `.mwo-pillar p` and `.mwo-plugin p` already style every paragraph in the card,
 * and they outrank a bare class selector. The two paragraphs that must sit at the
 * bottom of their card (and keep the card's own ink) therefore name the element.
 */

.mwo-pillar p.mwo-pillar__link {
	margin: auto 0 0;
	color: var(--wp--preset--color--contrast);
}

.mwo-plugin p.mwo-plugin__meta {
	margin: auto 0 0;
}

/* ---------- Secondary menus in the top bar ----------
 * The two menus the site had before the landing: documentazione and glossario on
 * the left, the account on the right. The left one is a navigation block, so it
 * borrows the parent's link look; the right one is rendered by the header
 * pattern because its contents follow the session.
 */

.mwo-topbar {
	gap: 12px;
	padding-block: 7px;
	border-bottom: 1px solid var(--mwo-border);
	font-size: 0.78rem;
}

.mwo-topbar__left,
.mwo-topbar__right {
	gap: 10px;
}

.mwo-topbar .wp-block-navigation {
	font-size: inherit;
}

.mwo-topbar .wp-block-navigation__container {
	gap: 14px;
}

.mwo-topbar .wp-block-navigation a {
	color: var(--wp--preset--color--secondary);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease;
}

.mwo-topbar .wp-block-navigation a:hover {
	color: var(--wp--preset--color--contrast);
}

.mwo-account {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: inherit;
}

.mwo-account a {
	color: var(--wp--preset--color--secondary);
	font-weight: 500;
	text-decoration: none;
}

.mwo-account a:hover {
	color: var(--wp--preset--color--contrast);
}

.mwo-account .mwo-account__link--strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.mwo-account__sep {
	opacity: 0.4;
}

/* ---------- Inner pages ----------
 * Chi & Cosa, Contatti, Documentazione and Glossario are ordinary pages: they keep
 * their own content blocks and gain the landing's hero, so the header, the title
 * and the rhythm are the same as the front page. The body stays wide on purpose:
 * the docs and glossary blocks lay themselves out with alignwide.
 */

.mwo-page__hero {
	padding-block: clamp(38px, 5vw, 72px) clamp(30px, 4vw, 56px);
	border-bottom: 1px solid var(--mwo-border);
	background: var(--wp--preset--color--base-2);
}

.mwo-page__hero-inner {
	display: grid;
	gap: 10px;
}

/* Core's constrained layout centres every child and caps it at the content
 * width, which reads as a centred hero on an inner page. The landing starts at
 * the left edge, so the hero follows the same rule here. */
.mwo-page__hero-inner > * {
	margin-inline: 0 !important;
}

.mwo-page__hero-inner > .mwo-lead {
	max-width: 40rem;
}

.mwo-page__hero .mwo-eyebrow {
	margin: 0 0 4px;
}

.mwo-page__hero .mwo-display {
	margin: 0;
}

.mwo-page__hero .mwo-lead {
	margin: 6px 0 0;
}

.mwo-page__hero .mwo-cats {
	margin-top: 18px;
}

.mwo-page__body {
	padding-block: clamp(30px, 4vw, 56px) clamp(48px, 6vw, 88px);
}

.mwo-page__body h2,
.mwo-page__body h3 {
	font-family: var(--wp--preset--font-family--literata, Georgia, serif);
	letter-spacing: -0.01em;
}

/* Article index: the blog page, the archives and the search results share the
   same card, which is the one the landing already uses for its latest posts. */

.mwo-listing-section {
	padding-top: clamp(26px, 3vw, 42px);
}

.mwo-listing__grid {
	gap: clamp(16px, 2vw, 24px);
}

.mwo-post__meta {
	margin: 0;
	gap: 8px;
}

.mwo-post .wp-block-post-excerpt {
	margin: 0;
	padding: 0 18px 4px;
	max-width: none !important;
}

.mwo-post .wp-block-post-excerpt p {
	margin: 0;
	max-width: none;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--wp--preset--color--secondary);
}

.mwo-post .wp-block-post-excerpt__more-text {
	margin-top: 8px;
}

.mwo-pagination {
	margin-top: clamp(26px, 3vw, 44px);
	gap: 6px;
	font-size: var(--wp--preset--font-size--x-small);
}

.mwo-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 8px 12px;
	border: 1px solid var(--mwo-border);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.mwo-pagination a.page-numbers:hover {
	border-color: var(--mwo-border-strong);
	background: var(--wp--preset--color--base-2);
}

.mwo-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

/* ---------- Single post ---------- */

.mwo-single__terms {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

.mwo-single__meta {
	margin: 0;
	gap: 16px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--secondary);
}

.mwo-single__meta .wp-block-post-date,
.mwo-single__meta .wp-block-post-author-name {
	margin: 0;
}

.mwo-single__cover {
	margin-block: clamp(24px, 3vw, 40px) 0;
}

.mwo-single__cover img {
	border-radius: var(--mwo-radius-sm);
}

.mwo-single__tags {
	margin-top: clamp(28px, 4vw, 44px);
	font-size: var(--wp--preset--font-size--x-small);
}

/* Reading width for the article body.
 * The rail leaves the article column ~950px wide, and 18px text across 950px is
 * about 105 characters a line. Text is capped at 44rem (roughly 70 characters)
 * and left-aligned to the column's edge; images, embeds and tables keep the
 * full column width they were placed with.
 */
.mwo-single__body {
	--wp--style--global--content-size: 44rem;
}

.mwo-single__body :where(p, h2, h3, h4, ul, ol, blockquote, dl) {
	max-width: 44rem;
	margin-inline: 0;
}

.mwo-single__body .wp-block-post-terms,
.mwo-single__body .wp-block-buttons {
	max-width: 44rem;
}

/* ---------- Search and 404 ---------- */

.mwo-search {
	max-width: 34rem;
	margin-top: 18px;
}

.mwo-search .wp-block-search__input {
	border-radius: 999px;
	padding-inline: 18px;
}

.mwo-search .wp-block-search__button {
	border-radius: 999px;
}

.mwo-404__actions {
	margin-top: 22px;
}

/* ---------- Blog rail ----------
 * The blog index, the archives, the search results and the single article carry
 * the same right rail: categories, the five latest articles, the five latest
 * comments and the lead card. The columns block stacks below 1024px through
 * `mw-cols-stack-md`, so the article always comes first on a phone.
 */

.mwo-with-side {
	align-items: flex-start;
}

/* The listing already sits inside the article column, so the global padding it
 * gets as an alignfull section only steals width from the cards: without this
 * the grid is 85px narrower than its column and drops to a single huge card. */
.mwo-with-side .mwo-listing-section,
.mwo-with-side .mwo-listing-section > .wp-block-group,
.mwo-with-side .mwo-listing {
	padding-block: 0;
	padding-inline: 0;
}

@media (min-width: 1024px) {

	.mwo-with-side > .wp-block-column:last-child {
		align-self: flex-start;
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 20px);
	}
}

.mwo-side {
	display: grid;
	gap: 18px;
}

.mwo-side__card {
	display: grid;
	gap: 10px;
	margin: 0 !important;
	padding: 20px;
	border: 1px solid var(--mwo-border);
	border-radius: var(--mwo-radius-sm);
	background: var(--wp--preset--color--base);
}

.mwo-side__card > * {
	margin: 0 !important;
	max-width: none !important;
}

.mwo-side__title {
	font-family: var(--wp--preset--font-family--literata, Georgia, serif);
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: 0;
}

.mwo-side__cats,
.mwo-side__comments {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
	font-size: var(--wp--preset--font-size--x-small);
}

.mwo-side__cats li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--mwo-border);
}

.mwo-side__cats li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.mwo-side__cats li a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 500;
}

.mwo-side__cats li a:hover {
	text-decoration: underline;
}

.mwo-side__count {
	color: var(--wp--preset--color--secondary);
	font-variant-numeric: tabular-nums;
	font-size: 0.78em;
}

.mwo-side__posts {
	display: grid;
	gap: 12px;
}

.mwo-side__post {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--mwo-border);
}

.mwo-side__post:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.mwo-side__post-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.mwo-side__post-title a {
	text-decoration: none;
}

.mwo-side__post-title a:hover {
	text-decoration: underline;
}

.mwo-side__date,
.mwo-side__comment-text,
.mwo-side__empty {
	margin: 4px 0 0;
	font-size: 0.72rem;
	line-height: 1.5;
	color: var(--wp--preset--color--secondary);
}

.mwo-side__comment {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--mwo-border);
}

.mwo-side__comment:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.mwo-side__comment-meta {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.45;
	color: var(--wp--preset--color--secondary);
}

.mwo-side__comment-meta strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.mwo-side__comment-meta a {
	color: inherit;
}

.mwo-side__lead {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 7%, var(--wp--preset--color--base));
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 35%, var(--mwo-border));
}

.mwo-side__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--wp--preset--color--secondary);
}

.mwo-side__cta {
	margin: 2px 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.mwo-side__cta a {
	text-decoration: none;
}

.mwo-side__cta a:hover {
	text-decoration: underline;
}

/* The MadLeads inline card keeps its own markup; inside the rail it takes the
 * rail's voice and geometry. The plugin's own header is hidden here: the card
 * already carries a title and a sentence in the same typography as every other
 * rail card, and two stacked titles plus a second description read as a pasted
 * advertisement. In the content column the same block still shows its header. */
.mwo-side .madleads-inline-wrap {
	margin: 0;
	padding: 0;
	background: transparent;
}

.mwo-side .madleads-inline-box {
	display: grid;
	gap: 10px;
	padding: 0;
	border: 0;
	background: transparent;
}

.mwo-side .madleads-inline-header {
	display: none;
}

/* One field per row: at 300px an input and a button side by side leave the
 * placeholder cut mid-word and the tap targets half the rail wide. */
.mwo-side .madleads-form-fields {
	display: grid;
	gap: 8px;
}

.mwo-side .madleads-input {
	width: 100%;
	border-radius: 10px;
}

.mwo-side .madleads-form .madleads-btn,
.mwo-side .madleads-form button[type="submit"] {
	width: 100%;
	border-radius: 999px;
	font-weight: 600;
}

.mwo-side .madleads-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.72rem;
	line-height: 1.45;
	text-align: start;
	color: var(--wp--preset--color--secondary);
}

.mwo-side .madleads-consent input[type="checkbox"] {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--wp--preset--color--accent);
}

/* Success and error text lands in the same card, so it follows its type. */
.mwo-side .madleads-response-msg {
	font-size: 0.76rem;
	line-height: 1.45;
	text-align: start;
}

/* The same form inside an article sits in left-aligned prose: the plugin's
 * centred heading makes it read as a pasted widget, so the header and the
 * microcopy follow the column. The modal keeps its centred layout. */
.wp-block-post-content .madleads-inline-header,
.wp-block-post-content .madleads-inline-desc,
.wp-block-post-content .madleads-consent,
.wp-block-post-content .madleads-response-msg {
	text-align: start;
}

.wp-block-post-content .madleads-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.78rem;
	line-height: 1.5;
}

.wp-block-post-content .madleads-consent input[type="checkbox"] {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--wp--preset--color--accent);
}

/* ---------- Contact page ---------- */

.mwo-contact__form {
	padding-block: 0 clamp(24px, 3vw, 40px);
}

.mwo-contact__card {
	margin-bottom: 18px !important;
}

.mwo-contact__steps {
	margin: 0;
	padding-inline-start: 1.1em;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
	color: var(--wp--preset--color--secondary);
}

.mwo-contact__steps li + li {
	margin-top: 8px;
}

/* The form itself belongs to MadForms; these rules only give it the page's
 * rhythm and a full-width action, so the fields do not sit in a narrow column
 * with a button the size of a label. */
.mwo-contact__heading {
	margin: 0 0 14px;
	font-size: clamp(1.35rem, 1.6vw, 1.6rem);
}

.mwo-contact__form .madforms-form {
	display: grid;
	gap: 16px;
	width: 100%;
	max-width: none;
}

/* MadForms prints the form's own title, and on this page it would repeat the
 * "Contatti" heading with the form record's lowercase name. */
.mwo-contact__form .madforms-form-title {
	display: none;
}

.mwo-contact__form .madforms-fields {
	display: grid;
	gap: 16px;
}

.mwo-contact__form .madforms-field {
	margin: 0;
}

.mwo-contact__form .madforms-label {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
}

.mwo-contact__form .madforms-input {
	width: 100%;
	border-radius: 10px;
}

.mwo-contact__form .madforms-submit,
.mwo-contact__form button[type="submit"],
.mwo-contact__form input[type="submit"] {
	width: 100%;
	border-radius: 999px;
	font-weight: 600;
}

/* MadForms ships no frontend sheet: it prints `.madforms-error`,
 * `.madforms-error-global` and `.madforms-success` and expects the theme to
 * dress them. Unstyled, a failed submit answers with a line of plain body text,
 * which reads like a paragraph rather than an answer. */
.mwo-contact__form .madforms-error,
.mwo-contact__form .madforms-error-global {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	font-weight: 600;
	color: #b3261e;
}

.mwo-contact__form .madforms-error-global {
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, #b3261e 35%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, #b3261e 7%, transparent);
}

.mwo-contact__form .madforms-success {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 38%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, var(--wp--preset--color--base));
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.mwo-contact__form .madforms-required {
	color: #b3261e;
}

body.dark-mode:not(.dark-mode-off) .mwo-contact__form .madforms-error,
body.dark-mode:not(.dark-mode-off) .mwo-contact__form .madforms-error-global,
body.dark-mode:not(.dark-mode-off) .mwo-contact__form .madforms-required,
html.dark-mode .mwo-contact__form .madforms-error,
html.dark-mode .mwo-contact__form .madforms-error-global,
html.dark-mode .mwo-contact__form .madforms-required,
html[data-theme="dark"] body .mwo-contact__form .madforms-error,
html[data-theme="dark"] body .mwo-contact__form .madforms-error-global,
html[data-theme="dark"] body .mwo-contact__form .madforms-required {
	color: #ff9b90;
}

@media (prefers-color-scheme: dark) {

	body.dark-mode-auto:not(.dark-mode-off) .mwo-contact__form .madforms-error,
	body.dark-mode-auto:not(.dark-mode-off) .mwo-contact__form .madforms-error-global,
	body.dark-mode-auto:not(.dark-mode-off) .mwo-contact__form .madforms-required,
	html:not(.dark-mode-off) body.dark-mode-auto .mwo-contact__form .madforms-error,
	html:not(.dark-mode-off) body.dark-mode-auto .mwo-contact__form .madforms-error-global,
	html:not(.dark-mode-off) body.dark-mode-auto .mwo-contact__form .madforms-required {
		color: #ff9b90;
	}
}

/* ---------- Free plan band ---------- */

.mwo-free {
	background: var(--wp--preset--color--base-2);
}

.mwo-free__panel {
	display: grid;
	gap: 12px;
	margin: 0 !important;
	padding: clamp(26px, 4vw, 48px);
	border-radius: var(--mwo-radius);
	background: var(--mwo-cream);
	color: var(--mwo-ink);
	box-shadow: var(--mwo-shadow-soft);
}

.mwo-free__panel > * {
	margin: 0 !important;
	max-width: none !important;
}

.mwo-free__panel .mwo-lead {
	max-width: 34rem;
	color: color-mix(in srgb, var(--mwo-ink) 78%, transparent);
}

.mwo-free__checks {
	margin: 6px 0 4px;
	color: color-mix(in srgb, var(--mwo-ink) 82%, transparent);
}

.mwo-free__checks li::before {
	border-color: var(--wp--preset--color--accent);
}

.mwo-free__panel .mwo-note {
	color: color-mix(in srgb, var(--mwo-ink) 62%, transparent);
}

@media (max-width: 781px) {

	.mwo-free__checks {
		grid-template-columns: minmax(0, 1fr);
	}

	.mwo-free__panel .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.mwo-free__panel .wp-block-button,
	.mwo-free__panel .wp-block-button__link {
		width: 100%;
	}

	.mwo-side__card {
		padding: 16px;
	}
}

/* ---------- Narrow screens ----------
 * The top bar keeps both sides on a phone, at a smaller size: docs and glossary
 * on the left, the account on the right. Only the main-row actions (the signup
 * button and the Onboarding link) step aside, because the hamburger, the dark
 * toggle and the brand need that width.
 */

@media (max-width: 781px) {

	/* Between 600 and 781 core still prints the main menu inline, but the site's
	 * menu carries the parent theme's mobile-only entries (docs, glossary,
	 * account): inline they wrap over the brand. The header is a burger from
	 * 781 down, exactly as the parent theme expects. */
	.mwo-mainnav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	/* The block's own flex layout keeps the overlay list pinned to the top-left
	 * corner: four links in a corner read as an unfinished menu. Centring them
	 * is the same shape the parent theme gives its overlay. */
	.mwo-mainnav .wp-block-navigation__responsive-container.is-menu-open {
		justify-content: center;
	}

	.mwo-mainnav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: center;
		justify-content: center;
		text-align: center;
		min-height: 100%;
	}

	/* stretch, not center: centred items would shrink-wrap and each label would
	 * sit on its own axis, so "Home" looks indented next to "Chi & Cosa". */
	.mwo-mainnav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch;
	}

	.mwo-mainnav .wp-block-navigation__responsive-container-open {
		display: flex;
	}


	/* Core's `body .is-layout-flex { display: flex }` outranks a bare class, so the
	 * two actions that must disappear on a phone name their container. */
	.mwo-header .mwo-header__cta,
	.mwo-header .mwo-header__link {
		display: none !important;
	}

	/* The secondary menu keeps its place on the left on a phone as well: docs and
	 * glossary are the links this header exists to restore. The block is set to
	 * `overlayMenu: never` in the pattern so it renders as a list here instead of
	 * collapsing into a second hamburger. */
	.mwo-topbar {
		gap: 8px;
		padding-block: 5px;
		font-size: 0.7rem;
	}

	/* The parent theme marks every navigation whose ref is one of its secondary
	 * menus with `mw-secondary-nav mw-nav-desktop-only` and hides it under this
	 * breakpoint, to keep a single hamburger. Here the secondary menu has its own
	 * place in the top bar, so those two rules are answered explicitly. */
	.mwo-topbar__left {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.mwo-topbar .wp-block-navigation.mw-secondary-nav,
	.mwo-topbar .wp-block-navigation[aria-label*="Secondari" i] {
		display: flex !important;
		align-items: center;
	}

	.mwo-topbar .wp-block-navigation__container {
		display: flex !important;
		flex-wrap: wrap;
		align-items: center;
	}

	.mwo-topbar__right {
		margin-inline-start: auto;
	}

	.mwo-topbar .wp-block-navigation__container {
		gap: 9px;
	}

	.mwo-account {
		gap: 6px;
	}

	/* The hero list is two columns on desktop; on a phone the claims are longer now
	 * and two narrow columns turn them into ragged three-line blocks. */
	.mwo-hero .mwo-checks {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.mwo-page__hero {
		padding-block: 28px 24px;
	}

	.mwo-page__hero .mwo-display {
		font-size: clamp(1.85rem, 8vw, 2.5rem);
	}

	.mwo-page__body {
		padding-block: 24px 48px;
	}
}
