/**
 * Layout contenuto testuale — pagina standard, 404, archivi, single, search.
 */

body.nenne-body--content,
body.nenne-body--standard,
body.wp-singular.page-template.page-template-templates.page-template-page-standard {
	background: #fff;
}

body.nenne-body--content .nenne-main,
body.nenne-body--standard .nenne-main {
	padding-inline: var(--nenne-layout-gutter);
	padding-bottom: var(--nenne-section-padding-y);
}

@media (max-width: 991.98px) {
	body.nenne-body--content .nenne-main,
	body.nenne-body--standard .nenne-main {
		padding-top: calc(var(--nenne-section-padding-y) + 72px + 4px);
	}
}

@media (min-width: 992px) {
	body.nenne-body--content .nenne-main,
	body.nenne-body--standard .nenne-main {
		padding-top: var(--nenne-section-padding-y);
	}
}

body.nenne-body--content .nenne-page-header.nenne-section,
body.nenne-body--standard .nenne-page-header.nenne-section {
	padding-block: 0;
}

body.nenne-body--content .nenne-page-header__title + .nenne-page-header__subtitle,
body.nenne-body--standard .nenne-page-header__title + .nenne-page-header__subtitle {
	margin-top: 1rem;
}

body.nenne-body--content .nenne-content,
body.nenne-body--standard .nenne-content {
	padding: 0;
}

body.nenne-body--content .nenne-container,
body.nenne-body--standard .nenne-container {
	width: 100%;
	max-width: min(900px, 100%);
	margin-inline: auto;
}

body.nenne-body--content :is(h1, h2, h3, h4, h5, h6),
body.nenne-body--standard :is(h1, h2, h3, h4, h5, h6),
body.nenne-body--content .nenne-page-header__title,
body.nenne-body--standard .nenne-page-header__title {
	font-family: var(--nenne-font-title);
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* Archivi */

.nenne-archive-header {
	padding-top: 0;
}

.nenne-archive-header__eyebrow {
	margin: 0 0 0.75rem;
	font-family: var(--nenne-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nenne-color-text-muted, #666);
}

.nenne-archive-header__description {
	max-width: 42rem;
}

.nenne-archive-header__description p {
	margin: 0;
}

.nenne-archive-list {
	display: grid;
	gap: 2rem;
	margin-top: 2rem;
}

.nenne-archive-item {
	display: grid;
	gap: 1.25rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nenne-archive-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

@media (min-width: 768px) {
	.nenne-archive-item:has(.nenne-archive-item__media) {
		grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
		align-items: start;
	}
}

.nenne-archive-item__media {
	display: block;
	overflow: hidden;
	border-radius: 0;
}

.nenne-archive-item__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.nenne-archive-item__meta {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: var(--nenne-color-text-muted, #666);
}

.nenne-archive-item__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	line-height: 1.2;
}

.nenne-archive-item__title a {
	color: inherit;
	text-decoration: none;
}

.nenne-archive-item__title a:hover,
.nenne-archive-item__title a:focus-visible {
	text-decoration: underline;
}

.nenne-archive-item__excerpt {
	margin-bottom: 0.75rem;
	color: var(--nenne-color-text-muted, #666);
}

.nenne-archive-item__excerpt p {
	margin: 0;
}

.nenne-archive-item__more {
	margin: 0;
}

.nenne-archive-item__link {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.nenne-archive .navigation.pagination {
	margin-top: 2.5rem;
}

.nenne-archive .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
}

.nenne-archive .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	text-decoration: none;
	color: inherit;
}

.nenne-archive .page-numbers.current {
	background: var(--nenne-color-text, #111);
	border-color: var(--nenne-color-text, #111);
	color: #fff;
}

.nenne-archive-empty {
	margin-top: 2rem;
	text-align: center;
}

.nenne-archive-empty p {
	margin: 0 0 1.5rem;
}

/* 404 */

body.nenne-body--404 .nenne-not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-height: min(60vh, 720px);
	justify-content: center;
	padding-block: 2rem 3rem;
	color: var(--nenne-color-primary);
}

body.nenne-body--404 .nenne-not-found__code {
	margin: 0 0 1rem;
	font-family: var(--nenne-font-title);
	font-size: clamp(4.5rem, 18vw, 8rem);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.04em;
	color: var(--nenne-color-primary);
}

body.nenne-body--404 .nenne-not-found__header {
	padding: 0;
	max-width: 34rem;
}

body.nenne-body--404 .nenne-page-header__title {
	font-size: 50px;
	color: var(--nenne-color-primary);
}

body.nenne-body--404 .nenne-not-found__text {
	margin: 1rem auto 0;
	max-width: 32rem;
	color: var(--nenne-color-primary);
}

body.nenne-body--404 .nenne-not-found__actions {
	margin-top: 2rem;
}
