/* Single post hero: 40% image + 60% meta (ACF, categorie, tag, mappa) */
.wp-block-rise-single-post-hero {
	margin-top: 48px;
	margin-bottom: 48px;
}

.wp-block-rise-single-post-hero__inner {
	display: grid;
	grid-template-columns: 40% 1fr;
	gap: 2rem;
	align-items: start;
}

.wp-block-rise-single-post-hero__media {
	position: relative;
	max-width: 100%;
}

.wp-block-rise-single-post-hero__image {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
	box-sizing: border-box;
	padding: 12px;
	background-color: #ffffff;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wp-block-rise-single-post-hero__meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 2rem 0 1.5rem;
	font-family: 'Kodchasan', sans-serif;
}

.wp-block-rise-single-post-hero__meta dt {
	font-weight: 600;
	color: #6E7B82;
	font-size: 0.9rem;
	margin-top: 0.75rem;
}

.wp-block-rise-single-post-hero__meta dt:first-child {
	margin-top: 0;
}

.wp-block-rise-single-post-hero__meta dd {
	margin: 0;
	color: #1a1a1a;
	font-size: 0.9rem;
}

.wp-block-rise-single-post-hero__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
	list-style: none;
	padding: 0;
}

.wp-block-rise-single-post-hero__categories a {
	display: inline-block;
	padding: 0.4rem 1.6rem;
	font-family: 'Kodchasan', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1a1a1a;
	background: #f0f0f0;
	border-radius: 999px;
	text-decoration: none;
	transition: box-shadow 0.2s, opacity 0.2s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wp-block-rise-single-post-hero__categories a[style*="gradient"] {
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.wp-block-rise-single-post-hero__categories a:hover,
.wp-block-rise-single-post-hero__categories a:active {
	background: var(--wp--preset--color--rise-teal, #3FA6A4) !important;
	color: #fff !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

/* Label prima dei tag */
/* Label "Tema linee operative" — stesso stile di .wp-block-rise-single-post-hero__meta dt */
.wp-block-rise-single-post-hero__tags-label {
	display: block;
	font-family: 'Kodchasan', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: #6E7B82;
	margin-top: 0.75rem;
	margin-bottom: 0.35rem;
}

/* Tag come .rise-card__tema */
.wp-block-rise-single-post-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	list-style: none;
	padding: 0;
	font-family: 'Kodchasan', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 16px;
	text-transform: uppercase;
	color: #3FA6A4;
}

.wp-block-rise-single-post-hero__tags li {
	display: inline;
}

.wp-block-rise-single-post-hero__tags a {
	color: #3FA6A4;
	text-decoration: none;
}

.wp-block-rise-single-post-hero__tags a:hover {
	color: var(--wp--preset--color--link-hover, #338684);
}

.wp-block-rise-single-post-hero__tags li:not(:last-child)::after {
	content: ", ";
}

/* Link a Google Map — semplice testo verde con link */
.wp-block-rise-single-post-hero__map-wrap a {
	color: var(--wp--preset--color--rise-teal, #3FA6A4);
	text-decoration: none;
}

.wp-block-rise-single-post-hero__map-wrap a:hover {
	text-decoration: underline;
}

/* Contenuto del post: sotto l’ultimo ACF, a destra dell’immagine */
.wp-block-rise-single-post-hero__content {
	margin-top: 48px;
}

@media (max-width: 767px) {
	.wp-block-rise-single-post-hero__inner {
		grid-template-columns: 1fr;
	}
}
