/* ==========================================================================
   Le Dolomieu · Landing "The Craft in Becoming"
   Palette dalla tavola Brand Extension
   ========================================================================== */

:root {
    --c-ivory: #F7F4EE;
    --c-paper: #EFE9DF;
    --c-beige: #D9C9B7;
    --c-terra: #A96B4A;
    --c-terra-dark: #8A5539;
    --c-green: #6B7F68;
    --c-coal: #2E2E2E;
    --c-graphite: #3A3430;

    --color-bg: var(--c-ivory);
    --color-text: var(--c-graphite);
    --color-title: var(--c-coal);
    --color-accent: var(--c-terra);
    --color-muted: rgba(58, 52, 48, .66);
    --color-line: rgba(46, 46, 46, .16);
    --emblem-stitch: var(--c-ivory);

    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-mark: "Cinzel", "Times New Roman", serif;
    --font-text: "Jost", "Helvetica Neue", Arial, sans-serif;

    --gutter: clamp(1rem, 4vw, 3.5rem);
    --section-space: clamp(5rem, 12vw, 11rem);
    --max: 84rem;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --header-h: 4.5rem;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
ul[role="list"], ol { list-style: none; padding: 0; }
button, input { font: inherit; }

/* --- Base -------------------------------------------------------------- */
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-text);
    font-weight: 300;
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    color: var(--color-title);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    text-wrap: balance;
}
h2 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.6rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
h1 em, h2 em { font-style: italic; color: var(--c-terra); }
p { text-wrap: pretty; max-width: 38em; }

:is(h1, h2, h3, p, ul, ol, dl) + * { margin-block-start: 1em; }

a {
    color: currentColor;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: .08em;
    text-underline-offset: .3ex;
}
:focus-visible { outline: 2px solid var(--c-terra); outline-offset: 4px; border-radius: 2px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
    position: fixed; top: 1rem; left: 1rem; z-index: 9999;
    padding: .75rem 1rem;
    background: var(--c-coal); color: var(--c-ivory);
}

.intro {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--c-terra);
    font-family: var(--font-mark);
    font-size: .78rem;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.intro svg { flex: none; fill: currentColor; width: 1.75rem; height: 1.75rem; }
.intro + h2 { margin-block-start: .5em; }

/* --- Section pattern --------------------------------------------------- */
.section { position: relative; padding-block: var(--section-space); }
.section__inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; }
.section__header { max-width: 46rem; }
.section__text { color: var(--color-muted); }
.section__block--main { margin-block-start: clamp(2.5rem, 6vw, 5rem); }

/* --- Header ------------------------------------------------------------ */
.header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding-inline: var(--gutter);
    transition: background-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.scrolled .header {
    background: color-mix(in srgb, var(--c-ivory) 86%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--color-line);
}
.header__brand {
    display: flex; align-items: center; gap: .65rem;
    text-decoration: none; color: var(--c-coal);
    min-height: 44px;
}
.header__emblem { fill: var(--c-terra); width: 2rem; height: 2rem; transition: transform 1.2s var(--ease-out); }
.header__brand:hover .header__emblem { transform: rotate(45deg); }
.header__wordmark {
    font-family: var(--font-mark); font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
    opacity: 0; transform: translateY(.4rem); transition: opacity .5s, transform .5s var(--ease-out);
}
.scrolled .header__wordmark { opacity: 1; transform: none; }
.header__nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }

.lang-switch { display: flex; gap: .25rem; font-family: var(--font-mark); font-size: .78rem; letter-spacing: .14em; }
.lang-switch a {
    display: grid; place-items: center; min-width: 44px; min-height: 44px;
    text-decoration: none; color: var(--color-muted);
}
.lang-switch a[aria-current] { color: var(--c-coal); text-decoration: underline; text-decoration-color: var(--c-terra); text-underline-offset: .6em; }
.lang-switch a:hover { color: var(--c-terra); }

.header__cta {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 1.25rem;
    border: 1px solid var(--c-coal); border-radius: 999px;
    font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
    transition: background-color .3s, color .3s;
}
.header__cta:hover { background: var(--c-coal); color: var(--c-ivory); }
@media (max-width: 479px) { .header__cta { display: none; } }

