/* ---------- The home story below the first screen (blocks manifesto, scenes, house-life,
   tell): loaded without blocking, only on pages that have them. ---------- */
/* ---------- Shared ---------- */
.story { position: relative; margin: 0; }
.scenes__head p, .story__eyebrow { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted, var(--c-fumo)); }
.story.is-dark { background: var(--c-ink); color: var(--c-calce); --muted: var(--c-cenere); --fg: var(--c-calce); }

/* ---------- 1 · The sentence that lights up ---------- */
.manifesto { padding: clamp(6rem, 3rem + 12vw, 14rem) var(--gutter); background: var(--c-calce); }
.manifesto__text > * { margin: 0; font: inherit; }
.manifesto__text { max-width: 22ch; margin: 0 auto; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 1rem + 3.8vw, 5rem); line-height: 1.18; text-transform: uppercase; letter-spacing: 0.01em; text-align: center; color: var(--c-ink); }
.manifesto__text em { font-style: normal; color: var(--c-pietra-scura); }
.manifesto .w { transition: opacity 500ms ease; }
.manifesto .w.is-dim { opacity: 0.12; }
.manifesto .arch { display: inline-block; width: 0.92em; height: 1.02em; margin: 0 0.02em; vertical-align: -0.12em; border-radius: 999px 999px 0 0; background: var(--img) center / cover; transition: width 700ms var(--ease-out), opacity 500ms ease; }
.manifesto .arch.is-dim { width: 0.06em; opacity: 0; }

/* ---------- 2 · What makes you say yes ---------- */
.scenes { padding: clamp(5rem, 3rem + 7vw, 10rem) var(--gutter) clamp(4rem, 2rem + 6vw, 8rem); overflow: clip; }
.scenes__inner { max-width: var(--max, 78rem); margin: 0 auto; }
.scenes__head { margin: 0; }
.scenes__head h2, .scenes__title { margin: 0 0 clamp(2.5rem, 1.5rem + 3vw, 4.5rem); max-width: 18ch; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1.05; color: var(--c-calce); }
.scenes__list { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid rgb(235 235 235 / 0.22); }
.scenes__list li { border-block-end: 1px solid rgb(235 235 235 / 0.22); }
.scenes__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.1rem, 0.6rem + 1.6vw, 2.25rem) 0; color: var(--c-calce); text-decoration: none; transition: opacity 300ms ease; }
.scenes__word { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 0.8rem + 5.2vw, 6.5rem); line-height: 0.95; letter-spacing: 0.01em; transition: translate 500ms var(--ease-out); }
.scenes__count { justify-self: end; font-size: 1rem; color: var(--c-cenere); white-space: nowrap; }
.scenes__count b { margin-inline-end: 0.25em; font-size: 1.5rem; font-weight: 500; color: var(--c-calce); font-variant-numeric: tabular-nums; }
.scenes__row .icon { width: 2rem; height: 2rem; color: var(--c-pietra); transition: translate 400ms var(--ease-out); }
.scenes__thumb { display: none; }
@media (hover: hover) {
	.scenes__list:hover .scenes__row:not(:hover) { opacity: 0.28; }
	.scenes__row:hover .scenes__word { translate: 0.9rem 0; }
	.scenes__row:hover .icon { translate: 8px 0; }
}
.scenes__row:focus-visible { outline: 2px solid var(--c-pietra); outline-offset: 4px; }
.scenes__float { position: absolute; z-index: 2; top: 0; left: 0; width: clamp(12rem, 17vw, 18rem); aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; pointer-events: none; opacity: 0; scale: 0.9; transition: opacity 300ms ease, scale 500ms var(--ease-out); box-shadow: 0 40px 70px -30px rgb(0 0 0 / 0.6); }
.scenes__float.is-on { opacity: 1; scale: 1; }
.scenes__float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 47.99em) {
	.scenes__float { display: none; }
	.scenes__row { grid-template-columns: 1fr auto; row-gap: 0.4rem; }
	.scenes__thumb { display: block; grid-row: span 2; grid-column: 2; width: 4.25rem; height: 5.5rem; border-radius: 999px 999px 0 0; background: var(--img) center / cover; }
	.scenes__count { grid-column: 1; justify-self: start; }
	.scenes__row .icon { display: none; }
}

/* ---------- 3 · The life of a house ----------
   Plain list and drawing; with story.js (.is-live) the screen holds still and the steps
   and the drawing change as one scrolls. */
