/* ==========================================================================
   DHOME — design system
   Ink + Bone + Oro Dhome (#C89F66). Bodoni Moda / Inter Tight / Geist Mono.
   ========================================================================== */
:root {
  --ink: #0b0b0c;
  --ink-2: #131314;
  --ink-3: #1d1d1f;
  --bone: #f3eee6;
  --bone-2: #e7dfd2;
  --stone: #d8d1c5;
  --gold: #c89f66;
  --gold-l: #e7c893;
  --gold-d: #8d6a3c;
  --mute: #8c867c;
  --line: rgba(243, 238, 230, .14);
  --line-d: rgba(11, 11, 12, .14);
  --serif: 'Bodoni Moda', 'Didot', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --pad: clamp(16px, 4vw, 60px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.serif { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 em, h2 em, h3 em, .serif em { font-style: italic; color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* line masks for reveals */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--bone); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 8px 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--gold); transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); }
.btn .ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); transition: transform .6s var(--ease), background .5s, color .5s;
}
.btn:hover .ico { transform: rotate(-45deg); background: var(--ink); color: var(--gold); }
.btn .ico svg { width: 14px; height: 14px; }
.btn-gold { --bg: var(--gold); --fg: var(--ink); }
.btn-gold::before { background: var(--bone); }
.btn-ghost { --bg: transparent; --fg: var(--bone); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost .ico { background: var(--bone); color: var(--ink); }
.btn-dark { --bg: var(--ink); --fg: var(--bone); }
.btn-dark .ico { background: var(--bone); color: var(--ink); }
.btn-sm { height: 42px; padding: 0 6px 0 18px; font-size: 13px; }
.btn-sm .ico { width: 30px; height: 30px; }

.link-u { position: relative; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(200, 159, 102, .55);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .4s, border-color .4s;
}
.cursor-ring span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor-ring.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); }
.cursor-ring.is-label span { opacity: 1; }
.cursor-ring.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--gold); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
  transition: transform .8s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav.no-anim { transition: none; }
.nav-logo img { width: 128px; height: auto; }
.nav-links {
  position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(20, 20, 22, .38);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 40px rgba(0, 0, 0, .25);
}
.nav-links a { position: relative; z-index: 1; padding: 10px 18px; font-size: 13.5px; color: rgba(243, 238, 230, .82); transition: color .35s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-blob { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--bone); opacity: 0; transition: opacity .3s; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(20, 20, 22, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.nav-burger i { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: var(--bone); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); padding: 110px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu a.big { display: block; font-family: var(--serif); font-size: clamp(44px, 12vw, 80px); line-height: 1.05; }
.mobile-menu a.big em { color: var(--gold); }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav .btn { display: none; }
}

/* ---------- page curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 150; background: var(--ink);
  display: grid; place-items: center; pointer-events: none;
  clip-path: inset(0 0 0 0);
}
.curtain::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(200, 159, 102, .18)); }
.curtain img { width: min(260px, 50vw); opacity: .9; }
.curtain .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   HOME — preloader + hero "la O è una finestra"
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 140; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad); color: var(--ink);
}
.preloader .count { font-family: var(--serif); font-size: clamp(56px, 9vw, 140px); line-height: .8; font-variant-numeric: tabular-nums; }
.preloader .count sup { font-size: .3em; vertical-align: top; margin-left: 6px; }

.hero { position: relative; height: 100vh; height: 100svh; background: var(--bone); color: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; clip-path: inset(50% 50% 50% 50% round 999px); will-change: clip-path; background: #1a1a1a; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transform-origin: 50% 45%; filter: saturate(.9) contrast(1.05); }
.hero-shade { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, rgba(8, 8, 9, .55) 0%, rgba(8, 8, 9, .08) 32%, rgba(8, 8, 9, .25) 58%, rgba(8, 8, 9, .86) 100%); }

.hero-word {
  --hw: clamp(88px, 19.5vw, 400px);
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2;
  font-family: var(--serif); font-weight: 400; font-size: var(--hw); line-height: 1;
  font-variation-settings: 'opsz' 96;
  pointer-events: none; color: var(--ink);
}
.hw { position: absolute; top: 0; display: flex; white-space: nowrap; transform: translateY(-50%); }
.hw-l { right: 0; }
.hw-r { left: 0; }
.hw .m { display: inline-block; overflow: hidden; padding: .02em .01em .1em; margin-bottom: -.08em; }
.hw .ch { display: inline-block; will-change: transform; }

.hero-tag {
  position: absolute; z-index: 3; left: 50%; top: calc(50% + var(--tag-y, 24vh)); transform: translateX(-50%);
  display: flex; gap: 18px; align-items: center; white-space: nowrap; color: var(--ink); opacity: 0;
}
.hero-tag i { width: 40px; height: 1px; background: currentColor; opacity: .4; }

.hero-copy {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 92px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end; color: var(--bone);
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--gold-l); }
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 159, 102, .25); }
.hero-title { font-family: var(--serif); font-size: clamp(54px, 8.6vw, 156px); line-height: .9; letter-spacing: -.02em; }
.hero-title em { color: var(--gold-l); }
.hero-side { justify-self: end; max-width: 520px; }
.hero-sub { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: rgba(243, 238, 230, .84); margin: 0 0 26px; }

/* liquid-glass search */
.search {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(30, 30, 32, .32);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .22), 0 20px 60px rgba(0, 0, 0, .35);
}
.seg { position: relative; display: flex; padding: 0; border-radius: 999px; }
.seg button { position: relative; z-index: 1; height: 44px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; color: rgba(243, 238, 230, .8); transition: color .4s; }
.seg button.is-on { color: var(--ink); }
.seg-thumb { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--bone); box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; outline: 0; background: transparent;
  color: var(--bone); font-size: 14px;
}
.search input::placeholder { color: rgba(243, 238, 230, .55); }
.search .go { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease); }
.search .go:hover { transform: scale(1.08) rotate(-45deg); }
.search .go svg { width: 16px; height: 16px; }