/* --- Hero -------------------------------------------------------------- */
.section--hero {
    min-height: 100svh;
    display: grid; align-items: center;
    padding-block: calc(var(--header-h) + 1rem) 2.5rem;
    /* carta millimetrata da progettista */
    background:
        radial-gradient(ellipse at 50% 38%, transparent 0 30%, var(--c-ivory) 72%),
        repeating-linear-gradient(0deg, rgba(169, 107, 74, .07) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(90deg, rgba(169, 107, 74, .07) 0 1px, transparent 1px 48px),
        var(--c-ivory);
}
.section--hero .section__inner { display: grid; justify-items: center; text-align: center; }
.hero__emblem {
    position: relative;
    width: min(72vw, 44vh, 30rem);
    aspect-ratio: 1;
    margin-block-end: -1.5rem;
}
.hero__emblem-fallback,
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__emblem-fallback { fill: var(--c-terra); padding: 14%; }
.hero__canvas { opacity: 0; transition: opacity 1s; }
.has-webgl .hero__canvas { opacity: 1; }
.has-webgl .hero__emblem-fallback { opacity: 0; }

.hero__text { margin: 0; position: relative; z-index: 1; display: grid; justify-items: center; }
.status {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .45rem 1rem;
    border: 1px solid var(--color-line); border-radius: 999px;
    background: color-mix(in srgb, var(--c-ivory) 80%, transparent);
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.status__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-terra); box-shadow: 0 0 0 0 rgba(169, 107, 74, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .6rem rgba(169, 107, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 107, 74, 0); } }

.hero__title { display: grid; justify-items: center; gap: 1.5rem; margin-block-start: 1.5rem; }
.wordmark { display: grid; justify-items: center; font-family: var(--font-mark); color: var(--color-title); line-height: 1; }
.wordmark__le { font-size: clamp(1rem, .8rem + 1vw, 1.6rem); letter-spacing: .5em; margin-inline-start: .5em; }
.wordmark__name { font-size: clamp(3rem, 1.2rem + 8.5vw, 8.5rem); letter-spacing: .04em; margin-block: .08em .14em; }
.wordmark__place { font-size: clamp(.72rem, .66rem + .3vw, .95rem); letter-spacing: .42em; margin-inline-start: .42em; text-transform: uppercase; }
.hero__claim { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem); max-width: 22em; }
.hero__claim em { font-style: italic; color: var(--c-terra); }
.hero__kicker { font-family: var(--font-mark); font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--color-muted); max-width: none; }

.hero__scroll {
    margin-block-start: clamp(2rem, 5vh, 3.5rem);
    display: grid; justify-items: center; gap: .75rem;
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--color-muted);
    white-space: nowrap;
}
.hero__scroll-line { width: 1px; height: 3.5rem; background: linear-gradient(var(--c-terra), transparent); transform-origin: top; animation: draw-line 2.4s var(--ease-out) infinite; }
@keyframes draw-line { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* --- Reveal facciata: matita -> render ---------------------------------- */
.section--reveal { padding-block: 0; }
.reveal__stage {
    min-height: 100svh;
    width: min(100% - 2 * var(--gutter), var(--max));
    margin-inline: auto;
    padding-block: calc(var(--header-h) + 2rem) 3rem;
    display: grid; gap: clamp(1.5rem, 4vw, 3rem);
    align-content: center;
}
@media (min-width: 1024px) {
    .reveal__stage { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); align-items: center; }
}
.reveal__figure { position: relative; perspective: 1400px; }
.reveal__frame {
    position: relative;
    aspect-ratio: 1000 / 667;
    width: min(100%, 58svh * 1.5);
    margin-inline: auto;
    background: var(--c-ivory);
}
.reveal__render,
.reveal__sketch { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.reveal__render { mix-blend-mode: multiply; }
.reveal__sketch { clip-path: inset(0 0 0 var(--reveal, 100%)); }
.js .reveal__sketch { clip-path: inset(0 0 0 var(--reveal, 0%)); }
.reveal__pencil {
    position: absolute; top: -4%; bottom: -4%;
    left: var(--reveal, 0%);
    width: 1px; background: var(--c-terra);
    opacity: var(--pencil-opacity, 0);
}
.reveal__pencil::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: .7rem; height: .7rem; border-radius: 50%;
    background: var(--c-terra); transform: translate(-50%, -50%);
    box-shadow: 0 0 0 .5rem rgba(169, 107, 74, .15);
}
.reveal__labels {
    display: flex; justify-content: space-between;
    margin-block-start: 1rem;
    font-family: var(--font-mark); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--color-muted);
}

