/* ─────────────────────────────────────────────
   TOKENS · Villa Cattolica Design System
   ─────────────────────────────────────────────*/
:root {
  /* Surfaces */
  --bg-gallery:    #FAFAFA;
  --bg-paper:      #F3EFE8;
  --bg-obsidian:   #111111;
  --bg-ink:        #0a0a0a;

  /* Accents */
  --terracotta:    #C83E2B;
  --terracotta-d:  #8E2818;
  --gold:          #D4AF37;
  --gold-l:        #E8C76A;
  --gold-d:        #9A7E1E;

  /* Ink */
  --ink:           #0d0d0d;
  --ink-soft:      #2a2a2a;
  --ink-mute:      #6b6b6b;
  --ink-faint:     #a8a8a8;

  /* Lines & Tints */
  --line:          rgba(13,13,13,0.10);
  --line-strong:   rgba(13,13,13,0.20);
  --line-dark:     rgba(255,255,255,0.10);
  --line-darks:    rgba(255,255,255,0.22);
  --tint-warm:     rgba(200,62,43,0.06);

  /* Typography */
  --font-display:  'Cormorant Garamond', 'Times New Roman', serif;
  --font-mono:     'Syne', 'Helvetica Neue', sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Motion */
  --ease:          cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast:        300ms;
  --t-base:        600ms;
  --t-slow:        900ms;

  /* Layout */
  --max:           1320px;
  --pad:           clamp(20px, 4vw, 56px);
}

/* ─────────────────────────────────────────────
   RESET
   ─────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-gallery);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: "ss01", "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--terracotta); color: #fff; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Subtle paper grain overlaid on the whole page */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}


/* ─────────────────────────────────────────────
   HERO (100vh, monumental)
   ─────────────────────────────────────────────*/
