/* ══════════════════════════════════════════════════════
   Aggiornamenti single — light cream editorial layout
   ══════════════════════════════════════════════════════ */

/* ── Hero — cream ────────────────────────────────── */
.agg-hero {
	position: relative;
	padding: 120px 40px 80px;
	background: var(--ali-cream, #faf9f7);
	overflow: hidden;
}

.agg-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 1140px;
	width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 48px;
	align-items: center;
}

.agg-hero-content {
	animation: fadeInUp .9s cubic-bezier(.22, 1, .36, 1) both;
}

.agg-hero-image {
	animation: fadeInUp .9s cubic-bezier(.22, 1, .36, 1) .15s both;
}

.agg-hero-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--ali-radius, 16px);
	aspect-ratio: 16 / 10;
	object-fit: cover;
	box-shadow: 0 12px 40px rgba(122, 77, 121, .12);
}

.agg-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.agg-meta-cat {
	background: rgba(0, 192, 198, .1);
	color: #008A8E;
	padding: 4px 14px;
	border-radius: 20px;
	font-weight: 600;
	text-decoration: none;
	transition: background .25s ease;
}

.agg-meta-cat:hover {
	background: rgba(0, 192, 198, .2);
	color: #008A8E;
}

.agg-meta time {
	color: var(--ali-text-secondary, #5a5a5a);
}

.agg-meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(122, 77, 121, .25);
}

