/* =========================================================
   Stefano Bongiovanni — Real Estate Agent
   Sobrio. Cinematografico. Milano.
   ========================================================= */

/* =========================================================
   PRELOADER — cinematic curtain + signature reveal
   Loaded first so it's painted before everything else.
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}
.preloader * { user-select: none; }

/* Curtain halves — each covers half the screen */
.preloader__half {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  background: #F3EEE6;
  z-index: 1;
  transition: transform 1100ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.preloader__half--top {
  top: 0;
  box-shadow: 0 1px 0 rgba(176, 141, 87, 0.18);
}
.preloader__half--bottom {
  bottom: 0;
  box-shadow: 0 -1px 0 rgba(176, 141, 87, 0.18);
}

/* Ambient glow behind signature */
.preloader__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(176, 141, 87, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(176, 141, 87, 0.08) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  animation: preloadGlow 1800ms ease-out 300ms forwards;
}
@keyframes preloadGlow {
  to { opacity: 1; }
}

/* Content stack on top of halves */
.preloader__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 1rem;
  max-width: 90vw;
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Eyebrow above the signature */
.preloader__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin: 0 0 2rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  animation: preloadFadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

/* Signature handwriting reveal: clip-path wipes left-to-right at handwriting pace */
.preloader__firma-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}
.preloader__firma {
  width: clamp(260px, 42vw, 520px);
  height: auto;
  display: block;
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  animation: preloadFirmaWrite 2600ms cubic-bezier(0.62, 0.02, 0.38, 1.02) 600ms forwards;
  filter: drop-shadow(0 6px 18px rgba(20, 24, 31, 0.04));
}
@keyframes preloadFirmaWrite {
  0%   { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
  100% { -webkit-clip-path: inset(0 0 0 0);    clip-path: inset(0 0 0 0); }
}

/* Pen tip: a small dot + thin trail that follows the writing front */
.preloader__pen {
  position: absolute;
  top: 55%;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-accent-2);
  border-radius: 50%;
  box-shadow:
    0 0 8px rgba(176, 141, 87, 0.85),
    0 0 18px rgba(232, 203, 126, 0.55);
  transform: translate(-50%, -50%) scale(0);
  animation: preloadPenWrite 2600ms cubic-bezier(0.62, 0.02, 0.38, 1.02) 600ms forwards;
}
@keyframes preloadPenWrite {
  0%   { left: 0;    transform: translate(-50%, -50%) scale(0); opacity: 0; }
  4%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  95%  { left: 100%; transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { left: 100%; transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* Details: Milano · MMXXVI */
.preloader__details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 1.75rem 0 0;
  opacity: 0;
  transform: translateY(12px);
  animation: preloadFadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) 1450ms forwards;
}
.preloader__detail-text {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(20, 24, 31, 0.6);
  font-weight: 500;
}
.preloader__detail-dot {
  width: 5px;
  height: 5px;
  background: var(--color-accent-2);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(176, 141, 87, 0.65);
}
@keyframes preloadFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Gold progress bar */
.preloader__progress {
  width: 200px;
  height: 1px;
  margin: 2rem auto 0;
  background: rgba(20, 24, 31, 0.08);
  overflow: hidden;
  position: relative;
}
.preloader__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-2), #E8CB7E, var(--color-accent-2));
  box-shadow: 0 0 10px rgba(176, 141, 87, 0.6);
  animation: preloadProgress 1900ms cubic-bezier(0.65, 0, 0.35, 1) 400ms forwards;
}
@keyframes preloadProgress {
  0%   { width: 0; }
  100% { width: 100%; }
}

/* Skip hint */
.preloader__skip {
  margin: 1.6rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(20, 24, 31, 0.32);
  opacity: 0;
  animation: preloadFadeUp 600ms ease-out 2000ms forwards;
}

/* Leaving state: content fades, curtains split */
.preloader.is-leaving .preloader__content {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 480ms cubic-bezier(0.4, 0, 0.2, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.is-leaving .preloader__glow {
  opacity: 0;
  transition: opacity 400ms ease;
}
.preloader.is-leaving .preloader__half--top    { transform: translateY(-100%); }
.preloader.is-leaving .preloader__half--bottom { transform: translateY(100%); }

/* Body lock when preloader is active */
body.preloader-active { overflow: hidden; }
body.preloader-active .reveal { opacity: 0 !important; transform: translate3d(0, 28px, 0) !important; }
body.preloader-active .hero__title .line__inner { transform: translate3d(0, 115%, 0) !important; opacity: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .preloader__firma,
  .preloader__pen,
  .preloader__eyebrow,
  .preloader__details,
  .preloader__progress-bar,
  .preloader__skip,
  .preloader__glow {
    animation: none;
    opacity: 1;
    transform: none;
    -webkit-clip-path: none;
    clip-path: none;
  }
  .preloader__half { transition: none; }
}

@media (max-width: 540px) {
  .preloader__firma { width: clamp(220px, 70vw, 360px); }
  .preloader__progress { width: 140px; }
  .preloader__details { gap: 0.85rem; margin-top: 1.25rem; }
  .preloader__detail-text { font-size: 0.65rem; letter-spacing: 0.3em; }
}

/* -----------------------------
   Tokens
   ----------------------------- */
:root {
  /* Palette */
  --color-bg:        #F3EEE6;   /* avorio caldo */
  --color-bg-soft:   #EFE9DF;   /* avorio leggermente più scuro */
  --color-bg-ink:    #11141A;   /* fondo notturno */
  --color-bg-ink-2:  #181C24;
  --color-paper:     #FBF8F2;   /* carta */
  --color-ink:       #14181F;   /* antracite */
  --color-ink-soft:  #44495A;
  --color-ink-mute:  #7A7E8C;
  --color-line:      rgba(20, 24, 31, 0.12);
  --color-line-soft: rgba(20, 24, 31, 0.07);
  --color-accent:    #1E2A47;   /* blu navy del logo */
  --color-accent-2:  #B08D57;   /* oro brunito */
  --color-accent-3:  #2D4A3E;   /* verde bottiglia, riserva */

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Scale */
  --fs-eyebrow: 0.78rem;
  --fs-body:    1.0625rem;
  --fs-lead:    1.25rem;
  --fs-h3:      1.5rem;
  --fs-h2:      clamp(2.2rem, 4.2vw, 3.6rem);
  --fs-h1:      clamp(2.6rem, 6.5vw, 6.2rem);
  --fs-display: clamp(3rem, 9vw, 8rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;
  --space-8: 10rem;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast:    240ms;
  --dur:         520ms;
  --dur-slow:    900ms;
  --dur-cinema:  1400ms;
}

/* -----------------------------
   Reset light
   ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; display: block; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

::selection { background: var(--color-accent); color: var(--color-paper); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 0.75rem 1rem;
  z-index: 100;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* -----------------------------
   Reveal animations
   ----------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* -----------------------------
   Header
   ----------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem var(--gutter);
  /* Always fully opaque (opacity 1) on any scroll state or section */
  background-color: rgba(243, 238, 230, 1);
  box-shadow: 0 1px 0 var(--color-line-soft);
  transition: padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header::before { display: none; }
.site-header.is-scrolled {
  /* Same solid background; only compresses padding when scrolled for visual rhythm */
  padding: 0.75rem var(--gutter);
}
/* No "over-dark" colour swap — the header is always solid cream, so nav stays dark */
.site-header .nav-toggle span { background: var(--color-ink); }

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header__brand img {
  width: 44px; height: 44px;
  object-fit: contain;
  /* Display logo naturally: its native white background stays white on any
     header state. No filter, no blend — same logo asset everywhere on the site. */
}
.site-header__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.wordmark-line--name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.wordmark-line--title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 2px;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--dur) var(--ease);
}
.site-nav a:hover::after { width: 100%; }
.site-nav .nav-cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid currentColor;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-nav .nav-cta:hover { background: var(--color-ink); color: var(--color-paper); }
.site-nav .nav-cta::after { display: none; }

/* (Removed: previous is-over-dark CTA hover override — header is always solid now) */

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  width: 36px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--color-ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-bg);
  padding: 6rem var(--gutter) 3rem;
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 40;
  min-height: 100vh;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--color-line); }
.mobile-nav a {
  display: block;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

/* -----------------------------
   Layout helpers
   ----------------------------- */
.section {
  padding: var(--space-8) var(--gutter);
  position: relative;
  overflow: hidden;  /* contain watermarks */
}
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Giant watermark numeral — parallax decoration */
.section-watermark {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(280px, 48vw, 640px);
  line-height: 0.85;
  color: var(--color-accent-2);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
  white-space: nowrap;
  will-change: transform;
}
.section-watermark--left {
  right: auto;
  left: -6%;
}
.section--method .section-watermark {
  color: var(--color-accent);
  opacity: 0.05;
}
@media (max-width: 768px) {
  .section-watermark { font-size: clamp(220px, 70vw, 360px); opacity: 0.05; }
}
.section__head { margin-bottom: var(--space-6); max-width: 720px; }
.section__number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-accent-2);
  letter-spacing: 0.12em;
  margin: 0 0 var(--space-3);
  position: relative;
  padding-left: 2.5rem;
}
.section__number::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--color-accent-2);
}
.section__number--light { color: rgba(243, 238, 230, 0.7); }
.section__number--light::before { background: rgba(243, 238, 230, 0.5); }

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-3);
}
.section__title em { font-style: italic; color: var(--color-accent); }
.section__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--color-ink-soft);
  max-width: 56ch;
  margin: 0;
}

.hide-mobile { display: none; }
@media (min-width: 768px) {
  .hide-mobile { display: inline; }
}

