/* Shared theme defaults for frontend and editor parity. */

:root {
	--acro-manager-focus-color: #0b5d7a;
}

body {
	font-family: var(--wp--preset--font-family--body);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--acro-manager-focus-color, #0b5d7a);
	outline-offset: 2px;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.acro-main-nav .wp-block-navigation__responsive-container a,
.acro-main-nav a {
	text-transform: uppercase;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.07em;
	color: #333;
	text-decoration: none;
	transition: color 0.15s ease;
}

.acro-main-nav .wp-block-navigation__responsive-container a:hover,
.acro-main-nav a:hover {
	color: #ff3366;
}

/* ── Eyebrow label (small uppercase category label above headings) ───── */

.acro-eyebrow {
	display: block;
}

/* ── Hero section ────────────────────────────────────────────────────── */

.acro-hero .wp-block-column + .wp-block-column {
	align-self: center;
}

/* Stagger the mosaic: right column offset creates a brick-like pattern */
.acro-mosaic-img img {
	display: block;
	width: 100%;
	object-fit: cover;
}

/* Show a placeholder frame in the editor when no image is set */
.acro-mosaic-img img[src=""],
.acro-mosaic-img img:not([src]) {
	min-height: 160px;
	background: #e8e8e8;
}

/* ── Banner stripe ───────────────────────────────────────────────────── */

.acro-banner p {
	margin: 0;
}

/* ── News / events grid ──────────────────────────────────────────────── */

.acro-news-grid .wp-block-post-template {
	gap: 2rem;
}

.acro-news-card {
	background: transparent;
	overflow: visible;
}

.acro-news-card .wp-block-post-featured-image {
	margin: 0;
}

.acro-news-card .wp-block-post-featured-image img,
.acro-news-card .wp-block-post-featured-image a {
	display: block;
	width: 100%;
	overflow: hidden;
}

.acro-news-card .wp-block-post-featured-image img {
	transition: transform 0.35s ease;
}

.acro-news-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

/* Date + category meta row */
.acro-news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.4rem;
}

.acro-news-meta .wp-block-post-date,
.acro-news-meta .wp-block-post-date time {
	color: #999;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

.acro-news-meta .wp-block-post-date::after {
	content: '';
}

/* "IN CATEGORIA" — prefix via CSS */
.acro-news-terms.wp-block-post-terms::before {
	content: 'IN ';
}

.acro-news-terms.wp-block-post-terms,
.acro-news-terms.wp-block-post-terms a {
	color: #ff3366;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	text-decoration: none;
}

.acro-news-terms.wp-block-post-terms a:hover {
	text-decoration: underline;
}

.acro-news-card .wp-block-post-title {
	margin-top: 0.6rem;
	margin-bottom: 0.5rem;
}

.acro-news-card .wp-block-post-title a {
	color: #111;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.3;
}

.acro-news-card .wp-block-post-title a:hover {
	color: #ff3366;
}

.acro-news-card .wp-block-post-excerpt p {
	color: #555;
	font-size: 0.88rem;
	line-height: 1.6;
	margin: 0;
}

/* ── Contact section ─────────────────────────────────────────────────── */

.acro-contact-info .wp-block-paragraph {
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border-left: 3px solid #ff3366;
	border-radius: 0 4px 4px 0;
	margin: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

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

.site-footer .acro-footer-list li {
	margin-bottom: 0.55rem;
}

.site-footer .acro-footer-list a {
	color: #aaa;
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-footer .acro-footer-list a:hover {
	color: #ff3366;
}

.site-footer .wp-block-separator {
	border: none;
	height: 1px;
}

/* ── Statement section ───────────────────────────────────────────────── */

.acro-statement {
	/* Slight text-shadow lifts the white text off the primary bg */
}

/* ── News cards ──────────────────────────────────────────────────────── */

.acro-news .wp-block-post-template > li {
	list-style: none;
}

.acro-news .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}

/* ── Contact CTA ─────────────────────────────────────────────────────── */

.acro-contact-form-area {
	min-height: 280px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer .wp-block-navigation a {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.65);
	transition: color 0.15s ease;
}

.site-footer .wp-block-navigation a:hover {
	color: #ffffff;
}

/* ── Single post + sidebar ───────────────────────────────────────────── */

/* Stack to single column on small screens */
@media (max-width: 767px) {
	.acro-single-columns {
		flex-direction: column;
	}

	.acro-single-columns .acro-single-main,
	.acro-single-columns .acro-sidebar {
		flex-basis: 100% !important;
	}
}

/* Post content typography */
.acro-single-main .wp-block-post-content {
	font-size: 0.97rem;
	line-height: 1.8;
	color: #333;
}

.acro-single-main .wp-block-post-content p {
	margin-bottom: 1.1rem;
}

.acro-single-main .wp-block-post-content ul,
.acro-single-main .wp-block-post-content ol {
	padding-left: 1.4rem;
	margin-bottom: 1.1rem;
}

.acro-single-main .wp-block-post-content li {
	margin-bottom: 0.35rem;
}

/* ── Sidebar ─────────────── */

.acro-sidebar {
	font-size: 0.9rem;
}

/* Search */
.acro-sidebar-search .wp-block-search__inside-wrapper {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 3px;
	overflow: hidden;
}

.acro-sidebar-search .wp-block-search__input {
	flex: 1;
	padding: 0.55rem 0.75rem;
	border: none;
	font-size: 0.88rem;
	outline: none;
}

.acro-sidebar-search .wp-block-search__button {
	background: #f5f5f5;
	border: none;
	border-left: 1px solid #ddd;
	padding: 0 0.85rem;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #555;
	transition: background 0.15s ease;
}

.acro-sidebar-search .wp-block-search__button:hover {
	background: #ebebeb;
}

/* Widget heading */
.acro-sidebar-heading {
	border-bottom: 2px solid #111;
	padding-bottom: 0.5rem;
}

/* Categories list */
.acro-sidebar-categories.wp-block-categories {
	list-style: none;
	padding: 0;
	margin: 0;
}

.acro-sidebar-categories.wp-block-categories li {
	padding: 0.42rem 0;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.acro-sidebar-categories.wp-block-categories a {
	color: #333;
	text-decoration: none;
	font-size: 0.88rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.acro-sidebar-categories.wp-block-categories a::before {
	content: '›';
	color: #ff3366;
	font-size: 1rem;
	line-height: 1;
}

.acro-sidebar-categories.wp-block-categories a:hover {
	color: #ff3366;
}

.acro-sidebar-categories.wp-block-categories .wp-block-categories__count {
	color: #999;
	font-size: 0.78rem;
}

/* Recent posts */
.acro-sidebar-recent.wp-block-latest-posts {
	list-style: none;
	padding: 0;
	margin: 0;
}

.acro-sidebar-recent.wp-block-latest-posts li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.65rem 0;
	border-bottom: 1px solid #eee;
}

.acro-sidebar-recent.wp-block-latest-posts .wp-block-latest-posts__featured-image {
	flex-shrink: 0;
}

.acro-sidebar-recent.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	display: block;
}

.acro-sidebar-recent.wp-block-latest-posts .wp-block-latest-posts__post-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: #111;
	line-height: 1.35;
	text-decoration: none;
	display: block;
	margin-bottom: 0.25rem;
}

.acro-sidebar-recent.wp-block-latest-posts .wp-block-latest-posts__post-title:hover {
	color: #ff3366;
}

.acro-sidebar-recent.wp-block-latest-posts .wp-block-latest-posts__post-date {
	font-size: 0.72rem;
	color: #999;
	display: block;
}