.hero-foot {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 26px;
  display: flex; justify-content: space-between; align-items: center; color: rgba(243, 238, 230, .7);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.hero-foot .scroll-hint { display: flex; align-items: center; gap: 10px; }
.hero-foot .scroll-hint i { position: relative; width: 1px; height: 22px; background: rgba(243, 238, 230, .25); overflow: hidden; }
.hero-foot .scroll-hint i::after { content: ''; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--gold); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
.hero-copy, .hero-foot { opacity: 0; }

@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; bottom: 84px; gap: 22px; }
  .hero-side { justify-self: stretch; }
  .hero-foot .geo { display: none; }
  .seg button { padding: 0 12px; font-size: 12.5px; }
}
@media (max-width: 560px) {
  .search { flex-wrap: wrap; border-radius: 26px; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .search input { flex: 1 1 auto; }
  .hero-sub { font-size: 15px; margin-bottom: 18px; }
}

/* ==========================================================================
   MANIFESTO — parole che si accendono, immagini dentro il testo
   ========================================================================== */
.section { position: relative; padding: clamp(100px, 16vh, 200px) var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--mute); margin-bottom: 36px; }
.eyebrow b { font-weight: 400; color: var(--gold); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

.manifesto { background: var(--bone); color: var(--ink); }
.mf-text {
  font-family: var(--serif); font-size: clamp(36px, 5.6vw, 96px); line-height: 1.04; letter-spacing: -.02em;
  max-width: 15.5em;
}
.mf-text .w { display: inline-block; opacity: .1; transition: none; }
.mf-text em { color: var(--gold-d); }
.chip {
  display: inline-block; vertical-align: -.08em; width: 1.75em; height: .78em; margin: 0 .08em;
  border-radius: 999px; overflow: hidden; transform: scale(0); transform-origin: 50% 60%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.chip.round { width: .78em; }
.chip img { width: 100%; height: 100%; object-fit: cover; }
.mf-foot { display: flex; flex-wrap: wrap; gap: 40px 80px; justify-content: space-between; align-items: end; margin-top: clamp(60px, 10vh, 120px); border-top: 1px solid var(--line-d); padding-top: 28px; }
.mf-foot p { max-width: 460px; margin: 0; color: #4c4842; font-size: 17px; }

/* ==========================================================================
   BURST — 400+ immobili che esplodono intorno al numero
   ========================================================================== */
.burst { position: relative; height: 100vh; height: 100svh; background: var(--ink); overflow: hidden; }
.burst-center { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(720px, 90vw); }
.burst-num { font-family: var(--serif); font-size: clamp(130px, 22vw, 380px); line-height: .8; letter-spacing: -.04em; font-variation-settings: 'opsz' 96; }
.burst-num sup { font-size: .32em; color: var(--gold); vertical-align: top; position: relative; top: .1em; margin-left: .04em; }
.burst-cap { font-size: clamp(16px, 1.4vw, 20px); color: rgba(243, 238, 230, .7); max-width: 460px; margin: 26px auto 30px; }
.burst-center .mono { color: var(--gold); }
.burst-cards { position: absolute; inset: 0; z-index: 2; }
.bcard { position: absolute; width: var(--w, 200px); will-change: transform; }
.bcard .bin { border-radius: 12px; overflow: hidden; background: var(--ink-3); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.bcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.85) contrast(1.04); }
.bcard .meta { display: flex; justify-content: space-between; gap: 8px; padding: 9px 11px 10px; font-size: 11px; color: rgba(243, 238, 230, .75); }
.bcard .meta b { font-weight: 500; color: var(--bone); }
.bcard.tag { width: auto; }
.bcard.tag .bin { padding: 12px 18px; background: var(--gold); color: var(--ink); font-family: var(--serif); font-size: 22px; font-style: italic; border-radius: 999px; white-space: nowrap; }
.bcard.tag.dark .bin { background: var(--bone); }
@media (max-width: 760px) {
  .bcard { --w: 120px !important; }
  .bcard .meta { display: none; }
}

/* ==========================================================================
   FEATURED — carosello curvo (vista dall'interno di un cilindro)
   ========================================================================== */
.featured { background: var(--ink); padding-bottom: clamp(60px, 10vh, 120px); overflow: hidden; }
.feat-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.feat-head h2 { font-family: var(--serif); font-size: clamp(44px, 6.4vw, 110px); line-height: .95; letter-spacing: -.02em; }
.feat-head .side { max-width: 380px; color: rgba(243, 238, 230, .65); }
.ring-wrap { position: relative; height: clamp(380px, 62vh, 620px); margin-top: clamp(40px, 7vh, 80px); perspective: 900px; perspective-origin: 50% 50%; cursor: grab; touch-action: pan-y; user-select: none; }
.ring-wrap.is-drag { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.rcard {
  position: absolute; left: 0; top: 0; width: var(--cw, 300px); height: var(--ch, 400px);
  margin: calc(var(--ch, 400px) / -2) 0 0 calc(var(--cw, 300px) / -2);
  border-radius: 6px; overflow: hidden; background: var(--ink-3);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform;
}
.rcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); filter: saturate(.9); pointer-events: none; }
.rcard:hover img { transform: scale(1.0); }
.rcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 55%, rgba(0, 0, 0, .85)); pointer-events: none; }
.rcard .top, .rcard .bot { position: absolute; z-index: 2; left: 16px; right: 16px; }
.rcard .top { top: 14px; display: flex; justify-content: space-between; color: rgba(243, 238, 230, .85); }
.rcard .bot { bottom: 16px; }
.rcard .t { font-family: var(--serif); font-size: 22px; line-height: 1.08; margin-bottom: 10px; }
.rcard .p { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: rgba(243, 238, 230, .75); }
.rcard .p b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--gold-l); }
.feat-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; gap: 20px; flex-wrap: wrap; }
.feat-progress { flex: 1; max-width: 420px; height: 1px; background: var(--line); position: relative; }
.feat-progress i { position: absolute; left: 0; top: -1px; height: 3px; width: 22%; background: var(--gold); }

