/* Hotel Films, di Francesco Pierini. Static, local-first visual system. Palette «Ora blu». */
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --notte: #101A26;
  --notte-alta: #172433;
  --intonaco: #E9E3D8;
  --nebbia: #8FA0B3;
  --lampada: #F2B661;
  --linea: rgba(233, 227, 216, 0.14);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --page-pad: clamp(1.25rem, 4vw, 4rem);
  --content: 76rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--notte); }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--intonaco);
  background: var(--notte);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

::selection { color: var(--notte); background: var(--intonaco); }

a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { outline: 3px solid var(--lampada); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  color: var(--notte);
  background: var(--lampada);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(calc(100% - (var(--page-pad) * 2)), var(--content)); margin-inline: auto; }
.narrow { max-width: 45rem; }

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--intonaco);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__inner { min-height: 5.5rem; }
.wordmark { display: inline-grid; gap: 0.1rem; text-decoration: none; line-height: 1; }
.wordmark__main { font-family: var(--serif); font-optical-sizing: auto; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.15rem); font-weight: 600; letter-spacing: -0.01em; }
.wordmark__sub { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; }

.header-cta {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--lampada);
}
.header-cta::after { display: block; width: 100%; height: 1px; margin-top: 0.35rem; background: currentColor; content: ""; transform-origin: left; transition: transform 220ms var(--ease); }
.header-cta:hover::after { transform: scaleX(0.45); }

/* Hero. Base state is static and readable: no JS, reduced motion, or a font that
   never loaded all land here. hero.js adds .is-portal-on when the camera can run. */
.hero {
  position: relative;
  color: var(--intonaco);
  background: var(--notte);
  isolation: isolate;
  --frame-w: min(920px, 74vw, 92svh);
}
.hero-stage { position: relative; }
.hero-open { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; }

.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 26, 38, 0.55) 0%, rgba(16, 26, 38, 0.18) 28%, rgba(16, 26, 38, 0.2) 50%, rgba(16, 26, 38, 0.72) 74%, rgba(16, 26, 38, 0.92) 100%);
}

