/**
 * Stile dedicato per la Tavola di Stile (Style Tile)
 *
 * @package VenafroMuseum
 */

.page-style-tile {
	max-width: var(--wp--custom--measure--px-1220);
	margin: 0 auto;
	padding: var(--wp--custom--space--px-126) var(--wp--custom--space--px-40) var(--wp--custom--space--px-64);
}

.style-tile-sheet {
	background: var(--wp--preset--color--panel);
	border: var(--wp--custom--measure--px-1) solid var(--wp--custom--color--style-tile-style-tile-sheet-border);
	border-radius: var(--wp--custom--measure--px-6);
	padding: clamp(var(--wp--custom--space--px-24), var(--wp--custom--space--vw-4), var(--wp--custom--space--px-48));
	box-shadow: var(--wp--custom--surface--style-tile-style-tile-sheet-box-shadow);
}

.style-tile-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--wp--custom--space--px-30);
	border-bottom: var(--wp--custom--measure--px-1) solid var(--line);
	padding-bottom: var(--wp--custom--space--px-28);
}

.style-tile-wordmark img {
	width: var(--wp--custom--measure--px-280);
	max-width: 100%;
	height: auto;
	display: block;
}

.style-tile-header .eyebrow {
	text-align: right;
	line-height: var(--wp--custom--leading--ratio-1-6);
}

.style-tile-intro {
	max-width: var(--wp--custom--measure--px-870);
	padding: var(--wp--custom--space--px-36) 0 var(--wp--custom--space--px-32);
}

.style-tile-intro h1 {
	font-family: var(--font-sans);
	font-size: var(--wp--custom--type--style-tile-style-tile-intro-h-1-font-size);
	font-weight: var(--wp--custom--weight--regular);
	line-height: var(--wp--custom--leading--ratio-1-08);
	letter-spacing: var(--wp--custom--tracking--minus-em-0-035-2);
	color: var(--ink);
	margin: var(--wp--custom--space--px-16) 0 var(--wp--custom--space--px-20);
}

.style-tile-intro .style-tile-lead {
	font-size: var(--wp--custom--type--style-tile-style-tile-intro-style-tile-lead-font-size);
	line-height: var(--wp--custom--leading--ratio-1-65);
	color: var(--wp--custom--color--style-tile-style-tile-intro-style-tile-lead-color);
	margin-bottom: var(--wp--custom--space--px-16);
}

.style-tile-intro small {
	display: block;
	color: var(--wp--preset--color--clay);
	font-size: var(--wp--custom--type--size-13);
	line-height: var(--wp--custom--leading--ratio-1-5);
}

.style-tile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--custom--space--px-48);
	border-top: var(--wp--custom--measure--px-1) solid var(--line);
	padding-top: var(--wp--custom--space--px-36);
}

/* Colonna Colore & Tipografia */
.swatches-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(var(--wp--custom--measure--px-90), 1fr));
	gap: var(--wp--custom--space--px-12);
	margin: var(--wp--custom--space--px-22) 0 var(--wp--custom--space--px-30);
}

.swatch-box {
	height: var(--wp--custom--measure--px-85);
	border: var(--wp--custom--measure--px-1) solid var(--line);
	border-radius: var(--wp--custom--measure--px-4);
	padding: var(--wp--custom--space--px-8) var(--wp--custom--space--px-10);
	font-size: var(--wp--custom--type--size-11);
	font-family: var(--font-mono);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.swatch-box .swatch-name {
	font-size: var(--wp--custom--type--size-11);
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--em-0-05);
	opacity: 0.85;
}

.swatch-box .swatch-hex {
	font-weight: var(--wp--custom--weight--bold);
}

.style-tile-col h2 {
	font-family: var(--font-sans);
	font-size: var(--wp--custom--type--style-tile-style-tile-col-h-2-font-size);
	font-weight: var(--wp--custom--weight--regular);
	line-height: var(--wp--custom--leading--ratio-1-15);
	color: var(--ink);
	margin: 0 0 var(--wp--custom--space--px-16);
}

.style-tile-col p {
	font-size: var(--wp--custom--type--size-15-5);
	line-height: var(--wp--custom--leading--ratio-1-65);
	color: var(--wp--custom--color--style-tile-style-tile-intro-style-tile-lead-color);
}