/* -----------------------------
   Buttons
   ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn--solid {
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
}
.btn--solid:hover {
  background: transparent;
  color: var(--color-ink);
}
.btn--ghost {
  background: transparent;
  color: var(--color-paper);
  border-color: rgba(251, 248, 242, 0.6);
}
.btn--ghost:hover {
  background: var(--color-paper);
  color: var(--color-ink);
  border-color: var(--color-paper);
}
.btn--full { width: 100%; }

/* -----------------------------
   HERO
   ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
  color: var(--color-paper);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -25% 0 -15% 0;
  z-index: -1;
  will-change: transform;
}
/* Carousel container — fills hero, stacks 5 slides absolutely */
.hero__carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1400ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 8000ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1.0);
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity 600ms linear; transform: none; }
  .hero__slide.is-active { transform: none; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 20, 26, 0.55) 0%, rgba(17, 20, 26, 0.35) 35%, rgba(17, 20, 26, 0.7) 100%),
    linear-gradient(90deg, rgba(17, 20, 26, 0.55) 0%, rgba(17, 20, 26, 0.15) 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
  font-weight: 500;
  color: rgba(243, 238, 230, 0.85);
  position: relative;
  padding-left: 4rem;
}
.hero__eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3rem; height: 1px;
  background: var(--color-accent-2);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0 0 var(--space-4);
  max-width: 17ch;
}
/* Cinematic line-mask reveal — override default .reveal */
.hero__title.reveal {
  opacity: 1;
  transform: none;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0;
}
.hero__title .line__inner {
  display: inline-block;
  transform: translate3d(0, 115%, 0);
  opacity: 0;
  transition:
    transform 1300ms var(--ease-out),
    opacity 800ms var(--ease-out);
  will-change: transform;
}
.hero__title.is-visible .line:nth-child(1) .line__inner { transition-delay: 80ms; }
.hero__title.is-visible .line:nth-child(2) .line__inner { transition-delay: 260ms; }
.hero__title.is-visible .line:nth-child(3) .line__inner { transition-delay: 460ms; }
.hero__title.is-visible .line__inner {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.hero__title .line em {
  font-style: italic;
  font-weight: 400;
  color: #E8D8B0;
}
.hero__title .line--accent { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  .hero__title .line__inner { transform: none; opacity: 1; }
}

.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.55;
  margin: 0 0 var(--space-5);
  max-width: 44ch;
  color: rgba(251, 248, 242, 0.85);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  color: rgba(251, 248, 242, 0.9);
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent 0%, currentColor 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -56px; left: 0;
  width: 1px; height: 28px;
  background: currentColor;
  animation: scrollLine 2.6s var(--ease-in-out, ease-in-out) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(0);    opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(112px); opacity: 0; }
}
.hero__scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* -----------------------------
   STATEMENT (Cosa faccio)
   ----------------------------- */
.section--statement {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  background: var(--color-bg);
}
.statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  max-width: 16ch;
}
.statement em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}
.statement__sub {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-ink-soft);
  max-width: 56ch;
  margin: 0;
}

/* -----------------------------
   METHOD — editorial cards
   ----------------------------- */
.section--method {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(176, 141, 87, 0.05) 0%, transparent 70%),
    var(--color-bg-soft);
  border-top: 1px solid var(--color-line-soft);
  position: relative;
  overflow: hidden;
}

.method-list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.method-item {
  position: relative;
  background: var(--color-paper);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 700ms var(--ease-out),
    box-shadow 700ms var(--ease-out);
  border: 1px solid var(--color-line-soft);
}

/* Top accent line that draws on reveal */
.method-item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent-2), #E8CB7E);
  transition: width 1400ms var(--ease-out);
  z-index: 2;
}
.method-item.is-visible::before {
  width: 100%;
  transition-delay: 300ms;
}

/* Subtle radial glow that appears on hover */
.method-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(176, 141, 87, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 80%, rgba(30, 42, 71, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.method-item:hover {
  transform: translateY(-10px);
  box-shadow:
    0 32px 80px -28px rgba(20, 24, 31, 0.22),
    0 12px 24px -16px rgba(176, 141, 87, 0.18);
}
.method-item:hover::after { opacity: 1; }

/* Decorative corner crop */
.method-item__corner {
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 32px 32px;
  border-color: transparent transparent transparent transparent;
  transition: border-color 600ms var(--ease-out);
  z-index: 1;
}
.method-item:hover .method-item__corner {
  border-color: transparent transparent var(--color-accent-2) transparent;
}

/* Big italic number — watermark style */
.method-item__num {
  position: relative;
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4.5rem, 9vw, 6.5rem);
  line-height: 0.85;
  color: var(--color-accent-2);
  overflow: hidden;
  display: flex;
  z-index: 1;
}
.method-item__num-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 1100ms var(--ease-out) 100ms,
    opacity 700ms var(--ease-out) 100ms;
}
.method-item.is-visible .method-item__num-inner {
  transform: translateY(0);
  opacity: 0.55;
}
.method-item:hover .method-item__num-inner {
  color: var(--color-accent);
  opacity: 0.9;
  transition:
    transform 700ms var(--ease-out),
    opacity 500ms var(--ease-out),
    color 500ms var(--ease-out);
}

.method-item__content {
  position: relative;
  z-index: 1;
}

.method-item__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-2);
  line-height: 1.05;
  color: var(--color-ink);
}

.method-item__line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent-2);
  margin: var(--space-2) 0 var(--space-3);
  transition: width 700ms var(--ease-out);
  transform-origin: left center;
}
.method-item:hover .method-item__line {
  width: 72px;
}

.method-item__body {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
  max-width: 36ch;
}

@media (min-width: 900px) {
  .method-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .method-item.is-visible .method-item__num-inner {
    transform: none; opacity: 0.55;
  }
}

/* -----------------------------
   GALLERY
   ----------------------------- */
.section--gallery {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  background: var(--color-bg);
}
.section__head--gallery {
  max-width: var(--container);
  margin: 0 auto var(--space-6);
}
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
}
.gallery__item {
  margin: 0;
  position: relative;
}
.gallery__media {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
  aspect-ratio: 4 / 3;
  will-change: transform;
}
.gallery__media img {
  width: 100%; height: 145%;
  object-fit: cover;
  position: absolute;
  top: -22%; left: 0;
  will-change: transform;
  transition: transform var(--dur-cinema) var(--ease);
}
.gallery__item:hover .gallery__media img { transform: scale(1.06); }

/* Gallery items use .reveal but stay opaque — animate via clip-path mask */
.gallery__item.reveal { opacity: 1; transform: none; }
.gallery__item .gallery__media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1500ms var(--ease-out);
}
.gallery__item.is-visible .gallery__media {
  clip-path: inset(0 0 0 0);
}

.gallery__item--tall .gallery__media { aspect-ratio: 3 / 4; }
.gallery__item--narrow .gallery__media { aspect-ratio: 3 / 4; }

.gallery__caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--color-accent-2);
}
.gallery__zone {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-accent);
}
.gallery__note {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-4) var(--space-4);
  }
  .gallery__item--wide { grid-column: span 7; }
  .gallery__item--tall { grid-column: span 5; }
  .gallery__item--narrow { grid-column: span 5; margin-top: var(--space-5); }
  .gallery__item--wide + .gallery__item--tall { margin-top: var(--space-6); }
  .gallery__item:nth-child(3) { grid-column: span 5; }
  .gallery__item:nth-child(4) { grid-column: span 7; margin-top: var(--space-5); }
}

/* -----------------------------
   CLAIM
   ----------------------------- */
.section--claim {
  padding: var(--space-8) var(--gutter);
  background: var(--color-bg-ink);
  color: var(--color-paper);
  position: relative;
  overflow: hidden;
}
.claim__bg {
  position: absolute;
  inset: -40% 0;
  z-index: 0;
  background-image: radial-gradient(ellipse at 30% 40%, rgba(176, 141, 87, 0.22) 0%, transparent 50%),
                    radial-gradient(ellipse at 70% 70%, rgba(30, 42, 71, 0.55) 0%, transparent 60%),
                    radial-gradient(ellipse at 50% 50%, rgba(176, 141, 87, 0.10) 0%, transparent 70%);
  opacity: 0.95;
  will-change: transform;
}

/* Giant "12" watermark — drives home the "12 anni" */
.claim__numeral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(360px, 70vw, 900px);
  line-height: 0.85;
  color: var(--color-accent-2);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
  will-change: transform;
}
.section--claim .section__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}
.claim__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  text-align: center;
}
@media (min-width: 900px) {
  .claim__inner {
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: var(--space-6);
    text-align: left;
  }
  .section--claim .section__number { padding-left: 0; }
  .section--claim .section__number::before { display: none; }
}

.claim__portrait {
  margin: 0;
  position: relative;
}
.claim__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  box-shadow:
    0 30px 70px -25px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(176, 141, 87, 0.4);
  transition: transform 900ms var(--ease-out);
  filter: saturate(1.05) contrast(1.02);
}
.claim__portrait::before {
  content: "";
  position: absolute;
  inset: -10px -10px 30px -10px;
  border: 1px solid rgba(176, 141, 87, 0.45);
  pointer-events: none;
  z-index: -1;
  transition: inset 900ms var(--ease-out);
}
.claim__portrait:hover img { transform: translate(8px, -8px); }
.claim__portrait:hover::before { inset: 0 0 40px 0; }

.claim__portrait figcaption {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
@media (min-width: 900px) {
  .claim__portrait figcaption { text-align: left; }
}
.claim__portrait-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-paper);
  letter-spacing: 0.01em;
}
.claim__portrait-role {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.55);
}

