/*
 * The passions of the page Chi sono (site:intro/passions, act, menu, cellar), as the preview approved on 2026-11-21.
 * The prints and the menu card are white paper in both themes (the button's text colour) with the light band's text;
 * the wine's band is a red of the palette over its dark. Every colour is the palette's.
 */

.axyo-site-intro {
	--in-paper: var(--color-section-dark-text);
	--in-ink: var(--color-section-dark-bg);
	container-type: inline-size;
	overflow-x: clip;
}

.axyo-site-intro:has(.in-passions) { --section-bg: var(--color-background); background-color: var(--color-background); }
.axyo-site-intro:has(.is-rush) { padding-bottom: 0; }

.axyo-site-intro:has(.is-cellar) {
	background-image: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--color-danger) 52%, var(--color-section-dark-bg)), color-mix(in srgb, var(--color-danger) 26%, var(--color-section-dark-bg)) 70%);
}

.axyo-site-intro figure { margin: 0; }
.axyo-site-intro .in-n { margin: 0; font: 500 0.75em ui-monospace, monospace; letter-spacing: 0.08em; color: var(--section-accent); }
.axyo-site-intro :is(.in-big, .in-title) em { font-style: normal; color: var(--section-accent); }
.axyo-site-intro .in-big { margin: 0.4em 0 0; font: 800 clamp(2.5em, 6.4vw, 5.5em) / 0.95 var(--axyo-font-heading); letter-spacing: -0.05em; }
.axyo-site-intro .in-anchor { scroll-margin-top: 0; }
.axyo-site-intro .in-passions { view-timeline-name: --ado-passioni; }

/* An act: the head on one side, its pieces on the other, the prints under them. */
.axyo-site-intro .in-act { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2em, 5cqi, 4em) 5cqi; }
.axyo-site-intro .in-head { position: relative; z-index: 1; align-self: start; min-width: 0; }
.axyo-site-intro .in-title { margin: 0.45em 0 0; font: 800 clamp(2.25em, 5.2vw, 4.5em) / 0.95 var(--axyo-font-heading); letter-spacing: -0.05em; }
.axyo-site-intro .in-text { max-width: 30ch; margin: 1.1em 0 0; font-size: 1.0625em; color: var(--section-muted); }
.axyo-site-intro .is-rush .in-head { grid-column: 1 / -1; }
.axyo-site-intro .is-rush .in-title { font-size: clamp(3em, 9vw, 8.5em); white-space: nowrap; }

/* The prints: white paper, crooked, straightening under the pointer. */
.axyo-site-intro .in-prints { grid-column: 1 / -1; position: relative; z-index: 1; display: flex; justify-content: center; gap: clamp(1em, 3cqi, 2.4em); padding-block: 1em; }
.axyo-site-intro .in-print { position: relative; flex: 0 1 30em; min-width: 0; padding: 0.55em 0.55em 0; background: var(--in-paper); rotate: var(--rot); box-shadow: 0 1.6em 2.6em -1.2em color-mix(in srgb, var(--color-section-dark-bg) 70%, transparent); transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
.axyo-site-intro .in-print:nth-child(1) { --rot: -3deg; }
.axyo-site-intro .in-print:nth-child(2) { --rot: 2.5deg; translate: 0 1.2em; }
.axyo-site-intro .in-print:nth-child(3) { --rot: -1.5deg; }
.axyo-site-intro .in-print:is(:hover, :focus-visible) { z-index: 2; transform: rotate(calc(var(--rot) * -1)) scale(1.04); }
.axyo-site-intro .in-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.axyo-site-intro .is-upper .in-img { object-position: 50% 30%; }
.axyo-site-intro .is-top .in-img { object-position: 50% 0; }
.axyo-site-intro .in-print figcaption { padding: 0.55em 0.1em 0.75em; font-size: 0.6875em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--in-ink); opacity: 0.72; }
.axyo-site-intro .is-three .in-print:nth-child(2) { flex-basis: 17em; }
.axyo-site-intro .is-three .in-print:nth-child(2) .in-img { aspect-ratio: 3 / 4; }