/* ==========================================================================
   PIXEL TRANSITION + SERVIZI (card impilate)
   ========================================================================== */
.pixels { position: relative; height: 34vh; background: var(--ink); }
.pixels canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.services { background: var(--bone); color: var(--ink); padding-top: 40px; }
.svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 8vh, 90px); }
.svc-head h2 { font-family: var(--serif); font-size: clamp(44px, 6.4vw, 110px); line-height: .95; letter-spacing: -.02em; }
.svc-head h2 em { color: var(--gold-d); }
.svc-head p { max-width: 460px; justify-self: end; color: #4c4842; font-size: 17px; margin: 0; }
.svc-stack { position: relative; }
.svc {
  position: sticky; top: calc(96px + var(--i) * 22px);
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(78vh, 720px);
  margin-bottom: 4vh; border-radius: 28px; overflow: hidden; background: var(--ink); color: var(--bone);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .12); transform-origin: 50% 0;
}
.svc-body { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px); }
.svc-idx { display: flex; justify-content: space-between; color: var(--gold); }
.svc h3 { font-family: var(--serif); font-size: clamp(40px, 5vw, 86px); line-height: .95; letter-spacing: -.02em; margin: 30px 0 22px; }
.svc h3 em { color: var(--gold-l); }
.svc p { color: rgba(243, 238, 230, .72); max-width: 470px; margin: 0 0 26px; font-size: 16.5px; }
.svc ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: rgba(243, 238, 230, .85); }
.svc li span { color: var(--gold); font-family: var(--mono); font-size: 11px; padding-top: 3px; }
.svc-media { position: relative; overflow: hidden; }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; }
.svc:nth-child(2) { background: #1a1714; }
.svc:nth-child(3) { background: #23201b; }
.svc:nth-child(4) { background: var(--gold); color: var(--ink); }
.svc:nth-child(4) p, .svc:nth-child(4) li { color: rgba(11, 11, 12, .78); }
.svc:nth-child(4) .svc-idx, .svc:nth-child(4) li span, .svc:nth-child(4) h3 em { color: var(--ink); }
.svc:nth-child(4) ul, .svc:nth-child(4) li { border-color: rgba(11, 11, 12, .18); }
@media (max-width: 860px) {
  .svc-head { grid-template-columns: 1fr; }
  .svc-head p { justify-self: start; }
  .svc { grid-template-columns: 1fr; top: calc(76px + var(--i) * 14px); }
  .svc-media { height: 220px; order: -1; }
}

/* ==========================================================================
   SPOTLIGHT AGENTI — ritratto che cambia passando sugli avatar
   ========================================================================== */
.spot {
  position: relative; min-height: 100vh; overflow: hidden; color: var(--ink);
  background: radial-gradient(120% 90% at 70% 30%, #efe9df 0%, #d9d1c4 55%, #c9c0b2 100%);
  padding: clamp(100px, 14vh, 160px) var(--pad) 48px;
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: 1fr auto; gap: 30px;
}
.spot-left h2 { font-family: var(--serif); font-size: clamp(44px, 5.4vw, 92px); line-height: .95; letter-spacing: -.02em; }
.spot-left h2 em { color: var(--gold-d); }
.spot-left p { color: #4c4842; max-width: 360px; margin: 26px 0 0; }
.spot-stage { position: relative; grid-row: 1 / span 2; align-self: end; height: min(78vh, 760px); }
.spot-face { position: absolute; inset: 0; opacity: 0; }
.spot-face.is-on { opacity: 1; }
.spot-face .ph { position: absolute; inset: 0; border-radius: 0; background: none; }
.spot-face .ph .sil { opacity: .9; }
.spot-face img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); object-fit: contain; }
.spot-right { align-self: start; justify-self: end; text-align: right; max-width: 320px; }
.spot-name { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 56px); line-height: 1; min-height: 2.1em; }
.spot-role { margin-top: 14px; color: var(--gold-d); }
.spot-facts { margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--line-d); text-align: left; }
.spot-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line-d); font-size: 14px; }
.spot-facts span { color: #6d675e; }
.spot-right .btn { margin-top: 26px; }
.spot-row { grid-column: 1; align-self: end; }
.spot-row .mono { color: #6d675e; display: block; margin-bottom: 14px; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.av {
  position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); transition: transform .45s var(--ease), box-shadow .3s;
}
.av:hover, .av.is-on { transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 2px var(--gold), 0 12px 24px rgba(0, 0, 0, .18); }
.av.more { display: grid; place-items: center; background: var(--ink); color: var(--bone); font-family: var(--mono); font-size: 11px; box-shadow: none; }
.spot-big {
  position: absolute; z-index: 0; left: 50%; bottom: -.12em; transform: translateX(-50%);
  font-family: var(--serif); font-size: 30vw; line-height: .8; color: rgba(255, 255, 255, .35); pointer-events: none; white-space: nowrap;
}
.spot > *:not(.spot-big) { position: relative; z-index: 1; }
@media (max-width: 960px) {
  .spot { grid-template-columns: 1fr; grid-template-rows: auto; }
  .spot-stage { grid-row: auto; height: 62vh; order: 2; }
  .spot-right { justify-self: start; text-align: left; order: 3; }
  .spot-row { order: 4; }
}

