:root {
	--baluardo-green-900: #183d32;
	--baluardo-green-800: #245445;
	--baluardo-green-700: #326957;
	--baluardo-ivory: #f7f3e9;
	--baluardo-stone: #e7e0d1;
	--baluardo-ink: #202824;
	--baluardo-muted: #65706a;
	--baluardo-terracotta: #b75f42;
	--baluardo-white: #fff;
	--baluardo-radius: 1.25rem;
	--baluardo-shadow: 0 24px 60px rgba(20, 43, 35, 0.16);
	--global-palette1: var(--baluardo-green-700);
	--global-palette2: var(--baluardo-green-900);
	--global-palette3: var(--baluardo-ink);
	--global-palette7: var(--baluardo-ivory);
	--global-palette9: var(--baluardo-white);
}

body {
	color: var(--baluardo-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #fffdf8;
}

h1,
h2,
h3,
.site-title {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: -0.025em;
}

a {
	text-underline-offset: 0.2em;
}

.site-header,
#masthead {
	box-shadow: 0 1px 0 rgba(32, 40, 36, 0.08);
}

.main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.baluardo-shell {
	width: min(1160px, calc(100% - 2.5rem));
	margin-inline: auto;
}

.baluardo-kicker {
	margin: 0 0 0.8rem;
	color: var(--baluardo-terracotta);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.baluardo-hero {
	position: relative;
	min-height: clamp(620px, 78vh, 820px);
	display: grid;
	align-items: end;
	background-image: var(--baluardo-hero-image);
	background-position: center;
	background-size: cover;
	color: var(--baluardo-white);
	isolation: isolate;
}

.baluardo-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(12, 35, 28, 0.88) 0%, rgba(12, 35, 28, 0.5) 48%, rgba(12, 35, 28, 0.18) 100%),
		linear-gradient(0deg, rgba(12, 35, 28, 0.52), transparent 48%);
}

.baluardo-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: end;
	padding-block: clamp(5rem, 10vw, 8rem);
}

.baluardo-hero__copy {
	max-width: 760px;
}

.baluardo-hero .baluardo-kicker {
	color: #f0c9b7;
}

.baluardo-hero h1 {
	max-width: 780px;
	margin: 0;
	color: inherit;
	font-size: clamp(3.4rem, 8vw, 7.25rem);
	font-weight: 500;
	line-height: 0.94;
}

.baluardo-hero__lead {
	max-width: 660px;
	margin: 1.6rem 0 0;
	font-size: clamp(1.08rem, 2vw, 1.4rem);
	line-height: 1.6;
}

.baluardo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.6rem;
	align-items: center;
	margin-top: 2rem;
}

.baluardo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.9rem 1.35rem;
	border: 2px solid var(--baluardo-terracotta);
	border-radius: 999px;
	background: var(--baluardo-terracotta);
	color: var(--baluardo-white);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.baluardo-button:hover,
.baluardo-button:focus-visible {
	border-color: #93482f;
	background: #93482f;
	color: var(--baluardo-white);
	transform: translateY(-2px);
}

.baluardo-button--light {
	border-color: var(--baluardo-white);
	background: var(--baluardo-white);
	color: var(--baluardo-green-900);
}

.baluardo-button--light:hover,
.baluardo-button--light:focus-visible {
	border-color: var(--baluardo-ivory);
	background: var(--baluardo-ivory);
	color: var(--baluardo-green-900);
}