.hero-frame {
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 50%;
  width: var(--frame-w);
  aspect-ratio: 16 / 9;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(233, 227, 216, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  background: #000;
}
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hero-frame__veil { position: absolute; inset: 0; pointer-events: none; background: rgba(16, 26, 38, 0.28); }


.hero-bottom {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  bottom: clamp(1.5rem, 6svh, 4rem);
  left: var(--page-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26ch);
  gap: 1.25rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-title {
  max-width: none;
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.75rem);
  line-height: 1.08;
  /* One optical size everywhere, so the SVG clip word matches the live heading. */
  font-optical-sizing: none;
  font-variation-settings: "opsz" 96;
}
.hero-title__notata, .hero-title__vivere { display: block; }
.hero-title__notata { transition: opacity 900ms var(--ease); }
.hero.is-alive .hero-title__notata { opacity: 0.4; }

/* "Ma tu puoi farla vivere" comes alive on the first scroll: slow drifting light
   from the sunset the camera is about to enter (amber, sun, dusk rose, sky),
   painted inside the letters over the plaster colour. */
@property --alive { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --b1 { syntax: "<percentage>"; inherits: false; initial-value: 10%; }
@property --b2 { syntax: "<percentage>"; inherits: false; initial-value: 45%; }
@property --b3 { syntax: "<percentage>"; inherits: false; initial-value: 80%; }
@property --b4 { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
.hero-title__vivere {
  color: transparent;
  background-image:
    radial-gradient(38% 140% at var(--b1) 55%, rgba(242, 182, 97, var(--alive)) 0, rgba(242, 182, 97, 0) 70%),
    radial-gradient(30% 160% at var(--b2) 35%, rgba(255, 228, 186, var(--alive)) 0, rgba(255, 228, 186, 0) 70%),
    radial-gradient(42% 150% at var(--b3) 65%, rgba(222, 141, 122, var(--alive)) 0, rgba(222, 141, 122, 0) 72%),
    radial-gradient(34% 150% at var(--b4) 45%, rgba(157, 182, 208, var(--alive)) 0, rgba(157, 182, 208, 0) 70%),
    linear-gradient(var(--intonaco), var(--intonaco));
  -webkit-background-clip: text;
  background-clip: text;
  transition: --alive 1400ms var(--ease);
}
.hero.is-alive .hero-title__vivere {
  --alive: 1;
  animation: hero-b1 11s ease-in-out infinite alternate, hero-b2 13s ease-in-out infinite alternate,
    hero-b3 9s ease-in-out infinite alternate, hero-b4 15s ease-in-out infinite alternate;
}
@keyframes hero-b1 { to { --b1: 70%; } }
@keyframes hero-b2 { to { --b2: 5%; } }
@keyframes hero-b3 { to { --b3: 35%; } }
@keyframes hero-b4 { to { --b4: 95%; } }
.hero-sub p { margin: 0 0 1.1rem; color: var(--intonaco); font-size: 1rem; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) {
  /* Still alive, just not moving. */
  .hero-title__vivere { --alive: 1; }
}

.portal-art { display: none; }

.portal-scene { position: relative; display: grid; min-height: 80svh; overflow: hidden; }
.portal-field { position: absolute; inset: 0; }
.portal-field img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(var(--field-scale, 1)); }
.portal-content { position: relative; display: grid; align-content: center; padding-block: clamp(5rem, 12vw, 9rem); background: rgba(16, 26, 38, 0.6); }
.portal-content h2 { margin-bottom: 1.5rem; }
.portal-content p { margin: 0; }

/* Camera on */
.hero.is-portal-on { height: 420svh; }
.is-portal-on .hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.is-portal-on .hero-open { position: absolute; inset: 0; height: auto; min-height: 0; isolation: isolate; }
/* Dims the film so the word-window reads against it. */
.is-portal-on .hero-open::after { position: absolute; z-index: 4; inset: 0; background: rgba(16, 26, 38, 0.72); content: ""; opacity: var(--dim, 0); pointer-events: none; }
.is-portal-on .hero-frame { will-change: transform; }
.is-portal-on .portal-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.is-portal-on .portal-art text {
  font-family: var(--serif);
  font-size: 100px;
  font-weight: 800;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 96;
  font-kerning: none;
  font-variant-ligatures: none;
  letter-spacing: 0;
}
.is-portal-on .portal-scene { position: absolute; z-index: 1; inset: 0; min-height: 0; pointer-events: none; }
.is-portal-on .portal-field { clip-path: url(#portal-clip); opacity: var(--field-opacity, 0); }
.is-portal-on .portal-content { position: absolute; inset: 0; opacity: var(--content-opacity, 0); }
.is-portal-on.is-landed .portal-scene { pointer-events: auto; }

@media (max-width: 64rem) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-sub { max-width: 40ch; }
}
@media (max-width: 55rem) {
  .hero { --frame-w: min(920px, 88vw, 92svh); }
  .hero.is-portal-on { height: 340svh; }
  /* Portrait screens see a narrow slice: keep the sunlit sky behind the word. */
  .portal-field img { object-position: 36% 50%; }
}

.final__media,
.card__media {
  position: relative;
  overflow: hidden;
  background: var(--notte-alta);
}

.final__media::after,
.card__media::after {
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--linea);
  content: "";
  pointer-events: none;
}

.eyebrow,
.slot-tag {
  margin: 0 0 1.1rem;
  color: var(--nebbia);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; text-wrap: balance; }
h1 { max-width: 18ch; margin-bottom: 1.5rem; font-size: clamp(3.1rem, 5vw, 5rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
h2 { max-width: 16ch; margin-bottom: 1.5rem; font-size: clamp(2.65rem, 5vw, 5rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
h3 { margin-bottom: 0.8rem; font-size: clamp(1.8rem, 2.2vw, 2.5rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
p { max-width: 68ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn--primary { color: var(--notte); background: var(--lampada); font-weight: 600; }
.btn--primary:hover { background: #F6C784; }
.btn--ghost { border-color: rgba(233, 227, 216, 0.4); color: var(--intonaco); }
.btn--ghost:hover { color: var(--intonaco); background: rgba(233, 227, 216, 0.08); }
.btn--wide { width: min(100%, 19rem); }
.micro { margin: 1rem 0 0; color: var(--nebbia); font-size: 0.76rem; line-height: 1.45; }

.slot-tag, .slot-label, .slot-note, .slot-name { position: relative; z-index: 1; }
.slot-label { font-family: var(--serif); font-optical-sizing: auto; font-size: clamp(1.5rem, 2.7vw, 2.45rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.slot-note { max-width: 30rem; margin-top: 0.75rem; color: var(--nebbia); font-size: 0.82rem; line-height: 1.45; }

.section { padding-block: clamp(5rem, 11vw, 10rem); }
.section--plain { background: var(--notte); }
.section--plain p:not(.eyebrow) { margin-bottom: 1.25rem; }
.section--plain .eyebrow, .section--works .eyebrow { color: var(--nebbia); }

.section--path { color: var(--intonaco); background: var(--notte); }
.section--path h2 { max-width: 17ch; }
.lead { max-width: 60ch; margin-bottom: clamp(3rem, 7vw, 6rem); color: var(--nebbia); }

/* Emozione. Base: every step readable, the sky already warm. emozione.js
   dims the steps it has not reached and scrubs --warm and --thread with the scroll. */
@property --warm { syntax: "<number>"; inherits: true; initial-value: 0.7; }
.feel { position: relative; display: grid; min-height: 100svh; align-content: center; overflow: hidden; background: var(--notte); --warm: 0.7; --thread: 1; }
/* The sun climbs with --warm: the horizon glow rises from below the fold toward the steps. */
.feel__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 70% at 78% calc(135% - var(--warm) * 45%), rgba(242, 182, 97, calc(var(--warm) * 0.7)) 0, rgba(242, 182, 97, 0) 68%),
    radial-gradient(70% 60% at 25% calc(140% - var(--warm) * 40%), rgba(222, 141, 122, calc(var(--warm) * 0.55)) 0, rgba(222, 141, 122, 0) 70%),
    linear-gradient(to top, rgba(157, 182, 208, calc(var(--warm) * 0.18)), rgba(157, 182, 208, 0) 75%);
}
.feel__inner { position: relative; }
.feel h2 { max-width: 14ch; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.feel__thread { position: relative; height: 1px; margin-bottom: 2rem; background: var(--linea); }
.feel__thread::after { position: absolute; inset: 0; background: linear-gradient(90deg, var(--nebbia), #DE8D7A 60%, var(--lampada)); content: ""; transform: scaleX(var(--thread)); transform-origin: left; }
.feel__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.feel__step h3 { margin-bottom: 0.6rem; font-size: clamp(1.6rem, 2.2vw, 2.2rem); }
.feel__step p { margin: 0; color: var(--intonaco); font-size: 0.98rem; }
.feel__step:last-child h3 { color: #DE8D7A; }
.feel.is-live .feel__step { opacity: 0.28; transition: opacity 600ms var(--ease); }
.feel.is-live .feel__step.is-on { opacity: 1; }
.feel__source { max-width: 52ch; margin: clamp(3.5rem, 8vw, 6rem) 0 0; color: rgba(233, 227, 216, 0.78); font-size: 0.82rem; line-height: 1.5; }
.feel__source cite { font-style: italic; }

/* Line icons (Lucide). Every element has pathLength="1", so the stroke can draw itself. */
.icon { display: block; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.icon > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.feel__icon { width: 3rem; height: 3rem; margin-bottom: 1.25rem; color: var(--intonaco); }
.feel__step:last-child .feel__icon { color: #DE8D7A; }
.feel.is-live .feel__icon > * { stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--ease); }
.feel.is-live .feel__step.is-on .feel__icon > * { stroke-dashoffset: 0; }

/* Tempi. A week of set against a single flight: an illustration, not data. */
.pace { background: var(--notte-alta); }
.pace h2 { max-width: 13ch; }
.pace__lead { max-width: 56ch; margin-bottom: clamp(3rem, 6vw, 4.5rem); color: var(--nebbia); }
.pace__compare { display: grid; grid-template-columns: 1fr 1fr; max-width: 64rem; border-top: 1px solid var(--linea); }
.pace__side { padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 0 0; }
.pace__side--ours { padding-left: clamp(1.5rem, 4vw, 3.5rem); border-left: 1px solid var(--linea); }
.pace__who { margin-bottom: 1.75rem; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; }
.pace__side--old .pace__who { color: var(--nebbia); }
.pace__side--ours .pace__who { color: #DE8D7A; }
.pace__facts { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.pace__facts li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.pace__side--old .pace__facts li { color: var(--nebbia); }
.pace__side--ours .pace__facts li { color: var(--intonaco); }
.pace__icon { width: 2.25rem; height: 2.25rem; }
.pace__side--ours .pace__icon { width: 3rem; height: 3rem; color: #DE8D7A; }
.pace__close { margin: clamp(3rem, 6vw, 4.5rem) 0 0; font-family: var(--serif); font-optical-sizing: auto; font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 500; line-height: 1.1; }
/* The old way draws itself slowly, item after item; the flight is done at once. */
.pace.is-live .pace__icon > * { stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease); }
.pace.is-live .pace__facts li { opacity: 0.2; transition: opacity 700ms var(--ease); }
.pace.is-live.is-shown .pace__icon > *, .pace.is-live.is-shown .pace__facts li { stroke-dashoffset: 0; opacity: 1; }
.pace.is-live.is-shown .pace__side--old li:nth-child(1), .pace.is-live.is-shown .pace__side--old li:nth-child(1) .pace__icon > * { transition-delay: 0ms; }
.pace.is-live.is-shown .pace__side--old li:nth-child(2), .pace.is-live.is-shown .pace__side--old li:nth-child(2) .pace__icon > * { transition-delay: 500ms; }
.pace.is-live.is-shown .pace__side--old li:nth-child(3), .pace.is-live.is-shown .pace__side--old li:nth-child(3) .pace__icon > * { transition-delay: 1000ms; }
.pace.is-live.is-shown .pace__side--old li:nth-child(4), .pace.is-live.is-shown .pace__side--old li:nth-child(4) .pace__icon > * { transition-delay: 1500ms; }
.pace.is-live.is-shown .pace__side--ours li, .pace.is-live.is-shown .pace__side--ours .pace__icon > * { transition-delay: 2200ms; transition-duration: 600ms; }

@media (max-width: 56rem) {
  .feel__steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}
@media (max-width: 38rem) {
  .feel__steps { grid-template-columns: 1fr; }
  .feel__thread { display: none; }
  .pace__compare { grid-template-columns: 1fr; }
  .pace__side--ours { margin-top: 2rem; padding-left: 0; border-left: 0; border-top: 1px solid var(--linea); }
}

/* Percorso. Base: a plain list, each step with its arch. main.js pins it on wide screens. */
.path { display: grid; gap: clamp(4rem, 9vw, 7rem); max-width: 72rem; margin: 0; padding: 0; list-style: none; }
.path__step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.path__body { max-width: 34rem; }
.path__count { margin: 0 0 1rem; color: var(--nebbia); font-size: 0.875rem; }
.path__body > .path__desc { color: var(--intonaco); }
.path__media { display: grid; margin: 0; overflow: clip; place-items: center; }
.path__arch { display: block; height: min(72svh, 40rem); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--notte-alta); }
.path__arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.path__meta { display: grid; grid-template-columns: minmax(9rem, 0.75fr) minmax(0, 2fr); gap: 0.6rem 1.5rem; margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--linea); font-size: 0.875rem; }
.path__meta dt { color: var(--nebbia); font-weight: 500; }
.path__meta dd { margin: 0; color: var(--intonaco); }
.path__credit, .path__note { margin: 3rem 0 0; color: var(--nebbia); font-size: 0.8125rem; }

/* Pinned: the four steps share one cell; GSAP flies through each arch in turn. */
.path.is-pinned { display: grid; gap: 0; max-width: none; height: 100svh; align-items: center; }
.path.is-pinned .path__step { grid-area: 1 / 1; }
.path.is-pinned .path__arch, .path.is-pinned .path__body { will-change: transform, opacity; }
/* The room behind the doorway bleeds to the top, bottom and right edge of the screen. */
.path.is-pinned .path__media { align-self: stretch; height: 100svh; margin-right: calc((min(100vw - var(--page-pad) * 2, var(--content)) - 100vw) / 2); }

.section--works { background: var(--notte-alta); }
.section--works h2 { max-width: 15ch; }
.section--works .lead { color: var(--nebbia); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2.5vw, 2.25rem); }
.card { display: flex; min-width: 0; flex-direction: column; border-top: 1px solid var(--linea); }
.card__media { display: flex; min-height: 18rem; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 1.5rem; color: var(--intonaco); }
.card__media:nth-child(1) { background-position: 18% 62%; }
.slot-name { margin-bottom: 0.4rem; font-family: var(--serif); font-optical-sizing: auto; font-size: 2.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 0.95; }
.card__body { padding: 1.5rem 0 0; }
.card__body h3 { font-size: 2rem; }
.card__body p { color: var(--nebbia); font-size: 0.94rem; }
.card__meta { padding-top: 1rem; border-top: 1px solid var(--linea); font-size: 0.79rem !important; font-weight: 500; }
.clients { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--linea); }
.clients__title { margin: 0 0 1rem; color: var(--nebbia); font-family: inherit; font-size: 0.875rem; font-weight: 500; letter-spacing: 0; }
.clients__list { display: flex; flex-wrap: wrap; gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem); margin: 0; padding: 0; list-style: none; font-family: var(--serif); font-optical-sizing: auto; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; }

.section--final { color: var(--intonaco); background: var(--notte); }
.section--final .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.final__media { display: flex; min-height: clamp(21rem, 40vw, 35rem); flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(1.5rem, 4vw, 3rem); }
.final__content h2 { max-width: 10ch; }
.final__content > p:not(.micro) { color: var(--nebbia); }

/* Card La Monastica: griglia foto al posto dello sfondo grafico */
.card--monastica .card__media { background: var(--notte-alta); }
.card__media-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.card__media-grid img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.card__media-grid img:first-child { grid-column: 1 / 3; }
/* portiamo etichette sopra le foto */
.card__media .slot-tag, .card__media .slot-name, .card__media .slot-label { position: relative; z-index: 2; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.card__media::after { z-index: 1; }

.site-footer { color: var(--intonaco); background: var(--notte); }
.site-footer__inner { min-height: 5rem; font-size: 0.75rem; letter-spacing: 0; }
.site-footer a { color: var(--lampada); }

@media (max-width: 55rem) {
  .path__step { grid-template-columns: 1fr; gap: 1.75rem; }
  .path__media { order: -1; place-items: start; }
  .path__arch { height: min(60svh, 26rem); }
  .cards { grid-template-columns: 1fr; gap: 3rem; }
  .card__media { min-height: 16rem; }
  .card__media-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .section--final .wrap { grid-template-columns: 1fr; }
  .final__media { min-height: 20rem; }
}

@media (max-width: 38rem) {
  .site-header__inner { min-height: 4.75rem; }
  .header-cta { font-size: 0.875rem; }
  h1 { font-size: clamp(2.15rem, 9vw, 2.9rem); }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .path__meta { grid-template-columns: 1fr; gap: 0.22rem; }
  .path__meta dd { margin-bottom: 0.85rem; }
  .path__meta dd:last-child { margin-bottom: 0; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0.35rem; padding-block: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