/* The kitchen: the head and the menu on the left, the two prints on the right. */
.axyo-site-intro .is-menu .in-head { grid-column: 1; grid-row: 1; }
.axyo-site-intro .is-menu .in-card { grid-column: 1; grid-row: 2; }
.axyo-site-intro .is-menu .in-prints { grid-column: 2; grid-row: 1 / 3; align-self: center; padding-block: 0; }
.axyo-site-intro .is-two .in-print { flex: 1 1 0; }
.axyo-site-intro .is-two .in-img { aspect-ratio: 3 / 4; }

.axyo-site-intro .in-card {
	justify-self: start;
	align-self: start;
	width: min(100%, 30em);
	padding: clamp(1.6em, 3.5cqi, 2.6em);
	background: var(--in-paper);
	color: var(--in-ink);
	border: 1px solid color-mix(in srgb, var(--in-ink) 18%, transparent);
	outline: 1px solid color-mix(in srgb, var(--in-ink) 18%, transparent);
	outline-offset: -0.5em;
	box-shadow: 0 1.6em 2.6em -1.6em color-mix(in srgb, var(--color-section-dark-bg) 45%, transparent);
	rotate: 1deg;
}

.axyo-site-intro .in-card-top { margin: 0 0 1.2em; text-align: center; font: italic 400 1.125em Georgia, serif; color: var(--in-ink); }
.axyo-site-intro .in-dishes { margin: 0; padding: 0; list-style: none; }
.axyo-site-intro .in-dishes li { display: grid; gap: 0.25em; padding: 1em 0; border-top: 1px dashed color-mix(in srgb, var(--in-ink) 25%, transparent); text-align: center; }
.axyo-site-intro .in-dishes span { font-size: 0.625em; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.72; }
.axyo-site-intro .in-dishes b { font: 400 clamp(1.125em, 1.8vw, 1.375em) / 1.3 Georgia, 'Times New Roman', serif; }

/* The wine: a glass drawn in lines, its degrees, the wines. */
.axyo-site-intro .in-cellar { display: flex; align-items: center; gap: clamp(1.6em, 4cqi, 3.5em); align-self: center; min-width: 0; }
/* A tulip glass in a thin line, the wine rising in it while the page runs, a light on the glass (the user,
   2026-11-21: the first one, of boxes and borders, was too big and coarse). */
