/* Homepage-only styling. The active Midori's Flowers theme and its customizer settings stay intact. */
.home .header-inner {
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 14px !important;
}

.home .site-header .brand {
	justify-content: center;
	min-width: 0;
}

.home .site-header .custom-logo-link img.custom-logo {
	width: auto !important;
	max-width: min(86vw, 360px) !important;
	max-height: 190px !important;
	object-fit: contain;
}

.mf-home-menu-toggle {
	appearance: none;
	border: 1px solid #b28a46;
	background: transparent;
	color: #4e5945;
	padding: 9px 20px;
	font: inherit;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
}

.mf-home-menu-toggle:hover,
.mf-home-menu-toggle:focus-visible {
	background: #f4eee4;
	outline: 2px solid #b28a46;
	outline-offset: 2px;
}

.home .main-nav[hidden] {
	display: none !important;
}

.home .main-nav:not([hidden]) {
	width: 100%;
}

.home .main-nav:not([hidden]) ul {
	justify-content: center;
}

.mfhd-home {
	min-height: 40vh;
	background: #fbf8f2;
}

.mfhd-intro {
	max-width: 900px;
	margin: 0 auto;
	padding: clamp(36px, 6vw, 72px) 24px 18px;
	text-align: center;
}

.mfhd-intro h1 {
	margin: 0;
	color: #4e5945;
	font-size: clamp(30px, 4vw, 46px);
}

.mfhd-feed {
	max-width: 1160px;
	margin: 0 auto;
	padding: 20px 28px 72px;
}

.mfhd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.mfhd-card {
	min-width: 0;
	background: #fffdf9;
	border: 1px solid #e4d9c9;
	box-shadow: 0 8px 26px rgba(80, 60, 40, .05);
}

.mfhd-card-image {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f4eee4;
	overflow: hidden;
}

.mfhd-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mfhd-card-body {
	padding: 22px;
}

.mfhd-date {
	display: block;
	margin-bottom: 8px;
	color: #756e66;
	font-size: 11px;
	letter-spacing: .08em;
}

.mfhd-card h2 {
	margin: 0 0 10px;
	font-size: clamp(22px, 2.4vw, 29px);
}

.mfhd-card h2 a {
	color: #39342f;
}

.mfhd-excerpt {
	color: #756e66;
	font-size: 14px;
}

.mfhd-read-more {
	display: inline-block;
	margin-top: 8px;
	color: #4e5945;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mfhd-empty {
	max-width: 740px;
	margin: 20px auto 0;
	padding: 30px;
	border: 1px solid #e4d9c9;
	background: #fffdf9;
	color: #756e66;
	text-align: center;
	font: italic 19px Georgia, "Times New Roman", serif;
}

.mfhd-pagination ul {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.mfhd-pagination a,
.mfhd-pagination span {
	display: block;
	padding: 8px 13px;
	border: 1px solid #e4d9c9;
	background: #fffdf9;
}

.mfhd-single {
	max-width: 900px;
}

.mfhd-back {
	margin-bottom: 24px;
}

.mfhd-single-image img {
	max-height: 720px;
	width: auto;
	margin: 0 auto 32px;
	object-fit: contain;
}

.mfhd-only-en {
	display: none;
}

html[lang^="en"] .mfhd-only-it {
	display: none !important;
}

html[lang^="en"] .mfhd-only-en {
	display: inline !important;
}

@media (max-width: 900px) {
	.mfhd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.home .site-header .custom-logo-link img.custom-logo {
		max-width: min(88vw, 320px) !important;
		max-height: 170px !important;
	}

	.mfhd-feed {
		padding: 16px 18px 52px;
	}

	.mfhd-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.home .site-footer .brand-tagline {
	display: none !important;
}