/* ---------- portrait placeholder (finché non arrivano le foto vere) ---------- */
.ph {
  --h: 30;
  position: relative; overflow: hidden; border-radius: inherit;
  background: radial-gradient(90% 70% at 50% 25%, hsl(var(--h) 22% 86%) 0%, hsl(var(--h) 14% 70%) 70%, hsl(var(--h) 12% 60%) 100%);
}
.ph { container-type: inline-size; }
.ph .sil { position: absolute; left: 50%; bottom: -3%; width: 84%; transform: translateX(-50%); color: hsl(var(--h) 14% 30%); opacity: .5; }
.ph .ini { position: absolute; left: 7cqw; top: 6cqw; font-family: var(--serif); font-style: italic; font-size: 22cqw; line-height: 1; color: rgba(255, 255, 255, .95); letter-spacing: -.03em; }
.ph .soon { position: absolute; right: 7cqw; top: 9cqw; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.av .ph .ini { left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 44cqw; }
.av .ph .sil, .av .ph .soon { display: none; }
.spot-face .ph .sil { width: 78%; color: hsl(var(--h) 12% 22%); opacity: .55; }
.spot-face .ph .ini { left: auto; right: 4cqw; top: auto; bottom: 10cqw; font-size: 15cqw; color: rgba(255, 255, 255, .9); }

/* ==========================================================================
   VALUTAZIONE
   ========================================================================== */
.valuta { position: relative; min-height: 100vh; overflow: hidden; display: grid; grid-template-columns: 1fr minmax(320px, 480px); gap: 60px; align-items: center; }
.valuta-bg { position: absolute; inset: -10% 0; z-index: 0; }
.valuta-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.55); }
.valuta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 12, .85) 0%, rgba(11, 11, 12, .35) 60%, rgba(11, 11, 12, .65) 100%); }
.valuta > *:not(.valuta-bg) { position: relative; z-index: 1; }
.valuta h2 { font-family: var(--serif); font-size: clamp(52px, 7.4vw, 132px); line-height: .9; letter-spacing: -.025em; }
.valuta .lead { max-width: 440px; color: rgba(243, 238, 230, .75); margin: 28px 0 0; font-size: 17px; }
.glass {
  border-radius: 28px; padding: clamp(24px, 3vw, 36px);
  background: rgba(24, 24, 26, .42);
  -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .2), 0 40px 80px rgba(0, 0, 0, .4);
}
.field { position: relative; display: block; margin-bottom: 14px; }
.field span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 238, 230, .55); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 0; outline: 0;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: var(--bone); transition: box-shadow .3s, background .3s; appearance: none; -webkit-appearance: none;
}
.field textarea { height: 96px; padding: 14px 16px; resize: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(255, 255, 255, .09); }
.field input.is-err { box-shadow: inset 0 0 0 1px #e07a5f; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(243, 238, 230, .7); margin: 6px 0 18px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); margin: 0; display: grid; place-items: center; transition: background .3s; }
.check input:checked { background: var(--gold); box-shadow: none; }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check.is-err input { box-shadow: inset 0 0 0 1px #e07a5f; }
.form-done { display: none; text-align: left; }
.form-done h3 { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 18px 0 14px; }
.scramble { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--gold); min-height: 1.4em; }
@media (max-width: 900px) { .valuta { grid-template-columns: 1fr; } }

/* ==========================================================================
   MARQUEE + FOOTER
   ========================================================================== */
.marquee-wrap { position: relative; padding: 70px 0; background: var(--ink); overflow: hidden; }
.marquee { display: flex; width: max-content; background: var(--gold); color: var(--ink); transform: rotate(-2.2deg) scale(1.04); }
.marquee + .marquee { position: absolute; left: 0; top: 50%; background: var(--bone); transform: translateY(-50%) rotate(2deg) scale(1.04); z-index: -0; opacity: .1; }
.marquee .track { display: flex; flex: none; align-items: center; gap: 46px; padding: 22px 23px; white-space: nowrap; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 56px); }
.marquee .track em { font-style: italic; }
.marquee .star { width: .5em; height: .5em; flex: none; }

