/* ===== Darsena Restaurant — Stylesheet =====
   Palette originale: oro #cfa670, blu scuro #1a3853, crema #f7f3ec
   ============================================ */
:root {
  --c-bg:      #ffffff;
  --c-surface: #f7f3ec;
  --c-ink:     #1a1a1a;
  --c-mute:    #6b6b6b;
  --c-gold:    #cfa670;
  --c-gold-d:  #9b7a45;
  --c-blue:    #1a3853;
  --c-line:    #e5dfd2;
  --ff-serif:  "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans:   "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-script: "Kristi", cursive;
  --shadow:    0 6px 24px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--ff-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-gold-d); text-decoration: none; }
a:hover { color: var(--c-gold); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--ff-serif); margin: 0 0 .6em; line-height: 1.2; }
p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Topbar ===== */
.topbar {
  background: #c9b37c;
  color: #fff;
  font-size: 13px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0;
}
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  color: #fff;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.65); border-radius: 50%;
  font-size: 11px; font-weight: 700;
  transition: background .2s, border-color .2s;
}
.topbar-social a:hover {
  background: rgba(0,0,0,.18); border-color: #fff; color: #fff;
}
.topbar-phone { color: #fff; font-weight: 600; font-size: 13px; }
.topbar-phone:hover { color: rgba(255,255,255,.85); }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 30px;
}
.brand img { max-height: 65px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav > ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 24px;
}
.primary-nav > ul > li > a {
  color: var(--c-ink);
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.primary-nav > ul > li.active > a,
.primary-nav > ul > li > a:hover {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}
.btn-reserve {
  background: var(--c-gold);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-family: var(--ff-sans);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-reserve:hover { background: var(--c-gold-d); color: #fff !important; }

.nav-toggle {
  display: none;
  background: transparent; border: none;
  width: 36px; height: 30px; padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 3px; background: var(--c-ink); border-radius: 2px;
  margin-bottom: 5px;
}
.nav-toggle span:last-child { margin-bottom: 0; }

/* ===== Hero ===== */
.site-main { min-height: 60vh; }

.hero {
  position: relative; overflow: hidden;
  background: #000; color: #fff;
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.42);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 60px 20px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--ff-script);
  font-size: clamp(52px, 5.5vw, 72px);
  color: var(--c-gold);
  line-height: 1; margin-bottom: 4px;
}
.hero-title {
  font-family: var(--ff-sans);
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0 0 22px; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.hero-title strong { font-weight: 300; }
.hero-cta {
  display: inline-block;
  background: var(--c-gold); color: #fff;
  padding: 14px 38px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 600; font-size: 13px;
  font-family: var(--ff-sans);
}
.hero-cta:hover { background: var(--c-gold-d); color: #fff; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section.alt { background: var(--c-surface); }
.section-head { text-align: center; max-width: 800px; margin: 0 auto 50px; }
.section-eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase; letter-spacing: 4px;
  font-size: 12px; color: var(--c-gold);
  font-weight: 700; margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.5vw, 42px); margin-bottom: 14px; }
.section-sub { font-style: italic; color: var(--c-mute); font-size: 17px; }

.divider {
  width: 60px; height: 3px; background: var(--c-gold);
  margin: 18px auto 24px;
}

.page-intro { max-width: 820px; margin: 0 auto; text-align: center; font-size: 17px; }
.page-intro p { margin-bottom: 16px; }

/* ===== Sezione Il Nostro Ristorante (2 colonne) ===== */
.section-ristorante { padding: 80px 0; background: var(--c-surface); }
.ristorante-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.ristorante-slider {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; border-radius: 4px;
  background: #111; box-shadow: var(--shadow);
}
.rst-slides { position: absolute; inset: 0; }
.rst-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.rst-slide.active { opacity: 1; }
.ristorante-text { padding: 10px 0; }
.ristorante-text .divider { margin: 16px 0 22px; }
.ristorante-body { font-size: 16px; line-height: 1.85; color: var(--c-mute); }
.ristorante-body p { margin-bottom: 14px; }

/* ===== Carousel ===== */
.carousel-wrap { position: relative; }
.carousel-track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; gap: 4px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .ci {
  flex: 0 0 calc(100% / 3);
  scroll-snap-align: start; overflow: hidden;
  aspect-ratio: 4/3; display: block; background: #ddd;
}
.carousel-track .ci img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.carousel-track .ci:hover img { transform: scale(1.07); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.52); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 32px; line-height: 1; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.carousel-btn:hover { background: var(--c-gold); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

/* ===== Gallery (pagina Foto Piatti) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery a, .gallery .gi {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; background: #eee;
  border-radius: 4px; display: block;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery a:hover img, .gallery .gi:hover img { transform: scale(1.08); }
.gallery-wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ===== Menu scansioni ===== */
.menu-scans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.menu-scans a {
  display: block; background: #fff;
  border: 1px solid var(--c-line); padding: 10px;
  box-shadow: var(--shadow); transition: transform .25s;
}
.menu-scans a:hover { transform: translateY(-3px); }

/* ===== Menu testuale ===== */
.menu-list { max-width: 900px; margin: 0 auto; }
.menu-cat { margin-bottom: 50px; }
.menu-cat h3 {
  text-align: center; font-size: 28px; color: var(--c-gold);
  border-bottom: 1px solid var(--c-line); padding-bottom: 12px;
}
.menu-item {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px dashed #eee;
}
.menu-item-info { flex: 1; }
.menu-item-name { font-weight: 600; font-size: 17px; }
.menu-item-desc { color: var(--c-mute); font-size: 14px; margin-top: 4px; }
.menu-item-price { font-weight: 600; color: var(--c-gold-d); white-space: nowrap; }

/* ===== Dove Siamo ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.contact-card {
  background: var(--c-surface); padding: 30px;
  border-left: 4px solid var(--c-gold);
}
.contact-card h2 { color: var(--c-gold); margin-top: 0; }
.contact-map iframe {
  width: 100%; height: 420px; border: 0; box-shadow: var(--shadow);
}

/* ===== Footer ===== */
.site-footer {
  background: #0e0e0e; color: #b8b8b8;
  padding: 50px 0 20px; font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; padding-bottom: 30px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-col h4 {
  color: var(--c-gold); text-transform: uppercase;
  font-size: 13px; letter-spacing: 2px;
  font-family: var(--ff-sans); margin-bottom: 14px;
  font-weight: 700;
}
.footer-col p { margin-bottom: 6px; color: #b8b8b8; }
.footer-col a { color: #b8b8b8; }
.footer-col a:hover { color: var(--c-gold); }
.social-links { list-style: none; padding: 0; margin: 0; }
.social-links li { margin-bottom: 8px; }
.footer-copy {
  padding-top: 18px; text-align: center;
  color: #666; font-size: 12px;
}

/* ===== Cookie bar ===== */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(14,14,14,.97); color: #fff;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 18px; z-index: 200; font-size: 14px;
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar button {
  background: var(--c-gold); color: #fff; border: 0;
  padding: 8px 22px; cursor: pointer; border-radius: 3px;
  font-weight: 600; white-space: nowrap;
}
.cookie-bar button:hover { background: var(--c-gold-d); }

/* ===== Lightbox ===== */
.lb-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lb-overlay.show { display: flex; }
.lb-overlay img { max-width: 95%; max-height: 92vh; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lb-close {
  position: absolute; top: 18px; right: 24px;
  background: transparent; border: 0; color: #fff;
  font-size: 40px; cursor: pointer; line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px; gap: 0;
    border-top: 1px solid var(--c-line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.open { max-height: 600px; }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--c-line); }
  .primary-nav > ul > li > a { display: block; padding: 14px 0; border: none; }
  .btn-reserve { display: block; text-align: center; margin-top: 12px; }
  .ristorante-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .carousel-track .ci { flex: 0 0 calc(100% / 2); }
}

@media (max-width: 600px) {
  .section { padding: 55px 0; }
  .carousel-track .ci { flex: 0 0 88%; }
  .ristorante-text { padding: 0; }
  .hero-eyebrow { font-size: 44px; }
}

/* ===== Admin (base override) ===== */
.admin-shell { font-family: var(--ff-sans); }