.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--bg-ink);
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-bg img {
  width: 100%; height: 115%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  filter: brightness(0.62) saturate(0.85) contrast(1.05);
  animation: heroImgIn 2.4s var(--ease) 0.2s forwards;
}
@keyframes heroImgIn { to { opacity: 1; } }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(200,62,43,0.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 64px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-l);
  opacity: 0;
  animation: fadeRise 1s var(--ease) 1.6s forwards;
}
.hero-meta::before {
  content: '';
  width: 38px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(54px, 11vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-title .w > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: wordRise 1.1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.14s + 0.4s);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-l);
}
@keyframes wordRise {
  to { transform: translateY(0); opacity: 1; }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: end;
  border-top: 1px solid var(--line-darks);
  padding-top: 28px;
}
.hero-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  opacity: 0;
  animation: fadeRise 1s var(--ease) 1.9s forwards;
}
.hero-tag span { color: var(--gold-l); }
.hero-coord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: right;
  line-height: 1.9;
  opacity: 0;
  animation: fadeRise 1s var(--ease) 2.1s forwards;
}
.hero-coord b {
  display: block;
  color: var(--gold-l);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: 24px;
  font-family: var(--font-display);
  text-transform: none;
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  right: var(--pad);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  animation: fadeRise 1s var(--ease) 2.4s forwards;
}
.hero-scroll-line {
  width: 60px; height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-l);
  transform: translateX(-100%);
  animation: scrollSweep 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollSweep {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.hero-vert {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  opacity: 0;
  animation: fadeRise 1s var(--ease) 2.6s forwards;
}

/* ─────────────────────────────────────────────
   INFO STRIP
   ─────────────────────────────────────────────*/
.strip {
  background: var(--bg-obsidian);
  color: #fff;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strip-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid var(--line-dark);
  padding-left: 18px;
}
.strip-cell:first-child { border-left: none; padding-left: 0; }
.strip-cell svg {
  width: 22px; height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}
.strip-k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.strip-v {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────
   AUDIO DASHBOARD
   ─────────────────────────────────────────────*/
.audio {
  background: var(--bg-obsidian);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}
.audio::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 50%, rgba(200,62,43,0.18), transparent 40%),
    radial-gradient(circle at 100% 50%, rgba(212,175,55,0.12), transparent 45%);
  pointer-events: none;
}
.audio-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.audio-id {
  display: flex;
  align-items: center;
  gap: 18px;
}
.audio-disc {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #1a1a1a 28%, transparent 29%),
    conic-gradient(from 0deg, var(--terracotta), var(--gold), var(--terracotta-d), var(--terracotta));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 12px 30px -10px rgba(0,0,0,0.6),
    inset 0 0 0 8px rgba(0,0,0,0.4);
}
.audio-disc.spinning { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.audio-disc::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px #1a1a1a, 0 0 0 3px rgba(212,175,55,0.4);
}
.audio-id-text { line-height: 1.4; }
.audio-id-text .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 6px;
}
.audio-id-text .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
}
.audio-id-text .vv {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

.audio-stage {
  border-left: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
  padding: 0 32px;
  min-width: 0;
}
.audio-now {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  min-height: 76px;
  max-height: 76px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.audio-now .wd {
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  padding: 0 1px;
  border-radius: 2px;
}
.audio-now .wd.on {
  color: var(--gold-l);
  background: rgba(212,175,55,0.12);
}
.audio-progress {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 10px;
}
.audio-progress-fill {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  border-radius: 999px;
  transition: right 200ms linear;
  box-shadow: 0 0 10px rgba(212,175,55,0.4);
}
.audio-progress-head {
  position: absolute;
  top: 50%; left: 0;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.18);
  pointer-events: none;
  transition: left 200ms linear;
}
.audio-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.audio-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.audio-eq i {
  display: block;
  width: 3px;
  background: var(--gold);
  border-radius: 1px;
  height: 4px;
  opacity: 0.4;
}
.audio-eq.live i {
  animation: eq 700ms ease-in-out infinite;
  opacity: 1;
}
.audio-eq.live i:nth-child(1) { animation-delay: 0ms; }
.audio-eq.live i:nth-child(2) { animation-delay: 120ms; }
.audio-eq.live i:nth-child(3) { animation-delay: 240ms; }
.audio-eq.live i:nth-child(4) { animation-delay: 80ms; }
.audio-eq.live i:nth-child(5) { animation-delay: 200ms; }
@keyframes eq {
  0%, 100% { height: 3px; }
  50%      { height: 14px; }
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-ctrl {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-darks);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.btn-ctrl svg { width: 14px; height: 14px; }
.btn-ctrl:hover {
  background: rgba(212,175,55,0.1);
  border-color: var(--gold);
  color: var(--gold-l);
  transform: translateY(-1px);
}
.btn-play {
  width: 64px; height: 64px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  box-shadow: 0 8px 24px -6px rgba(212,175,55,0.5);
}
.btn-play:hover {
  background: var(--gold-l);
  transform: translateY(-2px) scale(1.04);
  color: var(--ink);
}
.btn-play svg { width: 18px; height: 18px; }

/* ─────────────────────────────────────────────
   SECTION FRAMEWORK
   ─────────────────────────────────────────────*/
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--pad);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
  font-weight: 600;
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--terracotta);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  margin-left: auto;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 32px;
}
.h-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}
.h-display .rule {
  display: inline-block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 18px 12px 4px;
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 720px;
}
.body-text p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin-bottom: 18px;
  text-align: justify;
  max-width: 640px;
}

.text {
 text-align: justify;
 font-size: 16.5px;
}


