/* Galaxy Club — Luxury Lounge Bar
   Palette: black + white + orange. Type: Montserrat 400 / 900. */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #161616;
  --surface-2: #1d1d1d;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #fafafa;
  --text-dim: rgba(250, 250, 250, 0.68);
  --text-muted: rgba(250, 250, 250, 0.45);

  --orange: #ff6b1a;
  --orange-deep: #e85a0c;
  --orange-soft: #ff8a4a;

  --font: 'Montserrat', system-ui, -apple-system, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  --max: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body { position: relative; min-height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--orange); color: var(--bg); }

/* Drop italic globally — only Regular + Black available */
em, i, .italic, .serif-italic, [style*="italic"] { font-style: normal !important; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text);
}
p { color: var(--text-dim); line-height: 1.65; font-weight: 400; }

.eyebrow {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--orange);
  margin-right: 10px;
  vertical-align: middle;
}

/* ===== Layout shell ===== */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.nav.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(10, 10, 10, 0.92);
}
.nav-brand {
  display: block;
  position: relative;
  /* Layout footprint stays small — logo is rendered 2x via absolute positioning */
  width: 128px;
  height: 64px;
  flex-shrink: 0;
  /* Hide the legacy text wordmark — brand identity now lives in the image */
  font-size: 0;
  color: transparent;
}
.nav-brand .logo {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 128px;
  height: 128px;
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Invert + hue-rotate flips white → black (blends with page) and dark text → white,
     while keeping the orange X almost identical in hue */
  filter: invert(1) hue-rotate(180deg);
  pointer-events: none;
}
.nav-brand .logo svg { display: none; }
.nav-brand > span[style*="italic"] { display: none; }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  position: relative;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 1px;
  background: var(--orange);
}

.nav-actions { display: flex; gap: 14px; align-items: center; }

/* Language switch */
.lang-switch { position: relative; }
.lang-switch button.current {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s;
}
.lang-switch button.current:hover { border-color: var(--orange); }
.lang-switch .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 170px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lang-switch.open .dropdown { display: flex; }
.lang-switch .dropdown button {
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  transition: background 0.2s, color 0.2s;
}
.lang-switch .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.lang-switch .dropdown button.selected { color: var(--orange); }
.lang-switch .dropdown button .code { opacity: 0.5; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--bg);
  border: 1px solid var(--orange);
}
.btn-primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}
.btn-violet,
.btn-violet:hover {
  background: var(--orange);
  color: var(--bg);
  border: 1px solid var(--orange);
}
.btn .arrow { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px var(--pad-x) 110px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-3d,
.hero-moon { display: none; }
.hero-vignette {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 88% 50%, rgba(255, 107, 26, 0.20), transparent 60%),
    radial-gradient(ellipse 80% 60% at 10% 110%, rgba(255, 107, 26, 0.08), transparent 60%);
  pointer-events: none;
  filter: blur(2px);
  animation: heroAurora 18s ease-in-out infinite alternate;
}
@keyframes heroAurora {
  0%   { transform: scale(1) translate(0, 0); opacity: 1; }
  100% { transform: scale(1.12) translate(-3%, 2%); opacity: 0.80; }
}

/* Secondary warm light orb — counter-drift */
.hero::after {
  content: '';
  position: absolute;
  top: 38%;
  right: -12vw;
  width: clamp(300px, 42vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 138, 74, 0.32),
    rgba(255, 107, 26, 0.06) 55%,
    transparent 75%);
  filter: blur(30px);
  pointer-events: none;
  animation: heroOrb 16s ease-in-out infinite alternate;
}
@keyframes heroOrb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5vw, 6%) scale(1.12); }
}

/* Rising warm embers (generated by JS) */
.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-embers span {
  position: absolute;
  bottom: -10px;
  border-radius: 999px;
  background: var(--orange-soft);
  box-shadow: 0 0 10px var(--orange), 0 0 22px rgba(255, 107, 26, 0.45);
  animation: emberRise linear infinite;
  will-change: transform, opacity;
}
@keyframes emberRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 0.75; }
  50%  { transform: translateY(-55vh) translateX(6px); }
  90%  { opacity: 0.55; }
  100% { transform: translateY(-110vh) translateX(0); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-headline {
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-weight: 900;
  text-transform: uppercase;
  max-width: min(96vw, 1400px);
}
.hero-headline .line { display: block; }
.hero-headline .italic {
  color: var(--orange);
  font-weight: 900;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
}
.hero-cta .btn {
  min-width: 240px;
  justify-content: center;
}
@media (max-width: 480px) {
  .hero-cta .btn { min-width: 100%; }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.hero-meta .meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-meta .meta .label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-meta .meta .value {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-hint .line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--orange));
  animation: dropLine 2.4s ease-in-out infinite;
}
@keyframes dropLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Sections ===== */
section { position: relative; z-index: 1; }
.section {
  padding: clamp(110px, 15vw, 200px) 0;
  position: relative;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(38px, 6.4vw, 100px);
  max-width: 900px;
}
.section-head .right {
  max-width: 380px;
  color: var(--text-dim);
}