.claim__text { position: relative; }
.section--claim .section__number {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  display: inline-block;
  position: relative;
}
.section--claim .section__number::before { display: none; }
.section--claim .section__number::after {
  content: "";
  display: block;
  width: 3rem; height: 1px;
  background: var(--color-accent-2);
  margin: 0.75rem auto 0;
}
.claim__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.claim__title em {
  font-style: italic;
  color: var(--color-accent-2);
  font-weight: 400;
}
.claim__body {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  font-weight: 300;
  font-style: italic;
  color: rgba(251, 248, 242, 0.85);
  margin: 0 0 var(--space-5);
}
.claim__signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(251, 248, 242, 0.6);
  letter-spacing: 0.04em;
  margin: 0;
}

/* -----------------------------
   FAQ — smooth custom accordion
   ----------------------------- */
.section--faq {
  background: var(--color-bg);
  border-top: 1px solid var(--color-line-soft);
}
.faq {
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-line);
}
.faq__item {
  border-bottom: 1px solid var(--color-line);
  position: relative;
  transition: background 700ms var(--ease-out);
}
.faq__item.is-open {
  background:
    linear-gradient(180deg, rgba(176, 141, 87, 0.06) 0%, rgba(176, 141, 87, 0.02) 100%);
}
/* Left accent line that grows when open */
.faq__item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2px;
  height: 0;
  background: var(--color-accent-2);
  transform: translateY(-50%);
  transition: height 600ms var(--ease-out);
}
.faq__item.is-open::before {
  height: 60%;
}

.faq__summary {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.85rem 0.25rem 1.85rem 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.005em;
  transition:
    color 500ms var(--ease-out),
    padding-left 500ms var(--ease-out);
}
.faq__summary:hover { color: var(--color-accent); }
.faq__item.is-open .faq__summary {
  color: var(--color-accent);
  padding-left: 1.5rem;
}

.faq__q { flex: 1; }

.faq__icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 600ms cubic-bezier(0.65, 0, 0.35, 1);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--color-accent);
  transition: transform 600ms cubic-bezier(0.65, 0, 0.35, 1);
}
.faq__icon::before {
  top: 50%; left: 0; right: 0; height: 1px;
  transform: translateY(-50%);
}
.faq__icon::after {
  left: 50%; top: 0; bottom: 0; width: 1px;
  transform: translateX(-50%) scaleY(1);
  transform-origin: center;
}
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); }

/* Height-animated wrapper */
.faq__a-wrap {
  overflow: hidden;
  height: 0;
  transition: height 560ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: height;
}
.faq__a {
  padding: 0 0 1.85rem 0.85rem;
  max-width: 70ch;
  color: var(--color-ink-soft);
  line-height: 1.75;
  font-size: 1.02rem;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 520ms var(--ease-out) 80ms,
    transform 600ms var(--ease-out) 80ms,
    padding-left 500ms var(--ease-out);
}
.faq__item.is-open .faq__a {
  opacity: 1;
  transform: translateY(0);
  padding-left: 1.5rem;
}
.faq__a p { margin: 0; }
.faq__a strong { color: var(--color-ink); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .faq__a-wrap { transition: none; }
  .faq__a { transition: opacity 200ms; transform: none; }
}

/* -----------------------------
   CONTACT
   ----------------------------- */
.section--contact {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-line-soft);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 1.1fr 1fr; gap: var(--space-7); align-items: start; }
}
.contact__copy .section__title em { display: block; }

.contact__channels {
  list-style: none;
  margin: var(--space-5) 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-3);
}
.contact__channels li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.contact__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}
.contact__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-ink);
}
a.contact__value { border-bottom: 1px solid var(--color-line); transition: color var(--dur-fast) var(--ease); }
a.contact__value:hover { color: var(--color-accent); }

.contact__social {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-3);
}
.contact__social a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}
.contact__social a::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform var(--dur) var(--ease);
}
.contact__social a:hover::after { transform: translateX(4px); }

/* Form */
.contact__form {
  background: var(--color-paper);
  padding: var(--space-5);
  border: 1px solid var(--color-line);
}
.form-row {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line);
  font: inherit;
  font-size: 1.05rem;
  color: var(--color-ink);
  transition: border-color var(--dur) var(--ease);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--color-ink-mute); opacity: 0.6; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}
.form-row textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.form-row--check { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.form-row--check label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.form-row--check input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--color-accent); }

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
  color: var(--color-ink-soft);
}
.form-status.is-success { color: var(--color-accent-3); }
.form-status.is-error { color: #B53A2C; }

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--color-ink-mute);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.btn__icon {
  display: inline-flex;
  margin-right: 0.6rem;
  vertical-align: middle;
}
.btn__icon svg { display: block; }

/* -----------------------------
   Scroll progress bar — visible, luminous
   ----------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 60;
  background: rgba(20, 24, 31, 0.08);
  pointer-events: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,
    #C9A961 0%,
    #E8CB7E 35%,
    #F4DE9C 55%,
    #C9A961 100%);
  background-size: 200% 100%;
  animation: progressShimmer 4s linear infinite;
  transition: width 90ms linear;
  box-shadow:
    0 0 16px rgba(232, 203, 126, 0.85),
    0 0 4px rgba(244, 222, 156, 0.95),
    0 1px 2px rgba(176, 141, 87, 0.6);
  position: relative;
}
.scroll-progress__bar::after {
  content: "";
  position: absolute;
  right: 0; top: -1px; bottom: -1px;
  width: 14px;
  background: radial-gradient(circle at left center, rgba(255, 240, 200, 0.95) 0%, rgba(255, 240, 200, 0) 70%);
  pointer-events: none;
}
@keyframes progressShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar { animation: none; }
}

/* -----------------------------
   Floating action buttons
   ----------------------------- */
.floating-actions {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
  pointer-events: none;
}
.fab {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow:
    0 10px 30px rgba(20, 24, 31, 0.25),
    0 2px 8px rgba(20, 24, 31, 0.12);
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
  position: relative;
  border: none;
  cursor: pointer;
}
.fab:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(20, 24, 31, 0.3),
    0 4px 12px rgba(20, 24, 31, 0.15);
}
.fab:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 4px;
}

/* WhatsApp */
.fab--whatsapp {
  background: #25D366;
  color: #FFFFFF;
}
.fab--whatsapp:hover { background: #1FBE5C; }
.fab--whatsapp svg { position: relative; z-index: 2; }

/* WhatsApp pulse */
.fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  z-index: 1;
  animation: fabPulse 2.6s var(--ease-out) infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);    opacity: 0.45; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}

/* WhatsApp label (only on desktop hover) */
.fab__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.fab__label::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-ink);
}
.fab:hover .fab__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Back to top */
.fab--top {
  background: rgba(20, 24, 31, 0.92);
  color: var(--color-paper);
  width: 46px;
  height: 46px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.fab--top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab--top:hover { background: var(--color-accent); }

@media (max-width: 540px) {
  .fab { width: 52px; height: 52px; }
  .fab--top { width: 42px; height: 42px; }
  .fab__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fab__pulse { animation: none; opacity: 0; }
}

/* =========================================================
   FOOTER — editorial close to the page
   ========================================================= */
.site-footer {
  background: var(--color-bg-ink);
  color: var(--color-paper);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) var(--space-3);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Ambient gradient orbs behind everything */
.site-footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(176, 141, 87, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(30, 42, 71, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 100%, rgba(176, 141, 87, 0.08) 0%, transparent 60%);
}

/* Top gold hairline rule */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(80px, 22vw, 220px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-2), transparent);
  z-index: 1;
  opacity: 0.7;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* -----------------------------
   Signature centerpiece
   ----------------------------- */
.site-footer__signature {
  text-align: center;
  margin: 0 auto var(--space-6);
  max-width: 900px;
}
.site-footer__logo {
  display: block;
  margin: 0 auto var(--space-3);
  width: 76px; height: 76px;
  object-fit: contain;
  /* Display logo naturally on the dark footer too — same asset, same treatment site-wide. */
  opacity: 1;
  /* Rounded frame with double gold outline — finishing touch only on the footer. */
  padding: 6px;
  background: var(--color-paper);
  border: 1px solid rgba(176, 141, 87, 0.55);
  outline: 1px solid rgba(176, 141, 87, 0.18);
  outline-offset: 3px;
  border-radius: 14px;
  box-sizing: content-box;
}
.site-footer__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin: 0 0 var(--space-3);
  font-weight: 500;
  opacity: 0.9;
}
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
}
.site-footer__name-first {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(251, 248, 242, 0.85);
}
.site-footer__name-last {
  display: block;
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.9;
}
.site-footer__name-last em {
  font-style: italic;
  background: linear-gradient(180deg,
    var(--color-paper) 0%,
    var(--color-paper) 35%,
    rgba(232, 203, 126, 0.75) 80%,
    rgba(176, 141, 87, 0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.site-footer__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--space-4) auto 0;
}
.rule-line {
  width: 64px;
  height: 1px;
  background: var(--color-accent-2);
  opacity: 0.55;
}
.rule-dot {
  width: 5px;
  height: 5px;
  background: var(--color-accent-2);
  border-radius: 50%;
  opacity: 0.75;
  box-shadow: 0 0 8px rgba(176, 141, 87, 0.5);
}
.site-footer__motto {
  margin: var(--space-3) auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: rgba(251, 248, 242, 0.65);
  letter-spacing: 0.005em;
}

/* -----------------------------
   3-column grid
   ----------------------------- */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(251, 248, 242, 0.08);
  border-bottom: 1px solid rgba(251, 248, 242, 0.08);
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-6);
  }
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin: 0 0 var(--space-3);
  position: relative;
  padding-bottom: var(--space-2);
}
.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 24px;
  height: 1px;
  background: rgba(176, 141, 87, 0.45);
}