.footer { position: relative; background: var(--ink); padding: clamp(80px, 12vh, 140px) var(--pad) 28px; overflow: hidden; }
.foot-cta { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.foot-cta h2 { font-family: var(--serif); font-size: clamp(48px, 7vw, 120px); line-height: .92; letter-spacing: -.02em; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 44px 0; }
.foot-grid h4 { margin: 0 0 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; color: var(--mute); }
.foot-grid a, .foot-grid p { display: block; margin: 0 0 8px; color: rgba(243, 238, 230, .82); font-size: 15px; }
.foot-word { position: relative; margin-top: 10px; user-select: none; }
.foot-word svg { width: 100%; height: auto; display: block; }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; color: var(--mute); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   PAGINA AGENTI (directory)
   ========================================================================== */
.page-top { padding: clamp(140px, 20vh, 220px) var(--pad) 40px; }
.ag-title { font-family: var(--serif); font-size: clamp(56px, 10vw, 190px); line-height: .86; letter-spacing: -.03em; }
.ag-title em { color: var(--gold); }
.ag-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.ag-intro p { max-width: 460px; color: rgba(243, 238, 230, .7); margin: 0; font-size: 17px; }
.ag-tools { position: sticky; top: 0; z-index: 20; padding: 92px var(--pad) 16px; margin-top: -76px; background: linear-gradient(180deg, var(--ink) 75%, rgba(11, 11, 12, 0)); }
.ag-tools-in { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chipbtn { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13px; color: rgba(243, 238, 230, .8); box-shadow: inset 0 0 0 1px var(--line); transition: background .35s, color .35s, box-shadow .35s; }
.chipbtn:hover { box-shadow: inset 0 0 0 1px rgba(243, 238, 230, .4); }
.chipbtn.is-on { background: var(--bone); color: var(--ink); box-shadow: none; }
.ag-search { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); min-width: 260px; }
.ag-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--bone); font-size: 14px; }
.ag-search svg { width: 16px; height: 16px; opacity: .6; }
.ag-zone { height: 44px; padding: 0 38px 0 16px; border-radius: 999px; border: 0; outline: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--bone); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; font-size: 13px; }
.ag-zone option { color: var(--ink); }
.ag-count { color: var(--mute); padding: 0 var(--pad); margin: 18px 0 0; }
.ag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 18px; padding: 26px var(--pad) 120px; }
.ag-card { position: relative; display: block; }
.ag-card .pic { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; }
.ag-card .pic > * { transition: transform 1.1s var(--ease), filter .8s; }
.ag-card:hover .pic > * { transform: scale(1.05); }
.ag-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.ag-card .hover-cta { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--bone); color: var(--ink); font-size: 13px; font-weight: 500; transform: translateY(140%); transition: transform .7s var(--ease); }
.ag-card .hover-cta i { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-style: normal; }
.ag-card:hover .hover-cta { transform: translateY(0); }
.ag-card .badge { position: absolute; z-index: 2; top: 12px; left: 12px; height: 26px; padding: 0 10px; display: flex; align-items: center; border-radius: 999px; background: rgba(11, 11, 12, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--bone); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.ag-card .badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7ed69a; margin-right: 7px; box-shadow: 0 0 0 3px rgba(126, 214, 154, .2); }
.ag-card .info { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding-top: 14px; }
.ag-card .name { font-family: var(--serif); font-size: 25px; line-height: 1.05; }
.ag-card .role { margin-top: 6px; color: var(--gold); }
.ag-card .zone { color: var(--mute); text-align: right; }
.ag-empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--mute); display: none; }
@media (max-width: 1100px) { .ag-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .ag-grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .ag-card .name { font-size: 19px; }
  .ag-card .zone { display: none; }
  .ag-search { min-width: 0; flex: 1 1 100%; margin-left: 0; order: -1; }
  .ag-tools-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex-wrap: wrap; }
}

