/* Ritrovo 2 — Ultra VIP */
:root {
  --bg: #050403;
  --bg-elev: #0e0c0a;
  --ink: #f7f1e6;
  --ink-muted: rgba(247, 241, 230, 0.58);
  --gold: #d4af67;
  --gold-soft: #f0dfb0;
  --gold-deep: #8a6a2f;
  --line: rgba(212, 175, 103, 0.28);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body:not(.is-ready) { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
::selection { background: rgba(212, 175, 103, 0.35); color: #fff; }

/* ===== VIP 3D INTRO ===== */
.vip-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(90, 62, 20, 0.35), transparent 55%),
    radial-gradient(ellipse at center, #120e0a 0%, #050403 70%);
  display: grid;
  place-items: center;
  transition: opacity 0.85s var(--ease), visibility 0.85s;
}
.vip-intro.exit { pointer-events: none; }
.vip-intro.done {
  opacity: 0;
  visibility: hidden;
}
#logo3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.vip-intro-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  margin-top: min(42vh, 320px);
}
.vip-intro-copy .vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0;
  animation: fadeUp 1s 0.4s var(--ease) forwards;
}
.vip-intro-copy .vip-badge::before,
.vip-intro-copy .vip-badge::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.vip-intro-copy .vip-badge::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.vip-intro-skip {
  position: absolute;
  bottom: 1.75rem;
  right: var(--pad);
  z-index: 3;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}
.vip-intro-skip:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.55) 100%);
}
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 103, 0.16), transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
}
body.is-ready .cursor-glow { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft), var(--gold));
  box-shadow: 0 0 16px rgba(212, 175, 103, 0.6);
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  transition: background 0.45s var(--ease), backdrop-filter 0.45s, border-color 0.45s, opacity 0.6s;
  border-bottom: 1px solid transparent;
  opacity: 0;
}
body.is-ready .nav { opacity: 1; }
.nav.scrolled {
  background: rgba(5, 4, 3, 0.78);
  backdrop-filter: blur(18px) saturate(1.25);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav-brand img {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(212, 175, 103, 0.45));
}
.nav-vip {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.28rem 0.55rem;
}
.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.nav-links a { position: relative; transition: color 0.3s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.35rem;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(212,175,103,0.18), rgba(212,175,103,0.05));
  color: var(--gold-soft);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.nav-cta:hover {
  background: rgba(212, 175, 103, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(212, 175, 103, 0.25);
}
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s var(--ease) 0.15s;
}
body.is-ready .hero { opacity: 1; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
  filter: brightness(0.42) contrast(1.12) saturate(0.88);
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,4,3,0.55) 0%, rgba(5,4,3,0.2) 32%, rgba(5,4,3,0.75) 72%, var(--bg) 100%),
    radial-gradient(ellipse at 65% 35%, rgba(212,175,103,0.18), transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(3.2rem, 9vh, 6rem);
  max-width: 1100px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  opacity: 0;
  transform: translateY(24px);
}
.hero-kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}
.hero-logo-wrap {
  perspective: 1200px;
  margin-bottom: 0.35rem;
  opacity: 0;
  transform: translateY(36px) rotateX(18deg);
}
.hero-logo-wrap img {
  width: min(78vw, 520px);
  height: auto;
  filter:
    drop-shadow(0 20px 40px rgba(0,0,0,0.55))
    drop-shadow(0 0 28px rgba(212, 175, 103, 0.35));
  transform-style: preserve-3d;
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(6deg) rotateX(-2deg) translateY(-8px); }
}
.hero-line {
  margin-top: 1.1rem;
  max-width: 30rem;
  color: var(--ink-muted);
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  font-weight: 300;
  opacity: 0;
  transform: translateY(28px);
}
.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(28px);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.7rem;
  background: linear-gradient(135deg, #9a7b3c, #e4c57a 45%, #d4af67 70%, #b8924a);
  background-size: 200% 200%;
  color: #120e08;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  box-shadow: 0 12px 44px rgba(212, 175, 103, 0.32);
  animation: goldShift 5s ease infinite;
}
@keyframes goldShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(212, 175, 103, 0.45);
}
.btn-gold:hover::before { transform: translateX(120%); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 1.05rem 1.5rem;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 103, 0.08);
}
.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: clamp(2rem, 6vh, 4rem);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
}
.hero-scroll i {
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
body.is-ready .hero-kicker,
body.is-ready .hero-logo-wrap,
body.is-ready .hero-line,
body.is-ready .hero-actions,
body.is-ready .hero-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1.15s var(--ease);
}
body.is-ready .hero-logo-wrap { transition-delay: 0.1s; }
body.is-ready .hero-line { transition-delay: 0.26s; }
body.is-ready .hero-actions { transition-delay: 0.4s; }
body.is-ready .hero-scroll { transition-delay: 0.55s; }
@keyframes drip {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(4.5rem, 12vh, 8rem) var(--pad);
}
.section-label {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  max-width: 14ch;
}
.section-lead {
  margin-top: 1.1rem;
  color: var(--ink-muted);
  max-width: 36rem;
  font-size: 1.05rem;
  font-weight: 300;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.intro-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; }
}
.intro-visual {
  position: relative;
  min-height: clamp(320px, 55vh, 560px);
  overflow: hidden;
}
.intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
  filter: saturate(0.9) contrast(1.05);
}
.intro-visual:hover img { transform: scale(1.04); }
.intro-frame {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(212, 175, 103, 0.4);
  pointer-events: none;
}
.intro-quote {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(160deg, rgba(212,175,103,0.12), transparent 55%),
    var(--bg-elev);
  border: 1px solid var(--line);
  min-height: 280px;
  box-shadow: inset 0 0 60px rgba(212, 175, 103, 0.05);
}
.intro-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  color: var(--gold-soft);
}
.intro-quote cite {
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.exp { padding-top: 0; }
.exp-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}
.exp-track-wrap {
  overflow: hidden;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
}
.exp-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
}
.exp-item {
  position: relative;
  width: min(78vw, 380px);
  height: clamp(420px, 62vh, 560px);
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid transparent;
  transition: border-color 0.4s;
}
.exp-item:hover { border-color: rgba(212, 175, 103, 0.45); }
.exp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: brightness(0.68);
}
.exp-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.82);
}
.exp-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1.4rem 1.4rem;
  background: linear-gradient(transparent, rgba(5,4,3,0.94));
}
.exp-item .tag {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.exp-item h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

.marquee {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(212,175,103,0.06), rgba(255,248,235,0.02), rgba(212,175,103,0.06));
  overflow: hidden;
  padding: 1.15rem 0;
}
.marquee-inner {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  white-space: nowrap;
}
.marquee-inner span::after {
  content: " ◆ ";
  color: var(--gold-deep);
  margin-left: 3rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gallery-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 240px 240px;
  }
  .gallery-grid .g1 { grid-row: 1 / 3; }
  .gallery-grid .g2 { grid-column: 2 / 4; }
}
.g-cell {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.g-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.g-cell:hover img { transform: scale(1.07); }
.g-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
}