/* NAP */
.site-footer__nap {
  font-style: normal;
  color: rgba(251, 248, 242, 0.7);
  line-height: 1.75;
  font-size: 0.95rem;
}
.site-footer__nap p { margin: 0 0 0.35rem; }
.site-footer__nap strong {
  color: var(--color-paper);
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.005em;
  font-style: italic;
}

.footer-link {
  display: inline-grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  margin-top: 0.65rem;
  transition: color 280ms var(--ease);
}
.footer-link__label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.4);
  font-weight: 500;
}
.footer-link__value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-paper);
  border-bottom: 1px solid rgba(251, 248, 242, 0.15);
  padding-bottom: 2px;
  transition:
    color 280ms var(--ease),
    border-color 280ms var(--ease);
}
.footer-link:hover .footer-link__value {
  color: var(--color-accent-2);
  border-bottom-color: var(--color-accent-2);
}
.footer-link:hover .footer-link__label {
  color: var(--color-accent-2);
}

/* Link lists */
.site-footer__links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__links li { display: block; }
.site-footer__links a {
  font-size: 0.92rem;
  color: rgba(251, 248, 242, 0.78);
  transition: color 280ms var(--ease), padding-left 420ms var(--ease);
  position: relative;
  display: inline-block;
  padding-left: 0;
}
.site-footer__links a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-8px);
  color: var(--color-accent-2);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
  font-family: var(--font-body);
}
.site-footer__links a:hover {
  color: var(--color-paper);
  padding-left: 1.5rem;
}
.site-footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* -----------------------------
   Legal bar
   ----------------------------- */
.site-footer__legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding-top: var(--space-4);
  font-size: 0.76rem;
  color: rgba(251, 248, 242, 0.42);
  line-height: 1.6;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer__legal {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    text-align: left;
  }
  .site-footer__vat { text-align: center; }
}
.site-footer__legal p { margin: 0; }
.site-footer__copy { font-style: italic; }
.site-footer__vat { letter-spacing: 0.02em; }

/* Back-to-top link in footer */
.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.55);
  transition: color 320ms var(--ease);
  justify-self: center;
}
@media (min-width: 768px) {
  .site-footer__top-link { justify-self: end; }
}
.site-footer__top-link:hover { color: var(--color-accent-2); }
.site-footer__top-link svg { transition: transform 360ms var(--ease); }
.site-footer__top-link:hover svg { transform: translateY(-4px); }

@media (max-width: 540px) {
  .site-footer__logo { width: 60px; height: 60px; }
  .site-footer__name-last { font-size: clamp(2.6rem, 14vw, 4rem); }
  .site-footer__motto { font-size: 0.95rem; }
  .footer-link { grid-template-columns: 4.5rem 1fr; gap: 0.5rem; }
  .site-footer__legal { font-size: 0.7rem; }
}

/* -----------------------------
   Responsive
   ----------------------------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header__brand img { width: 38px; height: 38px; }
  .wordmark-line--name { font-size: 0.95rem; }
  .wordmark-line--title { font-size: 0.6rem; }

  .section { padding: var(--space-6) var(--gutter); }
  .section--statement, .section--gallery, .section--faq { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .section--claim { padding: var(--space-7) var(--gutter); }

  .hero { padding-top: 7rem; padding-bottom: 7rem; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 4rem); }
  .hero__sub { font-size: 1.1rem; }
  .hero__bg { inset: 0; }
  .hero__bg img,
  .hero__slide { object-position: center center; }

  .statement { font-size: clamp(2rem, 8vw, 3rem); }

  .contact__channels li { grid-template-columns: 5rem 1fr; }
  .contact__form { padding: var(--space-4); }

  .gallery { gap: var(--space-4); }
  .gallery__media img { height: 110%; top: -5%; } /* reduce parallax travel on mobile */
}

@media (max-width: 540px) {
  .site-header__wordmark { display: none; }
  .hero__eyebrow { padding-left: 0; }
  .hero__eyebrow::before { display: none; }
  .section__number { padding-left: 0; }
  .section__number::before { display: none; }
  .section__number::after {
    content: ""; display: block; width: 2rem; height: 1px;
    background: var(--color-accent-2);
    margin-top: 0.5rem;
  }
  .method-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .method-item__index { padding-top: 0; }
  .contact__channels li { grid-template-columns: 1fr; gap: 0.25rem; }
  .contact__social { flex-wrap: wrap; gap: 1rem; }
  .gallery__media img { height: 100%; top: 0; }
}

/* Reduce parallax on small screens / prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .claim__bg, .gallery__media img, .hero__slide { transform: none !important; }
  .hero__bg { inset: 0; }
}

/* =========================================================
   PORTFOLIO — track-record case studies
   ========================================================= */
.section--portfolio {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}
@media (min-width: 640px) {
  .portfolio-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.portfolio-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  position: relative;
}
@media (min-width: 640px) {
  .portfolio-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: calc(-1 * var(--space-5) / 2);
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: var(--color-line);
  }
}

.portfolio-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.portfolio-stat--gold .portfolio-stat__num {
  background: linear-gradient(180deg, var(--color-accent-2) 0%, #E8CB7E 70%, var(--color-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portfolio-stat__label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  font-weight: 500;
  max-width: 18ch;
  line-height: 1.4;
}

/* Grid of cards */
/* ─── Pinned section — vertical scroll → horizontal track ──── */
.section--portfolio { overflow: visible; }  /* allow sticky to work */
.section--portfolio > .section__inner { position: relative; z-index: 2; }
.section--portfolio .section-watermark { display: none; }  /* clean for the pinned area */

.portfolio-pinned {
  position: relative;
  width: calc(100% + 2 * var(--gutter));
  margin: var(--space-5) calc(-1 * var(--gutter)) var(--space-3);
  /* height set by JS based on track width */
}

.portfolio-pinned__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg);
}

/* Track — flex row of slides, translated via JS transform */
.portfolio-track {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0 8vw;
  width: max-content;
  align-items: center;
  will-change: transform;
  /* Smooth catch-up when JS sets transform via scroll */
  transition: transform 80ms linear;
}

/* ─── Mobile (≤ 700px): vertical stack instead of horizontal scroll-hijack ─── */
@media (max-width: 700px) {
  /* Disable scroll-hijack: section is its own height, no sticky pinning */
  .portfolio-pinned {
    height: auto !important;
    width: 100%;
    margin: var(--space-4) 0 var(--space-3);
  }
  .portfolio-pinned__sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0;
  }
  /* Track stacks slides vertically, full-width */
  .portfolio-track {
    flex-direction: column;
    width: 100%;
    padding: 0 var(--gutter);
    gap: 1.25rem;
    transform: none !important;
    transition: none;
    align-items: stretch;
  }
  /* Carousel arrows and progress bar are not useful in a stacked layout.
     !important is needed because the base .carousel-controls rule (later in
     the source) sets display: flex and would otherwise win the cascade. */
  .carousel-controls { display: none !important; }
}

/* ─── Single slide (horizontal landscape, image fills 100%) ── */
.portfolio-slide {
  flex: 0 0 auto;
  width: clamp(320px, 78vw, 820px);
  height: clamp(240px, 70vh, 615px);
  aspect-ratio: 4 / 3;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--color-bg-soft);
  transition:
    transform 700ms var(--ease-out),
    box-shadow 700ms var(--ease-out);
  outline: none;
  box-shadow: 0 16px 40px -16px rgba(20, 24, 31, 0.32);
}
@media (max-width: 700px) {
  .portfolio-slide {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
.portfolio-slide:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
}
.portfolio-slide:hover {
  box-shadow: 0 30px 70px -20px rgba(20, 24, 31, 0.35);
}

/* Reveal override: slides already animate via parallax, so just fade them in */
.portfolio-slide.reveal { transform: translate3d(0, 28px, 0); opacity: 0; }
.portfolio-slide.reveal.is-visible { transform: translate3d(0, 0, 0); opacity: 1; }

/* Featured variant — gold border */
.portfolio-slide--feature {
  box-shadow:
    0 10px 30px -10px rgba(20, 24, 31, 0.15),
    0 0 0 2px rgba(176, 141, 87, 0.7);
}
.portfolio-slide--feature:hover {
  box-shadow:
    0 30px 70px -20px rgba(20, 24, 31, 0.4),
    0 0 0 2px var(--color-accent-2);
}

/* Image fills the slide as background */
.portfolio-slide__media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  z-index: 1;
}

/* Image fills 100% of the slide — clean, no parallax offset */
.portfolio-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-slide:hover .portfolio-slide__img,
.portfolio-slide.is-active .portfolio-slide__img {
  transform: scale(1.06);
}

/* Overlay invisible by default; appears on hover (desktop) or always on touch */
.portfolio-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 24, 31, 0) 0%,
    rgba(20, 24, 31, 0) 45%,
    rgba(20, 24, 31, 0.55) 75%,
    rgba(20, 24, 31, 0.88) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-slide:hover .portfolio-slide__overlay,
.portfolio-slide:focus-visible .portfolio-slide__overlay,
.portfolio-slide.is-active .portfolio-slide__overlay {
  opacity: 1;
}
/* On no-hover devices (touch), always show overlay (for content readability) */
@media (hover: none) {
  .portfolio-slide__overlay { opacity: 1; }
}

/* Top index bar */
.portfolio-slide__index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-paper);
  pointer-events: none;
}

.portfolio-slide__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  background: rgba(8, 10, 14, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.7rem;
}

.portfolio-slide__count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.92);
  background: rgba(8, 10, 14, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.6rem;
  font-weight: 500;
}

/* Bottom content area — slides up on hover, hidden by default */
.portfolio-slide__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.75rem 2rem;
  color: var(--color-paper);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 480ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-slide:hover .portfolio-slide__body,
