/*
 * Casetti: the redesigned about page (inc/site/about-v2.php). A dark hero with the storefront photo
 * (full-bleed on phones, a split panel on large screens), then the text as a centred editorial column.
 */

.casetti-about-v2 .entry-header,
.casetti-about-v2 .page-header {
	display: none;
}

/* Hero */
.c-about-hero {
	position: relative;
	display: grid;
	background: var(--casetti-dark, #121110);
	color: #fff;
	overflow: hidden;
}

.c-about-hero__media {
	position: relative;
	margin: 0;
}

.c-about-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-about-hero__eyebrow {
	margin: 0 0 14px;
	color: var(--casetti-gold-on-dark, #c9a46a);
	font: 500 11px/1 var(--myco-font-sans);
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.c-about-hero__title {
	margin: 0;
	color: #fff;
	font: 500 clamp(44px, 7vw, 76px)/1 var(--casetti-font-display, Georgia, serif);
	letter-spacing: 0.01em;
}

.c-about-hero__lead {
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font: 300 16px/1.6 var(--myco-font-sans);
	letter-spacing: 0.02em;
}

.c-about-hero__line {
	display: block;
	width: 48px;
	height: 1px;
	margin-top: 26px;
	background: var(--casetti-gold-on-dark, #c9a46a);
}

/* Phones: the photo fills the screen, the words sit on its dark sky at the top. */
@media (max-width: 899px) {
	.c-about-hero {
		min-height: calc(100svh - var(--casetti-header-h, 62px) - var(--casetti-mobile-nav-h, 0px));
	}

	.c-about-hero__media {
		position: absolute;
		inset: 0;
	}

	.c-about-hero__img {
		object-position: 50% 70%;
	}

	.c-about-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(10, 10, 14, 0.55) 0%, rgba(10, 10, 14, 0) 38%, rgba(10, 10, 14, 0) 78%, rgba(10, 10, 14, 0.35) 100%);
	}

	.c-about-hero__text {
		position: relative;
		align-self: start;
		padding: 44px var(--casetti-gutter, 20px) 0;
		text-align: center;
	}

	.c-about-hero__line {
		margin-left: auto;
		margin-right: auto;
	}
}

/* Large screens: words on the dark panel, the photo beside it. */
@media (min-width: 900px) {
	.c-about-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
		min-height: min(86vh, 820px);
	}

	.c-about-hero__media {
		order: 2;
	}

	.c-about-hero__text {
		align-self: center;
		padding: 80px 64px 80px max(var(--casetti-gutter, 40px), calc((100vw - var(--myco-container, 1200px)) / 2));
	}

	.c-about-hero__lead {
		font-size: 18px;
	}

	.c-about-hero__img {
		position: absolute;
		inset: 0;
		object-position: 50% 78%;
	}
}

/* The intro: a centred editorial column (its photo is now the hero). */
.casetti-about-v2 .c-about-intro {
	padding-top: 72px;
	padding-bottom: 72px;
	background: var(--casetti-cream, #f7f4ef);
}

.casetti-about-v2 .c-about-intro > .wp-block-columns {
	max-width: 720px;
}

.casetti-about-v2 .c-about-intro__text {
	flex-basis: 100% !important;
	text-align: center;
}

.casetti-about-v2 .c-about-intro__title {
	margin: 0 0 24px;
	font: 500 clamp(30px, 4.4vw, 44px)/1.15 var(--casetti-font-display, Georgia, serif);
	color: var(--casetti-ink, #1a1a1a);
}

.casetti-about-v2 .c-about-intro__text p {
	font-size: 16px;
}

.casetti-about-v2 .c-about-intro__sign {
	margin-top: 28px !important;
	color: var(--casetti-gold, #a8865a) !important;
	font: italic 400 20px/1.4 var(--casetti-font-display, Georgia, serif) !important;
}

@media (max-width: 899px) {
	.casetti-about-v2 .c-about-intro {
		padding-top: 52px;
		padding-bottom: 52px;
	}
}

/* No announcement bar on this page (owner's request); on phones the fixed header then takes the top. */
.casetti-about-v2 .c-topbar { display: none; }

@media (max-width: 899.98px) {
	:root:has(body.casetti-about-v2) { --casetti-hdr-top: 0px; }
	body.casetti-about-v2 { padding-top: var(--casetti-header-h, 78px); }
}