/* ==========================================================================
   PAGINA AGENTE + AGENDA
   ========================================================================== */
.ap { display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr; gap: clamp(30px, 5vw, 80px); padding: clamp(110px, 15vh, 150px) var(--pad) 80px; }
.ap-left { position: relative; }
.ap-sticky { position: sticky; top: 100px; }
.ap-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.ap-portrait .ph, .ap-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-portrait .rating { position: absolute; z-index: 2; right: 14px; top: 14px; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(11, 11, 12, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; }
.ap-portrait .rating svg { width: 13px; height: 13px; color: var(--gold); }
.ap-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.ap-stats div { padding: 16px 18px; }
.ap-stats div + div { box-shadow: -1px 0 0 var(--line); }
.ap-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.ap-stats span { display: block; margin-top: 6px; color: var(--mute); }
.ap-back { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); margin-bottom: 26px; }
.ap-back:hover { color: var(--bone); }
.ap-name { font-family: var(--serif); font-size: clamp(56px, 7.4vw, 128px); line-height: .88; letter-spacing: -.03em; }
.ap-name em { color: var(--gold); display: block; }
.ap-role { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 32px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: rgba(243, 238, 230, .85); }
.pill.gold { background: var(--gold); color: var(--ink); box-shadow: none; }
.ap-bio { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: rgba(243, 238, 230, .82); max-width: 620px; margin: 30px 0 0; }