.portfolio-slide:focus-visible .portfolio-slide__body,
.portfolio-slide.is-active .portfolio-slide__body {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .portfolio-slide__body {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .portfolio-slide__body { padding: 1.25rem 1.25rem; }
}

.portfolio-slide__zone {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  font-weight: 600;
}

.portfolio-slide__address {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0.2rem 0 0;
  color: var(--color-paper);
}

.portfolio-slide__type {
  font-size: 0.88rem;
  color: rgba(251, 248, 242, 0.72);
  margin: 0.15rem 0 0.6rem;
  letter-spacing: 0.005em;
}

.portfolio-slide__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(176, 141, 87, 0.45);
}

.portfolio-slide__price {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.portfolio-slide__price--quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-accent-2);
}

.portfolio-slide__badge {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(251, 248, 242, 0.28);
  color: rgba(251, 248, 242, 0.85);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.portfolio-slide__badge--gold {
  background: linear-gradient(135deg, #B08D57 0%, #E8CB7E 50%, #B08D57 100%);
  color: var(--color-bg-ink);
  border-color: transparent;
  box-shadow: 0 4px 12px -2px rgba(176, 141, 87, 0.5);
  font-weight: 700;
}

.portfolio-slide__badge--feature {
  background: var(--color-paper);
  color: var(--color-bg-ink);
  border-color: var(--color-paper);
  font-weight: 600;
}

/* ─── Carousel controls (prev/next + progress bar) ─────────── */
.carousel-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 var(--gutter);
  width: min(680px, 90vw);
  z-index: 10;
}
.carousel-progress {
  position: relative;
}
.carousel-progress__counter {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .carousel-controls { bottom: 1.5rem; gap: 0.75rem; }
  .carousel-progress__counter { font-size: 0.78rem; }
}

.carousel-btn {
  width: 52px;
  height: 52px;
  background: transparent;
  border: 1px solid var(--color-ink);
  color: var(--color-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 280ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease);
  flex-shrink: 0;
  border-radius: 50%;
  font: inherit;
}
.carousel-btn:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.carousel-btn:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
}

.carousel-progress {
  flex: 1;
  height: 1px;
  background: var(--color-line);
  position: relative;
}
.carousel-progress__bar {
  position: absolute;
  left: 0;
  top: -1.5px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-2), #E8CB7E);
  box-shadow: 0 0 10px rgba(232, 203, 126, 0.5);
  transition: width 120ms linear;
  width: 0%;
}

@media (max-width: 540px) {
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-controls { gap: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-slide__img { will-change: auto; }
}

.portfolio-note {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-ink-mute);
  font-size: 0.95rem;
  margin: var(--space-5) auto 0;
  max-width: 56ch;
  line-height: 1.5;
}

/* =========================================================
   DISPONIBILI — current listings (premium editorial cards)
   ========================================================= */
.section--available {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(176, 141, 87, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 0% 100%, rgba(30, 42, 71, 0.05) 0%, transparent 60%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}
.section-watermark--gold {
  color: rgba(176, 141, 87, 0.10);
}

/* Live pulse badge above title */
.section__head--available { position: relative; }
.available-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 1.1rem;
  padding: 0.42rem 0.95rem 0.42rem 0.75rem;
  background: rgba(20, 24, 31, 0.04);
  border: 1px solid rgba(176, 141, 87, 0.4);
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-ink);
}
.available-pulse__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ECC71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  animation: availPulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes availPulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  60%  { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Grid container */
.available-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-5);
}
@media (min-width: 1100px) {
  .available-grid { gap: var(--space-7); }
}

/* Card — alternating layout (image left/right) on desktop */
.available-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
  position: relative;
  background: var(--color-paper);
  padding: var(--space-3);
  box-shadow:
    0 1px 0 rgba(20, 24, 31, 0.05),
    0 30px 80px -40px rgba(20, 24, 31, 0.25);
  transition: box-shadow 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.available-card:hover {
  box-shadow:
    0 1px 0 rgba(20, 24, 31, 0.05),
    0 50px 120px -40px rgba(20, 24, 31, 0.32);
  transform: translateY(-2px);
}
@media (min-width: 820px) {
  .available-card {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-5);
    padding: var(--space-4);
  }
  /* Alternate: second card has image on the right */
  .available-card:nth-child(even) .available-card__gallery { order: 2; }
}

/* Gallery — main image + thumbnail strip */
.available-card__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.available-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-bg-soft);
  border: 0;
  padding: 0;
  cursor: zoom-in;
  outline: none;
}
.available-card__media:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: 3px; }
.available-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.available-card__media:hover img { transform: scale(1.04); }
.available-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(20, 24, 31, 0.6) 0%, rgba(20, 24, 31, 0) 50%);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}
.available-card__media:hover .available-card__overlay,
.available-card__media:focus-visible .available-card__overlay { opacity: 1; }
@media (hover: none) {
  .available-card__overlay { opacity: 1; }
}
.available-card__zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(8, 10, 14, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-paper);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
}

.available-card__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.available-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-soft);
  border: 0;
  padding: 0;
  cursor: zoom-in;
}
.available-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms var(--ease-out), opacity 300ms var(--ease-out);
}
.available-card__thumb:hover img { transform: scale(1.06); opacity: 0.92; }

/* Body */
.available-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: var(--space-2) var(--space-2) var(--space-3);
}
@media (min-width: 820px) {
  .available-card__body { padding: var(--space-3) var(--space-3) var(--space-3) 0; }
}

.available-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.available-card__zone {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  font-weight: 600;
}
.available-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1A8348;
  font-weight: 600;
  background: rgba(46, 204, 113, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.available-card__status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2ECC71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  animation: availPulse 2.2s ease-out infinite;
}

.available-card__address {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-ink);
}
.available-card__tag {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  margin: 0;
  line-height: 1.45;
}

/* Price block */
.available-card__price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin: 0.4rem 0;
}
.available-card__price-label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}
.available-card__price-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

/* Specs grid */
.available-card__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.1rem;
}
@media (min-width: 600px) {
  .available-card__specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.available-card__specs li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--color-ink);
}
.spec__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  color: var(--color-accent-2);
  flex-shrink: 0;
}
.spec__label { color: var(--color-ink-soft); }

.available-card__desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
  margin: 0.35rem 0 0;
}
.available-card__desc strong { color: var(--color-ink); font-weight: 600; }

/* Actions */
.available-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.btn--available {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  padding: 0.9rem 1.4rem;
}
.btn--available svg { flex-shrink: 0; }

/* Footer note */
.available-note {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-ink-mute);
  font-size: 1.05rem;
  margin: var(--space-6) auto 0;
  max-width: 60ch;
  line-height: 1.5;
}
.available-note a {
  color: var(--color-accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.95em;
}
.available-note a:hover { color: var(--color-ink); }

/* Nav: Disponibili link with subtle gold accent */
.site-nav .nav-live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2ECC71;
  margin-right: 0.45rem;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  animation: availPulse 2.2s ease-out infinite;
}
.mobile-nav .nav-live::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ECC71;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Mobile (≤ 700px) — single column, image first, smaller specs */
@media (max-width: 700px) {
  .available-card {
    padding: 0.6rem;
    gap: var(--space-3);
  }
  .available-card__body {
    padding: 0.5rem;
  }
  .available-card__address { font-size: 1.65rem; }
  .available-card__price-value { font-size: 1.85rem; }
  .available-card__specs { grid-template-columns: repeat(2, 1fr); }
  .available-card__actions { flex-direction: column; align-items: stretch; }
  .btn--available { justify-content: center; }
}

/* =========================================================
   LIGHTBOX — portfolio photo viewer
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease);
  z-index: 3;
  border-radius: 50%;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent-2);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--color-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease);
  z-index: 3;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  /* Subtle attention pulse at first */
  animation: lightboxNavHint 2400ms ease-out 400ms 2;
}
@keyframes lightboxNavHint {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.08); }
}
.lightbox__nav:hover {
  background: var(--color-accent-2);
  border-color: var(--color-accent-2);
  color: var(--color-bg-ink);
  transform: translateY(-50%) scale(1.05);
  animation: none;
}
.lightbox__nav:active { transform: translateY(-50%) scale(0.95); }
.lightbox__nav--prev { left: 2rem; }
.lightbox__nav--next { right: 2rem; }

@media (max-width: 700px) {
  .lightbox__nav { width: 52px; height: 52px; }
  .lightbox__nav--prev { left: 0.85rem; }
  .lightbox__nav--next { right: 0.85rem; }
}

.lightbox__main {
  position: relative;
  z-index: 2;
  max-width: min(90vw, 1400px);
  max-height: 82vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.6);
  transition: opacity 240ms var(--ease);
}
.lightbox.is-loading .lightbox__img { opacity: 0.4; }

.lightbox__info {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: var(--color-paper);
  pointer-events: none;
}
.lightbox__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: rgba(251, 248, 242, 0.95);
  letter-spacing: 0.005em;
}
.lightbox__counter {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.55);
  margin: 0;
  font-weight: 500;
}