.baluardo-text-link {
	color: var(--baluardo-green-800);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.baluardo-text-link:hover,
.baluardo-text-link:focus-visible {
	color: var(--baluardo-terracotta);
}

.baluardo-text-link--light {
	color: var(--baluardo-white);
}

.baluardo-next {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: var(--baluardo-radius);
	background: rgba(247, 243, 233, 0.94);
	box-shadow: var(--baluardo-shadow);
	color: var(--baluardo-ink);
	backdrop-filter: blur(12px);
}

.baluardo-next__image {
	display: block;
	overflow: hidden;
	margin: 0 0 1.25rem;
	border-radius: calc(var(--baluardo-radius) * 0.7);
}

.baluardo-next__image img {
	display: block;
	width: 100%;
	max-height: 140px;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	transition: transform 300ms ease;
}

.baluardo-next__image:hover img,
.baluardo-next__image:focus-visible img {
	transform: scale(1.025);
}

.baluardo-event-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
}

.baluardo-event-category {
	display: inline-flex;
	align-items: center;
	min-height: 1.7rem;
	padding: 0.32rem 0.65rem;
	border: 1px solid var(--baluardo-event-category-primary, var(--baluardo-green-700));
	border-radius: 999px;
	background: var(--baluardo-event-category-secondary, var(--baluardo-ivory));
	color: var(--baluardo-event-category-text, var(--baluardo-green-900));
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.075em;
	line-height: 1;
	text-transform: uppercase;
}

.baluardo-next__date {
	margin: 0 0 0.55rem;
	color: var(--baluardo-green-700);
	font-size: 0.92rem;
	font-weight: 800;
}

.baluardo-next h2 {
	margin: 0 0 0.9rem;
	font-size: clamp(1.55rem, 2.8vw, 2.25rem);
	line-height: 1.12;
}

.baluardo-next h2 a {
	color: inherit;
	text-decoration: none;
}

.baluardo-next > p:not(.baluardo-kicker):not(.baluardo-next__date) {
	color: var(--baluardo-muted);
}

.baluardo-photo-credit {
	position: absolute;
	right: 1rem;
	bottom: 0.6rem;
	margin: 0;
	font-size: 0.64rem;
}

.baluardo-photo-credit a {
	color: rgba(255, 255, 255, 0.72);
}

.baluardo-section {
	padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.baluardo-section--intro {
	background: var(--baluardo-ivory);
}

.baluardo-intro {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 8vw, 8rem);
	align-items: start;
}

.baluardo-intro h2,
.baluardo-section-heading h2,
.baluardo-contact-card h2,
.baluardo-page-hero h1 {
	margin: 0;
	font-size: clamp(2.35rem, 5vw, 4.6rem);
	font-weight: 500;
	line-height: 1.05;
}

.baluardo-intro__text {
	margin: 0 0 1.4rem;
	font-size: clamp(1.2rem, 2.1vw, 1.65rem);
	line-height: 1.6;
}

.baluardo-section-heading {
	display: flex;
	gap: 2rem;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 2.5rem;
}

.baluardo-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.baluardo-news-card {
	overflow: hidden;
	border: 1px solid var(--baluardo-stone);
	border-radius: var(--baluardo-radius);
	background: var(--baluardo-white);
	box-shadow: 0 14px 35px rgba(24, 61, 50, 0.07);
}

.baluardo-news-card__image,
.baluardo-news-card__image img,
.baluardo-news-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.baluardo-news-card__placeholder {
	background:
		linear-gradient(135deg, rgba(24, 61, 50, 0.12), rgba(183, 95, 66, 0.13)),
		url('../images/logo-storico.jpg') center / 150px auto no-repeat,
		var(--baluardo-ivory);
}

.baluardo-news-card__body {
	padding: 1.5rem;
}