.body-text p strong { color: var(--terracotta); font-weight: 600; }
.body-text p em { font-family: var(--font-display); font-size: 1.06em; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition:
    opacity 1.1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─────────────────────────────────────────────
   BAGHERIA · Asymmetric editorial
   ─────────────────────────────────────────────*/
.bagheria {
  background: var(--bg-gallery);
  position: relative;
  overflow: hidden;
}
.bagheria-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.bagheria-words { position: relative; }
.bagheria-mark {
  position: absolute;
  top: -60px; left: -10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(140px, 18vw, 260px);
  font-weight: 300;
  color: var(--terracotta);
  opacity: 0.06;
  line-height: 0.9;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.bagheria-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow:
    0 1px 0 var(--line),
    0 30px 60px -30px rgba(13,13,13,0.35),
    0 60px 120px -60px rgba(200,62,43,0.25);
  transform: translateY(0);
}
.bagheria-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease);
}
.bagheria-img:hover img { transform: scale(1.06); }
.bagheria-cap {
  position: absolute;
  left: -34px; bottom: 40px;
  background: var(--bg-gallery);
  padding: 18px 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 260px;
  line-height: 1.5;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.18);
}
.bagheria-cap::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--terracotta);
}
.bagheria-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  font-width: 100;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  text-align: right; 
}

.stat-num {
  /* proprietà esistenti */
  transform: translateX(80px); /* destra */
}

.stat-num2 {
  /* proprietà esistenti */
  transform: translateX(299px); /* destra */
}


.stat-num3 {
  /* proprietà esistenti */
  transform: translateX(500px); /* destra */
}
.stat-num2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  font-width: 100;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  text-align: center;
}

.stat-num3 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  font-width: 100;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  text-align: left;
}
/* ─────────────────────────────────────────────
   GALLERY MARQUEE (infinite, slows on hover)
   ─────────────────────────────────────────────*/
.marquee {
  background: var(--bg-obsidian);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 12vw;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-obsidian), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-obsidian), transparent); }

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 48s linear infinite;
  transition: animation-duration 800ms var(--ease);
}
.marquee:hover .marquee-track { animation-duration: 140s; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-card {
  flex: 0 0 auto;
  width: 360px;
  height: 240px;
  position: relative;
  overflow: hidden;
  filter: grayscale(15%);
  transition: filter var(--t-base) var(--ease);
}
.marquee-card:hover { filter: grayscale(0); }
.marquee-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.marquee-card:hover img { transform: scale(1.06); }
.marquee-card-tag {
  position: absolute;
  bottom: 16px; left: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-l);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
}

/* ─────────────────────────────────────────────
   VILLA · Overlap mosaic
   ─────────────────────────────────────────────*/
.villa {
  background: var(--bg-paper);
  position: relative;
}
.villa-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.villa-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 90px;
  gap: 14px;
}
.villa-mosaic figure {
  overflow: hidden;
  box-shadow: 0 25px 50px -25px rgba(0,0,0,0.4);
  position: relative;
}
.villa-mosaic figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.villa-mosaic figure:hover img { transform: scale(1.05); }
.villa-mosaic .m-1 { grid-column: 1 / 6; grid-row: 1 / 5; }
.villa-mosaic .m-2 { grid-column: 4 / 7; grid-row: 4 / 7; box-shadow: 0 40px 80px -30px rgba(200,62,43,0.4); }
.villa-mosaic .m-3 { grid-column: 1 / 4; grid-row: 5 / 7; }

.villa-year {
  position: absolute;
  top: -30px; right: -10px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.85;
  color: var(--gold);
  opacity: 0.18;
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: -1;
}

.villa-keys {
  display: contents;
  grid-template-columns: repeat(4villa-keys, 1fr);
  gap: 18px;
  margin-top: 36px;
  max-width: 640px;
}
.villa-key {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}
.villa-key b {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 10px;
}
.villa-key span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

/* ─────────────────────────────────────────────
   MUSEUM FLOORS · BENTO GRID
   ─────────────────────────────────────────────*/
.floors {
  background: var(--bg-obsidian);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.floors::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(200,62,43,0.12), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(212,175,55,0.08), transparent 50%);
  pointer-events: none;
}
.floors .section { position: relative; }
.floors .section-label { color: var(--gold-l); }
.floors .section-label::before { background: var(--gold); }
.floors .h-display { color: #fff; }
.floors .h-display em { color: var(--gold-l); }
.floors .lede { color: rgba(255,255,255,0.7); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
  margin-top: 60px;
}
.bento-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  cursor: pointer;
  transition:
    background var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
  display: grid;
  grid-template-rows: auto 1fr;
}
.bento-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
  z-index: 4;
}
.bento-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-4px);
}
.bento-card:hover::after { transform: scaleX(1); }
.bento-card.featured { grid-column: span 4; grid-row: span 2; }
.bento-card.col-2     { grid-column: span 2; }
.bento-card.col-6     { grid-column: span 6; }

