/*
 * AppuntiSulBlog AI — stili principali.
 * Mobile-first, tipografia fluida, WCAG 2.1 AA (contrasto >= 4.5:1).
 * Il critical CSS (reset, header, layout base) è inline nell'head.
 */

:root {
	--asb-text: #1f2430;
	--asb-muted: #374151; /* 9.5:1 su bianco, 9.0:1 su grigio chiaro (supera WCAG AA 4.5:1) */
	--asb-border: #e6e8ee;
	--asb-bg-soft: #f6f7f9;
	--asb-radius: 12px;
}

/* ---------- Utilità ---------- */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	background: #fff;
	padding: 0.75rem 1rem;
	box-shadow: 0 2px 12px rgb(0 0 0 / 0.2);
}

/* ---------- Tipografia fluida ---------- */

h1, h2, h3, h4 {
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--asb-text);
}

h1 { font-size: clamp(1.75rem, 1.4rem + 1.75vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.2rem + 0.9vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }

p { margin: 0 0 1.1em; }

a:hover { text-decoration-thickness: 2px; }

/* ---------- Top bar (desktop) ---------- */

.top-bar {
	white-space: nowrap;
}

.top-bar__inner {
	flex-wrap: nowrap;
}

.top-bar__date {
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
}

.top-bar__right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-left: auto;
	white-space: nowrap;
	flex-shrink: 0;
}

.top-bar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	white-space: nowrap;
	flex-shrink: 0;
}

.top-bar__list a {
	text-decoration: none;
	color: #374151;
	font-weight: 600;
	font-size: 0.82rem;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.top-bar__list a:hover {
	color: var(--asb-accent);
}

.top-bar__social {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	white-space: nowrap;
	flex-shrink: 0;
}

.top-bar__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 26px;
	color: #1f2937;
	flex-shrink: 0;
	transition: color 0.15s ease, transform 0.15s ease;
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 600;
	gap: 4px;
	padding: 0 6px;
}

.top-bar__social a:hover {
	color: var(--asb-accent);
	transform: translateY(-1px);
}

.top-bar__social svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	flex-shrink: 0;
}

.top-bar__social-count {
	font-size: 0.72rem;
	font-weight: 600;
	color: #6b7280;
	transition: color 0.15s ease;
}

.top-bar__social a:hover .top-bar__social-count {
	color: var(--asb-accent);
}

/* ---------- Ticker "Di tendenza" (Desktop unicamente, Core Web Vitals optimized) ---------- */

.ticker {
	display: none !important;
}

@media (min-width: 900px) {
	.ticker {
		display: block !important;
		border-bottom: 1px solid var(--asb-border);
		background: #fff;
		min-height: 38px;
		height: 38px;
		overflow: hidden;
		contain-intrinsic-size: 38px;
	}

	.ticker__inner {
		max-width: 1100px;
		margin: 0 auto;
		padding: 0.35rem 0.75rem;
		display: flex;
		align-items: center;
		gap: 0.75rem;
		height: 100%;
		box-sizing: border-box;
	}

	.ticker__label {
		flex-shrink: 0;
		/* Era #008d7f: contrasto 4.10:1 con testo bianco, sotto la soglia AA 4.5:1. */
		background: #008174;
		color: #fff;
		font-size: 0.68rem;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		padding: 0.2rem 0.55rem;
		border-radius: 4px;
		line-height: 1.2;
	}

	.ticker__items {
		flex: 1;
		min-width: 0;
		position: relative;
	}

	.ticker__item {
		display: none;
		text-decoration: none;
		color: var(--asb-text);
		font-size: 0.82rem;
		font-weight: 600;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		line-height: 1.2;
	}

	.ticker__item.is-active { display: block; }

	.ticker__item:hover { color: var(--asb-accent); }

	.ticker__controls {
		display: flex;
		gap: 0.2rem;
		flex-shrink: 0;
	}

	.ticker__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		border: 1px solid var(--asb-border);
		border-radius: 4px;
		background: #fff;
		color: var(--asb-muted);
		cursor: pointer;
		padding: 0;
	}

	.ticker__btn:hover { color: var(--asb-accent); border-color: var(--asb-accent); }
}

/* ---------- Hero grid 1+2 ---------- */

/* ---------- Hero grid 1+2 ---------- */

.hero-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 1rem 0 2rem;
	border-radius: 16px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.hero-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(2, minmax(0, 1fr));
		gap: 16px;
		margin: 1.5rem 0 2.5rem;
	}

	.hero-grid--grid-3-col {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: 1fr;
	}

	.hero-grid--grid-3-col .hero-card {
		min-height: 380px;
	}
}

.hero-card {
	position: relative;
	overflow: hidden;
	background: var(--asb-text);
	min-height: 220px;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.hero-card__link {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	z-index: 2;
}

@media (min-width: 768px) {
	.hero-card { min-height: 180px; }
	.hero-card--large {
		grid-row: 1 / 3;
		min-height: 380px;
	}
}

.hero-card__img,
.hero-card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover .hero-card__img,
.hero-card:hover > img {
	transform: scale(1.07);
}

.hero-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1.2rem;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.42) 55%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
	transition: background 0.4s ease;
}

.hero-card:hover .hero-card__overlay {
	background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(0, 0, 0, 0.05) 100%);
}

@media (min-width: 768px) {
	.hero-card__overlay { padding: 1.45rem; }
}

.hero-card__cat {
	background: var(--asb-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.3rem 0.8rem;
	border-radius: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.35;
	font-weight: 800;
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	overflow-wrap: break-word;
	word-wrap: break-word;
}

@media (min-width: 768px) {
	.hero-card--large .hero-card__title { font-size: 1.85rem; }
}

.hero-card__title span {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s;
}

/* Layout "Quint": 1 card principale a sinistra + 4 card laterali a destra (2x2) */
.asb-quint-grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 18px;
	margin: 1.5rem 0 2.5rem;
}

@media (min-width: 992px) {
	.asb-quint-grid {
		grid-template-columns: 2fr 1fr 1fr;
		gap: 20px;
		align-items: start;
	}

	.asb-quint-grid__main {
		grid-column: 1;
		min-width: 0;
	}

	.asb-quint-grid__subs {
		grid-column: 2 / 4;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		min-width: 0;
	}
}

/* Ogni card è un item di grid/flex: senza min-width/min-height:0 il contenuto
   (immagini, testo lungo) può impedire il restringimento e sfondare il layout. */
.asb-quint-card {
	min-width: 0;
	min-height: 0;
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
	height: 100%;
}

.asb-quint-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	border-color: #cbd5e1;
}

.asb-quint-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.asb-quint-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
	flex-shrink: 0;
}

.asb-quint-card--sub-1 .asb-quint-card__media,
.asb-quint-card--sub-2 .asb-quint-card__media,
.asb-quint-card--sub-3 .asb-quint-card__media,
.asb-quint-card--sub-4 .asb-quint-card__media {
	aspect-ratio: 4 / 3;
}

.asb-quint-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.asb-quint-card:hover .asb-quint-card__img {
	transform: scale(1.06);
}

.asb-quint-card__badge {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	background: var(--asb-accent, #c2185b);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.28rem 0.75rem;
	border-radius: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	z-index: 2;
}

.asb-quint-card__content {
	padding: 1.2rem 1.5rem !important;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	width: 100%;
	justify-content: space-between;
	background: #ffffff;
	box-sizing: border-box !important;
	overflow: hidden;
}

.asb-quint-card--main .asb-quint-card__content {
	padding: 1.35rem 1.6rem !important;
	box-sizing: border-box !important;
}

.asb-quint-card__header {
	min-width: 0;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
}

.asb-quint-card__title {
	margin: 0 0 0.4rem 0 !important;
	padding: 0 !important;
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 800;
	color: #0f172a;
	transition: color 0.2s ease;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	hyphens: manual !important;
	box-sizing: border-box !important;
}

.asb-quint-card--main .asb-quint-card__title {
	font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
	line-height: 1.35;
	margin: 0 0 0.55rem 0 !important;
	padding: 0 !important;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	box-sizing: border-box !important;
}

.asb-quint-card:hover .asb-quint-card__title {
	color: var(--asb-accent, #c2185b);
}

.asb-quint-card__excerpt {
	margin: 0 0 0.5rem 0 !important;
	padding: 0 !important;
	font-size: 0.84rem;
	line-height: 1.4;
	color: #475569;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	box-sizing: border-box !important;
}

.asb-quint-card--sub-1 .asb-quint-card__title,
.asb-quint-card--sub-2 .asb-quint-card__title,
.asb-quint-card--sub-3 .asb-quint-card__title,
.asb-quint-card--sub-4 .asb-quint-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.92rem;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	box-sizing: border-box !important;
}

.asb-quint-card--main .asb-quint-card__excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
	color: #334155;
	margin: 0 0 0.65rem 0 !important;
	padding: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: break-word !important;
	word-break: normal !important;
	box-sizing: border-box !important;
}

.asb-quint-card__meta {
	margin-top: auto;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--asb-accent, #c2185b);
}

.asb-quint-card__read {
	transition: transform 0.2s ease;
	display: inline-block;
}

.asb-quint-card:hover .asb-quint-card__read {
	transform: translateX(3px);
}

/* Layout Mosaic Editoriale Kinfolk / Vogue (4 Colonne Asimmetriche) */
.asb-hero-mosaic {
	margin: 1.5rem 0 2.5rem;
}

.asb-hero-mosaic__grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 12px;
}

@media (min-width: 640px) {
	.asb-hero-mosaic__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.asb-hero-mosaic__grid {
		grid-template-columns: 1.2fr 1fr 1.1fr 1fr;
		gap: 14px;
		height: 480px;
	}
}

.asb-hero-mosaic__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	min-width: 0;
}

.asb-mosaic-card {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: #0f172a;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
	border: 1px solid #e2e8f0;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	flex: 1;
	min-height: 200px;
}

@media (min-width: 992px) {
	.asb-mosaic-card--tall {
		height: 100%;
	}
	.asb-mosaic-card--stacked-top,
	.asb-mosaic-card--stacked-bottom {
		height: 233px;
	}
}

.asb-mosaic-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.asb-mosaic-card__link {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	z-index: 2;
}

.asb-mosaic-card__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #f1f5f9;
}

.asb-mosaic-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.asb-mosaic-card:hover .asb-mosaic-card__img {
	transform: scale(1.08);
}

.asb-mosaic-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	padding: 1.25rem;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.1) 100%);
	z-index: 1;
	transition: background 0.4s ease;
}

.asb-mosaic-card:hover .asb-mosaic-card__overlay {
	background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.52) 60%, rgba(15, 23, 42, 0.15) 100%);
}