/* ===== Marquee removed (luxury restraint) ===== */
.marquee { display: none; }

/* ===== Floating particles removed ===== */
.particles { display: none; }
.space-canvas { display: none; }

/* ===== Cards (no 3D tilt, just lift) ===== */
.tilt-card {
  position: relative;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.tilt-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.tilt-card .inner { position: relative; }
.tilt-content { padding: 32px; position: relative; z-index: 2; }

/* ===== Placeholder images ===== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      #181818,
      #181818 10px,
      #1f1f1f 10px,
      #1f1f1f 20px
    );
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 26, 0.18), transparent 70%);
  pointer-events: none;
}
.ph span {
  position: relative;
  padding: 8px 14px;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 2;
  font-weight: 400;
}

/* ===== Grids ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  padding: 50px var(--pad-x) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-grid h4 {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-grid li a { color: var(--text-dim); font-size: 12px; transition: color 0.2s; }
.footer-grid li a:hover { color: var(--orange); }
.footer-brand {
  position: relative;
  /* Hide the legacy text wordmark — show the actual logo image instead */
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.footer-brand::before {
  content: '';
  display: block;
  width: 96px;
  height: 96px;
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter: invert(1) hue-rotate(180deg);
  margin-left: -8px;
}
.footer-brand span,
.footer-brand em,
.footer-brand br { display: none; }
.footer-brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}
.footer-bottom {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { font-size: 32px; }
}

/* ===== Form ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  transition: border-color 0.3s, background 0.3s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--surface-2);
}
.form-field textarea { resize: vertical; min-height: 100px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Page hero ===== */
.page-hero {
  position: relative;
  padding: clamp(160px, 20vw, 240px) var(--pad-x) clamp(100px, 12vw, 160px);
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(60px, 10vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  font-weight: 900;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero h1 .italic { color: var(--orange); font-weight: 900; }
.page-hero .eyebrow { display: block; margin: 0 auto 24px; max-width: 1200px; }
.page-hero p {
  margin-top: 28px;
  max-width: 600px;
  color: var(--text-dim);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 88% 30%, rgba(255, 107, 26, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 50% at 8% 100%, rgba(255, 107, 26, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile nav ===== */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: var(--pad-x);
    background: var(--surface);
    padding: 18px 22px;
    border-radius: var(--r-md);
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    transition: border-color 0.2s;
  }
  .nav-toggle:hover { border-color: var(--orange); }
  .nav-toggle span {
    width: 16px; height: 1px; background: var(--text);
    position: relative;
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: ''; position: absolute; left: 0; width: 16px; height: 1px; background: var(--text);
  }
  .nav-toggle span::before { top: -5px; }
  .nav-toggle span::after  { top: 5px; }
}

/* Mid mobile (<=720px): shrink logo footprint */
@media (max-width: 720px) {
  .nav { padding: 14px var(--pad-x); }
  .nav.scrolled { padding: 10px var(--pad-x); }
  .nav-brand { width: 96px; height: 56px; }
  .nav-brand .logo { width: 96px; height: 96px; }
  .nav-actions { gap: 10px; }
}

/* Small mobile (<=520px): hide "Prenota" CTA in nav (still in nav-links + hero + footer) */
@media (max-width: 520px) {
  .nav-brand { width: 80px; height: 48px; }
  .nav-brand .logo { width: 80px; height: 80px; }
  .nav-actions > .btn-primary { display: none; }
  .lang-switch button.current { padding: 7px 11px; font-size: 10px; letter-spacing: 0.14em; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { font-size: 9px; letter-spacing: 0.18em; justify-content: center; text-align: center; }
}

/* Hero on mobile */
@media (max-width: 720px) {
  .hero { padding: 130px var(--pad-x) 90px; }
  .hero-headline { font-size: clamp(54px, 14vw, 110px); }
  .hero-cta { margin-top: 32px; }
}

/* Forms & sections breathing on mobile */
@media (max-width: 600px) {
  .section { padding: clamp(70px, 14vw, 120px) 0; }
  .section-head { margin-bottom: 40px; gap: 22px; }
  .section-head h2 { font-size: clamp(34px, 8vw, 60px); }
  .menu-group { padding: 40px 0; }
  .menu-group-title { margin-bottom: 28px; }
}