.reveal__notes { position: absolute; inset: 0; pointer-events: none; }
.note {
    position: absolute; left: var(--x); top: var(--y);
    display: flex; align-items: center; gap: .5rem;
    padding: .3rem .7rem;
    background: var(--c-ivory);
    border: 1px solid var(--c-terra);
    font-size: clamp(.62rem, .55rem + .3vw, .8rem); line-height: 1.3; letter-spacing: .04em;
    color: var(--c-coal);
    white-space: nowrap;
    transform: translate(-50%, -50%);
}
.note::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--c-terra); flex: none; }
.note--wood { transform: translate(-10%, -50%); }
.note--ground { transform: translate(-80%, -50%); }
@media (max-width: 639px) { .note { white-space: normal; max-width: 9.5rem; } }
@media (max-width: 479px) {
    .note--wood, .note--balcony { display: none; }
    .status { letter-spacing: .08em; font-size: .68rem; }
}

/* --- Disegno -> render (riusabile) ------------------------------------- */
.drawn { position: relative; overflow: hidden; background: var(--c-paper); }
.drawn__sketch,
.drawn__render { width: 100%; height: 100%; object-fit: cover; }
.drawn__render {
    position: absolute; inset: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.6s var(--ease-out);
}
.drawn.is-drawn .drawn__render { clip-path: inset(0 0 0 0); }
.drawn::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
    background: var(--c-terra); opacity: 0;
}
.drawn.is-drawn::after { animation: pencil-sweep 1.6s var(--ease-out); }
@keyframes pencil-sweep { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (hover: hover) {
    /* al passaggio torna al disegno, come sfogliare il progetto */
    .drawn.is-drawn:hover .drawn__render { clip-path: inset(0 0 0 100%); transition-duration: 1.1s; }
}

/* --- Tre mondi --------------------------------------------------------- */
.section--worlds { background: var(--c-paper); }
.worlds { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 640px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .worlds { grid-template-columns: repeat(3, 1fr); } .world:nth-child(2) { margin-block-start: 4rem; } }

.world { perspective: 1000px; }
.world__link {
    display: block; height: 100%;
    padding: 1rem 1rem 2rem;
    background: var(--c-ivory);
    text-decoration: none;
    box-shadow: 0 1px 0 var(--color-line), 0 30px 60px -40px rgba(46, 46, 46, .35);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .6s var(--ease-out), box-shadow .6s;
}
.world__link:hover { box-shadow: 0 1px 0 var(--color-line), 0 50px 80px -40px rgba(46, 46, 46, .45); }
.world__media { aspect-ratio: 4 / 3.2; transform: translateZ(30px); }
.world__emblem { fill: var(--c-terra); width: 2.75rem; height: 2.75rem; margin: -1.4rem auto 0; position: relative; background: var(--c-ivory); border-radius: 50%; padding: .35rem; transform: translateZ(60px); }
.world__name { text-align: center; margin-block-start: .75rem; transform: translateZ(40px); }
.world__text { text-align: center; color: var(--color-muted); margin-inline: auto; padding-inline: .5rem; font-size: .95em; transform: translateZ(20px); }
.world__link:focus-visible { outline-offset: 6px; }

/* --- La Dimora ---------------------------------------------------------- */
.stay { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1024px) { .stay { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .stay__text { position: sticky; top: calc(var(--header-h) + 2rem); } }
.stay__units-title { font-family: var(--font-mark); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--c-terra); margin-block-start: 2.5rem; }
.units { border-top: 1px solid var(--color-line); }
.units__row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    padding-block: .9rem;
    border-bottom: 1px solid var(--color-line);
}
.units dt { font-family: var(--font-display); font-size: 1.35rem; color: var(--c-coal); }
.units dt small { font-family: var(--font-text); font-size: .8rem; color: var(--color-muted); margin-inline-start: .35rem; }
.units dd { font-variant-numeric: tabular-nums; letter-spacing: .06em; white-space: nowrap; }