.agg-hero-author {
	display: none;
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .85rem;
	color: var(--ali-text-secondary, #5a5a5a);
	text-decoration: none;
	margin-top: 16px;
	transition: color .25s ease;
}

.agg-hero-author:hover {
	color: var(--ali-teal, #00C0C6);
}

.agg-hero h1 {
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(2rem, 4.5vw, 2.8rem);
	font-weight: 400;
	color: var(--ali-navy, #7A4D79);
	margin: 0 0 12px;
	line-height: 1.12;
	letter-spacing: -.01em;
	max-width: 760px;
}

.agg-hero-excerpt {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: 1.05rem;
	color: var(--ali-text-secondary, #5a5a5a);
	line-height: 1.7;
	margin: 0;
	max-width: 600px;
}

/* Teal separator */
.agg-hero-separator {
	width: 64px;
	height: 3px;
	background: var(--ali-teal, #00C0C6);
	border-radius: 2px;
	margin: 24px 0 0;
}

/* ── Body layout — white ─────────────────────────── */
.agg-wrap {
	background: #fff;
	padding: 50px 24px 80px;
}

.agg-grid {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 48px;
	align-items: start;
}

/* ── Content column ──────────────────────────────── */
.agg-article > *:first-child {
	margin-top: 0;
}

.agg-article h2 {
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.4rem, 2.5vw, 1.8rem);
	font-weight: 400;
	color: var(--ali-navy);
	margin: 2.5rem 0 1rem;
	line-height: 1.2;
}

.agg-article h3 {
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 400;
	color: var(--ali-navy);
	margin: 2rem 0 .75rem;
	line-height: 1.25;
}

.agg-article p {
	font-size: 1.02rem;
	line-height: 1.85;
	margin: 0 0 1.5rem;
	color: var(--ali-text);
}

.agg-article ul,
.agg-article ol {
	padding-left: 1.5rem;
	margin: 0 0 1.5rem;
}

.agg-article li {
	font-size: 1.02rem;
	line-height: 1.85;
	margin-bottom: .5rem;
}

.agg-article blockquote {
	margin: 2rem 0;
	padding: 1.5rem 1.5rem 1.5rem 2rem;
	border-left: 3px solid var(--ali-teal);
	background: rgba(0, 192, 198, .06);
	border-radius: 0 var(--ali-radius-sm, 8px) var(--ali-radius-sm, 8px) 0;
}

.agg-article blockquote p {
	margin-bottom: 0;
	font-style: italic;
	color: var(--ali-text-secondary);
}

.agg-article img {
	border-radius: var(--ali-radius-sm, 8px);
	margin: 1.5rem 0;
}

.agg-article a:not(.wp-block-button__link):not(.wp-element-button):not(.cc-card) {
	color: var(--ali-teal);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.agg-article a:not(.wp-block-button__link):not(.wp-element-button):not(.cc-card):hover {
	color: var(--ali-teal-deep);
}

.agg-article figure {
	margin: 2rem 0;
}

.agg-article figcaption {
	font-size: .82rem;
	color: var(--ali-text-secondary);
	text-align: center;
	margin-top: .5rem;
}

/* ── Tags ────────────────────────────────────────── */
.agg-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, .08);
}

.agg-tags a {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ali-text-secondary);
	background: var(--ali-cream, #faf9f7);
	padding: 6px 16px;
	border-radius: 50px;
	border: 1px solid rgba(122, 77, 121, .05);
	text-decoration: none;
	transition: all .25s ease;
}

.agg-tags a:hover {
	color: var(--ali-teal);
	border-color: var(--ali-teal);
}

/* ── Sidebar ─────────────────────────────────────── */
.agg-sidebar {
	position: sticky;
	top: 24px;
}

/* Author card */
.agg-author {
	background: var(--ali-cream, #faf9f7);
	border-radius: var(--ali-radius, 16px);
	padding: 28px 24px;
	border: 1px solid rgba(122, 77, 121, .05);
	margin-bottom: 28px;
	text-align: center;
}

.agg-author-label {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--ali-teal);
	margin: 0 0 14px;
}

.agg-author-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 14px;
	display: block;
}

.agg-author-avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.agg-author-name {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .95rem;
	font-weight: 700;
	color: var(--ali-navy);
	margin: 0 0 6px;
}

.agg-author-name a {
	color: var(--ali-navy);
	text-decoration: none;
	transition: color .25s ease;
}

.agg-author-name a:hover {
	color: var(--ali-teal);
}

.agg-author-bio {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .82rem;
	color: var(--ali-text-secondary);
	line-height: 1.6;
	margin: 0;
}

.agg-author-website {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .78rem;
	font-weight: 600;
	color: var(--ali-teal);
	text-decoration: none;
	transition: color .25s ease;
}

.agg-author-website:hover {
	color: var(--ali-teal-deep, #008A8E);
}

/* Newsletter */
.agg-newsletter {
	background: var(--ali-cream, #faf9f7);
	border-radius: var(--ali-radius, 16px);
	padding: 28px 24px;
	border: 1px solid rgba(122, 77, 121, .05);
	margin-bottom: 28px;
}

.agg-newsletter__desc {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .82rem;
	color: var(--ali-text-secondary);
	line-height: 1.6;
	margin: 0 0 12px;
}

.agg-newsletter__form {
	font-family: 'Nunito', system-ui, sans-serif;
}

/* Related posts */
.agg-related-title {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--ali-text-secondary);
	margin: 0 0 16px;
}

.agg-related-title + .agg-related-subtitle {
	font-family: 'Lora', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 400;
	color: var(--ali-navy);
	margin: -10px 0 16px;
}

.agg-related-item {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	text-decoration: none;
	color: inherit;
	transition: opacity .25s ease;
}

.agg-related-item:first-of-type {
	padding-top: 0;
}

.agg-related-item:last-child {
	border-bottom: none;
}

.agg-related-item:hover {
	opacity: .7;
}

.agg-related-thumb {
	width: 80px;
	height: 60px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--ali-warm-gray, #eee);
}

.agg-related-info h4 {
	font-family: 'Lora', Georgia, serif;
	font-size: .88rem;
	font-weight: 400;
	color: var(--ali-navy);
	margin: 0 0 4px;
	line-height: 1.3;
}

.agg-related-info time {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .72rem;
	color: var(--ali-text-secondary);
}

/* ── Post navigation ─────────────────────────────── */
.agg-post-nav {
	max-width: 1140px;
	margin: 0 auto;
	padding-top: 2.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.agg-post-nav a {
	display: block;
	padding: 20px 24px;
	background: var(--ali-cream, #faf9f7);
	border-radius: var(--ali-radius, 16px);
	border: 1px solid rgba(122, 77, 121, .05);
	text-decoration: none;
	transition: all .3s ease;
}

.agg-post-nav a:hover {
	box-shadow: 0 8px 30px rgba(122, 77, 121, .08);
}

.agg-post-nav-label {
	font-family: 'Nunito', system-ui, sans-serif;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--ali-teal);
	margin: 0 0 6px;
}

.agg-post-nav-title {
	font-family: 'Lora', Georgia, serif;
	font-size: .95rem;
	color: var(--ali-navy);
	line-height: 1.3;
	margin: 0;
}

.agg-post-nav-next {
	text-align: right;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
	.agg-hero-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.agg-hero-image {
		order: -1;
		max-width: 480px;
	}

	.agg-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.agg-sidebar {
		position: static;
	}

	.agg-hero-author {
		display: inline-block;
	}
}

@media (max-width: 768px) {
	.agg-hero {
		padding: 100px 20px 48px;
	}

	.agg-post-nav {
		grid-template-columns: 1fr;
	}
}