.baluardo-news-card time {
	color: var(--baluardo-terracotta);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.baluardo-news-card h3 {
	margin: 0.65rem 0 0.8rem;
	font-size: clamp(1.45rem, 2.3vw, 2rem);
	line-height: 1.15;
}

.baluardo-news-card h3 a {
	color: inherit;
	text-decoration: none;
}

.baluardo-news-card p {
	margin-bottom: 0;
	color: var(--baluardo-muted);
}

.baluardo-news-empty,
.baluardo-calendar-empty {
	grid-column: 1 / -1;
	padding: clamp(2rem, 6vw, 4rem);
	border: 1px dashed #b8afa0;
	border-radius: var(--baluardo-radius);
	background: var(--baluardo-ivory);
}

.baluardo-news-empty h3,
.baluardo-calendar-empty h2 {
	margin: 0 0 0.8rem;
	font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.baluardo-section--events {
	background: #eef2ed;
}

.baluardo-events-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.baluardo-event-card {
	overflow: hidden;
	border-top: 4px solid var(--baluardo-green-700);
	background: var(--baluardo-white);
	box-shadow: 0 10px 30px rgba(24, 61, 50, 0.07);
}

.baluardo-event-card__image,
.baluardo-event-card__image img {
	display: block;
	width: 100%;
}

.baluardo-event-card__image {
	overflow: hidden;
}

.baluardo-event-card__image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 300ms ease;
}

.baluardo-event-card__image:hover img,
.baluardo-event-card__image:focus-visible img {
	transform: scale(1.025);
}

.baluardo-event-card__body {
	padding: clamp(1.4rem, 3vw, 2rem);
}

.baluardo-event-card__date {
	margin: 0 0 1rem;
	color: var(--baluardo-terracotta);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.baluardo-event-card__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	line-height: 1.18;
}

.baluardo-event-card__title a {
	color: inherit;
	text-decoration: none;
}

.baluardo-event-card__meta {
	margin: 0.85rem 0 0;
	color: var(--baluardo-muted);
}

.baluardo-section--contact {
	background: var(--baluardo-green-900);
	color: var(--baluardo-white);
}

.baluardo-contact-card {
	display: flex;
	gap: 2rem;
	align-items: center;
	justify-content: space-between;
}

.baluardo-contact-card .baluardo-kicker {
	color: #f0c9b7;
}

.baluardo-contact-card h2 {
	max-width: 820px;
	color: inherit;
}

.baluardo-page-hero {
	position: relative;
	display: grid;
	min-height: clamp(250px, 31vw, 390px);
	align-items: end;
	padding-block: clamp(3rem, 7vw, 5.5rem);
	background:
		linear-gradient(90deg, rgba(12, 35, 28, 0.88), rgba(12, 35, 28, 0.38)),
		var(--baluardo-page-hero-image) center / cover no-repeat,
		var(--baluardo-green-900);
	color: var(--baluardo-white);
}

.baluardo-page-hero .baluardo-kicker {
	color: #f0c9b7;
}

.baluardo-page-hero h1 {
	color: inherit;
}

.baluardo-page-hero p:last-child {
	max-width: 650px;
	margin: 1.2rem 0 0;
	font-size: 1.2rem;
}

.baluardo-page-content {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.baluardo-page-content > .entry-content:not(:empty) {
	max-width: 780px;
	margin-bottom: 3rem;
}

.baluardo-events-list--calendar {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.baluardo-admin-hint {
	margin-top: 1.5rem;
	padding: 1rem;
	border-left: 4px solid var(--baluardo-terracotta);
	background: var(--baluardo-white);
	font-size: 0.92rem;
}

@media (max-width: 900px) {
	.baluardo-hero__inner,
	.baluardo-intro {
		grid-template-columns: 1fr;
	}

	.baluardo-next {
		max-width: 520px;
	}

	.baluardo-news-grid,
	.baluardo-events-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.baluardo-shell {
		width: min(100% - 1.5rem, 1160px);
	}

	.baluardo-hero {
		min-height: auto;
	}

	.baluardo-hero__inner {
		padding-block: 5rem 3rem;
	}

	.baluardo-section-heading,
	.baluardo-contact-card {
		align-items: flex-start;
		flex-direction: column;
	}

	.baluardo-news-grid,
	.baluardo-events-list,
	.baluardo-events-list--calendar {
		grid-template-columns: 1fr;
	}

	.baluardo-photo-credit {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