.branches {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 800px) { .branches { grid-template-columns: repeat(3, 1fr); } }
.branch {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  isolation: isolate;
}
.branch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
  transition: transform 1.2s var(--ease), filter 0.5s;
}
.branch:hover img {
  transform: scale(1.05);
  filter: brightness(0.65);
}
.branch-body {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  border: 1px solid transparent;
  transition: border-color 0.35s;
}
.branch:hover .branch-body { border-color: rgba(212, 175, 103, 0.45); }
.branch h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
}
.branch p {
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.cta-band {
  margin: 0 var(--pad) clamp(4rem, 10vh, 7rem);
  position: relative;
  overflow: hidden;
  min-height: clamp(340px, 50vh, 480px);
  display: grid;
  place-items: center;
  text-align: center;
}
.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.85);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid var(--line);
  margin: 1rem;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(212, 175, 103, 0.08);
}
.cta-inner {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 640px;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
}
.cta-inner p {
  margin: 1rem auto 1.75rem;
  color: var(--ink-muted);
  max-width: 28rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--pad) 2rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .footer { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand img {
  width: min(220px, 55vw);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(212, 175, 103, 0.3));
}
.footer p { color: var(--ink-muted); margin-top: 0.75rem; font-size: 0.92rem; max-width: 28ch; }
.footer h4 {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.footer ul { list-style: none; display: grid; gap: 0.45rem; color: var(--ink-muted); font-size: 0.92rem; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap img { animation: none; }
  .marquee-inner { animation: none; }
  .btn-gold { animation: none; }
}
