/* Casa Francesco Taranto */
:root {
  --bg: #120a24;
  --bg-2: #1b1033;
  --card: #231541;
  --line: rgba(255, 255, 255, .10);
  --text: #f3eefc;
  --muted: #b9add3;
  --gold: #f2b45a;
  --gold-2: #ffd08a;
  --violet: #8b5cf6;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(18, 10, 36, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--text); text-decoration: none; }
.brand span { color: var(--gold); }
.menu { display: flex; gap: 22px; align-items: center; }
.menu a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s; }
.menu a:hover, .menu a.active { color: var(--text); }
.menu .menu-cta { color: #1a0f2e; background: var(--gold); padding: 8px 16px; border-radius: 999px; }
.menu .menu-cta:hover { color: #1a0f2e; background: var(--gold-2); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .menu.open { max-height: 480px; }
  .menu a { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 1rem; }
  .menu .menu-cta { margin: 12px 20px 16px; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,10,36,.35) 0%, rgba(18,10,36,.15) 40%, rgba(18,10,36,.92) 100%); }
.hero-content { position: relative; padding-bottom: 12vh; padding-top: 120px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold-2); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.hero h1 em { font-weight: 500; color: var(--gold-2); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e6dcf7; max-width: 34ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1a0f2e; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--bg-2); }
.section-intro { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

/* Booking */
.book-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.book-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color .2s, transform .15s;
}
.book-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.book-card strong { font-size: 1.2rem; }
.book-card span { color: var(--muted); font-size: .92rem; }
.book-card--main { background: linear-gradient(135deg, #3a2266, #241443); border-color: rgba(242,180,90,.5); }
.book-card .badge { align-self: flex-start; background: var(--gold); color: #1a0f2e; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery a { border-radius: var(--radius); overflow: hidden; background: var(--card); }
.gallery a.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery--food { margin-top: 12px; grid-auto-rows: 220px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service figcaption { padding: 16px 18px 20px; color: var(--muted); font-size: .92rem; }
.service strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 4px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services { grid-template-columns: 1fr; } }

/* About */
.about-inner { max-width: 720px; text-align: center; }
.about blockquote { margin: 0 0 32px; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.45; font-style: italic; }
.about blockquote p { margin: 0 0 .6em; }
.about .sign { color: var(--gold-2); font-style: normal; font-weight: 600; }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 24px; aspect-ratio: 16 / 7; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; } }

/* Distances */
.distances { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.distances li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.distances b { color: var(--gold-2); white-space: nowrap; font-weight: 600; }
@media (max-width: 760px) { .distances { grid-template-columns: 1fr; } }

/* Places */
.places { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.towns { list-style: none; padding: 0; margin: 0 0 20px; columns: 2; font-family: var(--serif); font-size: 1.45rem; }
.towns li { padding: 4px 0; break-inside: avoid; }
.towns small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); line-height: 1.2; }
.note { color: var(--muted); }
.places-map { border-radius: var(--radius); overflow: hidden; display: block; }
@media (max-width: 760px) { .places { grid-template-columns: 1fr; gap: 28px; } }

/* Footer */
.site-footer { background: #0b0617; border-top: 1px solid var(--line); padding: 48px 0 28px; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer strong { color: var(--text); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-2); }
.copy { text-align: center; font-size: .82rem; margin: 36px 0 0; opacity: .7; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 4, 16, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lb-frame { position: relative; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
/* Close button sits on the photo's top-left corner, high contrast */
.lightbox .lb-close {
  top: 12px; left: 12px;
  display: grid; place-items: center;
  background: #fff; color: #1a0f2e;
  box-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.lightbox .lb-close:hover { background: var(--gold-2); }
.lightbox .lb-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