.axyo-site-intro .in-glass { position: relative; flex: none; display: grid; justify-items: center; width: clamp(4.25em, 7cqi, 5.75em); view-timeline-name: --intro-glass; }
.axyo-site-intro .in-bowl { position: relative; display: block; width: 100%; aspect-ratio: 60 / 80; overflow: hidden; border: 0.07em solid var(--section-fg); border-top: 0; border-radius: 12% 12% 50% 50% / 8% 8% 64% 64%; }
.axyo-site-intro .in-wine { position: absolute; inset: auto 0 0; height: 46%; background: color-mix(in srgb, var(--color-danger) 70%, var(--color-section-dark-bg)); transform-origin: 50% 100%; }
.axyo-site-intro .in-shine { position: absolute; left: 14%; top: 22%; width: 8%; height: 40%; border-left: 0.07em solid var(--section-fg); border-radius: 100% 0 0 100%; opacity: 0.35; }
.axyo-site-intro .in-stem { display: block; width: 0.07em; height: 3.4em; background: var(--section-fg); }
.axyo-site-intro .in-foot { display: block; width: 55%; height: 0.35em; border-top: 0.07em solid var(--section-fg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.axyo-site-intro .in-glass b { position: absolute; left: 50%; top: 12%; translate: -50% 0; font: 700 clamp(0.95em, 1.5vw, 1.2em) var(--axyo-font-heading); letter-spacing: -0.02em; color: var(--section-fg); }
.axyo-site-intro .in-wines { display: grid; gap: 1.6em; margin: 0; }
.axyo-site-intro .in-wines dt { margin-bottom: 0.5em; font: 600 0.6875em ui-monospace, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--section-accent); }
.axyo-site-intro .in-wines dd { margin: 0; padding: 0.35em 0; border-bottom: 1px solid color-mix(in srgb, var(--section-fg) 18%, transparent); font: 600 clamp(1.25em, 2.2vw, 1.75em) / 1.25 var(--axyo-font-heading); letter-spacing: -0.02em; }

@container (max-width: 48em) {
	.axyo-site-intro .in-act { grid-template-columns: minmax(0, 1fr); }
	.axyo-site-intro .is-menu :is(.in-head, .in-card, .in-prints) { grid-column: 1; grid-row: auto; }
	.axyo-site-intro .is-rush .in-title { white-space: normal; }
	/* On a phone the prints stand one under the other, whole (the user, 2026-11-21). */
	.axyo-site-intro .in-prints { flex-direction: column; gap: 1.6em; }
	.axyo-site-intro .in-print, .axyo-site-intro .is-three .in-print:nth-child(2) { flex: none; width: 100%; translate: none; }
	.axyo-site-intro .in-cellar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.axyo-site-intro :is(.in-head, .in-card, .in-passions) { animation: intro-up linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		.axyo-site-intro .is-cellar .in-head { animation-name: intro-left; }
		.axyo-site-intro .is-rush .in-head { animation: none; }
		.axyo-site-intro .is-rush .in-title { animation: intro-rush linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
		.axyo-site-intro .in-print { animation: intro-deal-up linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		.axyo-site-intro .in-print:first-child { animation-name: intro-deal-left; }
		.axyo-site-intro .in-print:last-child { animation-name: intro-deal-right; }
		.axyo-site-intro .in-dishes li { animation: intro-line linear both; animation-timeline: view(); }
		.axyo-site-intro .in-dishes li:nth-child(1) { animation-range: entry 20% entry 70%; }
		.axyo-site-intro .in-dishes li:nth-child(2) { animation-range: entry 35% entry 85%; }
		.axyo-site-intro .in-dishes li:nth-child(3) { animation-range: entry 50% entry 100%; }
		.axyo-site-intro .in-dishes li:nth-child(n + 4) { animation-range: entry 65% cover 50%; }
		.axyo-site-intro .in-wine { animation: intro-pour linear both; animation-timeline: --intro-glass; animation-range: entry 60% cover 60%; }
		.axyo-site-intro .in-wines dd { animation: intro-line linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.axyo-site-intro * { animation: none; }
}

@keyframes intro-up { 0% { opacity: 0; translate: 0 30%; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -12%; } }
@keyframes intro-left { 0% { opacity: 0; translate: -35% 0; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: -35% 0; } }
@keyframes intro-rush { 0% { opacity: 0; translate: 60% 0; transform: skewX(-18deg); filter: blur(0.3em); } 65% { opacity: 1; transform: skewX(-6deg); filter: blur(0); } 100% { opacity: 1; translate: 0 0; transform: none; filter: none; } }
@keyframes intro-deal-left { 0% { opacity: 0; translate: -45% 8%; rotate: -16deg; } 28%, 72% { opacity: 1; translate: 0 0; rotate: var(--rot); } 100% { opacity: 0; translate: -40% 0; rotate: -12deg; } }
@keyframes intro-deal-right { 0% { opacity: 0; translate: 45% 8%; rotate: 16deg; } 28%, 72% { opacity: 1; translate: 0 0; rotate: var(--rot); } 100% { opacity: 0; translate: 40% 0; rotate: 12deg; } }
@keyframes intro-deal-up { 0% { opacity: 0; translate: 0 40%; rotate: 10deg; } 28%, 72% { opacity: 1; translate: 0 0; rotate: var(--rot); } 100% { opacity: 0; translate: 0 -15%; rotate: -6deg; } }
@keyframes intro-line { from { opacity: 0; translate: 0 0.8em; clip-path: inset(0 100% 0 0); } to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); } }
@keyframes intro-pour { from { scale: 1 0; } to { scale: 1 1; } }

/* Inside a bench, on the page Officina (site:intro/thread), as the preview approved on 2026-11-21: the words held on
   one side, a conversation of the band's colours on the other. */
.axyo-site-intro .in-thread-lab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5cqi; align-items: start; }
.axyo-site-intro .in-thread-side { position: sticky; top: calc(var(--axyo-top, 0rem) + 2em); }
.axyo-site-intro .in-thread-title { margin: 0.3em 0 0; font: 800 clamp(2em, 4vw, 3.4em) / 1 var(--axyo-font-heading); letter-spacing: -0.045em; }
.axyo-site-intro .in-thread-title em { font-style: normal; color: var(--section-accent); }
.axyo-site-intro .in-thread-lead { max-width: 46ch; margin: 1.4em 0 0; font-size: 1.15em; line-height: 1.6; color: var(--section-muted); }
.axyo-site-intro .in-thread-go { margin: 1.8em 0 0; }
.axyo-site-intro .in-thread { display: grid; gap: 1.2em; margin: 0; padding: 0; list-style: none; }
.axyo-site-intro .in-msg { margin: 0; padding: 1.2em 1.3em; background: color-mix(in srgb, var(--section-fg) 6%, var(--section-bg)); box-shadow: 0 0 0 1px var(--section-line); }
.axyo-site-intro .in-msg.is-me { box-shadow: inset 3px 0 0 var(--section-accent), 0 0 0 1px var(--section-line); }
.axyo-site-intro .in-msg p { margin: 0.6em 0 0; line-height: 1.6; color: color-mix(in srgb, var(--section-fg) 84%, transparent); }
.axyo-site-intro .in-msg .in-who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em; margin: 0; color: var(--section-fg); }
.axyo-site-intro .in-who b { font-size: 0.9em; font-weight: 600; }
.axyo-site-intro .in-who small { font: 500 0.66em ui-monospace, monospace; letter-spacing: 0.06em; color: var(--section-muted); }
.axyo-site-intro .in-face { display: grid; flex: none; place-items: center; width: 1.9em; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--section-accent) 35%, var(--section-bg)); color: var(--section-fg); font: 700 0.7em var(--axyo-font-heading); }
.axyo-site-intro .is-me .in-face { background: var(--section-fg); color: var(--section-bg); }
.axyo-site-intro .in-msg .in-file { display: inline-block; padding: 0.35em 0.6em; border-radius: 0.3em; box-shadow: inset 0 0 0 1px var(--section-line); font: 500 0.75em ui-monospace, monospace; color: var(--section-fg); }
.axyo-site-intro .in-change { display: flex; align-items: center; gap: 0.8em; margin: 0; padding: 0.4em 0; font: 500 0.72em ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--section-accent); }
.axyo-site-intro .in-change::before, .axyo-site-intro .in-change::after { content: ''; flex: 1; height: 1px; background: var(--section-line); }
.axyo-site-intro .in-reply { display: flex; gap: 0.6em; margin: 0.4em 0 0; }
.axyo-site-intro .in-reply span { flex: 1; padding: 0.85em 1em; box-shadow: inset 0 0 0 1px var(--section-line); font-size: 0.9em; color: var(--section-muted); }
.axyo-site-intro .in-reply b { display: grid; place-items: center; padding: 0 1.3em; border-radius: 999px; background: var(--section-fg); color: var(--section-bg); font-size: 0.9em; }