.life { background: var(--c-calce); color: var(--c-ink); }
.life__pin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: clamp(4rem, 2rem + 5vw, 8rem) var(--gutter); }
.life__head { margin: 0; }
.life__title, .life__head h2 { margin: 0; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); line-height: 1.05; }
.life__head p { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-fumo); }
.life__figure { display: flex; align-items: center; justify-content: center; min-height: 0; }
.life__steps { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; counter-reset: life-step; }
.life__step { counter-increment: life-step; }
.life__step p:first-child { margin: 0 0 1rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-pietra-scura); }
.life__step p:first-child::before { content: counter(life-step, decimal-leading-zero); margin-inline-end: 0.75em; font-variant-numeric: tabular-nums; }
.life__step h3 { margin: 0 0 1rem; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.12; }
.life__step p:not(:first-child) { max-width: 34ch; margin: 0; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem); line-height: 1.55; color: var(--c-fumo); }
.life__rail { display: none; }
@media (min-width: 64em) {
	.life__pin { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(1.5rem, 4vw, 4rem); }
	.life__head { grid-column: 1; grid-row: 1; }
	.life__steps { grid-column: 1; grid-row: 2; }
	.life__figure { grid-column: 2; grid-row: 1 / -1; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
}
.life.is-live { height: calc(var(--steps) * 70vh + 100vh); }
.life.is-live .life__pin { position: sticky; top: var(--header-h); grid-template-rows: auto 1fr; height: calc(100svh - var(--header-h)); padding-block: clamp(2rem, 1rem + 3vw, 4rem); overflow: clip; }
.life.is-live .life__figure { position: static; align-self: stretch; }
.life.is-live .life__steps { position: relative; display: block; align-self: center; min-height: 15rem; }
.life.is-live .life__step { position: absolute; inset: 0; opacity: 0; translate: 0 24px; transition: opacity 350ms ease, translate 500ms var(--ease-out); pointer-events: none; }
.life.is-live .life__step.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.life.is-live .life__rail { position: absolute; display: block; inset-inline: var(--gutter); bottom: 1.5rem; height: 1px; background: var(--c-nebbia); }
.life__rail span { display: block; width: 100%; height: 100%; background: var(--c-ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.house { width: 100%; height: auto; max-height: 100%; overflow: visible; fill: none; stroke: var(--c-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.house text { fill: var(--c-ink); stroke: none; font: 500 17px var(--f-body, "Jost"), sans-serif; letter-spacing: 0.06em; }
.house .house__soft { stroke-width: 0.9; opacity: 0.6; }
.house .house__fill { fill: var(--c-calce); stroke: none; }
.house .house__dot { fill: var(--c-ink); stroke: none; }
.house__layer { stroke: var(--c-pietra-scura); stroke-width: 2; opacity: 0; transition: opacity 300ms ease; }
.house__layer text { fill: var(--c-pietra-scura); }
.house__layer .house__big { font-size: 44px; }
.house__layer path, .house__layer circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-in-out, ease-in-out); }
.house__layer.is-on { opacity: 1; }
.house__layer.is-on path, .house__layer.is-on circle { stroke-dashoffset: 0; }
.house__layer .house__guide { stroke-width: 0.8; stroke-dasharray: 4 5; stroke-dashoffset: 0; opacity: 0.7; }
.house__layer .house__grid path { stroke-width: 0.6; opacity: 0.25; stroke-dasharray: none; stroke-dashoffset: 0; }
.house__layer .house__plan { stroke-dasharray: 6 5; stroke-dashoffset: 0; }
.house__layer .house__glow { fill: rgb(180 155 116 / 0.28); stroke: none; }
.house__layer .house__stone { fill: rgb(125 104 73 / 0.25); }
@media (max-width: 63.99em) {
	.life.is-live .life__pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 1rem; }
	.life.is-live .life__figure { grid-column: 1; grid-row: 2; }
	.life.is-live .life__steps { grid-row: 3; align-self: end; min-height: 14rem; margin-block-end: 1rem; }
}

/* ---------- 4 · Tell us ---------- */
.tell { padding: clamp(5rem, 3rem + 8vw, 11rem) var(--gutter) clamp(4rem, 2rem + 5vw, 7rem); background: var(--c-ink) url("../img/brand/muro-chiaro.svg") center / 1600px; }
.tell::before { content: ""; position: absolute; inset: 0; background: rgb(20 20 20 / 0.93); }
.tell__inner { position: relative; max-width: 60rem; margin: 0 auto; text-align: center; }
.tell__pinnacle { display: block; margin: 0 auto 2rem; width: auto; height: 3.5rem; }
.tell__head p { color: var(--c-cenere); }
.tell__head h2, .tell__title { margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem); max-width: 18ch; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1.08; color: var(--c-calce); }
.tell__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2rem; margin-block-start: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.tell__wa { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.75rem; padding: 0 2rem; background: var(--c-calce); color: var(--c-ink); font-size: 1.125rem; font-weight: 500; text-decoration: none; transition: transform 150ms var(--ease-out); }
.tell__wa:active { transform: scale(0.97); }
.tell__wa .icon { width: 1.4rem; height: 1.4rem; }
.tell__mail { color: var(--c-cenere); text-underline-offset: 0.3em; }
.tell__live { margin-block-start: clamp(3rem, 2rem + 4vw, 6rem); padding-block-start: 2rem; border-block-start: 1px solid var(--c-ardesia); color: var(--c-cenere); }
.tell__live p { margin: 0.35rem 0; }
.tell__live a { color: var(--c-calce); }
.tell__status { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-calce); font-size: 1.125rem; }
.tell__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c-cenere); }
.tell.is-open .tell__dot { background: #7e8468; box-shadow: 0 0 0 4px rgb(126 132 104 / 0.25); }

/* The message box at the end (on dark). */
.smart--message { --ink: var(--c-calce); --soft: var(--c-cenere); --rule: var(--c-pietra); --mark: rgb(180 155 116 / 0.22); max-width: 52rem; margin-inline: auto; text-align: start; }
.smart--message .smart__box { font-size: clamp(1.375rem, 1.1rem + 1vw, 2.125rem); line-height: 1.55; border-block-end-width: 1px; }
.smart--message .smart__mirror { min-height: calc(3 * 1.55em); }
.smart--message .smart__add { justify-content: flex-start; }
.smart--message .smart__add button { border-color: var(--c-ardesia); }
.tell__form { margin: 0; }