.features { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: 2rem; }
.features li { padding: .4rem .9rem; border: 1px solid var(--color-line); border-radius: 999px; font-size: .85rem; }
.features--numbered { display: grid; gap: 0; counter-reset: f; }
.features--numbered li { border: 0; border-bottom: 1px solid var(--color-line); border-radius: 0; padding: .9rem 0 .9rem 2.75rem; position: relative; font-size: 1rem; counter-increment: f; }
.features--numbered li::before { content: "0" counter(f); position: absolute; left: 0; font-family: var(--font-mark); font-size: .78rem; color: var(--c-terra); top: 1.1rem; }

.board { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); }
.board__item { aspect-ratio: 1000 / 714; }
.board__item--a { grid-column: 1 / -1; }
.board__item--b { grid-column: 1 / 8; }
.board__item--c { grid-column: 8 / -1; align-self: end; aspect-ratio: 3 / 4; }
.board__item--d { grid-column: 3 / -1; }

/* --- Cucina ------------------------------------------------------------ */
.section--kitchen { padding-block-start: 0; }
.kitchen__hero {
    position: relative; overflow: hidden;
    width: 100vw; margin-inline: calc(50% - 50vw);
    height: clamp(22rem, 78vh, 52rem);
}
.kitchen__image { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.dimension {
    position: absolute; left: 12%; right: 12%; bottom: 10%;
    color: var(--c-ivory);
    text-align: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
}
.dimension__line { width: 100%; height: .9rem; stroke: currentColor; stroke-width: 1.2; fill: none; overflow: visible; }
.dimension__line path { stroke-dasharray: 1; stroke-dashoffset: var(--dim, 0); }
.dimension__label { display: inline-block; margin-block-start: .6rem; font-family: var(--font-mark); font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; }

.kitchen { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 1024px) { .kitchen { grid-template-columns: 1fr 1fr; } .kitchen__pair { grid-column: 1 / -1; } }
.offer { display: grid; margin-block-start: 2rem; border-top: 1px solid var(--color-line); }
.offer li { display: flex; gap: 1rem; align-items: baseline; padding-block: .85rem; border-bottom: 1px solid var(--color-line); }
.offer li::before { content: ""; flex: none; width: .9rem; height: 1px; background: var(--c-terra); transform: translateY(-.3em); }
.kitchen__pair { display: grid; gap: clamp(.75rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .kitchen__pair { grid-template-columns: 7fr 5fr; align-items: end; } }
.kitchen__pair .drawn { aspect-ratio: 1000 / 714; }
.kitchen__pair .drawn:last-child { aspect-ratio: 4 / 5; }

/* --- Atelier ----------------------------------------------------------- */
.section--atelier { background: var(--c-paper); overflow: hidden; }
.seam { position: absolute; inset: 8% 0 auto; width: 100%; height: clamp(12rem, 30vw, 24rem); pointer-events: none; }
.seam__thread { fill: none; stroke: var(--c-terra); stroke-width: 1.6; stroke-dasharray: 7 7; opacity: .6; }
.seam__mask { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: var(--seam, 1); }
.atelier { display: grid; gap: clamp(3rem, 6vw, 6rem); position: relative; }
@media (min-width: 1024px) { .atelier { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.atelier__media { position: relative; padding-block-end: 18%; }
.atelier__main { aspect-ratio: 1000 / 666; }
.atelier__detail { position: absolute; right: -4%; bottom: 0; width: 46%; aspect-ratio: 1; border: .5rem solid var(--c-paper); }

/* --- Timeline (sezione scura) ------------------------------------------ */
.section--timeline {
    --color-bg: var(--c-coal);
    --color-text: rgba(247, 244, 238, .82);
    --color-title: var(--c-ivory);
    --color-muted: rgba(247, 244, 238, .6);
    --color-line: rgba(247, 244, 238, .18);
    background: var(--color-bg); color: var(--color-text);
    overflow: hidden;
}
.section--timeline h2 em { color: var(--c-beige); }
.section--timeline .intro { color: var(--c-beige); }
.timeline__blueprint { position: absolute; inset: 0; opacity: .14; pointer-events: none; }
.timeline__blueprint-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }
.timeline { display: grid; gap: 2.5rem; position: relative; padding-inline-start: 1.75rem; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 1px; background: var(--color-line); }
.timeline::after { background: var(--c-terra); transform-origin: top; transform: scaleY(var(--progress, .42)); }
@media (min-width: 1024px) {
    .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2.25rem 0 0; }
    .timeline::before, .timeline::after { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
    .timeline::after { transform-origin: left; transform: scaleX(var(--progress, .42)); }
}
.timeline__step { position: relative; }
.timeline__step::before {
    content: ""; position: absolute; left: -1.75rem; top: .45rem; transform: translateX(-50%);
    width: .8rem; height: .8rem; border-radius: 50%;
    background: var(--c-coal); border: 1px solid var(--c-beige);
}
@media (min-width: 1024px) { .timeline__step::before { left: 0; top: -2.25rem; transform: translate(0, -50%); } }
.timeline__step.is-done::before { background: var(--c-beige); }
.timeline__step.is-current::before { background: var(--c-terra); border-color: var(--c-terra); animation: pulse 2.2s infinite; }
.timeline__step--future { opacity: .7; }
.timeline__when { font-family: var(--font-mark); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-beige); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.timeline__now { padding: .1rem .55rem; border-radius: 999px; background: var(--c-terra); color: var(--c-ivory); font-size: .66rem; }
.timeline__title { margin-block-start: .5rem; }
.timeline__step p { color: var(--color-muted); font-size: .95em; }
.timeline__future { margin-block-start: clamp(3rem, 6vw, 5rem); aspect-ratio: 21 / 9; }
.section--timeline .drawn { background: #1f1f1f; }
.section--timeline .drawn__sketch { filter: invert(1) sepia(.3) brightness(.85); mix-blend-mode: screen; opacity: .9; }

/* --- San Cassiano ------------------------------------------------------ */
.place { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1024px) { .place { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; } }
.place__media { aspect-ratio: 1000 / 779; background: var(--c-ivory); }
.place__media .drawn__sketch, .place__media .drawn__render { object-fit: contain; }
.place__media .drawn__render { mix-blend-mode: multiply; }

/* --- Contatti ---------------------------------------------------------- */
.section--contact { background: var(--c-paper); text-align: center; }
.section--contact .section__inner { display: grid; justify-items: center; }
.section--contact .section__header { margin-inline: auto; }
.section--contact .section__header p { margin-inline: auto; }
.section--contact .intro { justify-content: center; }
.contact__emblem { fill: var(--c-terra); width: 5.5rem; height: 5.5rem; margin-block-end: 2rem; }
.contact__mail {
    display: inline-block; margin-block-start: 2.5rem;
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(2rem, 1rem + 5vw, 5rem); line-height: 1.1;
    color: var(--c-coal); text-decoration: none;
    background: linear-gradient(var(--c-terra), var(--c-terra)) 0 100% / 0 1px no-repeat;
    transition: background-size .8s var(--ease-out), color .3s;
    overflow-wrap: anywhere;
}
.contact__mail:hover { background-size: 100% 1px; color: var(--c-terra); }
.contact__data { display: grid; gap: 1.5rem; margin-block-start: 3.5rem; width: 100%; max-width: 56rem; }
@media (min-width: 640px) { .contact__data { grid-template-columns: repeat(3, 1fr); } }
.contact__data > div { border-top: 1px solid var(--color-line); padding-block-start: 1rem; }
.contact__data dt { font-family: var(--font-mark); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--c-terra); }
.contact__data dd { margin-block-start: .35rem; }
.contact__data a { display: inline-block; min-height: 44px; line-height: 44px; }
.contact__data address { font-style: normal; line-height: 1.5; }

/* --- Footer ------------------------------------------------------------ */
.footer { background: var(--c-coal); color: rgba(247, 244, 238, .7); font-size: .85rem; padding-block: 3rem; }
.footer__inner { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; gap: .5rem; }
.footer__inner > * + * { margin-block-start: 0; }
.footer__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-mark); letter-spacing: .18em; text-transform: uppercase; color: var(--c-ivory); }
.footer__brand svg { fill: var(--c-terra); }
.footer__note { font-size: .78rem; opacity: .75; }

/* --- Tema alternato (anteprima ?tema=alternato) ----------------------
   Hero, Cucina e Cantiere scuri: le sezioni "serali" della casa */
.theme-alt :is(.section--hero, .section--kitchen) {
    --color-bg: var(--c-coal);
    --color-text: rgba(247, 244, 238, .84);
    --color-title: var(--c-ivory);
    --color-muted: rgba(247, 244, 238, .62);
    --color-line: rgba(247, 244, 238, .18);
    background: var(--color-bg);
    color: var(--color-text);
}
.theme-alt :is(.section--hero, .section--kitchen) :is(h1, h2) em,
.theme-alt .hero__claim em { color: #C99474; }
.theme-alt .section--kitchen .intro { color: var(--c-beige); }
.theme-alt .section--hero {
    background:
        radial-gradient(ellipse at 50% 34%, rgba(169, 107, 74, .16) 0 18%, transparent 46%),
        radial-gradient(ellipse at 50% 38%, transparent 0 30%, var(--c-coal) 74%),
        repeating-linear-gradient(0deg, rgba(217, 201, 183, .06) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(90deg, rgba(217, 201, 183, .06) 0 1px, transparent 1px 48px),
        var(--c-coal);
}
.theme-alt .hero__claim,
.theme-alt .section--kitchen :is(p, li) { font-weight: 400; }
.theme-alt .section--kitchen .intro svg { fill: #C99474; }
.theme-alt .status { background: rgba(46, 46, 46, .7); border-color: var(--color-line); color: var(--c-ivory); }
.theme-alt .section--kitchen .drawn { background: #1f1f1f; }
.theme-alt .section--kitchen .drawn__sketch { filter: invert(1) sepia(.3) brightness(.85); mix-blend-mode: screen; opacity: .9; }
.theme-alt .section--kitchen .offer li::before { background: #C99474; }

/* header sopra l'hero scuro, finché non si scorre */
.theme-alt body:not(.scrolled) .header { --color-muted: rgba(247, 244, 238, .6); }
.theme-alt body:not(.scrolled) :is(.header__brand, .header__cta, .lang-switch a[aria-current]) { color: var(--c-ivory); }
.theme-alt body:not(.scrolled) .header__cta { border-color: rgba(247, 244, 238, .6); }
.theme-alt body:not(.scrolled) .header__cta:hover { background: var(--c-ivory); color: var(--c-coal); }

/* etichetta anteprima per il confronto col cliente */
.preview-badge {
    position: fixed; left: 1rem; bottom: 1rem; z-index: 60;
    display: flex; align-items: center; gap: .75rem;
    padding: .5rem .5rem .5rem 1rem;
    background: var(--c-ivory); color: var(--c-coal);
    border: 1px solid var(--c-terra); border-radius: 999px;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
    font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
}
.preview-badge a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border-radius: 999px; background: var(--c-coal); color: var(--c-ivory); text-decoration: none; }
.preview-badge[hidden] { display: none; }

/* --- Stati iniziali per le animazioni JS ------------------------------ */
.js [data-fade] { opacity: 0; transform: translateY(2rem); }

/* --- Motion ridotto ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .drawn__render { clip-path: none; }
    .js .reveal__sketch { clip-path: inset(0 0 0 100%); }
    .js [data-fade] { opacity: 1; transform: none; }
}
