/*
 * The opening of the page Chi sono (site:hero/story), as the preview approved on 2026-11-21: on the page's colour,
 * the words on the left, the portrait on the right with a square of stone behind its corner. Colours from the palette;
 * the layout follows the band's width; the portrait comes in from the right with the scroll.
 */

.axyo-site-hero {
	--section-bg: var(--color-background);
	background-color: var(--color-background);
	container-type: inline-size;
	overflow-x: clip;
}

/* Chi sono e Officina aprono la pagina sotto l'intestazione fissa: sopra lo stesso spazio di Frequenze (l'utente,
   2026-11-22), la formula di un'apertura del catalogo (.axp-hero). */
.axyo-site-hero.wp-block-axyo-section.axp {
	padding-top: calc(4rem + var(--axp-space) + var(--hdr-extra, 0px));
}

.axyo-site-hero .story-open {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 5vw;
	align-items: center;
}

.axyo-site-hero .story-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.9em;
	margin: 0;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--section-accent);
}

.axyo-site-hero .story-eyebrow::before { content: ''; width: 3.5em; height: 1px; background: currentColor; }

.axyo-site-hero .story-title {
	max-width: none;
	margin: 0.22em 0 0;
	font: 800 clamp(2.75em, 7.4vw, 6.5em) / 0.95 var(--axyo-font-heading);
	letter-spacing: -0.05em;
}

.axyo-site-hero .story-title em { font-style: normal; color: var(--section-accent); }

.axyo-site-hero .story-lead {
	max-width: 40ch;
	margin: 1.55em 0 0;
	font: 500 clamp(1.0625em, 1.45vw, 1.3125em) / 1.55 var(--axyo-font-heading);
}

.axyo-site-hero .story-hint {
	display: flex;
	align-items: center;
	gap: 0.7em;
	margin: 2.4em 0 0;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--section-muted);
}

.axyo-site-hero .story-hint::after { content: ''; width: 0.08em; height: 2.4em; background: currentColor; transform-origin: top; }

.axyo-site-hero .story-photo { position: relative; z-index: 0; margin: 0; }
.axyo-site-hero .story-photo::after { content: ''; position: absolute; z-index: -1; inset: auto -1.2em -1.2em auto; width: 45%; height: 45%; background: var(--color-section-light-bg); }
.axyo-site-hero .story-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.15); }

@container (max-width: 56em) {
	.axyo-site-hero .story-open { grid-template-columns: minmax(0, 1fr); }
}

@container (max-width: 48em) {
	.axyo-site-hero .story-photo::after { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
	.axyo-site-hero .story-hint::after { animation: hero-drop 1.8s infinite; }

	@supports (animation-timeline: view()) {
		.axyo-site-hero .story-photo { animation: hero-right linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
	}
}

@keyframes hero-drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes hero-right { 0% { opacity: 0; translate: 35% 0; } 28%, 72% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 35% 0; } }

.axyo-site-hero .story-words { min-width: 0; }

/* The opening of the page Officina (site:hero/desk), as the preview approved on 2026-11-21: the words and two doors on
   the left, a sheet pinned on the desk on the right (white paper in both themes, with the dark band's ink). */
.axyo-site-hero .desk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 5cqi; align-items: center; }
.axyo-site-hero .desk-eyebrow { margin: 0; font: 500 0.75em ui-monospace, monospace; letter-spacing: 0.08em; color: var(--section-accent); }
.axyo-site-hero .desk-title { margin: 0.3em 0 0; font: 800 clamp(2.4em, 5.6vw, 5em) / 0.98 var(--axyo-font-heading); letter-spacing: -0.05em; }
.axyo-site-hero .desk-title em { font-style: normal; color: var(--section-accent); }
.axyo-site-hero .desk-lead { max-width: 46ch; margin: 1.4em 0 0; font-size: 1.15em; line-height: 1.6; color: var(--section-muted); }
.axyo-site-hero .desk-doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.8em; max-width: 36em; margin-top: 2em; }
.axyo-site-hero .desk-door { position: relative; display: grid; gap: 0.3em; padding: 1em 2.6em 1em 1.1em; border-radius: 0.5em; background: var(--section-fg); color: var(--section-bg); text-decoration: none; transition: background 0.3s, color 0.3s, translate 0.3s; }
.axyo-site-hero .desk-door + .desk-door { background: transparent; color: var(--section-fg); box-shadow: inset 0 0 0 1px var(--section-line); }
.axyo-site-hero .desk-door small { font: 500 0.64em ui-monospace, monospace; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.axyo-site-hero .desk-door b { font: 700 1em / 1.25 var(--axyo-font-heading); letter-spacing: -0.01em; }
.axyo-site-hero .desk-door span { position: absolute; top: 50%; right: 1em; translate: 0 -50%; font-size: 1.1em; }
.axyo-site-hero .desk-door:is(:hover, :focus-visible) { translate: 0 -0.15em; background: var(--section-accent); color: var(--section-bg); box-shadow: none; }
.axyo-site-hero .desk-door:focus-visible { outline: 2px solid var(--section-accent); outline-offset: 0.25em; }

.axyo-site-hero .desk-note { position: relative; padding: 1.6em 1.6em 1.4em; background: var(--color-section-dark-text); color: var(--color-section-dark-bg); box-shadow: 0 1.6em 3em -1.6em var(--color-section-dark-bg), 0 0 0 1px color-mix(in srgb, var(--color-section-dark-bg) 12%, transparent); rotate: 2deg; }
.axyo-site-hero .desk-note::before { content: ''; position: absolute; top: -0.6em; left: 50%; width: 4.5em; height: 1.2em; translate: -50% 0; background: color-mix(in srgb, var(--section-accent) 22%, var(--color-section-dark-text)); opacity: 0.85; rotate: -3deg; }
.axyo-site-hero .desk-note-h { margin: 0; font: 500 0.7em ui-monospace, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--color-section-dark-bg) 62%, transparent); }
.axyo-site-hero .desk-note dl { display: grid; gap: 0.9em; margin: 1em 0 0; }
.axyo-site-hero .desk-note dt { font: 500 0.64em ui-monospace, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--color-section-dark-bg) 58%, transparent); }
.axyo-site-hero .desk-note dd { margin: 0.2em 0 0; padding-bottom: 0.55em; border-bottom: 1px dashed color-mix(in srgb, var(--color-section-dark-bg) 18%, transparent); font: 600 1em / 1.4 var(--axyo-font-heading); letter-spacing: -0.01em; }
.axyo-site-hero .desk-note dd.is-hand { font-family: inherit; font-size: 1.05em; font-weight: 500; line-height: 1.45; letter-spacing: 0; color: color-mix(in srgb, var(--color-section-dark-bg) 74%, transparent); }

@container (max-width: 56em) {
	.axyo-site-hero .desk { grid-template-columns: minmax(0, 1fr); gap: 2.5em; }
	.axyo-site-hero .desk-doors { grid-template-columns: minmax(0, 1fr); }
	.axyo-site-hero .desk-note { rotate: 1deg; }
}

@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.axyo-site-hero .desk-words { animation: hero-desk-left linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
		.axyo-site-hero .desk-note { animation: hero-desk-right linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.axyo-site-hero * { animation: none; }
}

@keyframes hero-desk-left { from { opacity: 0; translate: -3em 0; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-desk-right { from { opacity: 0; translate: 3em 0; } to { opacity: 1; translate: 0 0; } }