/* Media slot — default: top strip on small cards */
.bento-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
  background: #0a0a0a;
}
.bento-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85) sepia(0.08) contrast(1.05);
  transition: transform 1.6s var(--ease), filter var(--t-base) var(--ease);
}
.bento-card:hover .bento-media img {
  transform: scale(1.07);
  filter: brightness(0.92) saturate(1) sepia(0) contrast(1);
}
.bento-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%),
    radial-gradient(circle at 20% 80%, rgba(200,62,43,0.25), transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.bento-media-tag {
  position: absolute;
  z-index: 2;
  left: 16px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-l);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border: 1px solid rgba(212,175,55,0.25);
}

/* Body slot — wraps the editorial content */
.bento-body {
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Featured: split layout (image side-by-side with content) */
.bento-card.featured {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
}
.bento-card.featured .bento-media {
  aspect-ratio: auto;
  min-height: 0;
  align-self: stretch;
  border-bottom: 1px solid var(--line-dark);
  border-right: none;
}
.bento-card.featured .bento-body { padding: 44px; }

/* Wide col-6 (Giardino): image left third, content right */
.bento-card.col-6 {
  grid-template-columns: 1.1fr 1.4fr;
  grid-template-rows: 1fr;
}
.bento-card.col-6 .bento-media {
  aspect-ratio: auto;
  height: 100%;
  border-bottom: none;
  border-right: 1px solid var(--line-dark);
}
.bento-card.col-6 .bento-body { padding: 40px; }

.bento-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bento-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}
.bento-num span {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}
.bento-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: -0.01em;
}
.bento-card.featured .bento-name {
  font-size: clamp(32px, 3.4vw, 52px);
}
.bento-name em { font-style: italic; color: var(--gold-l); }
.bento-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  max-width: 540px;
}
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.bento-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-l);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Hidden expansion content */
.bento-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 700ms var(--ease),
    opacity 500ms var(--ease) 100ms,
    margin 500ms var(--ease);
  margin-top: 0;
}
.bento-card:hover .bento-more,
.bento-card.open .bento-more {
  max-height: 260px;
  opacity: 1;
  margin-top: 16px;
}
.bento-more-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.bento-more-row b {
  color: var(--gold-l);
  font-weight: 600;
  font-size: 22px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-transform: none;
  min-width: 90px;
}

.bento-art {
  position: absolute;
  inset: auto -40px -40px auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--terracotta), transparent 70%);
  opacity: 0.18;
  filter: blur(40px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.bento-card:hover .bento-art {
  opacity: 0.32;
  transform: scale(1.2);
}
.bento-card.featured .bento-art {
  background: radial-gradient(circle, var(--gold), transparent 70%);
  width: 320px; height: 320px;
}

/* ─────────────────────────────────────────────
   GUTTUSO HIGHLIGHT
   ─────────────────────────────────────────────*/
.guttuso {
  background: var(--bg-gallery);
  position: relative;
}
.guttuso-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.guttuso-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(13,13,13,0.5),
    inset 0 0 0 1px var(--line);
}
.guttuso-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.18) saturate(0.95) contrast(1.05);
  transition: transform 8s var(--ease);
}
.guttuso-portrait:hover img { transform: scale(1.04); }
.guttuso-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.5));
}
.guttuso-portrait-cap {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.guttuso-portrait-cap b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.quote {
  margin-top: 40px;
  border-left: 2px solid var(--terracotta);
  padding: 8px 0 8px 32px;
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute;
  left: 16px; top: -36px;
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--terracotta);
  opacity: 0.15;
  line-height: 1;
}
.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}
.quote-attr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-attr::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--terracotta);
}

