/*
 * Shared layout for the three plain informational pages: Contatti,
 * Spedizioni, Resi e rimborsi. These need a handful of grid/flow rules that
 * the compiled Tailwind build does not ship (md:grid-cols-3, space-y-*,
 * md:flex-row are all absent from dist/style.css), so they live here the same
 * way faq.css carries the accordion. Tokens only, no raw hex.
 */

.lm-page-lede {
	margin-inline: auto;
	margin-top: 1rem;
	max-width: 34rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

/* Fact strip: the few numbers a customer actually came for. */
.lm-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

@media (min-width: 700px) {
	.lm-facts {
		grid-template-columns: repeat(var(--lm-facts-cols, 3), minmax(0, 1fr));
	}
}

.lm-fact {
	border-radius: 1.5rem;
	border: 1px solid color-mix(in oklch, var(--card) 60%, transparent);
	background: color-mix(in oklch, var(--card) 55%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 1.5rem;
}

.lm-fact__value {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 2rem;
	line-height: 1.05;
	color: var(--foreground);
}

.lm-fact__label {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--muted-foreground);
}

/* Numbered flow: how a shipment or a return actually proceeds. */
.lm-steps {
	margin-top: 1.25rem;
	display: grid;
	gap: 1rem;
}

.lm-step {
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 0.875rem;
	align-items: start;
}

.lm-step__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 9999px;
	background: color-mix(in oklch, var(--primary) 10%, transparent);
	color: var(--primary);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

.lm-step__title {
	font-size: 0.9375rem;
	color: var(--foreground);
}

.lm-step__body {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

/* Prose blocks inside a card. */
.lm-prose {
	margin-top: 1rem;
	max-width: 42rem;
	font-size: 0.875rem;
	line-height: 1.75;
	color: var(--muted-foreground);
}

.lm-prose p + p {
	margin-top: 0.875rem;
}

.lm-prose strong {
	color: var(--foreground);
	font-weight: 500;
}

.lm-prose ul {
	margin-top: 0.75rem;
	padding-left: 1.1rem;
	list-style: disc;
}

.lm-prose li + li {
	margin-top: 0.4rem;
}

/* Contatti: channel tiles + company data. */
.lm-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

@media (min-width: 900px) {
	.lm-split {
		grid-template-columns: 1.15fr 0.85fr;
		align-items: start;
	}
}

.lm-channels {
	display: grid;
	gap: 0.75rem;
}

.lm-channel {
	display: flex;
	gap: 0.875rem;
	align-items: center;
	border-radius: 1.5rem;
	border: 1px solid color-mix(in oklch, var(--card) 60%, transparent);
	background: color-mix(in oklch, var(--card) 55%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 1.125rem 1.25rem;
	text-decoration: none;
	transition: box-shadow 0.25s ease, background 0.25s ease;
}

.lm-channel:hover {
	background: var(--card);
	box-shadow: var(--shadow-soft);
}

.lm-channel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex: none;
	border-radius: 9999px;
	background: color-mix(in oklch, var(--primary) 10%, transparent);
	color: var(--primary);
}

.lm-channel__label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--muted-foreground);
}

.lm-channel__value {
	margin-top: 0.2rem;
	font-size: 0.9375rem;
	color: var(--foreground);
}

.lm-company dt {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--muted-foreground);
}

.lm-company dd {
	margin: 0.25rem 0 0.9rem;
	font-size: 0.9375rem;
	color: var(--foreground);
}

.lm-company dd:last-child {
	margin-bottom: 0;
}

/* Cross-links to the sibling info pages. */
.lm-nextlinks {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

@media (min-width: 700px) {
	.lm-nextlinks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.lm-nextlink {
	display: block;
	border-radius: 1.5rem;
	border: 1px solid color-mix(in oklch, var(--card) 60%, transparent);
	background: color-mix(in oklch, var(--card) 55%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 1.25rem 1.5rem;
	text-decoration: none;
	transition: box-shadow 0.25s ease, background 0.25s ease;
}

.lm-nextlink:hover {
	background: var(--card);
	box-shadow: var(--shadow-soft);
}

.lm-nextlink__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 1.5rem;
	color: var(--foreground);
}

.lm-nextlink__body {
	margin-top: 0.3rem;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--muted-foreground);
}

/*
 * Shipping tariff rows (Spedizioni). A definition-list look — destination on
 * the left, price on the right — rather than a real <table>, because there
 * are only two columns and a table would have to scroll on a phone.
 */
.lm-rates {
	margin-top: 1.1rem;
}

.lm-rate {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0;
	border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
	font-size: 0.85rem;
}

.lm-rate:last-child {
	border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}

.lm-rate__label {
	color: var(--foreground);
}

.lm-rate__value {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: var(--muted-foreground);
}

.lm-rate--free .lm-rate__value {
	font-weight: 600;
	color: var(--foreground);
}
