@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

:root {
  --beige:    #f5f0e8;
  --beige-2:  #ede5d8;
  --beige-3:  #e0d5c4;
  --stone:    #9e9188;
  --brown:    #2e2620;
  --brown-2:  #4a3d34;
  --white:    #ffffff;
  --black:    #0d0b09;

  --serif: 'Cormorant', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --slow:  cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--brown);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.will-animate { will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* Su mobile: solo fade, niente movimento — più smooth su GPU limitato */
@media (max-width: 768px) {
  .reveal {
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1);
  }
  .reveal.will-animate { will-change: opacity; }
  .reveal.in { opacity: 1; }
  .d1 { transition-delay: 0.08s; }
  .d2 { transition-delay: 0.16s; }
  .d3 { transition-delay: 0.24s; }
  .d4 { transition-delay: 0.32s; }
}

/* clip-path reveal variant */
.reveal-clip {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 1.1s var(--slow), clip-path 1.1s var(--slow);
}
.reveal-clip.in { opacity: 1; clip-path: inset(0 0 0% 0); }


/* ── Navbar ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 80px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,8,5,0.38) 0%, transparent 100%);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.nav.filled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-left a, .nav-right a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s, opacity 0.3s;
  white-space: nowrap;
  text-shadow: 0 1px 16px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.5);
}
.nav-left a:hover, .nav-right a:hover { opacity: 0.75; }
.nav.filled .nav-left a,
.nav.filled .nav-right a { color: var(--brown); text-shadow: none; }
.nav.filled .nav-left a:hover,
.nav.filled .nav-right a:hover { color: var(--brown-2); }

.nav-center { text-align: center; }
.nav-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(10) drop-shadow(0 2px 12px rgba(0,0,0,0.65));
  transition: filter 0.5s var(--ease), height 0.4s var(--ease);
  display: inline-block;
  transform: scale(1.2);
  transform-origin: center;
}
.nav.filled .nav-logo img { filter: none; height: 72px; }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.4rem;
}

.nav-book-btn {
  font-family: var(--sans) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.95) !important;
  padding: 0.7rem 1.8rem !important;
  border-radius: 100px !important;
  text-shadow: 0 1px 16px rgba(0,0,0,0.8) !important;
  transition: background 0.3s, border-color 0.3s, color 0.3s, text-shadow 0.3s !important;
}
.nav-book-btn:hover {
  background: var(--white) !important;
  color: var(--brown) !important;
  border-color: var(--white) !important;
}
.nav.filled .nav-book-btn {
  color: var(--brown) !important;
  border-color: var(--brown) !important;
}
.nav.filled .nav-book-btn:hover {
  background: var(--brown) !important;
  color: var(--white) !important;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: all 0.35s var(--ease);
}
.nav.filled .hamburger span { background: var(--brown); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--brown);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--stone); }
.mobile-nav .mobile-book {
  font-family: var(--sans) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--brown);
  color: var(--white) !important;
  padding: 0.85rem 2.5rem;
  border-radius: 100px;
  margin-top: 0.5rem;
}

/* ── Footer ── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.5);
  padding: 5rem 6vw 2.5rem;
}
.footer-inner { max-width: 1380px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(10);
  display: block;
  margin-bottom: 1.4rem;
  transform: scale(1.15);
  transform-origin: left center;
}
.footer-desc { font-size: 0.9rem; line-height: 1.9; max-width: 300px; font-weight: 300; color: rgba(255,255,255,0.55); }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.4rem;
}
.footer-col li + li { margin-top: 0.7rem; }
.footer-col a { font-size: 0.92rem; font-weight: 300; color: rgba(255,255,255,0.55); transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-address { font-size: 0.92rem; line-height: 2; font-weight: 300; color: rgba(255,255,255,0.55); }
.footer-address a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-address a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.5); transition: fill 0.3s; }
.footer-social a:hover svg { fill: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}
.footer-bottom a { color: rgba(255,255,255,0.25); transition: color 0.3s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.55); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .hamburger { display: flex; justify-self: end; grid-column: 3; }
  .mobile-nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