.style-tile-col .style-tile-serif-sample {
	font-family: var(--font-serif);
}

.style-tile-links {
	display: flex;
	gap: var(--wp--custom--space--px-18);
	align-items: center;
	flex-wrap: wrap;
	margin: var(--wp--custom--space--px-24) 0 var(--wp--custom--space--px-32);
}

/* Pulsante e stati condivisi con il sito in museum.css. */

/* Anche il collegamento testuale usa il componente condiviso di museum.css. */

.style-tile-card {
	border-top: var(--wp--custom--measure--px-1) solid var(--line);
	padding: var(--wp--custom--space--px-24) 0 0;
	margin-top: var(--wp--custom--space--px-32);
}

.style-tile-card h3 {
	font-family: var(--font-sans);
	font-size: var(--wp--custom--type--size-24);
	font-weight: var(--wp--custom--weight--regular);
	margin: var(--wp--custom--space--px-8) 0 var(--wp--custom--space--px-12);
	color: var(--ink);
}

/* Colonna Scura: Luce, materia, movimento */
.style-tile-dark {
	background: var(--ink);
	color: var(--paper);
	padding: var(--wp--custom--space--px-32);
	border-radius: var(--wp--custom--measure--px-4);
}

.style-tile-dark .eyebrow {
	color: var(--wp--preset--color--brand-gold) !important;
}

.style-tile-dark h2 {
	color: var(--wp--preset--color--white) !important;
	font-family: var(--font-sans);
	font-size: var(--wp--custom--type--style-tile-style-tile-col-h-2-font-size);
	font-weight: var(--wp--custom--weight--regular);
	line-height: var(--wp--custom--leading--ratio-1-18);
	margin: var(--wp--custom--space--px-20) 0 var(--wp--custom--space--px-16);
}

.style-tile-dark p {
	color: var(--wp--custom--color--style-tile-style-tile-dark-p-color);
	font-size: var(--wp--custom--type--size-15);
	line-height: var(--wp--custom--leading--ratio-1-65);
	max-width: var(--wp--custom--measure--px-480);
	margin-bottom: var(--wp--custom--space--px-16);
}

.style-tile-dark-img {
	width: 100%;
	height: var(--wp--custom--measure--px-260);
	object-fit: cover;
	object-position: center 24%;
	margin: var(--wp--custom--space--px-18) 0;
	border-radius: var(--wp--custom--measure--px-2);
	display: block;
}

.style-tile-dark .style-tile-caption {
	font-size: var(--wp--custom--type--size-12-5);
	opacity: 0.8;
	border-top: var(--wp--custom--measure--px-1) solid var(--wp--custom--color--style-tile-style-tile-dark-style-tile-caption-border-top);
	padding-top: var(--wp--custom--space--px-16);
	margin-top: var(--wp--custom--space--px-24);
	color: var(--wp--preset--color--brand-gold);
}

/* Sezione Note e Link */
.style-tile-notes {
	margin-top: var(--wp--custom--space--px-48);
	border-top: var(--wp--custom--measure--px-1) solid var(--line);
	padding-top: var(--wp--custom--space--px-24);
	font-size: var(--wp--custom--type--size-13);
	color: var(--wp--preset--color--clay);
	line-height: var(--wp--custom--leading--ratio-1-65);
}

.style-tile-notes a {
	color: var(--ink);
	font-weight: var(--wp--custom--weight--semibold);
	text-underline-offset: var(--wp--custom--measure--px-3);
}

@media (max-width: 820px) {
	.page-style-tile {
		padding: var(--wp--custom--space--px-100) var(--wp--custom--space--px-20) var(--wp--custom--space--px-44);
	}
	.style-tile-grid {
		grid-template-columns: 1fr;
		gap: var(--wp--custom--space--px-36);
	}
	.style-tile-header {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--custom--space--px-16);
	}
	.style-tile-header .eyebrow {
		text-align: left;
	}
	.style-tile-sheet {
		padding: var(--wp--custom--space--px-24) var(--wp--custom--space--px-18);
	}
}