/* Body lock when lightbox is open */
body.lightbox-active { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox__close { width: 42px; height: 42px; top: 0.85rem; right: 0.85rem; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 0.6rem; }
  .lightbox__nav--next { right: 0.6rem; }
  .lightbox__main { max-width: 92vw; max-height: 70vh; }
  .lightbox__img { max-height: 70vh; }
  .lightbox__info { bottom: 1rem; padding: 0 1rem; }
  .lightbox__title { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img { transition: none; }
}

@media (max-width: 640px) {
  .portfolio-card { padding: 1.5rem 1.25rem 1.25rem; }
  .portfolio-card__address { font-size: 1.2rem; }
  .portfolio-card__price { font-size: 1.4rem; }
  .portfolio-stats { padding: var(--space-3) 0; }
  .portfolio-stat__num { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* =========================================================
   BLOG PREVIEW SECTION (homepage)
   ========================================================= */
.section--blog-preview {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-line-soft);
}
.section__head--blog {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: space-between;
  max-width: none;
  margin-bottom: var(--space-6);
}
@media (min-width: 900px) {
  .section__head--blog { flex-direction: row; align-items: flex-end; }
  .section__head--blog > div { max-width: 640px; }
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  transition:
    background 320ms var(--ease),
    color 320ms var(--ease),
    border-color 320ms var(--ease);
  flex-shrink: 0;
}
.section-link svg { transition: transform 320ms var(--ease); }
.section-link:hover {
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
}
.section-link:hover svg { transform: translateX(4px); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 700px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border: 1px solid var(--color-line-soft);
  text-decoration: none;
  color: var(--color-ink);
  overflow: hidden;
  position: relative;
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(20, 24, 31, 0.18);
}

.blog-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out);
}
.blog-card:hover .blog-card__media img { transform: scale(1.05); }

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.blog-card__category {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  font-weight: 500;
}
.blog-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.005em;
}
.blog-card__excerpt {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin: 0;
  flex: 1;
}
.blog-card__cta {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-line);
  margin-top: 0.5rem;
  transition: color 280ms var(--ease);
}
.blog-card__cta span {
  transition: transform 360ms var(--ease);
  display: inline-block;
}
.blog-card:hover .blog-card__cta { color: var(--color-accent); }
.blog-card:hover .blog-card__cta span { transform: translateX(5px); }

/* =========================================================
   BLOG INDEX PAGE (/blog/)
   ========================================================= */
.blog-hero {
  background: var(--color-bg);
  padding: clamp(7rem, 15vh, 11rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 30% at 50% 100%, rgba(176, 141, 87, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.blog-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin: 0 0 var(--space-3);
  font-weight: 500;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0 0 var(--space-3);
}
.blog-hero__title em {
  font-style: italic;
  color: var(--color-accent);
}
.blog-hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-ink-soft);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.5;
}

.blog-list {
  padding: var(--space-6) var(--gutter) var(--space-7);
  background: var(--color-bg);
}
.blog-list__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 700px) {
  .blog-list__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-list__inner { grid-template-columns: repeat(3, 1fr); }
}

/* Feature card: first article spans full width on desktop */
.blog-list__inner .blog-card:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .blog-list__inner .blog-card:first-child {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
  }
  .blog-list__inner .blog-card:first-child .blog-card__media { aspect-ratio: auto; height: 100%; min-height: 360px; }
  .blog-list__inner .blog-card:first-child .blog-card__body { padding: 2.5rem; justify-content: center; }
  .blog-list__inner .blog-card:first-child .blog-card__title { font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
}

/* =========================================================
   BLOG ARTICLE PAGE
   ========================================================= */
.article {
  background: var(--color-bg);
}

.article-hero {
  padding: clamp(7rem, 14vh, 10rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  background: var(--color-bg);
  text-align: center;
}
.article-hero__inner {
  max-width: 820px;
  margin: 0 auto;
}
.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  margin: 0 0 var(--space-3);
}
.article-breadcrumb a {
  color: var(--color-ink-mute);
  border-bottom: 1px solid transparent;
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}
.article-breadcrumb a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.article-breadcrumb span { color: var(--color-line); }

.article-category {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  font-weight: 500;
  margin: 0 0 1rem;
  position: relative;
  padding: 0 1.5rem;
}
.article-category::before,
.article-category::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: var(--color-accent-2);
  opacity: 0.5;
}
.article-category::before { left: 0; }
.article-category::after { right: 0; }

.article-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 var(--space-3);
}
.article-title em { font-style: italic; color: var(--color-accent); }
.article-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-ink-soft);
  margin: 0 auto var(--space-4);
  max-width: 60ch;
  line-height: 1.5;
  font-weight: 300;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}
.article-meta__dot {
  width: 4px;
  height: 4px;
  background: var(--color-accent-2);
  border-radius: 50%;
  display: inline-block;
}

.article-cover {
  margin: 0 auto var(--space-6);
  max-width: var(--container);
  padding: 0 var(--gutter);
}
.article-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  box-shadow: 0 20px 60px -20px rgba(20, 24, 31, 0.25);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-7);
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--color-ink);
}
.article-body > p,
.article-body > h2,
.article-body > h3,
.article-body > ul,
.article-body > ol,
.article-body > blockquote,
.article-body > figure,
.article-body > .article-callout {
  margin-bottom: 1.5em;
}

.article-body p { margin: 0 0 1.4em; }
.article-body p:last-child { margin-bottom: 0; }

/* Drop cap on first paragraph */
.article-body > p.lead:first-of-type::first-letter,
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  float: left;
  font-size: 5em;
  line-height: 0.85;
  margin: 0.1em 0.12em 0 -0.05em;
  color: var(--color-accent);
}

.article-body p.lead {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--color-ink);
  font-weight: 400;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 2.6em 0 0.8em;
  position: relative;
  padding-top: 1rem;
}
.article-body h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px;
  height: 1px;
  background: var(--color-accent-2);
}

.article-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  margin: 2em 0 0.6em;
  color: var(--color-ink);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.4em;
}
.article-body li { margin-bottom: 0.5em; line-height: 1.7; }
.article-body ul li::marker { color: var(--color-accent-2); }
.article-body ol li::marker { color: var(--color-accent-2); font-family: var(--font-display); font-style: italic; }

.article-body strong {
  color: var(--color-ink);
  font-weight: 600;
}

.article-body a {
  color: var(--color-accent);
  border-bottom: 1px solid currentColor;
  transition: color 240ms var(--ease);
}
.article-body a:hover { color: var(--color-accent-2); }

.article-body blockquote {
  margin: 2.5em 0;
  padding: 1.5em 0 1.5em 2em;
  border-left: 2px solid var(--color-accent-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  color: var(--color-ink);
  font-weight: 300;
  position: relative;
}
.article-body blockquote::before {
  content: "”";
  position: absolute;
  left: -0.3em; top: -0.5em;
  font-size: 4em;
  line-height: 1;
  color: var(--color-accent-2);
  opacity: 0.25;
  font-style: normal;
}
.article-body blockquote cite {
  display: block;
  margin-top: 0.7em;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  font-family: var(--font-body);
}

/* Highlight callout box */
.article-callout {
  background: var(--color-paper);
  border-left: 3px solid var(--color-accent-2);
  padding: 1.5rem 1.75rem;
  margin: 2em 0;
  font-size: 1rem;
  line-height: 1.7;
}
.article-callout strong { display: block; margin-bottom: 0.5em; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.15em; color: var(--color-accent); }
.article-callout p { margin: 0; }
.article-callout p + p { margin-top: 0.6em; }

/* Stats / table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.96rem;
}
.article-body th,
.article-body td {
  padding: 0.85em 1em;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}
.article-body th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  border-bottom: 1px solid var(--color-ink);
}

/* Inline CTA block */
.article-cta {
  background: linear-gradient(135deg, var(--color-bg-ink) 0%, #1a1f29 100%);
  color: var(--color-paper);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3em 0;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.article-cta__eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin: 0 0 0.6rem;
  font-weight: 500;
  position: relative;
}
.article-cta__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  position: relative;
}
.article-cta__title em { font-style: italic; color: var(--color-accent-2); }
.article-cta__body {
  font-size: 0.95rem;
  color: rgba(251, 248, 242, 0.75);
  margin: 0 auto 1.5rem;
  max-width: 48ch;
  line-height: 1.6;
  position: relative;
  text-align: center;
}
.article-cta__eyebrow,
.article-cta__title,
.article-cta__body { text-align: center; }
.article-cta__action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-accent-2);
  color: var(--color-paper);
  padding: 0.95rem 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent-2);
  transition: background 320ms var(--ease), border-color 320ms var(--ease);
  position: relative;
  text-decoration: none;
}
.article-cta__action:hover {
  background: transparent;
  color: var(--color-accent-2);
}
.article-cta__action svg { transition: transform 320ms var(--ease); }
.article-cta__action:hover svg { transform: translateX(4px); }

/* Article footer: author byline */
.article-byline {
  max-width: 720px;
  margin: 3em auto 0;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.article-byline__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.3);
}
.article-byline__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}
.article-byline__role {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  margin: 0 0 0.7rem;
}
.article-byline__bio {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin: 0;
  max-width: 50ch;
}

/* Related articles */
.related-articles {
  background: var(--color-bg-soft);
  padding: var(--space-6) var(--gutter);
  border-top: 1px solid var(--color-line-soft);
}
.related-articles__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.related-articles__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 var(--space-4);
  text-align: center;
}
.related-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 700px) {
  .related-articles__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .article-body { font-size: 1.02rem; line-height: 1.72; }
  .article-body > p:first-of-type::first-letter { font-size: 4em; }
  .article-cta { padding: 2rem 1.5rem; }
  .article-byline { grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.5rem var(--gutter); }
  .article-byline__img { width: 64px; height: 64px; }
}

/* =========================================================
   RESPONSIVE — comprehensive mobile/tablet polish
   Ensures images, type, spacing and decorative elements
   all scale gracefully down to ~320px viewports.
   ========================================================= */

/* All images: never overflow. Don't force height:auto — many specific rules
   (.hero__bg img, .gallery__media img) explicitly set height:100% for cover layout. */
img, picture, video {
  max-width: 100%;
}

/* Prevent iOS zoom on input focus by guaranteeing 16px+ font on form fields */
input, textarea, select, button {
  font-size: max(16px, 1rem);
}