@container (max-width: 56em) {
	.axyo-site-intro .in-thread-lab { grid-template-columns: minmax(0, 1fr); gap: 2.5em; }
	.axyo-site-intro .in-thread-side { position: static; }
}

/* On a phone the button is as wide as the column (the user, 2026-11-22). */
@container (max-width: 30em) {
	.axyo-site-intro .in-thread-go { display: flex; flex-direction: column; align-items: stretch; }
	.axyo-site-intro .in-thread-go > a { display: block; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.axyo-site-intro .in-thread-side { animation: intro-thread-left linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
		.axyo-site-intro .in-thread > li { animation: intro-thread-right linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
	}
}

@keyframes intro-thread-left { from { opacity: 0; translate: -3em 0; } to { opacity: 1; translate: 0 0; } }
@keyframes intro-thread-right { from { opacity: 0; translate: 3em 0; } to { opacity: 1; translate: 0 0; } }

/* The theme's lists space their items; the conversation keeps its own gap. */
.axyo-site-intro .in-thread > li + li { margin-top: 0; }

/* The legal pages (site:intro/document, brief), as the preview approved on 2026-11-22: the opening on the page's
   colour, the three lines on stone; each piece comes in from its own side. */
.axyo-site-intro.wp-block-axyo-section.axp:has(.doc-in) { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.axyo-site-intro.wp-block-axyo-section.axp:has(.doc-open) {
	--section-bg: var(--color-background);
	--section-fg: var(--color-text);
	--section-accent: var(--color-link);
	padding-top: calc(var(--axyo-top, 4rem) + clamp(3rem, 7vw, 6rem));
	background-color: var(--color-background);
	color: var(--color-text);
}
.axyo-site-intro .doc-in { container: doc / inline-size; width: 100%; max-width: 80em; margin-inline: auto; font-size: 1rem; line-height: 1.5; }
.axyo-site-intro.axp .doc-eyebrow { display: flex; align-items: center; gap: 0.9em; margin: 0; font-size: 0.75rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.2em; text-transform: uppercase; color: var(--section-accent); }
.axyo-site-intro .doc-eyebrow::before { content: ''; width: 3.5em; height: 1px; background: currentColor; }
.axyo-site-intro.axp .doc-h1 { max-width: none; margin: 0.3em 0 0; font: 800 clamp(2.75rem, 7cqi, 5.5rem) / 0.98 var(--axyo-font-heading); letter-spacing: -0.05em; text-wrap: balance; color: var(--section-fg); }
.axyo-site-intro .doc-h1 em { font-style: normal; color: var(--section-accent); }
.axyo-site-intro.axp .doc-lead { max-width: 40ch; margin: 1.4em 0 0; font: 500 clamp(1.125rem, 2cqi, 1.4rem) / 1.55 var(--axyo-font-heading); color: var(--section-fg); }
.axyo-site-intro.axp .doc-date { margin: 1.4rem 0 0; font-size: 0.875rem; line-height: 1.5; color: color-mix(in srgb, var(--section-fg) 82%, transparent); }
.axyo-site-intro.axp .doc-brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.axyo-site-intro.axp .doc-brief > li { display: block; margin: 0; padding: 0; }
.axyo-site-intro.axp .doc-brief b { display: block; margin-bottom: 0.5rem; font: 800 1.5rem / 1.2 var(--axyo-font-heading); letter-spacing: -0.03em; color: var(--section-accent); }
.axyo-site-intro.axp .doc-brief span { display: block; font-size: 1.0625rem; line-height: 1.6; color: var(--section-fg); }

@container doc (max-width: 56rem) {
	.axyo-site-intro.axp .doc-brief { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
	.axyo-site-intro .doc-open > * { animation: intro-doc-left 0.8s both; }
	.axyo-site-intro .doc-brief > li { animation: intro-doc-up 0.8s 0.2s both; }
	.axyo-site-intro .doc-brief > li:first-child { animation-name: intro-doc-left; }
	.axyo-site-intro .doc-brief > li:last-child { animation-name: intro-doc-right; }
}

@keyframes intro-doc-left { from { opacity: 0; translate: -3rem 0; } }
@keyframes intro-doc-right { from { opacity: 0; translate: 3rem 0; } }
@keyframes intro-doc-up { from { opacity: 0; translate: 0 3rem; } }