.asb-mosaic-card__cat {
	align-self: flex-start;
	background: var(--asb-accent);
	color: #ffffff;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.28rem 0.75rem;
	border-radius: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.asb-mosaic-card__title {
	margin: auto 0 0;
	font-size: 1.15rem;
	line-height: 1.3;
	font-weight: 800;
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.asb-mosaic-card--tall .asb-mosaic-card__title {
	font-size: 1.35rem;
}

.asb-mosaic-card__title span {
	color: #ffffff;
	transition: color 0.2s ease;
}

.asb-mosaic-card:hover .asb-mosaic-card__title span {
	color: #ffe6f0;
}

/* Layout Hero Editoriale Ottimizzato LCP (Zero Griglie Pesanti) */
.hero-editorial {
	margin: 1.5rem 0 2.5rem;
}

@media (min-width: 992px) {
	.hero-editorial--split {
		display: grid;
		grid-template-columns: 1.4fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}

.hero-featured {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	border: 1px solid #e2e8f0;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-featured:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hero-featured__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.hero-featured__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
}

.hero-featured__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-featured:hover .hero-featured__img {
	transform: scale(1.05);
}

.hero-featured__content {
	padding: 1.5rem;
}

.hero-featured__cat {
	display: inline-block;
	background: var(--asb-accent);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	margin-bottom: 0.6rem;
}

.hero-featured__title {
	margin: 0 0 0.6rem;
	font-size: 1.45rem;
	line-height: 1.3;
	font-weight: 800;
	color: #0f172a;
	transition: color 0.2s ease;
}

.hero-featured:hover .hero-featured__title {
	color: var(--asb-accent);
}

.hero-featured__excerpt {
	margin: 0 0 0.8rem;
	font-size: 0.95rem;
	color: #475569;
	line-height: 1.5;
}

.hero-featured__meta {
	font-size: 0.82rem;
	color: #94a3b8;
	font-weight: 500;
}

/* Lista Editoriale a Destra (Unboxed, pulita) */
.hero-editorial__list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.hero-list-item {
	padding-bottom: 1.1rem;
	border-bottom: 1px solid #e2e8f0;
}

.hero-list-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.hero-list-item__link {
	display: flex;
	gap: 1.1rem;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.hero-list-item__media {
	width: 110px;
	height: 80px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f5f9;
}

.hero-list-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hero-list-item:hover .hero-list-item__img {
	transform: scale(1.08);
}

.hero-list-item__body {
	flex: 1;
	min-width: 0;
}

.hero-list-item__cat {
	display: inline-block;
	color: var(--asb-accent);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.hero-list-item__title {
	margin: 0 0 0.3rem;
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 700;
	color: #0f172a;
	transition: color 0.2s ease;
}

.hero-list-item:hover .hero-list-item__title {
	color: var(--asb-accent);
}

.hero-list-item__date {
	font-size: 0.8rem;
	color: #94a3b8;
}

/* ---------- Colonne homepage ---------- */

.home-columns {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-top: 1.5rem;
}

@media (min-width: 900px) {
	.home-columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 2.5rem;
	}
}

.home-main,
.home-side {
	width: 100%;
	min-width: 0;
}

.home-section { margin-bottom: 2.25rem; }

.asb-section-header {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-size: 1.05rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 1.25rem;
	color: var(--section-color, var(--asb-text));
}

.asb-section-header a {
	color: inherit;
	text-decoration: none;
}

.asb-section-header::after {
	content: "";
	flex: 1;
	height: 3px;
	background: var(--section-color, var(--asb-border));
	border-radius: 2px;
	opacity: 0.75;
}

/* Layout: 1 grande + lista */

.section-big-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.section-big-list {
		display: grid;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 1.5rem;
	}
}

.section-big-list__list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.section-big-list__list .row-card {
	grid-template-columns: 100px 1fr;
	margin-bottom: 0;
}

.section-big-list__list .row-card__title { font-size: 0.95rem; }
.section-big-list__list .row-card__meta { display: none; }

.big-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--asb-bg-soft);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.big-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.big-card:hover .big-card__media img {
	transform: scale(1.05);
}

.big-card__title {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	line-height: 1.35;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.big-card__title a {
	color: var(--asb-text);
	text-decoration: none;
}

.big-card__title a:hover { color: var(--asb-accent); }

.big-card__excerpt {
	margin: 0;
	color: var(--asb-muted);
	font-size: 0.92rem;
}

/* Layout: righe con excerpt */

.section-rows .row-card {
	grid-template-columns: 100px 1fr;
	margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
	.section-rows .row-card {
		grid-template-columns: 200px 1fr;
		gap: 1.25rem;
		margin-bottom: 1.75rem;
	}
}

.section-rows .row-card__media { aspect-ratio: 16 / 10; }

/* Card riga */

.row-card {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 0.85rem;
	align-items: start;
	margin-bottom: 1rem;
	min-width: 0;
}

@media (min-width: 768px) {
	.row-card {
		gap: 1.1rem;
	}
}

.row-card__media {
	aspect-ratio: 4 / 3;
	background: var(--asb-bg-soft);
	border-radius: 8px;
	overflow: hidden;
}

.row-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.row-card:hover .row-card__media img {
	transform: scale(1.06);
}

.row-card__body {
	min-width: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.row-card__title {
	margin: 0 0 0.3rem;
	font-size: 1rem;
	line-height: 1.35;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.row-card__title a {
	color: var(--asb-text);
	text-decoration: none;
}

.row-card__title a:hover { color: var(--asb-accent); }

.row-card__excerpt {
	margin: 0 0 0.35rem;
	color: var(--asb-muted);
	font-size: 0.92rem;
}

.row-card__meta {
	margin: 0;
	font-size: 0.85rem;
	color: var(--asb-muted);
}

.row-card__author {
	color: var(--asb-accent);
	font-weight: 600;
	text-decoration: none;
}

/* Lista mobile "Ultimi articoli": titoli troncati a 3 righe come il sito reale */

.mobile-latest .row-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.section-more {
	margin: 0.5rem 0 0;
	text-align: center;
}

.section-more a {
	display: inline-block;
	border: 1px solid var(--asb-border);
	padding: 0.45rem 1.4rem;
	text-decoration: none;
	color: var(--asb-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.section-more a:hover {
	color: var(--asb-accent);
	border-color: var(--asb-accent);
}

/* Layout sidebar: card circolari */

.section-circles .circle-card {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1.4rem;
}

.circle-card__media {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--asb-bg-soft);
}

.circle-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.circle-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.circle-card__title a {
	color: var(--asb-text);
	text-decoration: none;
}

.circle-card__title a:hover { color: var(--asb-accent); }

/* Layout sidebar: 1 grande + piccole */

.section-big-small .big-card { margin-bottom: 1.25rem; }

.section-big-small .big-card__excerpt { display: none; }

.section-big-small .row-card {
	grid-template-columns: 90px 1fr;
	margin-bottom: 1rem;
}

.section-big-small .row-card__title { font-size: 0.95rem; }

.section-big-small .row-card__meta { display: none; }

/* "I più letti" numerato */

.top-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toplist;
}

.top-list li {
	counter-increment: toplist;
	display: flex;
	gap: 0.9rem;
	align-items: baseline;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--asb-border);
}

.top-list li::before {
	content: counter(toplist);
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--asb-border);
}

.top-list a {
	color: var(--asb-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.top-list a:hover { color: var(--asb-accent); }

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

.header-search {
	border-top: 1px solid var(--asb-border);
	padding: 0.75rem 1rem;
	background: #fff;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 640px;
	margin: 0 auto;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0.65rem 0.9rem;
	font-size: 1rem;
	border: 1.5px solid var(--asb-muted);
	border-radius: 8px;
	color: var(--asb-text);
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	border: 0;
	border-radius: 8px;
	background: var(--asb-accent);
	color: #fff;
	cursor: pointer;
}

/* Autocomplete live search dropdown */
.search-form__autocomplete {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 990;
	background: #ffffff;
	border: 1px solid var(--asb-border, #e2e8f0);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
	overflow: hidden;
}

.search-form__autocomplete-list {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0;
}

.search-form__autocomplete-list li {
	margin: 0;
	padding: 0;
}

.search-form__autocomplete-link {
	display: block;
	padding: 0.65rem 1rem;
	color: #1e293b;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.35;
	transition: background 0.15s ease, color 0.15s ease;
}

.search-form__autocomplete-link:hover,
.search-form__autocomplete-link:focus {
	background: #f1f5f9;
	color: var(--asb-accent, #c2185b);
}

.search-form__autocomplete-empty {
	padding: 0.85rem 1rem;
	font-size: 0.88rem;
	color: #64748b;
	text-align: center;
}

/* ---------- Search Modal Popup Overlay ---------- */

body.search-modal-open {
	overflow: hidden !important;
}

.search-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1200;
	display: none !important;
	align-items: flex-start;
	justify-content: center;
	padding: 4rem 1rem 2rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none !important;
	transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.search-modal.is-open {
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.search-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.search-modal__content {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 680px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	padding: 1.75rem;
	transform: translateY(-20px) scale(0.97);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal.is-open .search-modal__content {
	transform: translateY(0) scale(1);
}

.search-modal__close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-modal__close:hover {
	background: var(--asb-accent, #c2185b);
	color: #ffffff;
	transform: rotate(90deg);
}

.search-modal__header {
	margin-bottom: 1.25rem;
	padding-right: 2.5rem;
}

.search-modal__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.search-modal .search-form {
	max-width: 100%;
	margin: 0;
}

.search-modal .search-form__input {
	font-size: 1.05rem;
	padding: 0.85rem 1.1rem;
	border-radius: 10px;
	border: 2px solid var(--asb-accent, #c2185b);
	box-shadow: 0 4px 12px rgba(194, 24, 91, 0.1);
}

.search-modal .search-form__submit {
	width: 52px;
	border-radius: 10px;
}

.search-modal__results {
	margin-top: 1.25rem;
	max-height: 55vh;
	overflow-y: auto;
	border-top: 1px solid #e2e8f0;
	padding-top: 0.75rem;
}

.search-modal__results .search-form__autocomplete-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-modal__results .search-form__autocomplete-link {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 0.85rem 1rem !important;
	border-radius: 8px !important;
	background: #f8fafc !important;
	margin-bottom: 0.4rem !important;
	color: #0f172a !important;
	text-decoration: none !important;
	font-size: 0.98rem !important;
	font-weight: 600 !important;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

.search-modal__results .search-form__autocomplete-link:hover {
	background: #e2e8f0 !important;
	color: var(--asb-accent, #c2185b) !important;
	transform: translateX(3px) !important;
}

.search-form__autocomplete-title {
	color: #0f172a !important;
	font-size: 0.98rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
	flex: 1 !important;
	min-width: 0 !important;
	text-align: left !important;
}

.search-modal__results .search-form__autocomplete-link:hover .search-form__autocomplete-title {
	color: var(--asb-accent, #c2185b) !important;
}

.search-form__autocomplete-arrow {
	color: var(--asb-accent, #c2185b) !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	margin-left: 0.75rem !important;
}

.search-form__autocomplete-footer {
	text-align: center;
	padding: 0.85rem 0 0.25rem;
	border-top: 1px solid #f1f5f9;
	margin-top: 0.75rem;
}

.search-form__autocomplete-footer a {
	color: var(--asb-accent, #c2185b);
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
}

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

/* ---------- Menu mobile (offcanvas drawer) ---------- */

.offcanvas-overlay { display: none; }
.offcanvas-overlay:not([hidden]) {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 950;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.offcanvas[hidden] { display: none !important; }

.offcanvas {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 310px;
	max-width: 85vw;
	z-index: 960;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	overflow-y: auto;
	padding: 0 1.25rem 1.5rem;
	box-shadow: 6px 0 30px rgba(0, 0, 0, 0.18);
}

@keyframes asb-menu-in {
	from { opacity: 0; transform: translateX(-12px); }
	to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: no-preference) {
	body.offcanvas-open .offcanvas {
		animation: asb-menu-in 0.2s ease forwards;
	}
}

.offcanvas__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0 0.85rem;
	border-bottom: 1px solid var(--asb-border);
	margin-bottom: 1rem;
	position: sticky;
	top: 0;
	background: #ffffff;
	z-index: 2;
}

.offcanvas__branding {
	flex: 1;
	min-width: 0;
}

.offcanvas__branding img,
.offcanvas__branding svg {
	max-height: 44px;
	width: auto;
	object-fit: contain;
}

.offcanvas__close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--asb-bg-soft);
	color: var(--asb-text);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.offcanvas__close:hover {
	background: var(--asb-accent);
	color: #fff;
}

.offcanvas__search {
	margin-bottom: 1.25rem;
}

.offcanvas__search form {
	display: flex;
	position: relative;
}

.offcanvas__search input[type="search"] {
	width: 100%;
	padding: 0.65rem 0.9rem;
	font-size: 0.9rem;
	border: 1px solid var(--asb-border);
	border-radius: 8px;
	background: var(--asb-bg-soft);
	outline: none;
}

.offcanvas__search input[type="search"]:focus {
	border-color: var(--asb-accent);
	background: #fff;
}

.offcanvas__search button[type="submit"] {
	position: absolute;
	right: 4px;
	top: 4px;
	bottom: 4px;
	padding: 0 0.6rem;
	border: none;
	background: transparent;
	color: var(--asb-muted);
	cursor: pointer;
}

.offcanvas__nav {
	flex: 1;
}

.offcanvas ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.offcanvas li {
	border-bottom: 1px solid rgba(230, 232, 238, 0.7);
}

.offcanvas li:last-child {
	border-bottom: none;
}

.offcanvas a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 0.4rem;
	text-decoration: none;
	color: var(--asb-text);
	font-weight: 600;
	font-size: 0.96rem;
	border-radius: 6px;
	transition: color 0.15s, background 0.15s, padding-left 0.15s;
}

.offcanvas a:hover {
	color: var(--asb-accent);
	background: var(--asb-bg-soft);
	padding-left: 0.75rem;
}

.offcanvas .sub-menu a {
	font-weight: 500;
	font-size: 0.88rem;
	padding: 0.45rem 0.6rem;
	color: var(--asb-muted);
}

.offcanvas__footer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--asb-border);
}

.offcanvas__social {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.offcanvas__social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--asb-bg-soft);
	color: var(--asb-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.offcanvas__social a:hover {
	background: var(--asb-accent);
	color: #ffffff;
	transform: translateY(-2px);
}

/* ---------- Griglia card ---------- */

.asb-post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 700px) {
	.asb-post-grid { grid-template-columns: repeat(2, 1fr); }
	.post-card--large { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
	.asb-post-grid { grid-template-columns: repeat(3, 1fr); }
	.asb-post-grid--related { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--asb-border);
	border-radius: var(--asb-radius);
	overflow: hidden;
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 8;
	background: var(--asb-bg-soft);
	max-height: 200px;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card--large .post-card__media { aspect-ratio: 21 / 9; }

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem 1.1rem 1.2rem;
}

.post-card__cat {
	align-self: flex-start;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--asb-accent);
}

.post-card__title {
	margin: 0;
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}

.post-card--large .post-card__title {
	font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
}

.post-card__title a {
	text-decoration: none;
	color: var(--asb-text);
}

.post-card__title a:hover { text-decoration: underline; }

.post-card__excerpt {
	margin: 0;
	color: var(--asb-muted);
	font-size: 0.95rem;
}

.post-card__meta {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	color: var(--asb-muted);
}

/* ---------- Archivi ---------- */

.archive-header { margin-bottom: 1.5rem; }

.archive-header__description {
	color: var(--asb-muted);
	max-width: 90ch;
	text-align: left;
	margin: 0 auto;
}

.asb-breadcrumbs {
	font-size: 0.85rem;
	color: var(--asb-muted);
	margin-bottom: 1rem;
}

.asb-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.asb-breadcrumbs li:not(:first-child)::before {
	content: "›";
	margin-right: 0.35rem;
}

.asb-breadcrumbs a {
	color: var(--asb-muted);
}

/* ---------- Articolo singolo ---------- */

.single-article {
	max-width: 800px;
	margin: 0 auto;
}

.single-article__cat {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--asb-accent);
}

.single-article__title {
	margin: 0.35rem 0 0.6rem;
	font-size: clamp(1.4rem, 2.5vw, 2.1rem);
	line-height: 1.35;
	font-weight: 800;
	color: #0f172a;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: manual;
}

.single-article__lead {
	font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
	color: var(--asb-muted);
	line-height: 1.55;
	margin: 0 0 0.75rem;
	overflow-wrap: break-word;
	word-break: normal;
}

.single-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	color: var(--asb-muted);
	margin: 0 0 1.25rem;
}

.single-article__meta svg { vertical-align: -3px; }

.single-article__featured {
	margin: 1.25rem 0 1.75rem;
	overflow: hidden;
	border-radius: 12px;
}

.single-article__featured img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center 30%;
	border-radius: 12px;
	max-height: 400px;
}

.single-article__featured figcaption {
	font-size: 0.85rem;
	color: var(--asb-muted);
	margin-top: 0.5rem;
}

/* Contenuto estrattivo: paragrafi brevi, liste leggibili, tabelle riassuntive.
   Corpo testo più grande per una lettura riposante. */

.entry-content {
	max-width: 100%;
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
	line-height: 1.75;
}

.entry-content > * { margin-block-start: 0; }

.entry-content h2,
.entry-content h3 {
	margin-top: 1.8em;
	margin-bottom: 0.5em;
	scroll-margin-top: 80px;
	position: relative;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4rem;
	margin: 0 0 1.2em;
}

.entry-content li { margin-bottom: 0.4em; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--asb-border);
	padding: 0.6rem 0.75rem;
	text-align: left;
}

.entry-content th { background: var(--asb-bg-soft); }

/* Centratura automatica immagini e figure negli articoli */
.entry-content img {
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Figure generiche e blocchi immagine: layout flex centrato */
.entry-content figure:not(.wp-block-embed),
.entry-content .wp-block-image {
	margin: 1.8em auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 100%;
}

/* ---------- Video embed (YouTube, Vimeo, ecc.) ----------
   Copre tutte le combinazioni di markup che WordPress/plugin possono
   generare per un video: blocco embed di Gutenberg (con o senza
   aspect-ratio inline), blocco video self-hosted, shortcode [video]
   (MediaElement.js), wrapper "fluid" di oEmbed classico/Jetpack,
   wrapper generici di plugin embed di terze parti, e iframe/video
   inseriti "nudi" (senza alcun wrapper) direttamente nel contenuto. */

.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.entry-content .wp-video,
.entry-content .fluid-width-video-wrapper,
.entry-content .embed-container,
.entry-content .video-container,
.entry-content .responsive-embed,
.entry-content .embed-responsive {
	position: relative;
	margin: 1.8em auto;
	max-width: 100%;
	width: 100%;
	overflow: visible;
}

.entry-content .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
}

/* Iframe/video dentro un wrapper noto */
.entry-content .wp-block-embed__wrapper iframe,
.entry-content .wp-block-embed__wrapper video,
.entry-content .wp-block-video video,
.entry-content .wp-video iframe,
.entry-content .wp-video video,
.entry-content .fluid-width-video-wrapper iframe,
.entry-content .embed-container iframe,
.entry-content .video-container iframe,
.entry-content .responsive-embed iframe,
.entry-content .embed-responsive iframe {
	width: 100%;
	height: auto;
	display: block;
	max-width: 100%;
	border: none;
	border-radius: 8px;
}

/* Fallback per embed senza aspect-ratio inline: forza 16:9 */
.entry-content .wp-has-aspect-ratio:not(.wp-block-embed-youtube) .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.entry-content .wp-has-aspect-ratio:not(.wp-block-embed-youtube) .wp-block-embed__wrapper iframe,
.entry-content .wp-has-aspect-ratio:not(.wp-block-embed-youtube) .wp-block-embed__wrapper video {
	width: 100%;
	height: 100%;
}

/* ---------- Video YouTube: proporzione reale, angoli e ombra ---------- */
.entry-content .wp-block-embed-youtube { margin: 2.2em auto; }
.entry-content .wp-block-embed-youtube .wp-block-embed__wrapper { aspect-ratio: auto; }
.entry-content .wp-block-embed-youtube iframe,
.entry-content iframe.asb-yt {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 14px;
	background: #0f172a;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .16);
}
.entry-content iframe.asb-yt--portrait { max-width: 340px; margin-inline: auto; }
.entry-content .wp-block-embed-youtube figcaption {
	margin-top: .85em;
	text-align: center;
	font-size: .875rem;
	line-height: 1.5;
	color: #64748b;
}
@media (max-width: 600px) {
	.entry-content .wp-block-embed-youtube { margin: 1.6em auto; }
	.entry-content .wp-block-embed-youtube iframe,
	.entry-content iframe.asb-yt { border-radius: 10px; box-shadow: 0 4px 16px rgba(15, 23, 42, .14); }
}

/* Wrapper "fluid" di oEmbed classico/Jetpack: usa position:absolute
   sull'iframe interno con padding-top percentuale sul contenitore. */
.entry-content .fluid-width-video-wrapper {
	height: auto !important;
}

.entry-content .fluid-width-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	height: 100% !important;
}

/* Iframe/video inseriti direttamente nel contenuto, senza alcun wrapper
   (es. incollati come embed HTML grezzo nell'editor classico). */
.entry-content > iframe,
.entry-content p > iframe,
.entry-content > video,
.entry-content p > video {
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	margin: 1.8em auto;
	border: none;
	border-radius: 8px;
}

.entry-content figure.alignnone,
.entry-content .wp-block-image.alignnone,
.entry-content img.alignnone {
	margin-left: auto !important;
	margin-right: auto !important;
}

@media (min-width: 640px) {
	.entry-content .alignleft,
	.entry-content img.alignleft,
	.entry-content figure.alignleft {
		float: left;
		margin: 0.5em 1.5em 1em 0 !important;
		display: inline-block;
	}

	.entry-content .alignright,
	.entry-content img.alignright,
	.entry-content figure.alignright {
		float: right;
		margin: 0.5em 0 1em 1.5em !important;
		display: inline-block;
	}
}

.entry-content figcaption {
	text-align: center;
	font-size: 0.85rem;
	color: var(--asb-muted);
	margin-top: 0.5rem;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.25em;
	border-left: 4px solid var(--asb-accent);
	background: var(--asb-bg-soft);
	border-radius: 0 var(--asb-radius) var(--asb-radius) 0;
}



/* ---------- Tag dell'articolo (Post Tags) ---------- */

.asb-post-tags {
	margin: 2rem 0 1rem;
	padding: 1.25rem 0;
	border-top: 1px solid var(--asb-border, #e5e7eb);
	border-bottom: 1px solid var(--asb-border, #e5e7eb);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.asb-post-tags__label {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--asb-muted, #374151);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.asb-post-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.6rem;
}

.asb-tag-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.4rem 0.85rem;
	background: var(--asb-bg-soft, #f3f4f6);
	border: 1px solid var(--asb-border, #e5e7eb);
	border-radius: 20px;
	color: var(--asb-text, #1f2430);
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	line-height: 1.3;
}

.asb-tag-pill__hash {
	color: var(--asb-accent, #c2185b);
	font-weight: 800;
}

.asb-tag-pill:hover {
	background: var(--asb-accent, #c2185b);
	border-color: var(--asb-accent, #c2185b);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.asb-tag-pill:hover .asb-tag-pill__hash {
	color: #fff;
}

/* ---------- Correlati ---------- */

.related-posts {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--asb-border);
}

/* ---------- Paginazione ---------- */

.pagination-nav { margin: 2rem 0 1rem; }

.pagination-nav .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.pagination-nav .page-numbers {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--asb-border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--asb-text);
}

.pagination-nav .page-numbers.current {
	background: var(--asb-accent);
	border-color: var(--asb-accent);
	color: #fff;
}

/* ---------- AJAX Load More Button & Pagination ---------- */

.asb-btn-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.85rem 2.25rem;
	background: #ffffff;
	color: var(--asb-heading, #0f172a);
	border: 1.5px solid var(--asb-border, #cbd5e1);
	border-radius: 30px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.asb-btn-load-more:hover,
.asb-btn-load-more:focus-visible {
	background: var(--asb-accent, #e01e5a);
	color: #ffffff;
	border-color: var(--asb-accent, #e01e5a);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(224, 30, 90, 0.25);
}

.asb-btn-load-more.is-loading {
	opacity: 0.8;
	pointer-events: none;
}

.asb-spinner {
	animation: asb-spin 0.8s linear infinite;
}

@keyframes asb-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.asb-card-fade-in {
	animation: asbCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes asbCardFadeIn {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.asb-pagination-end {
	color: var(--asb-muted, #64748b);
	font-size: 0.9rem;
	font-style: italic;
	margin: 1.5rem 0 1rem;
}

.pagination-nav { text-align: center; }

/* ---------- Commenti ---------- */

.comments-area {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--asb-border);
}

/* Commenti a fumetto: semplici e simpatici */

.comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.comment-list .comment { padding: 0.5rem 0; }

.comment-list .comment-body {
	position: relative;
	background: var(--asb-bg-soft);
	border: 1px solid var(--asb-border);
	border-radius: 14px;
	padding: 1rem 1.2rem;
	margin-left: 60px;
}

.comment-list .comment-body::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 20px;
	width: 14px;
	height: 14px;
	background: var(--asb-bg-soft);
	border-left: 1px solid var(--asb-border);
	border-bottom: 1px solid var(--asb-border);
	transform: rotate(45deg);
}

.comment-list .avatar {
	position: absolute;
	left: -60px;
	top: 6px;
	border-radius: 50%;
	border: 2px solid var(--asb-accent);
}

.comment-author .fn {
	font-style: normal;
	font-weight: 700;
	color: var(--asb-accent);
}

.comment-author .says { color: var(--asb-muted); font-size: 0.85rem; }

.comment-metadata {
	font-size: 0.78rem;
	margin-bottom: 0.4rem;
}

.comment-metadata a { color: var(--asb-muted); text-decoration: none; }

.comment-content p:last-child { margin-bottom: 0; }

.reply {
	margin-top: 0.5rem;
	font-size: 0.85rem;
}

.reply a {
	display: inline-block;
	font-weight: 700;
	text-decoration: none;
}

.reply a::before { content: "↩️ "; }

.comment-list .children {
	list-style: none;
	padding-left: 2rem;
}

.comment-notes {
	background: var(--asb-bg-soft);
	border-radius: 8px;
	padding: 0.6rem 0.9rem;
	font-size: 0.9rem;
	color: var(--asb-muted);
}

.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1.5px solid var(--asb-muted);
	border-radius: 8px;
	font: inherit;
	margin-bottom: 0.9rem;
}

.comment-form .submit {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 1.5rem;
	border: 0;
	border-radius: 8px;
	background: var(--asb-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- Contatti page template ---------- */

.contact-author {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	background: var(--asb-bg-soft, #f9fafb);
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 2rem;
	border: 1px solid var(--asb-border, #e5e7eb);
}

.contact-author__img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid var(--asb-accent);
}

.contact-author__name {
	font-weight: 800;
	font-size: 1.05rem;
	margin: 0 0 .3rem;
}

.contact-author__bio {
	font-size: .85rem;
	color: var(--asb-muted);
	margin: 0;
	line-height: 1.55;
}

.contact-form-box {
	background: #ffffff;
	border: 1px solid var(--asb-border, #e5e7eb);
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 2rem;
}

.contact-form-box__title {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.contact-form-box__alt {
	font-size: 0.88rem;
	color: var(--asb-muted);
	margin: 0 0 1.25rem;
}

.contact-form-box__alt a {
	color: var(--asb-accent);
	font-weight: 600;
}

.contact-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.contact-form__row {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.contact-form__row label {
	font-size: 0.85rem;
	font-weight: 700;
	color: #1f2430;
}

.contact-form__row input,
.contact-form__row textarea {
	border: 1px solid var(--asb-border, #e5e7eb);
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	font-size: 0.92rem;
	font-family: inherit;
	color: #1f2430;
	background: #ffffff;
	outline: none;
	transition: border-color 0.2s ease;
}

.contact-form__row input:focus,
.contact-form__row textarea:focus {
	border-color: var(--asb-accent);
}

.contact-form__row textarea {
	resize: vertical;
	min-height: 120px;
}

.contact-form__row--captcha input {
	max-width: 120px;
}

.contact-form__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.contact-form__submit {
	background: var(--asb-accent, #c2185b);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.92rem;
	border: none;
	border-radius: 8px;
	padding: 0.75rem 1.75rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.contact-form__submit:hover {
	background: #a3134c;
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.contact-form__grid {
		grid-template-columns: 1fr;
	}
}

.contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	padding: 1.25rem 1rem;
	border-radius: 12px;
	border: 2px solid var(--asb-border, #e5e7eb);
	text-decoration: none;
	color: inherit;
	transition: border-color .15s, transform .15s;
	text-align: center;
}

.contact-card:hover {
	border-color: var(--asb-accent);
	transform: translateY(-2px);
}

.contact-card__icon { color: var(--asb-accent); }
.contact-card__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--asb-muted); }
.contact-card__value { font-size: .9rem; font-weight: 600; word-break: break-all; }

.contact-card--email   { border-color: #ea4335; }
.contact-card--email   .contact-card__icon { color: #ea4335; }
.contact-card--instagram { border-color: #e1306c; }
.contact-card--instagram .contact-card__icon { color: #e1306c; }
.contact-card--youtube { border-color: #ff0000; }
.contact-card--youtube .contact-card__icon { color: #ff0000; }
.contact-card--facebook { border-color: #1877f2; }
.contact-card--facebook .contact-card__icon { color: #1877f2; }

.contact-collab-box {
	margin-top: 2rem;
	background: linear-gradient(135deg, var(--asb-accent, #8224e2) 0%, #c2185b 100%);
	color: #fff;
	border-radius: 12px;
	padding: 1.5rem 2rem;
	text-align: center;
}

.contact-collab-box__title {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0 0 .5rem;
}

.contact-collab-box p { margin: 0 0 1rem; opacity: .9; }

.contact-collab-box__btn {
	display: inline-block;
	background: #fff;
	color: var(--asb-accent, #8224e2);
	font-weight: 700;
	padding: .6rem 1.5rem;
	border-radius: 6px;
	text-decoration: none;
	font-size: .9rem;
}

/* ---------- Media Kit page template ---------- */
.mk-page { font-size: 1.05rem; line-height: 1.7; }

.mk-hero {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	padding: 1.5rem 0 2rem;
	border-bottom: 2px solid var(--asb-accent);
	margin-bottom: 2rem;
}

.mk-hero__img {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 4px solid var(--asb-accent);
}

.mk-hero__name { font-size: 1.6rem; font-weight: 800; margin: 0 0 .25rem; }
.mk-hero__role { font-size: .85rem; font-weight: 600; color: var(--asb-accent); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6rem; }
.mk-hero__excerpt { font-size: .9rem; color: var(--asb-muted); margin: 0 0 1rem; max-width: 55ch; }

.mk-hero__cta {
	display: inline-block;
	background: var(--asb-accent);
	color: #fff;
	font-weight: 700;
	padding: .55rem 1.25rem;
	border-radius: 6px;
	text-decoration: none;
	font-size: .9rem;
}

.mk-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--asb-border, #e5e7eb);
	border: 1px solid var(--asb-border, #e5e7eb);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 2.5rem;
}

.mk-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .2rem;
	padding: 1.25rem .75rem;
	background: var(--asb-bg-soft, #f9fafb);
	text-align: center;
}

.mk-stat__num { font-size: 1.6rem; font-weight: 800; color: var(--asb-accent); line-height: 1; }
.mk-stat__label { font-size: .75rem; color: var(--asb-muted); font-weight: 600; }

/* mk- hero extras */
.mk-hero__body { flex: 1; }
.mk-hero__tagline { font-size: .95rem; color: var(--asb-muted); margin: 0 0 1.1rem; max-width: 60ch; }
.mk-hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.mk-cta-primary {
	display: inline-flex; align-items: center; gap: .4rem;
	background: var(--asb-accent); color: #fff;
	font-weight: 700; padding: .55rem 1.25rem;
	border-radius: 6px; text-decoration: none; font-size: .9rem;
}
.mk-cta-secondary {
	display: inline-block;
	background: transparent; color: var(--asb-fg, #111);
	font-weight: 600; padding: .5rem 1rem;
	border-radius: 6px; text-decoration: none; font-size: .9rem;
	border: 1.5px solid var(--asb-border, #e5e7eb);
}

/* mk- section blocks */
.mk-section { margin-bottom: 2.5rem; }
.mk-section__title {
	font-size: 1.35rem;
	font-weight: 800;
	margin: 0 0 .9rem;
	padding-bottom: .4rem;
	border-bottom: 2px solid var(--asb-accent);
	display: inline-block;
}
.mk-section__intro { color: var(--asb-muted); font-size: 1.05rem; margin: 0 0 1.25rem; line-height: 1.65; }
.mk-subsection-title { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .85rem; }

/* mk- old alias kept for compat */
.mk-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 1rem;
	color: var(--asb-muted);
}

.mk-platform-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.mk-platform {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .3rem;
	padding: 1.25rem 1rem;
	border-radius: 12px;
	border: 2px solid var(--asb-border, #e5e7eb);
	text-align: center;
}

.mk-platform__icon { margin-bottom: .25rem; }
.mk-platform__name { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.mk-platform__num  { font-size: 1.3rem; font-weight: 800; }
.mk-platform__eng  { font-size: .75rem; color: var(--asb-muted); }
.mk-platform__spec { font-size: .75rem; color: var(--asb-muted); }

.mk-platform--ig   { border-color: #e1306c; }
.mk-platform--ig   .mk-platform__num { color: #e1306c; }
.mk-platform--tt   { border-color: #010101; }
.mk-platform--tt   .mk-platform__num { color: #010101; }
.mk-platform--yt   { border-color: #ff0000; }
.mk-platform--yt   .mk-platform__num { color: #ff0000; }
.mk-platform--blog { border-color: var(--asb-accent); }
.mk-platform--blog .mk-platform__num { color: var(--asb-accent); }

.mk-contact-cta {
	margin-top: 2.5rem;
	background: linear-gradient(135deg, var(--asb-accent, #8224e2) 0%, #c2185b 100%);
	color: #fff;
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
}

.mk-contact-cta__title { font-size: 1.3rem; font-weight: 800; margin: 0 0 .5rem; }
.mk-contact-cta p { margin: 0 0 1.25rem; opacity: .9; }

.mk-contact-cta__btn {
	display: inline-block;
	background: #fff;
	color: var(--asb-accent, #8224e2);
	font-weight: 700;
	padding: .65rem 1.75rem;
	border-radius: 8px;
	text-decoration: none;
	font-size: 1rem;
	word-break: break-all;
}

/* mk- target list */
.mk-target-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.mk-target-list li { padding-left: 1.6rem; position: relative; font-size: 1rem; line-height: 1.6; }
.mk-target-list li::before { content: '✓'; position: absolute; left: 0; color: var(--asb-accent); font-weight: 700; }

/* mk- two-col layout */
.mk-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 640px) { .mk-two-col { grid-template-columns: 1fr; } }

/* mk- pill list (settori) */
.mk-pill-list {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: .5rem;
}
.mk-pill-list li {
	background: var(--asb-bg-soft, #f3f4f6);
	border: 1px solid var(--asb-border, #e5e7eb);
	border-radius: 20px; padding: .3rem .85rem;
	font-size: .85rem; font-weight: 600;
}

/* mk- skill list */
.mk-skill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.mk-skill-list li { display: flex; flex-direction: column; gap: .2rem; }
.mk-skill-list li strong { font-size: 1rem; }
.mk-skill-list li span { font-size: .9rem; color: var(--asb-muted); line-height: 1.55; }

/* mk- format grid */
.mk-format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: .25rem; }
.mk-format {
	border: 1.5px solid var(--asb-border, #e5e7eb);
	border-radius: 10px; padding: 1.1rem;
}
.mk-format__emoji { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.mk-format__name { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .35rem; }
.mk-format__desc { font-size: .9rem; color: var(--asb-muted); margin: 0; line-height: 1.55; }

/* mk- why list */
.mk-section--why { background: var(--asb-bg-soft, #f9fafb); border-radius: 12px; padding: 1.5rem; }
.mk-why-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.mk-why-list li { padding-left: 1.7rem; position: relative; font-size: 1rem; line-height: 1.6; }
.mk-why-list li::before { content: '→'; position: absolute; left: 0; color: var(--asb-accent); font-weight: 700; }

/* mk- process steps */
.mk-process-steps { list-style: none; padding: 0; margin: 0; counter-reset: mk-step; display: flex; flex-direction: column; gap: 1rem; }
.mk-process-steps li { display: flex; gap: .9rem; align-items: flex-start; counter-increment: mk-step; }
.mk-process-steps li::before {
	content: counter(mk-step);
	background: var(--asb-accent); color: #fff;
	font-weight: 800; font-size: .85rem;
	min-width: 28px; height: 28px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0; margin-top: .1rem;
}
.mk-process-steps li strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.mk-process-steps li span { font-size: .92rem; color: var(--asb-muted); line-height: 1.6; }

/* mk- guest post section */
.mk-section--guestpost { border-top: 2px solid var(--asb-border, #e5e7eb); padding-top: 2rem; }
.mk-gp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; margin-bottom: 1.75rem; }
.mk-gp-feature { display: flex; gap: .8rem; align-items: flex-start; }
.mk-gp-feature__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .05rem; }
.mk-gp-feature strong { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.mk-gp-feature p { font-size: .92rem; color: var(--asb-muted); margin: 0; line-height: 1.55; }

.mk-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mk-service { border: 1.5px solid var(--asb-border, #e5e7eb); border-radius: 8px; padding: 1rem; }
.mk-service__name { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.mk-service__desc { font-size: .9rem; color: var(--asb-muted); margin: 0; line-height: 1.55; }

.mk-requirements { padding-left: 1.4rem; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.mk-requirements li { font-size: .95rem; line-height: 1.55; }
.mk-note { font-size: .9rem; color: var(--asb-muted); border-left: 3px solid var(--asb-accent); padding-left: .85rem; margin: 0; line-height: 1.6; }

/* mk- platform details */
.mk-platform__details { list-style: none; padding: 0; margin: .25rem 0 0; }
.mk-platform__details li { font-size: .72rem; color: var(--asb-muted); }

/* mk- editor content (the_content fallback) */
.mk-editor-content { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--asb-border, #e5e7eb); }

@media (max-width: 640px) {
	.mk-hero { flex-direction: column; text-align: center; }
	.mk-hero__tagline { max-width: 100%; }
	.mk-hero__actions { justify-content: center; }
	.mk-stats { grid-template-columns: repeat(2, 1fr); }
	.contact-author { flex-direction: column; text-align: center; }
	.mk-two-col { grid-template-columns: 1fr; }
}

/* ---------- Category hover switcher (homepage) ---------- */

.cat-switcher {
	display: flex;
	flex-direction: column;
	margin: 1.75rem 0 2.25rem;
	border: 1px solid var(--asb-border, #e5e7eb);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
	background: #fff;
}

@media (min-width: 768px) {
	.cat-switcher {
		margin: 2.5rem 0 3rem;
		border-radius: 16px;
		box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	}
}

.cat-switcher__header {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--asb-border, #e5e7eb);
	background: var(--asb-bg-soft, #f9fafb);
}

@media (min-width: 768px) {
	.cat-switcher__header { padding: 1.25rem 1.5rem; }
}

.cat-switcher__title {
	font-size: 1.1rem;
	font-weight: 800;
	margin: 0 0 0.2rem;
	color: var(--asb-text);
}

.cat-switcher__desc {
	font-size: 0.84rem;
	color: var(--asb-muted);
	margin: 0;
}

.cat-switcher__body {
	display: flex;
	flex-direction: column;
}

@media (min-width: 768px) {
	.cat-switcher__body {
		display: grid;
		grid-template-columns: 210px 1fr;
	}
}

.cat-switcher__nav {
	display: flex;
	flex-direction: row;
	overflow-x: auto;
	flex-wrap: nowrap;
	background: var(--asb-bg-soft, #f9fafb);
	border-bottom: 1px solid var(--asb-border, #e5e7eb);
	padding: 0.25rem;
	-webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
	.cat-switcher__nav {
		flex-direction: column;
		border-bottom: none;
		border-right: 1px solid var(--asb-border, #e5e7eb);
		padding: 0.5rem 0;
		overflow-x: visible;
	}
}

.cat-switcher__nav-item {
	all: unset;
	display: block;
	padding: 0.65rem 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	color: var(--asb-fg, #1f2430);
	transition: background 0.15s, color 0.15s;
	position: relative;
	white-space: nowrap;
	flex-shrink: 0;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.cat-switcher__nav-item {
		width: 100%;
		padding: 0.85rem 1.25rem;
		font-size: 0.9rem;
		white-space: normal;
	}
}

.cat-switcher__nav-item::before {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: var(--sw-color, var(--asb-accent));
	opacity: 0;
	transition: opacity 0.15s;
}

@media (min-width: 768px) {
	.cat-switcher__nav-item::before {
		top: 0; right: auto;
		width: 4px; height: auto;
	}
}

.cat-switcher__nav-item:hover,
.cat-switcher__nav-item.is-active {
	background: #fff;
	color: var(--sw-color, var(--asb-accent));
}

.cat-switcher__nav-item.is-active::before { opacity: 1; }

.cat-switcher__panels { position: relative; min-height: 200px; }

.cat-switcher__panel {
	display: none;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
}

@media (min-width: 768px) {
	.cat-switcher__panel {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
		padding: 1.5rem;
	}
}

.cat-switcher__panel.is-active {
	display: flex;
}

@media (min-width: 768px) {
	.cat-switcher__panel.is-active {
		display: grid;
	}
}

.sw-card {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 0.85rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	padding: 0.35rem;
	transition: transform 0.25s ease, background 0.25s ease;
}

@media (min-width: 768px) {
	.sw-card {
		display: flex;
		flex-direction: column;
		gap: 0.6rem;
		padding: 0.4rem;
	}
}

.sw-card:hover {
	transform: translateY(-2px);
}

.sw-card__thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	background: var(--asb-bg-soft, #f3f4f6);
}

@media (min-width: 768px) {
	.sw-card__thumb { aspect-ratio: 16 / 10; }
}

.sw-card__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-card:hover .sw-card__thumb img { transform: scale(1.06); }

.sw-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.sw-card__cat { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.sw-card__title {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	color: var(--asb-text);
	transition: color 0.15s;
	overflow-wrap: break-word;
	word-wrap: break-word;
}
.sw-card:hover .sw-card__title { color: var(--asb-accent); }

/* ---------- Tag page: layout due colonne ---------- */

.tag-layout__intro { margin-bottom: 2rem; }

@media (min-width: 900px) {
	.tag-layout {
		display: grid;
		grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
		gap: 2.5rem;
		align-items: start;
	}
	.tag-layout__intro {
		margin-bottom: 0;
		position: sticky;
		top: 1.5rem;
	}
}

/* ---------- Tag page header ---------- */

.tag-header {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-direction: column;
}

.tag-header__pill {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--asb-accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 900;
	flex-shrink: 0;
}

/* ---------- Author header (author.php) ---------- */

.asb-author-header {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	padding: 1.5rem 0 1.75rem;
	border-bottom: 2px solid var(--color-accent, #8224e2);
	margin-bottom: 2rem;
}

.asb-author-header__img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
	border: 3px solid var(--color-accent, #8224e2);
}

.asb-author-header__body {
	flex: 1;
	min-width: 0;
}

.asb-author-header__name {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 .4rem;
}

.asb-author-header__bio {
	font-size: .9rem;
	color: var(--color-muted, #374151);
	line-height: 1.6;
	margin: 0 0 .75rem;
	max-width: 60ch;
}

.asb-author-header__social {
	display: flex;
	gap: .6rem;
	flex-wrap: wrap;
}

.asb-author-header__social a {
	color: var(--color-muted, #374151);
	transition: color .15s;
	display: flex;
}

.asb-author-header__social a:hover {
	color: var(--color-accent, #8224e2);
}

@media (max-width: 480px) {
	.asb-author-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.asb-author-header__social {
		justify-content: center;
	}
}

/* ---------- Author Card Sidebar ---------- */

.asb-author-card {
	background: #fff;
	border-radius: 16px;
	padding: 1.4rem;
	margin-bottom: 2rem;
	border: 1px solid var(--asb-border, #e5e7eb);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.asb-author-card__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.asb-author-card__img {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--asb-accent);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.asb-author-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.asb-author-card__badge {
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--asb-accent);
}

.asb-author-card__name {
	font-size: 1.1rem;
	font-weight: 800;
	margin: 0;
	color: var(--asb-text);
}

.asb-author-card__bio {
	font-size: 0.86rem;
	color: var(--asb-muted);
	line-height: 1.6;
	margin: 0 0 1rem;
}

.asb-author-card__socials {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.asb-author-card__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	border-radius: 16px;
	background: var(--asb-bg-soft);
	color: var(--asb-text);
	text-decoration: none;
	transition: background 0.2s, color 0.2s, transform 0.2s;
	font-size: 0.72rem;
	font-weight: 700;
	gap: 4px;
	padding: 0 8px;
}

.asb-author-card__social-link:hover {
	background: var(--asb-accent);
	color: #fff;
	transform: translateY(-2px);
}

.asb-author-card__social-count {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--asb-muted);
	transition: color 0.2s;
}

.asb-author-card__social-link:hover .asb-author-card__social-count {
	color: #fff;
}

/* ---------- Audio player (Speaker plugin / native) ---------- */

.asb-audio-player {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	background: #ffffff;
	border: 1px solid #dcdfe6;
	border-left: 5px solid var(--asb-accent, #c2185b);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin: 1.25rem 0 1.75rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
	width: 100%;
	text-align: center;
}

.asb-audio-player__label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--asb-accent, #c2185b);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.asb-audio-player__label svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.asb-audio-player__audio {
	width: 100%;
	min-width: 100%;
	height: 40px;
	accent-color: var(--asb-accent, #c2185b);
}

/* Plugin Speaker — integrazione nel wrapper del tema */
.asb-audio-player .mdp-speaker-wrapper {
	width: 100%;
	min-width: 100%;
}

.asb-audio-player .mdp-speaker-box {
	margin: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	width: 100%;
}

/* Nasconde il titolo interno del plugin (duplicato rispetto alla label del tema) */
.asb-audio-player .mdp-speaker--title {
	display: none;
}

/* Placeholder wavesurfer: nasconde il rettangolo nero prima dell'init JS */
.asb-audio-player .mdp-speaker-wavesurfer-placeholder {
	display: none;
}

/* Player audio nativo WordPress (wp-mediaelement / html5) */
.asb-audio-player .wp-audio-shortcode,
.asb-audio-player audio {
	width: 100% !important;
	min-width: 100% !important;
	height: 42px;
	border-radius: 30px;
	background: #f1f3f8;
	border: 1px solid #d1d5db;
	accent-color: var(--asb-accent, #c2185b);
}

/* Mediaelement.js skin — barra e controlli */
.asb-audio-player .mejs-container {
	width: 100% !important;
	background: transparent;
	border-radius: 6px;
}

.asb-audio-player .mejs-controls {
	background: transparent;
	border-radius: 6px;
	padding: 0 4px;
}

.asb-audio-player .mejs-time-rail .mejs-time-total {
	background: var(--asb-border, #d1d5db);
}

.asb-audio-player .mejs-time-rail .mejs-time-current {
	background: var(--asb-accent, #c2185b);
}

.asb-audio-player .mejs-time-rail .mejs-time-loaded {
	background: color-mix(in srgb, var(--asb-accent, #c2185b) 30%, transparent);
}

.asb-audio-player .mejs-button > button:focus {
	outline: 2px solid var(--asb-accent, #c2185b);
	outline-offset: 2px;
}

/* mobile specifics */
@media (max-width: 640px) {
	.asb-audio-player {
		padding: 0.9rem 0.85rem;
		border: 2px solid #d0d4dc;
		border-top: 4px solid var(--asb-accent, #c2185b);
	}
}

/* ---------- Search results ---------- */

.asb-search-count {
	font-size: .85rem;
	color: var(--color-muted, #374151);
	margin: 0 0 1rem;
}

.asb-search-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.asb-search-row {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 0;
	border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.asb-search-row__thumb {
	flex-shrink: 0;
	width: 96px;
	height: 72px;
	overflow: hidden;
	border-radius: 6px;
	display: block;
	background: var(--color-border, #e5e7eb);
}

.asb-search-row__thumb--empty {
	opacity: .4;
}

.asb-search-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.asb-search-row__body {
	flex: 1;
	min-width: 0;
}

.asb-search-row__cat {
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--color-accent, #8224e2);
	text-decoration: none;
}

.asb-search-row__title {
	font-size: 1rem;
	font-weight: 700;
	margin: .2rem 0 .35rem;
	line-height: 1.35;
}

.asb-search-row__title a {
	color: inherit;
	text-decoration: none;
}

.asb-search-row__title a:hover {
	color: var(--color-accent, #8224e2);
}

.asb-search-row__excerpt {
	font-size: .85rem;
	color: var(--color-muted, #374151);
	margin: 0 0 .35rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.asb-search-row__meta {
	font-size: .75rem;
	color: var(--color-muted, #374151);
	margin: 0;
	display: flex;
	gap: .4rem;
	flex-wrap: wrap;
}

@media (max-width: 480px) {
	.asb-search-row__thumb {
		width: 72px;
		height: 54px;
	}
}

/* ---------- No results / 404 ---------- */

.no-results {
	max-width: 640px;
	margin: 2rem auto;
}

.cat-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cat-list li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.35rem 1rem;
	border: 1px solid var(--asb-border);
	border-radius: 999px;
	text-decoration: none;
	color: var(--asb-text);
	font-weight: 600;
}

/* ---------- Barra menu sticky (desktop, via JS) ---------- */

@media (min-width: 900px) {
	body.nav-fixed .nav-bar {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 820;
		box-shadow: 0 4px 16px rgb(0 0 0 / 0.18);
	}

	body.nav-fixed .site-header { padding-bottom: var(--nav-h, 51px); }
}

/* ---------- Table of contents ---------- */

/* ---------- Table of contents ---------- */

.asb-toc {
	background: #ffffff;
	border: 1px solid rgba(220, 224, 230, 0.9);
	border-left: 4px solid var(--asb-accent);
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	padding: 1.1rem 1.3rem;
	margin: 1.8rem 0 2rem;
	max-width: 100%;
	transition: all 0.25s ease-in-out;
}

.asb-toc[open] {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.asb-toc summary {
	list-style: none;
	outline: none;
}

.asb-toc summary::-webkit-details-marker,
.asb-toc__title::-webkit-details-marker,
.asb-toc__header::-webkit-details-marker {
	display: none !important;
}

.asb-toc summary::marker {
	display: none !important;
	content: "" !important;
}

.asb-toc__header,
.asb-toc__title {
	font-weight: 700;
	font-size: 1.08rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
	color: var(--asb-text);
}

.asb-toc__title-text {
	display: inline-flex;
	align-items: center;
	gap: 0.95rem;
}

.asb-toc__icon {
	color: var(--asb-accent);
	flex-shrink: 0;
	margin-right: 0.15rem;
}

.asb-toc__toggle {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--asb-bg-soft);
	transition: transform 0.25s ease, background 0.2s ease;
}

.asb-toc__toggle::after {
	content: "";
	width: 6px;
	height: 6px;
	border: solid var(--asb-text-muted);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.2s ease;
}

.asb-toc[open] .asb-toc__toggle {
	background: var(--asb-accent);
}

.asb-toc[open] .asb-toc__toggle::after {
	border-color: #ffffff;
	transform: rotate(-135deg) translateY(-1px);
}

.asb-toc__nav {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px dashed var(--asb-border);
}

.asb-toc ol.asb-toc__list {
	margin: 0;
	padding-left: 1.2rem;
	list-style-type: decimal;
}

@media (max-width: 767px) {
	.asb-toc ol.asb-toc__list ol.asb-toc__sublist {
		display: none;
	}
}

@media (min-width: 768px) {
	.asb-toc ol.asb-toc__list ol.asb-toc__sublist {
		display: block;
		margin-top: 0.35rem;
		margin-bottom: 0.5rem;
		padding-left: 0.85rem;
		border-left: 2px solid var(--asb-accent);
		list-style-type: none;
	}
}

.asb-toc li {
	margin-bottom: 0.45rem;
	line-height: 1.45;
	font-size: 0.94rem;
}

.asb-toc li:last-child {
	margin-bottom: 0;
}

.asb-toc a {
	color: var(--asb-text);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease, padding-left 0.15s ease;
	display: inline-block;
}

.asb-toc a:hover {
	color: var(--asb-accent);
	padding-left: 3px;
}

/* ---------- Pulsanti condivisione ---------- */

/* ---------- Pulsanti condivisione ---------- */

.asb-share-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	max-width: 100%;
}

.asb-share-bar__label {
	font-weight: 700;
	font-size: 0.75rem;
	color: var(--asb-muted);
	margin-right: 0.2rem;
}

.asb-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 26px;
	padding: 0.2rem 0.5rem;
	border: 1px solid currentColor;
	border-radius: 5px;
	background: #fff;
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
}

.asb-share-btn svg { width: 13px; height: 13px; }

.asb-share-btn:hover { color: #fff !important; }

.asb-share-btn--facebook { color: #31589c; }
.asb-share-btn--facebook:hover { background: #31589c; }
.asb-share-btn--x { color: #1f2430; }
.asb-share-btn--x:hover { background: #1f2430; }
.asb-share-btn--pinterest { color: #c02026; }
.asb-share-btn--pinterest:hover { background: #c02026; }
.asb-share-btn--whatsapp { color: #1f7d38; }
.asb-share-btn--whatsapp:hover { background: #1f7d38; }
.asb-share-btn--more { color: var(--asb-accent); }
.asb-share-btn--more:hover { background: var(--asb-accent); }

/* Tasto "+" con pannello altri social */

.asb-share-more { position: relative; }

.asb-share-more__panel {
	position: absolute;
	bottom: calc(100% + 6px);
	right: 0;
	z-index: 890;
	min-width: 170px;
	background: #fff;
	border: 1px solid var(--asb-border);
	border-radius: 8px;
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.14);
	padding: 0.35rem;
}

.asb-share-more__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.45rem 0.6rem;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: var(--asb-text);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
}

.asb-share-more__item:hover {
	background: var(--asb-bg-soft);
	color: var(--asb-accent);
}

/* ---------- Back to Top (Floating Action Button) ---------- */

#asb-back-to-top {
	position: fixed;
	bottom: 78px;
	right: 18px;
	z-index: 870;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.9);
	background: var(--asb-accent);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(224, 27, 85, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(0.85);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#asb-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

#asb-back-to-top:hover {
	background: var(--asb-accent-dark, #b81639);
	transform: translateY(-3px) scale(1.08);
	box-shadow: 0 12px 28px rgba(224, 27, 85, 0.45);
}

#asb-back-to-top svg {
	width: 20px;
	height: 20px;
}

@media (min-width: 900px) {
	#asb-back-to-top {
		bottom: 25px;
		right: 25px;
	}
}

.asb-share-under-title {
	position: relative;
	z-index: 10;
	background: #ffffff;
	border-top: 1px solid var(--asb-border, #e2e8f0);
	border-bottom: 1px solid var(--asb-border, #e2e8f0);
	padding: 0.55rem 0;
	margin: 0.75rem 0 1.25rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 900px) {
	.asb-share-under-title {
		position: -webkit-sticky;
		position: sticky;
		top: var(--nav-h, 51px);
		z-index: 750;
	}

	.asb-share-under-title.is-sticky {
		position: fixed !important;
		top: var(--nav-h, 51px) !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		width: 100% !important;
		max-width: 800px !important;
		z-index: 810 !important;
		background: rgba(255, 255, 255, 0.98) !important;
		backdrop-filter: blur(10px) !important;
		-webkit-backdrop-filter: blur(10px) !important;
		box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12) !important;
		border-bottom: 1px solid var(--asb-border, #e2e8f0) !important;
		margin: 0 !important;
	}
}

.asb-share-under-title .asb-share-bar {
	justify-content: center;
}

.asb-share-under-title .asb-share-more__panel {
	bottom: auto;
	top: calc(100% + 6px);
}

.asb-share-sticky-side {
	display: none !important;
}

/* Share sticky in basso (mobile) — compatto e semi-trasparente.
   Su mobile la barra sotto il titolo è ridondante con questa (stesso
   contenuto sempre visibile in fondo): la nascondiamo solo lì, resta
   invariata su desktop dove è l'unica ed è sticky in alto. */

.asb-share-sticky-bottom { display: none; }

@media (max-width: 899px) {
	.asb-share-under-title {
		display: none;
	}

	.asb-share-sticky-bottom {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 850;
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border-top: 1px solid var(--asb-border);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
		padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
	}

	.asb-share-sticky-bottom .asb-share-bar--icons {
		display: flex;
		align-items: center;
		justify-content: space-around;
		gap: 0.4rem;
		margin: 0;
	}

	.asb-share-sticky-bottom .asb-share-btn {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.35rem 0;
		min-height: 38px;
		border-radius: 6px;
	}

	.asb-share-sticky-bottom .asb-share-btn svg { width: 18px; height: 18px; }

	.asb-share-sticky-bottom .asb-share-more { flex: 1; }

	.asb-share-sticky-bottom .asb-share-btn--more { width: 100%; min-height: 38px; }

	.single-post .site-footer { padding-bottom: 85px; }
}

/* ---------- Box "Seguici" con contatori ---------- */

.asb-follow-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
}

.asb-follow-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	padding: 0.9rem 0.4rem;
	border: 1px solid var(--asb-border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--asb-text);
	text-align: center;
}

.asb-follow-box svg { margin-bottom: 0.25rem; }

.asb-follow-box strong { font-size: 1rem; }

.asb-follow-box span {
	font-size: 0.75rem;
	color: var(--asb-muted);
}

.asb-follow-box--facebook svg { color: #31589c; }
.asb-follow-box--instagram svg { color: #c13584; }
.asb-follow-box--pinterest svg { color: #c02026; }
.asb-follow-box--x svg { color: #1f2430; }
.asb-follow-box--linkedin svg { color: #0966a2; }
.asb-follow-box--youtube svg { color: #cc0000; }

.asb-follow-box:hover {
	border-color: var(--asb-accent);
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.08);
}

/* ---------- Shortcode latest ---------- */

.shortcode-latest { margin: 0 0 1.5em; }

/* ---------- Mega menu & Desktop Navigation ---------- */

@media (min-width: 900px) {
	.nav-bar__inner {
		position: relative;
		max-width: 1100px;
		margin: 0 auto;
		padding: 0 3rem 0 1rem;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
	}

	.site-nav {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.site-nav__list {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0;
		margin: 0;
		padding: 0;
		list-style: none;
		flex-wrap: wrap;
	}

	.site-nav__list > li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.site-nav__list > li.has-mega {
		position: static;
	}

	.site-nav__list > li > a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 0.75rem 0.95rem;
		text-decoration: none;
		color: #ffffff;
		font-weight: 600;
		font-size: 0.85rem;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		line-height: 1.2;
		transition: background 0.15s ease;
	}

	.site-nav__list > li:hover > a,
	.site-nav__list > li:focus-within > a,
	.site-nav__list > li.is-hovered > a,
	.site-nav__list > li.current-menu-item > a,
	.site-nav__list > li.current-menu-ancestor > a {
		background: var(--asb-accent);
		color: #ffffff;
	}

	/* Nasconde il tasto Home se siamo già nella Homepage */
	body.home .site-nav__list > li.menu-item-home {
		display: none !important;
	}

	.nav-bar__search {
		position: absolute;
		right: 1rem;
		top: 50%;
		transform: translateY(-50%);
		color: #ffffff;
	}

	/* Dropdown semplice per voci non-categoria */
	.site-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 750;
		min-width: 240px;
		list-style: none;
		margin: 0;
		padding: 0.4rem 0;
		background: #ffffff;
		border: 1px solid var(--asb-border, #e2e8f0);
		border-top: 3px solid var(--asb-accent);
		border-radius: 0 0 10px 10px;
		box-shadow: 0 14px 35px rgb(0 0 0 / 0.14);
		animation: asbMegaDropdown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.site-nav__list .sub-menu::before {
		content: '';
		position: absolute;
		top: -12px;
		left: 0;
		right: 0;
		height: 12px;
		display: block;
	}

	.site-nav__list > li:hover > .sub-menu,
	.site-nav__list > li:focus-within > .sub-menu,
	.site-nav__list > li.is-hovered > .sub-menu {
		display: block;
	}

	.site-nav__list .sub-menu a {
		display: block;
		padding: 0.6rem 1.15rem;
		color: var(--asb-text, #1f2430);
		font-size: 0.86rem;
		font-weight: 600;
		line-height: 1.35;
		text-transform: none;
		text-decoration: none;
		white-space: normal;
		word-break: break-word;
		transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
	}

	.site-nav__list .sub-menu a:hover {
		background: var(--asb-bg-soft, #f8fafc);
		color: var(--asb-accent);
		padding-left: 1.35rem;
	}

	/* Le voci categoria con pannello mega nascondono il sub-menu standard */
	.site-nav__list > li.has-mega:has(.mega-panel) > .sub-menu {
		display: none !important;
	}

	/* Mega Panel Container */
	.mega-panel {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 750;
		background: #ffffff;
		border: 1px solid var(--asb-border, #e2e8f0);
		border-top: 3px solid var(--asb-accent);
		border-radius: 0 0 14px 14px;
		box-shadow: 0 20px 48px rgb(0 0 0 / 0.14);
		padding: 1.25rem 1.5rem;
		grid-template-columns: 280px 1fr;
		gap: 1.5rem;
		box-sizing: border-box;
		animation: asbMegaDropdown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.mega-panel::before {
		content: '';
		position: absolute;
		top: -12px;
		left: 0;
		right: 0;
		height: 12px;
		display: block;
	}

	@keyframes asbMegaDropdown {
		from {
			opacity: 0;
			transform: translateY(6px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.site-nav__list > li:hover > .mega-panel,
	.site-nav__list > li:focus-within > .mega-panel,
	.site-nav__list > li.is-hovered > .mega-panel {
		display: grid;
	}

	.mega-panel--full {
		grid-template-columns: 1fr;
	}

	/* Sidebar Sottocategorie nel Mega Panel */
	.mega-panel__sidebar {
		border-right: 1px solid var(--asb-border, #edf2f7);
		padding-right: 1rem;
		min-width: 0;
	}

	.mega-panel__cats {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
		gap: 0.2rem;
		max-height: 380px;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: #cbd5e1 transparent;
	}

	.mega-panel__cats::-webkit-scrollbar {
		width: 4px;
	}
	.mega-panel__cats::-webkit-scrollbar-thumb {
		background: #cbd5e1;
		border-radius: 4px;
	}

	.mega-panel__cats a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		padding: 0.48rem 0.75rem;
		color: #334155;
		font-size: 0.86rem;
		font-weight: 600;
		line-height: 1.32;
		text-decoration: none;
		text-transform: none;
		border-radius: 6px;
		word-break: break-word;
		white-space: normal;
		transition: background 0.15s ease, color 0.15s ease;
	}

	.mega-panel__cat-title {
		flex: 1;
	}

	.mega-panel__cat-arrow {
		font-size: 1.1rem;
		line-height: 1;
		opacity: 0.35;
		transition: transform 0.15s ease, opacity 0.15s ease;
	}

	.mega-panel__cats a:hover,
	.mega-panel__cats a.is-active {
		background: color-mix(in srgb, var(--asb-accent) 10%, #ffffff);
		color: var(--asb-accent);
		font-weight: 700;
	}

	.mega-panel__cats a:hover .mega-panel__cat-arrow,
	.mega-panel__cats a.is-active .mega-panel__cat-arrow {
		opacity: 1;
		transform: translateX(3px);
		color: var(--asb-accent);
	}

	.mega-panel__cats li:first-child a {
		font-weight: 700;
		color: var(--asb-accent);
		border-bottom: 1px solid #f1f5f9;
		margin-bottom: 0.25rem;
		padding-bottom: 0.55rem;
	}

	/* Wrapper e Griglia Articoli nel Mega Panel */
	.mega-panel__posts-wrapper {
		min-width: 0;
		display: flex;
		align-items: center;
		min-height: 60px;
	}

	.mega-panel__posts-loading {
		display: flex;
		gap: 0.4rem;
		align-items: center;
		justify-content: center;
		width: 100%;
	}

	.mega-panel__posts-loading span {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--asb-accent, #c2185b);
		opacity: 0.35;
		animation: asb-mega-loading-pulse 1s ease-in-out infinite;
	}

	.mega-panel__posts-loading span:nth-child(2) {
		animation-delay: 0.15s;
	}

	.mega-panel__posts-loading span:nth-child(3) {
		animation-delay: 0.3s;
	}

	@keyframes asb-mega-loading-pulse {
		0%, 80%, 100% {
			opacity: 0.35;
			transform: scale(0.85);
		}
		40% {
			opacity: 1;
			transform: scale(1.1);
		}
	}

	.mega-panel__posts {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
		width: 100%;
	}

	.mega-panel__posts[hidden] {
		display: none !important;
	}

	.mega-panel__post-item {
		display: flex;
		min-width: 0;
	}

	.mega-panel__post-link {
		display: flex;
		flex-direction: column;
		width: 100%;
		text-decoration: none;
		background: #f8fafc;
		border: 1px solid #edf2f7;
		border-radius: 8px;
		overflow: hidden;
		transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	}

	.mega-panel__post-link:hover {
		transform: translateY(-3px);
		box-shadow: 0 8px 20px rgb(0 0 0 / 0.08);
		border-color: #cbd5e1;
	}

	.mega-panel__post-thumb {
		width: 100%;
		aspect-ratio: 16 / 9;
		overflow: hidden;
		background: #edf2f7;
	}

	.mega-panel__post-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
		border-radius: 0;
		margin: 0;
		transition: transform 0.3s ease;
	}

	.mega-panel__post-link:hover .mega-panel__post-thumb img {
		transform: scale(1.05);
	}

	.mega-panel__post-thumb--placeholder {
		width: 100%;
		height: 100%;
		background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	}

	.mega-panel__post-body {
		padding: 0.65rem 0.75rem;
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.mega-panel__post-title {
		font-size: 0.83rem;
		font-weight: 600;
		line-height: 1.4;
		color: #1e293b;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		transition: color 0.15s ease;
	}

	.mega-panel__post-link:hover .mega-panel__post-title {
		color: var(--asb-accent);
	}
}

/* ---------- Offcanvas: sottocategorie a fisarmonica ---------- */

.offcanvas li.menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.offcanvas li.menu-item-has-children > a {
	flex: 1;
	line-height: 1.35;
	word-break: break-word;
	padding: 0.65rem 0;
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--asb-muted);
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
}

.offcanvas li.is-open > .submenu-toggle {
	color: var(--asb-accent);
	transform: rotate(180deg);
}

.offcanvas .sub-menu {
	flex-basis: 100%;
	display: none;
	margin: 0.25rem 0 0.75rem 0.5rem;
	padding-left: 0.85rem;
	border-left: 2.5px solid #f1f5f9;
	list-style: none;
}

.offcanvas .sub-menu a {
	display: block;
	font-size: 0.88rem;
	color: #475569;
	padding: 0.4rem 0;
	line-height: 1.35;
	word-break: break-word;
}

.offcanvas .sub-menu a:hover {
	color: var(--asb-accent);
}

.offcanvas li.is-open > .sub-menu { display: block; }

.offcanvas .sub-menu li:last-child { border-bottom: 0; }

/* Senza JS le sottocategorie restano visibili */
.no-js .offcanvas .sub-menu { display: block; }

/* ---------- Layout singolo con sidebar ---------- */

.container--with-sidebar { max-width: 1100px; }

@media (min-width: 1000px) {
	.single-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 3rem;
		align-items: start;
	}
}

.single-layout__side .section-circles .circle-card {
	grid-template-columns: 72px 1fr;
	margin-bottom: 1.1rem;
}

.single-layout__side .circle-card__media {
	width: 72px;
	height: 72px;
}

.single-layout__side .circle-card__title { font-size: 0.92rem; }

.footer-cats--light li { border-color: var(--asb-border); }

.footer-cats--light a { color: var(--asb-text); }

.footer-cats--light .footer-cats__count {
	background: var(--asb-bg-soft);
	color: var(--asb-muted);
}

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

.site-footer {
	margin-top: 3rem;
	padding: 2rem 1rem calc(2rem + 64px);
	background: var(--asb-text);
	color: #e6e8ee;
}

@media (min-width: 900px) {
	.site-footer { padding-bottom: 2rem; }
}

.site-footer a { color: #fff; }

.site-footer__widgets,
.site-footer__columns {
	max-width: 1100px;
	margin: 0 auto 1.5rem;
	display: grid;
	gap: 2.5rem;
}

.site-footer__widgets > *,
.site-footer__columns > * {
	min-width: 0;
}

@media (min-width: 700px) {
	.site-footer__widgets,
	.site-footer__columns { grid-template-columns: repeat(3, 1fr); }
}

.footer-col__title {
	color: #fff;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 2px solid var(--asb-accent);
	padding-bottom: 0.5rem;
	margin: 0 0 1rem;
}

.footer-col__tagline {
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.6rem;
	line-height: 1.4;
}

.footer-col__about {
	color: #c3c8d4;
	font-size: 0.92rem;
	margin: 0 0 0.8rem;
}

.footer-col__social {
	display: flex;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.footer-col__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid #3a4250;
	border-radius: 6px;
	color: #e6e8ee;
}

.footer-col__social a:hover {
	border-color: var(--asb-accent);
	color: #fff;
	background: var(--asb-accent);
}

.footer-newsletter {
	margin-bottom: 1.25rem;
}

.footer-newsletter__desc {
	color: #c3c8d4;
	font-size: 0.88rem;
	margin: 0 0 0.85rem;
	line-height: 1.45;
}

.footer-newsletter__form {
	display: flex;
	gap: 0.5rem;
}

.footer-newsletter__input {
	flex: 1;
	min-width: 0;
	background: #1a2228;
	border: 1px solid #374151;
	border-radius: 8px;
	padding: 0.6rem 0.85rem;
	color: #ffffff;
	font-size: 0.88rem;
	outline: none;
	transition: border-color 0.2s ease;
}

.footer-newsletter__input:focus {
	border-color: var(--asb-accent);
}

.footer-newsletter__btn {
	background: var(--asb-accent, #c2185b);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.85rem;
	border: none;
	border-radius: 8px;
	padding: 0.6rem 1.1rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.footer-newsletter__btn:disabled {
	opacity: 0.85;
	cursor: not-allowed;
	white-space: nowrap;
}

.footer-newsletter__btn:hover:not(:disabled) {
	background: #a3134c;
	transform: translateY(-1px);
}

.footer-newsletter__frame {
	display: none;
}

.footer-newsletter__badge {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.82rem;
	color: #94a3b8;
	font-style: italic;
}

.footer-newsletter__badge--success {
	color: #4ade80;
	font-style: normal;
	font-weight: 600;
}

.footer-newsletter__badge--error {
	color: #f87171;
	font-style: normal;
	font-weight: 600;
}

.footer-sub__title {
	color: #ffffff;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px dashed #374151;
	padding-bottom: 0.35rem;
	margin: 1.25rem 0 0.75rem;
}

.footer-comments {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.footer-comment__item {
	font-size: 0.84rem;
	color: #94a3b8;
	line-height: 1.4;
}

.footer-comment__author {
	color: #ffffff;
	font-weight: 700;
}

.footer-comment__on {
	color: #64748b;
	font-size: 0.8rem;
}

.footer-comment__link {
	color: #e2e8f0;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.footer-comment__link:hover {
	color: var(--asb-accent);
	text-decoration: underline;
}

.footer-comments__empty {
	color: #94a3b8;
	font-size: 0.84rem;
	font-style: italic;
	margin: 0;
}

.footer-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-cats li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid #3a4250;
}

.footer-cats a {
	color: #e6e8ee;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.footer-cats a:hover { color: #fff; text-decoration: underline; }

.footer-cats__count {
	background: #3a4250;
	color: #c3c8d4;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.1rem 0.6rem;
}

.site-footer__bottom {
	max-width: 1100px;
	margin: 1.5rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid #3a4250;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-footer__nav { margin: 0; }

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.85rem;
	color: #c3c8d4;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .35rem;
}

.site-footer__consent a,
.site-footer__consent button {
	color: #c3c8d4;
	font-size: 0.85rem;
	text-decoration: underline;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}

.site-footer__consent a:hover,
.site-footer__consent button:hover { color: #fff; }

/* ---------- Body lock quando l'offcanvas è aperto ---------- */

body.offcanvas-open { overflow: hidden; }

/* ---------- Stampa ---------- */

@media print {
	.site-header,
	.offcanvas,
	.reading-progress,
	.site-footer,
	.comments-area { display: none; }
}

/* ---------- Slot pubblicitari ---------- */

.asb-ad-slot {
	margin: 2rem auto;
	text-align: center;
	max-width: 100%;
	overflow: hidden;
}

.asb-ad-slot ins,
.asb-ad-slot iframe {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

/* In-content: separatori leggeri per non spezzare la lettura */
.asb-ad-slot--in-content {
	margin: 1.5em 0;
	padding: 1.25rem 0;
	border-top: 1px solid var(--asb-border);
	border-bottom: 1px solid var(--asb-border);
}

/* Dopo il contenuto, prima dei tag */
.asb-ad-slot--after-content {
	padding-top: 1.5rem;
	margin-top: 1.5rem;
	border-top: 1px solid var(--asb-border);
}

/* Prima di "Leggi anche" */
.asb-ad-slot--before-related {
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--asb-border);
}

/* Homepage: tra le sezioni categoria */
.asb-ad-slot--homepage {
	padding: 1.5rem 0;
	margin: 0.5rem 0 1.5rem;
}

/* Archivio: si estende su tutta la larghezza della griglia */
.asb-ad-slot--archive {
	grid-column: 1 / -1;
	padding: 1.25rem 0;
	border-top: 1px solid var(--asb-border);
	border-bottom: 1px solid var(--asb-border);
}

@media print {
	.asb-ad-slot { display: none; }
}

/* ---------- Lazy loading performance: previene download immagini nei pannelli nascosti ---------- */
[hidden],
.cat-switcher__panel[hidden],
.cat-switcher__panel:not(.is-active),
.mega-panel__posts[hidden] {
	display: none !important;
	content-visibility: hidden;
}

/* ---------- Homepage Intro Section ---------- */
.home-intro-section {
	margin-bottom: 2.5rem;
}
.home-intro-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1.75rem 2rem;
	background-color: #fff;
	border: 1px solid var(--asb-border, #e6e8ee);
	border-radius: var(--asb-radius, 12px);
	box-shadow: 0 1px 2px rgba(20, 20, 30, 0.03), 0 10px 24px -16px rgba(20, 20, 30, 0.12);
	overflow: hidden;
}
.home-intro-card::before {
	content: "";
	position: absolute;
	top: -3.5rem;
	right: -3.5rem;
	width: 9rem;
	height: 9rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--asb-accent) 10%, transparent);
	pointer-events: none;
}
.home-intro-card__icon {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.85rem;
	background: var(--asb-accent);
}
.home-intro-card__icon svg {
	width: 1.35rem;
	height: 1.35rem;
}
.home-intro-card__body {
	position: relative;
	min-width: 0;
}
.home-intro-card__title {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--asb-text, #1f2430);
}
.home-intro-card__text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--asb-muted, #59606e);
}
@media (max-width: 480px) {
	.home-intro-card {
		padding: 1.5rem;
	}
}

/* ==========================================================================
   Ottimizzazione iPhone / mobile (2026-09-22)
   1) campi >= 16px: Safari iOS zooma la pagina al focus se il testo e' piu'
      piccolo e non torna indietro da solo.
   2) aree di tocco >= 44px (Apple HIG) senza spostare il layout: padding
      positivo compensato da margin negativo, l'aspetto non cambia.
   3) banner cookie di My Agile Privacy compatto: barra bassa, testo piu'
      piccolo e tre bottoni in riga invece di meta' schermo.
   ========================================================================== */
@media (max-width: 899px) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="hidden"]):not([type="file"]),
	select,
	textarea {
		font-size: 16px !important;
	}

	/* etichette categoria nelle schede e nell'articolo */
	.post-card__cat {
		padding: 15px 6px 8px 0;
		margin: -15px -6px -8px 0;
	}

	.single-article__cat {
		display: inline-block;
		padding: 15px 8px 15px 0;
		margin: -15px -8px -15px 0;
	}

	/* condivisione */
	.asb-share-btn {
		min-height: 44px;
		padding: 0.2rem 0.75rem;
	}

	.asb-share-sticky-bottom .asb-share-btn {
		min-height: 44px;
	}
}

@media (max-width: 600px) {
	#my-agile-privacy-notification-area.mapSizeBoxed,
	#my-agile-privacy-notification-area {
		width: 100% !important;
		max-width: 100% !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		transform: none !important;
		border-radius: 14px 14px 0 0 !important;
		padding-bottom: env(safe-area-inset-bottom);
		font-size: 13px !important;
		line-height: 1.45 !important;
	}

	#my-agile-privacy-notification-area #my-agile-privacy-notification-content {
		padding: 12px 14px 12px !important;
	}

	#my-agile-privacy-notification-area .map-area-container .map_notification-message,
	#my-agile-privacy-notification-area .map_notification-message.extraNarrow {
		max-height: 27vh !important;
		overflow-y: auto !important;
		padding-right: 38px !important; /* spazio per la X di chiusura in alto a destra */
		-webkit-overflow-scrolling: touch;
	}

	#my-agile-privacy-notification-area .map-area-container .map_notification-message p.map_p_splitted {
		font-size: 13px !important;
		line-height: 1.45 !important;
		margin: 0 0 4px !important;
	}

	#my-agile-privacy-notification-area.mapSizeBoxed .map_notification_container {
		display: flex !important;
		flex-direction: row !important;
		gap: 8px;
		margin-top: 10px !important;
		justify-content: stretch;
	}

	#my-agile-privacy-notification-area.mapSizeBoxed .map_notification_container a {
		flex: 1 1 0 !important;
		width: auto !important;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 6px !important;
		margin: 0 !important;
		font-size: 14px !important;
		line-height: 1.2 !important;
		border-radius: 10px !important;
	}

	#my-agile-privacy-notification-area .map-closebutton-right a {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* Tabelle responsive (2026-10-30): le tabelle larghe scorrono dentro il proprio
   contenitore invece di uscire dal bordo dello schermo su mobile. */
.entry-content .wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.entry-content > table,
.entry-content :not(.wp-block-table) > table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.entry-content th,
.entry-content td {
	overflow-wrap: break-word;
	hyphens: auto;
}
@media (max-width: 600px) {
	.entry-content table { font-size: 0.85rem; }
	.entry-content th,
	.entry-content td { padding: 0.45rem 0.5rem; }
}
/* Griglie di tabelle affiancate scritte inline negli articoli: su mobile una sotto l altra. */
@media (max-width: 700px) {
	.entry-content [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
/* Tabelle con 4+ colonne: larghezza minima leggibile, si scorrono di lato su mobile. */
@media (max-width: 600px) {
	.entry-content .wp-block-table table:has(tr > :nth-child(4)) { min-width: 560px; }
}
/* Tabelle che hanno gia' un contenitore scorrevole inline: lasciarle come sono. */
.entry-content [style*="overflow-x"] > table {
	display: table;
	max-width: none;
	overflow: visible;
}

/* ---------- Footer: colonna Collaborazioni (2026-11-15) ---------- */
.footer-partners { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-partners a { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; color: inherit; text-decoration: none; opacity: 0.8; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-partners a:hover, .footer-partners a:focus-visible { opacity: 1; color: var(--asb-accent); }
.footer-partners img { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.footer-partners { gap: 0; }
.footer-partners a { font-size: 0.8rem; padding: 0.25rem 0; gap: 0.45rem; opacity: 0.7; }
.footer-partners img { width: 12px; height: 12px; }

.asb-author-card__name a{color:inherit;text-decoration:none}
.asb-author-card__name a:hover,.asb-author-card__name a:focus-visible{color:var(--asb-accent);text-decoration:underline}
.single-article__author{color:inherit;font-weight:600;text-decoration:none}
.single-article__author:hover,.single-article__author:focus-visible{color:var(--asb-accent);text-decoration:underline}
.asb-author-card--single{margin:2rem 0 0}
.asb-author-card--single .asb-author-card__name a{color:inherit;text-decoration:none}
.asb-author-card--single .asb-author-card__name a:hover,.asb-author-card--single .asb-author-card__name a:focus-visible{color:var(--asb-accent);text-decoration:underline}