/* -----------------------------
   Tablet & below — ≤ 900px
   ----------------------------- */
@media (max-width: 900px) {
  /* Tighter container gutters */
  :root { --gutter: clamp(1rem, 4vw, 2rem); }

  /* Watermarks: clip overflow & soften so they don't fight content */
  .section-watermark {
    font-size: clamp(180px, 55vw, 380px);
    opacity: 0.05;
  }
  .claim__numeral {
    font-size: clamp(260px, 75vw, 480px);
    opacity: 0.07;
  }

  /* Method: tighter, larger numerals stay readable */
  .method-item {
    padding: clamp(1.5rem, 5vw, 2.5rem);
  }
  .method-item__num {
    font-size: clamp(3.5rem, 12vw, 5rem);
  }

  /* Hero CTA: full-width buttons stack neatly */
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero__actions .btn { width: 100%; max-width: 320px; }

  /* Gallery on tablet — break out of 12-col grid to 2-col */
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .gallery__item--wide,
  .gallery__item--tall,
  .gallery__item--narrow {
    grid-column: span 1 !important;
    margin-top: 0 !important;
  }
  .gallery__media,
  .gallery__item--tall .gallery__media,
  .gallery__item--narrow .gallery__media { aspect-ratio: 4 / 3; }

  /* Footer signature: keep readable */
  .site-footer__name-last { font-size: clamp(2.6rem, 13vw, 5rem); }
  .site-footer { padding-top: clamp(2.5rem, 7vw, 4rem); }

  /* Method list: 1 column on tablet too (was 3 at 900+) */
  .method-list { grid-template-columns: 1fr; }
}

/* -----------------------------
   Mobile — ≤ 640px
   ----------------------------- */
@media (max-width: 640px) {
  :root {
    --gutter: clamp(1rem, 5vw, 1.5rem);
    --space-7: 4rem;
    --space-8: 5rem;
  }

  /* Header: smaller logo, tap target safe */
  .site-header { padding: 0.9rem var(--gutter); }
  .site-header.is-scrolled { padding: 0.6rem var(--gutter); }
  .site-header__brand img { width: 36px; height: 36px; }

  /* Sections: compact padding */
  .section { padding: var(--space-7) var(--gutter); }
  .section--statement, .section--method, .section--gallery,
  .section--faq, .section--contact { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .section--claim { padding: var(--space-8) var(--gutter); }

  /* Section number labels */
  .section__number { font-size: 0.92rem; }
  .section__title { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  .section__lead { font-size: 1.05rem; }

  /* Hero: tighter, image well-anchored */
  .hero {
    min-height: 92vh;
    padding: 7rem var(--gutter) 5rem;
  }
  .hero__eyebrow { font-size: 0.68rem; letter-spacing: 0.26em; }
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    line-height: 1.05;
    max-width: 100%;
  }
  .hero__sub { font-size: 1.02rem; max-width: 100%; }
  .hero__scroll { bottom: 1.5rem; }
  .hero__scroll-line { height: 40px; }

  /* Statement */
  .statement {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    line-height: 1.1;
    max-width: 100%;
  }
  .statement__sub { font-size: 1rem; }

  /* Method on mobile: single column, edge-to-edge feeling */
  .method-list { gap: 1rem; }
  .method-item {
    padding: 1.75rem 1.5rem;
  }
  .method-item__title { font-size: 1.5rem; }
  .method-item__body { font-size: 0.98rem; line-height: 1.65; }

  /* Watermarks: aggressively reduced on mobile */
  .section-watermark {
    font-size: clamp(150px, 50vw, 280px);
    opacity: 0.04;
    right: -10%;
  }
  .section-watermark--left { left: -10%; right: auto; }
  .claim__numeral {
    font-size: clamp(220px, 70vw, 360px);
    opacity: 0.06;
  }

  /* Gallery: single column, tap-friendly */
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .gallery__media,
  .gallery__item--tall .gallery__media,
  .gallery__item--narrow .gallery__media,
  .gallery__item--wide .gallery__media {
    aspect-ratio: 4 / 3;
  }
  .gallery__media img {
    height: 100%;
    top: 0;
    object-position: center center;
  }
  .gallery__caption { margin-top: 0.85rem; padding-left: 0.6rem; }
  .gallery__zone { font-size: 1rem; }
  .gallery__note { font-size: 0.88rem; }

  /* Claim */
  .claim__title { font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1; }
  .claim__body { font-size: clamp(1.15rem, 4vw, 1.5rem); line-height: 1.45; }
  .section--claim .section__inner { max-width: 100%; }

  /* FAQ — wider touch targets, smaller text */
  .faq__summary {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
    padding: 1.4rem 0.15rem 1.4rem 0.5rem;
    gap: 1rem;
  }
  .faq__item.is-open .faq__summary { padding-left: 1rem; }
  .faq__a { font-size: 0.98rem; padding: 0 0 1.4rem 0.5rem; line-height: 1.7; }
  .faq__item.is-open .faq__a { padding-left: 1rem; }
  .faq__icon { width: 18px; height: 18px; }

  /* Contact: stack neatly */
  .contact__inner { gap: var(--space-5); }
  .contact__channels { padding-top: var(--space-3); margin: var(--space-3) 0 var(--space-3); }
  .contact__channels li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    align-items: start;
  }
  .contact__value { font-size: 1.1rem; }
  .contact__social {
    flex-wrap: wrap;
    gap: 0.85rem 1.4rem;
  }
  .contact__form { padding: 1.5rem; }
  .form-row input, .form-row textarea {
    padding: 0.95rem 0;
    font-size: 16px; /* prevent iOS zoom */
  }
  .btn { padding: 1rem 1.5rem; font-size: 0.8rem; min-height: 48px; }

  /* Footer */
  .site-footer { padding: 3.5rem var(--gutter) 1.5rem; }
  .site-footer__signature { margin-bottom: var(--space-5); }
  .site-footer__logo { width: 64px; height: 64px; }
  .site-footer__name-first { font-size: clamp(1.1rem, 4vw, 1.5rem); }
  .site-footer__name-last { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .site-footer__motto { font-size: 0.95rem; padding: 0 1rem; }
  .site-footer__grid { gap: var(--space-4); padding: var(--space-4) 0; }
  .footer-link {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    margin-top: 0.85rem;
  }
  .footer-link__value { font-size: 1.1rem; }
  .site-footer__legal {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.45rem;
    font-size: 0.72rem;
  }
  .site-footer__top-link { margin-top: 0.5rem; }

  /* Floating action buttons stay clear of content */
  .floating-actions {
    right: clamp(0.85rem, 3vw, 1.25rem);
    bottom: clamp(0.85rem, 3vw, 1.25rem);
  }
  .fab { width: 52px; height: 52px; }
  .fab--top { width: 44px; height: 44px; }

  /* Progress bar slightly thinner on mobile */
  .scroll-progress { height: 3px; }

  /* Preloader on mobile */
  .preloader__firma { width: clamp(240px, 80vw, 360px); }
  .preloader__progress { width: 160px; }
}

/* -----------------------------
   Small mobile — ≤ 420px
   ----------------------------- */
@media (max-width: 420px) {
  :root { --gutter: 1.1rem; }

  /* Body 17px keeps long-form text comfortable on tiny screens */
  body { font-size: 1rem; }

  /* Hero: drop excessive top padding */
  .hero { padding: 6rem var(--gutter) 4rem; min-height: 88vh; }
  .hero__title { font-size: clamp(2rem, 11vw, 3rem); }
  .hero__sub { font-size: 0.96rem; line-height: 1.5; }

  /* Section title compaction */
  .section__title { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .section__lead { font-size: 0.98rem; }

  /* Method numerals: still bold but not overwhelming */
  .method-item { padding: 1.4rem 1.25rem; }
  .method-item__num { font-size: clamp(3rem, 14vw, 4rem); }
  .method-item__title { font-size: 1.35rem; }
  .method-item__body { font-size: 0.95rem; }

  /* Statement headline */
  .statement { font-size: clamp(1.7rem, 9vw, 2.4rem); }

  /* Gallery captions */
  .gallery__zone { font-size: 0.95rem; }
  .gallery__note { font-size: 0.85rem; }

  /* Claim */
  .claim__title { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .claim__body { font-size: clamp(1.05rem, 4.5vw, 1.3rem); }

  /* Watermarks even more discreet */
  .section-watermark { font-size: clamp(140px, 60vw, 240px); opacity: 0.035; }
  .claim__numeral { font-size: clamp(200px, 80vw, 320px); opacity: 0.05; }

  /* FAQ */
  .faq__summary { font-size: 1rem; padding: 1.2rem 0 1.2rem 0.4rem; }
  .faq__a { font-size: 0.95rem; padding-bottom: 1.2rem; }

  /* Contact form padding */
  .contact__form { padding: 1.25rem; }
  .form-row { margin-bottom: 1.2rem; }
  .form-row label { font-size: 0.7rem; }

  /* Header brand wordmark: hidden by existing rule; ensure logo is centered if needed */
  .site-header__inner { gap: 1rem; }

  /* Footer compaction */
  .site-footer { padding: 3rem var(--gutter) 1.25rem; }
  .site-footer__name-last { font-size: clamp(2.4rem, 15vw, 3.8rem); }
  .site-footer__logo { width: 56px; height: 56px; }
  .footer-col__title { font-size: 0.65rem; letter-spacing: 0.28em; }
  .site-footer__nap strong { font-size: 1.05rem; }

  /* Floating action buttons */
  .fab { width: 48px; height: 48px; }
  .fab--whatsapp svg { width: 22px; height: 22px; }

  /* Preloader on very small screens */
  .preloader__firma { width: clamp(210px, 80vw, 320px); }
  .preloader__progress { width: 130px; }
  .preloader__details { gap: 0.7rem; }
  .preloader__detail-text { font-size: 0.6rem; letter-spacing: 0.26em; }
}

/* -----------------------------
   Landscape phones (low height)
   ----------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 100vh; padding: 5rem var(--gutter) 4rem; }
  .hero__title { font-size: clamp(1.8rem, 6vh, 2.6rem); }
  .hero__scroll { display: none; }
  .preloader__firma { width: clamp(200px, 30vh, 320px); }
}

/* =========================================================
   LEGAL PAGES — Informativa privacy e cookie · Revoca consensi
   Il testo legale vive in .legal-doc ed è riportato integralmente;
   qui c'è solo l'impaginazione editoriale attorno.
   ========================================================= */
.article--legal .article-hero { padding-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.article-title--legal { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.article--legal .article-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  max-width: 58ch;
}
.article-breadcrumb .article-breadcrumb__current { color: var(--color-ink-mute); }

.article-body--legal {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.75;
}
/* Anchors (#revoca, #browser, #chrome...) land below the fixed header */
.article-body--legal [id] { scroll-margin-top: 6.5rem; }

/* Long URLs and emails must never push the page wider on mobile */
.legal-doc { overflow-wrap: break-word; }
.legal-doc h2 { margin-top: 2.4em; }
.legal-doc h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin: 1.9em 0 0.5em;
}
.legal-doc li > ul,
.legal-doc li > ol { margin: 0.6em 0 0.4em; }
.legal-doc li > p { margin: 0.9em 0 0; }
.legal-doc .legal-list > li { padding-left: 0.3em; margin-bottom: 1em; }
.legal-doc .legal-modes li { margin-bottom: 0.8em; }
.article-body .legal-greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.3;
}

/* "NO COOKIES" badge */
.article-body .legal-nocookie {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.2em 0 1.8em;
  padding: 0.85rem 1.35rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent-3);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-3);
}
.legal-nocookie__icon { flex-shrink: 0; }