.guttuso-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.gm-k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.gm-v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.gm-v em { color: var(--terracotta); font-style: italic; }

/* ─────────────────────────────────────────────
   OUTDOOR · Horizontal scroll cards
   ─────────────────────────────────────────────*/
.outdoor {
  background: var(--bg-obsidian);
  color: #fff;
}
.outdoor .h-display { color: #fff; }
.outdoor .h-display em { color: var(--gold-l); }
.outdoor .section-label { color: var(--gold-l); }
.outdoor .section-label::before { background: var(--gold); }
.outdoor .lede { color: rgba(255,255,255,0.7); }
.outdoor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.out-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.out-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.4);
}
.out-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.out-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
  filter: brightness(0.85);
}
.out-card:hover .out-card-media img {
  transform: scale(1.07);
  filter: brightness(1);
}
.out-card-num {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-l);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
}
.out-card-body {
  padding: 28px;
}
.out-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff;
}
.out-card-title em { color: var(--gold-l); font-style: italic; }
.out-card-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

/* ─────────────────────────────────────────────
   VISIT · Booking-style cards
   ─────────────────────────────────────────────*/
.visit { background: var(--bg-gallery); }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.v-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 32px;
  position: relative;
  transition: all var(--t-base) var(--ease);
  overflow: hidden;
}
.v-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 40px 60px -30px rgba(200,62,43,0.18);
  transform: translateY(-4px);
}
.v-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease);
}
.v-card:hover::before { transform: scaleX(1); }
.v-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--terracotta);
  transition: all var(--t-base) var(--ease);
}
.v-card:hover .v-icon {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.v-icon svg { width: 20px; height: 20px; }
.v-card-k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.v-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.v-card-rows { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }
.v-card-rows .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.v-card-rows .row:last-child { border-bottom: none; }
.v-card-rows .row b {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.v-card-rows .row span {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

/* ─────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────*/
.footer {
  background: var(--bg-ink);
  color: rgba(255,255,255,0.7);
  padding: 80px var(--pad) 36px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.footer-brand em { color: var(--gold-l); font-style: italic; }
.footer-blurb {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 360px;
}
.footer-col-h {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer-col a:hover {
  color: var(--gold-l);
  transform: translateX(4px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────────────────────────────────────────
   IMG FALLBACK PLACEHOLDER
   ─────────────────────────────────────────────*/
.img-fallback {
  position: relative;
  width: 100%; height: 100%;
  min-height: 220px;
  background:
    radial-gradient(circle at 30% 20%, rgba(212,175,55,0.4), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(200,62,43,0.6), transparent 50%),
    linear-gradient(135deg, #2a1410 0%, #4a1f15 50%, #1a0d08 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}
.img-fallback::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(212,175,55,0.25);
  pointer-events: none;
}
.img-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.03) 12px 13px);
  pointer-events: none;
}
.img-fallback .fb-mark {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 14px;
  opacity: 0.85;
}
.img-fallback .fb-text {
  max-width: 80%;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────*/
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-cell:nth-child(3) { border-left: none; padding-left: 0; }
  .bento-card.featured { grid-column: span 6; grid-row: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .bento-card.featured .bento-media { aspect-ratio: 16 / 9; height: auto; border-right: none; border-bottom: 1px solid var(--line-dark); }
  .bento-card.col-6 { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .bento-card.col-6 .bento-media { aspect-ratio: 21 / 9; height: auto; border-right: none; border-bottom: 1px solid var(--line-dark); }
  .bento-card.col-2 { grid-column: span 3; }
  .audio-inner { grid-template-columns: 1fr; gap: 24px; }
  .audio-stage { border: none; padding: 0; }
  .audio-id { justify-content: flex-start; }
  .audio-controls { justify-content: center; }
}
@media (max-width: 800px) {
  .hero { min-height: 600px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-coord { text-align: left; }
  .hero-vert { display: none; }
  .bagheria-grid, .villa-grid, .guttuso-grid { grid-template-columns: 1fr; }
  .bagheria-stats, .guttuso-meta { grid-template-columns: 1fr 1fr; }
  .outdoor-grid, .visit-grid { grid-template-columns: 1fr; }
  .bento-card.col-2 { grid-column: span 6; }
  .bento-body { padding: 26px; }
  .bento-card.featured .bento-body, .bento-card.col-6 .bento-body { padding: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .marquee-card { width: 260px; height: 180px; }
}
@media (max-width: 520px) {
  .nav-brand-text { font-size: 14px; }
  .nav-brand-text em { font-size: 7px; }
  .nav-cta { padding: 10px 14px; font-size: 9px; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-cell { border-left: none; padding-left: 0; }
  .bagheria-stats, .guttuso-meta, .villa-keys { grid-template-columns: 1fr; }
  .villa-mosaic .m-1 { grid-column: 1 / 7; grid-row: 1 / 4; }
  .villa-mosaic .m-2 { grid-column: 1 / 7; grid-row: 4 / 6; }
  .villa-mosaic .m-3 { grid-column: 1 / 7; grid-row: 6 / 8; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.da-palermo {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
  transform: translateX(154px);
  
}

.sul-mare {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
  transform: translateX(347px);
}

.prima-traccia {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
  transform: translateX(515px);
}

.text p,
p[data-tts] {
    text-align: justify;
    hyphens: auto;
}

@media (max-width: 1100px) {
  .stat-num, .stat-num2, .stat-num3,
  .da-palermo, .sul-mare, .prima-traccia { transform: none; }
  .stat-num, .stat-num2, .stat-num3 { text-align: left; }
}

.v-card-image {
    margin: -36px -32px 28px;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
}

.v-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.v-card:hover .v-card-image img {
    transform: scale(1.05);
}

/* ─────────────────────────────────────────────
   BIBLIOTECA INTRO
   ───────────────────────────────────────────── */

.biblioteca-intro {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    margin-bottom: 60px;
}

.biblioteca-image {
    position: relative;
    overflow: hidden;

    box-shadow:
        0 1px 0 var(--line),
        0 30px 60px -30px rgba(13,13,13,0.35),
        0 60px 120px -60px rgba(200,62,43,0.25);
}

.biblioteca-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 8s var(--ease);
}

.biblioteca-image:hover img {
    transform: scale(1.05);
}

/* CTA Biblioteca */

.biblioteca-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
}

.biblioteca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 28px;

    background: var(--terracotta);
    color: #fff;

    border-radius: 999px;

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.24em;
    text-transform: uppercase;

    transition:
        background var(--t-fast) var(--ease),
        transform var(--t-fast) var(--ease),
        letter-spacing var(--t-fast) var(--ease);
}

.biblioteca-btn:hover {
    background: var(--terracotta-d);
    transform: translateY(-2px);
    letter-spacing: 0.28em;
}

.biblioteca-note {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    color: var(--ink-soft);
}

/* Didascalia immagine */

.biblioteca-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);

    padding: 16px 20px;

    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.18);
}

.biblioteca-caption strong {
    display: block;

    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;

    color: var(--ink);

    margin-bottom: 4px;
}

.biblioteca-caption span {
    font-family: var(--font-mono);
    font-size: 9px;

    letter-spacing: 0.24em;
    text-transform: uppercase;

    color: var(--ink-mute);
}

/* ─────────────────────────────────────────────
   BIBLIOTECA · STORY
   ───────────────────────────────────────────── */

.biblioteca-story {
    margin-top: clamp(80px, 10vw, 120px);
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.biblioteca-story .body-text {
    columns: 2;
    column-gap: clamp(40px, 5vw, 80px);
}

.biblioteca-story .body-text p {
    break-inside: avoid;
    margin-bottom: 22px;
}



@media (max-width: 800px) {

    .biblioteca-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .biblioteca-caption {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .biblioteca-intro {
        grid-template-columns: 1fr;
    }

    .biblioteca-image {
        order: -1;
    }

    .biblioteca-story .body-text {
        columns: 1;
    }

}