.book { margin-top: 56px; border-radius: 28px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.book-tabs { position: relative; display: flex; padding: 6px; margin: 18px 18px 0; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.book-tabs button { position: relative; z-index: 1; flex: 1; height: 44px; border-radius: 999px; font-size: 14px; color: rgba(243, 238, 230, .75); transition: color .35s; }
.book-tabs button.is-on { color: var(--ink); }
.book-tabs .thumb { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--bone); transition: transform .6s var(--ease); }
.book-tabs.second .thumb { transform: translateX(100%); }
.book-pane { padding: 26px clamp(18px, 3vw, 34px) 32px; }
.book-pane[hidden] { display: none; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; }
.steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.steps i::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.steps i.is-on::after { transform: scaleX(1); }
.book h3 { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; margin: 0 0 6px; }
.book h3 em { color: var(--gold); }
.book .hint { color: var(--mute); margin: 0 0 20px; font-size: 14px; }

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-month { font-family: var(--serif); font-size: 26px; text-transform: capitalize; }
.cal-month em { color: var(--gold); }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background .3s, color .3s; }
.cal-nav button:hover:not(:disabled) { background: var(--bone); color: var(--ink); }
.cal-nav button:disabled { opacity: .25; cursor: default; }
.cal-nav svg { width: 14px; height: 14px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow span { text-align: center; padding: 8px 0; color: var(--mute); }
.cal-viewport { position: relative; overflow: hidden; }
.day {
  position: relative; aspect-ratio: 1 / .92; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 16px; font-variant-numeric: tabular-nums; color: rgba(243, 238, 230, .9);
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: background .3s, color .3s, box-shadow .3s, transform .45s var(--ease);
}
.day .dots { display: flex; gap: 3px; height: 4px; }
.day .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.day.is-free { cursor: pointer; }
.day.is-free:hover { background: rgba(200, 159, 102, .14); box-shadow: inset 0 0 0 1px rgba(200, 159, 102, .55); transform: translateY(-2px); }
.day.is-off { color: rgba(243, 238, 230, .22); background: transparent; box-shadow: none; }
.day.is-full { color: rgba(243, 238, 230, .3); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.day.is-full::after { content: ''; position: absolute; left: 30%; right: 30%; top: 50%; height: 1px; background: rgba(243, 238, 230, .25); transform: rotate(-20deg); }
.day.is-empty { visibility: hidden; }
.day.is-today { box-shadow: inset 0 0 0 1px rgba(243, 238, 230, .45); }
.day.is-sel { background: var(--gold); color: var(--ink); box-shadow: none; }
.day.is-sel .dots i { background: var(--ink); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; color: var(--mute); }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; }

.slots-wrap { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.slots-wrap[hidden] { display: none; }
.slots-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.slots-title b { font-family: var(--serif); font-weight: 400; font-size: 24px; text-transform: capitalize; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { height: 50px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; font-size: 15px; transition: background .3s, color .3s, box-shadow .3s; }
.slot:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-l); }
.slot:disabled { color: rgba(243, 238, 230, .22); text-decoration: line-through; cursor: not-allowed; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.slot.is-sel { background: var(--gold); color: var(--ink); box-shadow: none; }
.mtype { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 18px; }
.mtype label { position: relative; cursor: pointer; }
.mtype input { position: absolute; opacity: 0; }
.mtype span { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; transition: box-shadow .3s, background .3s; height: 100%; }
.mtype span svg { width: 20px; height: 20px; color: var(--gold); }
.mtype input:checked + span { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(200, 159, 102, .1); }
.summary { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: rgba(200, 159, 102, .1); box-shadow: inset 0 0 0 1px rgba(200, 159, 102, .35); margin-bottom: 20px; }
.summary .cal-ico { flex: none; width: 52px; height: 56px; border-radius: 12px; background: var(--bone); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.summary .cal-ico small { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #a3341f; margin-bottom: 3px; }
.summary .cal-ico b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.summary .txt { font-size: 14px; color: rgba(243, 238, 230, .85); }
.summary .txt b { display: block; font-weight: 500; color: var(--bone); font-size: 15px; text-transform: capitalize; }
.summary button { margin-left: auto; color: var(--gold); font-size: 13px; }
.bform-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bform-actions .back { color: var(--mute); font-size: 14px; }
.btn.is-loading .lbl { opacity: .4; }
.btn.is-loading .ico svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: center; padding: 30px 6px 10px; }
.success svg.house { width: 120px; height: 120px; margin: 0 auto 10px; display: block; }
.success svg.house path { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { font-size: clamp(34px, 3.4vw, 52px); }
.success p { color: rgba(243, 238, 230, .75); max-width: 460px; margin: 14px auto 0; }
.success .when { display: inline-flex; gap: 10px; align-items: center; margin-top: 22px; padding: 12px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(200, 159, 102, .45); color: var(--gold-l); font-size: 14px; }
.success .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); pointer-events: none; }

.ap-list { margin-top: 70px; }
.ap-list h3 { font-family: var(--serif); font-size: 40px; margin: 0 0 20px; }
.ap-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lcard { border-radius: 16px; overflow: hidden; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.lcard .im { aspect-ratio: 4 / 3; overflow: hidden; }
.lcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lcard:hover img { transform: scale(1.06); }
.lcard .tx { padding: 14px; }
.lcard .tx div { font-size: 14px; line-height: 1.3; min-height: 2.6em; }
.lcard .tx b { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--gold-l); }
@media (max-width: 980px) {
  .ap { grid-template-columns: 1fr; }
  .ap-sticky { position: relative; top: 0; }
  .ap-portrait { aspect-ratio: 4 / 4.2; }
}
@media (max-width: 640px) {
  .ap-list-grid { grid-template-columns: 1fr 1fr; }
  .mtype { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .day { font-size: 14px; border-radius: 10px; }
  .cal-dow, .cal-grid { gap: 4px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