/* Closing note (art. 13 GDPR reference) */
.article-body .legal-footnote {
  margin: 3em 0 0;
  padding-top: 1.6em;
  border-top: 1px solid var(--color-line);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--color-ink-mute);
}

/* Inline menu glyph inside the browser instructions */
.legal-icon-menu {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.22em;
  padding: 0.1em;
  border: 1px solid var(--color-line);
  border-radius: 3px;
  background: var(--color-paper);
  color: var(--color-ink-soft);
}

/* In-page index */
.legal-toc {
  margin: 0 0 var(--space-5);
  padding: 1.35rem 1.6rem 1.5rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-top: 2px solid var(--color-accent-2);
}
.article-body .legal-toc__title {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ink-mute);
}
.article-body .legal-toc__list {
  margin: 0;
  padding-left: 1.4em;
  columns: 2 15rem;
  column-gap: 2.5rem;
  font-size: 0.95rem;
}
.article-body .legal-toc__list li { break-inside: avoid; margin-bottom: 0.4em; }
.article-body .legal-toc a { color: var(--color-ink); border-bottom: 0; }
.article-body .legal-toc a:hover { color: var(--color-accent-2); }
.article-body .legal-toc a.legal-toc__aside {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid currentColor;
}
.article-body .legal-toc a.legal-toc__aside:hover { color: var(--color-accent-2); }

/* Browser shortcut chips (revoca page) */
.article-body .legal-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.article-body .legal-chips li { margin: 0; }
.article-body .legal-toc .legal-chips a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--color-ink);
  transition: border-color 240ms var(--ease), color 240ms var(--ease), background 240ms var(--ease);
}
.article-body .legal-toc .legal-chips a:hover {
  border-color: var(--color-accent-2);
  color: var(--color-accent);
  background: var(--color-paper);
}

/* Revoca: the four options + mailto shortcut */
.article-body .legal-options li { font-weight: 500; }
.legal-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin: 0.6em 0 2.4em;
  padding: 1.4rem 1.6rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent-2);
}
/* Beat .article-body a (navy + underline) so the button keeps its solid style */
.article-body .legal-action .legal-action__btn {
  gap: 0.6rem;
  color: var(--color-paper);
  background: var(--color-ink);
  border: 1px solid var(--color-ink);
}
.article-body .legal-action .legal-action__btn:hover,
.article-body .legal-action .legal-action__btn:focus-visible {
  background: transparent;
  color: var(--color-ink);
}
.article-body .legal-action__note {
  flex: 1 1 15rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-ink-mute);
}

/* Cross-link between the two legal pages */
.legal-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}
.article-body .legal-related a {
  border-bottom: 0;
  color: var(--color-accent);
  font-weight: 500;
}
.article-body .legal-related a:hover { color: var(--color-accent-2); }

/* Footer: legal links on every page ("link in calce in tutte le pagine") */
.site-footer__policies {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.9rem;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(251, 248, 242, 0.08);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-footer__policies a {
  color: rgba(251, 248, 242, 0.74);
  transition: color 320ms var(--ease);
}
.site-footer__policies a:hover,
.site-footer__policies a:focus-visible,
.site-footer__policies a[aria-current="page"] { color: var(--color-accent-2); }
.site-footer__policies-sep { color: rgba(251, 248, 242, 0.3); }

/* Contact form: privacy consent links to the full notice */
.form-row--check label a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.form-row--check label a:hover { color: var(--color-accent-2); }

@media (max-width: 640px) {
  .article-body--legal { font-size: 0.98rem; line-height: 1.7; }
  .legal-toc { padding: 1.1rem 1.15rem 1.2rem; }
  .article-body .legal-toc__list { columns: 1; }
  .legal-action { padding: 1.15rem; }
  .article-body .legal-action .legal-action__btn { width: 100%; }
  .legal-related { flex-direction: column; align-items: flex-start; }
  .site-footer__policies { gap: 0.35rem 0.7rem; letter-spacing: 0.16em; }
}

/* Legal pages print cleanly (text only) */
@media print {
  body.page-legal .site-header,
  body.page-legal .site-footer,
  body.page-legal .floating-actions,
  body.page-legal .scroll-progress,
  body.page-legal .skip-link,
  body.page-legal .legal-toc,
  body.page-legal .legal-action,
  body.page-legal .legal-related { display: none !important; }
  body.page-legal,
  body.page-legal .article,
  body.page-legal .article-hero { background: #fff !important; }
  body.page-legal .article-hero { padding: 0 0 1.5rem; }
  body.page-legal .article-body--legal { max-width: none; padding: 0; font-size: 10.5pt; }
  body.page-legal .legal-doc a { color: inherit; border-bottom: 0; }
}

/* =========================================================
   HEADER NAV — keep labels on one line
   With 7 items the labels wrapped onto 2-3 lines between 901px and
   ~1250px, making the fixed header 94-122px tall. Tighten typography
   in that range and drop the wordmark subtitle on the narrowest widths.
   ========================================================= */
.site-nav a { white-space: nowrap; }

@media (min-width: 901px) and (max-width: 1280px) {
  .site-header__inner { gap: 1.5rem; }
  .site-nav ul { gap: 1rem; }
  .site-nav a { font-size: 0.74rem; letter-spacing: 0.08em; }
  .site-nav .nav-cta { padding: 0.45rem 0.9rem; }
}

@media (min-width: 901px) and (max-width: 1040px) {
  .wordmark-line--title { display: none; }
}

/* =========================================================
   LEGAL PAGES — review fixes
   Contrast (WCAG AA), keyboard focus and emphasis fidelity.
   ========================================================= */
:root {
  --color-ink-mute-aa: #5F6371;   /* muted grey passing 4.5:1 on ivory and paper */
  --color-accent-2-text: #856638; /* burnished gold usable as text on light backgrounds */
}

/* Muted small text on the legal pages */
.article-breadcrumb .article-breadcrumb__current,
.article-body .legal-footnote,
.article-body .legal-action__note,
.article-body .legal-toc__title,
.legal-related { color: var(--color-ink-mute-aa); }

/* Article numbers 1-10 are cited in the text ("art. 5"): keep them readable */
.legal-doc ol > li::marker { color: var(--color-accent-2-text); }

/* The index is navigation, not numbered articles: no numbers clashing with "art. 5" */
.article-body .legal-toc__list { list-style: none; padding-left: 0; }

/* Hover colour on light backgrounds */
.article-body--legal a:hover,
.article-body .legal-toc a:hover,
.article-body .legal-toc a.legal-toc__aside:hover,
.article-body .legal-related a:hover,
.form-row--check label a:hover { color: var(--color-accent-2-text); }

/* Legal wording keeps the PDF's emphasis: these lines are plain text in the source */
.article-body .legal-greeting {
  font-family: inherit;
  font-style: normal;
  font-size: inherit;
  line-height: inherit;
}
.article-body .legal-nocookie {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--color-ink);
}
.article-body .legal-options li { font-weight: 400; }

/* Footer: visible focus ring on the dark background; current page differs from hover/focus */
.site-footer a:focus-visible {
  outline-color: var(--color-accent-2);
  outline-offset: 3px;
}
.site-footer__policies a[aria-current="page"] {
  color: rgba(251, 248, 242, 0.95);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.site-footer__policies a:hover,
.site-footer__policies a:focus-visible { color: var(--color-accent-2); }

@media (max-width: 640px) {
  /* The two links wrap onto separate lines on phones: a lone "·" would dangle */
  .site-footer__policies-sep { display: none; }
}

/* Screen-reader-only text (e.g. "si apre in una nuova scheda") */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Targets focused by script after an in-page jump (sections, main) */
main[tabindex="-1"]:focus,
main [tabindex="-1"]:focus { outline: none; }
