/* ==========================================================================
   RISTORANTE ESSENZA - LUXURY FINE DINING & GASTRONOMY
   Template 291 - Dark Gold Gourmet Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0d1117;
  --bg-darker: #07090d;
  --bg-card: #151c24;
  --bg-card-hover: #1c2633;
  --bg-card-light: #1e293b;
  
  --gold: #d4af37;
  --gold-light: #f5e7a9;
  --gold-dark: #b08d23;
  --gold-hover: #e5c453;
  --gold-gradient: linear-gradient(135deg, #f5e7a9 0%, #d4af37 50%, #9e7b16 100%);
  
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .serif-title {
  font-family: var(--font-serif);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 94%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-gold {
  color: var(--gold) !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #07090d;
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: #ffffff;
  color: #07090d;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-gold);
}

.btn-gold-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #ffffff;
  border-color: var(--gold);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   HEADER & NAVBAR (TRANSPARENT TO SOLID SCROLL)
   ========================================================================== */
.header-sticky-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 18px 0;
}

.header-sticky-wrapper.transparent {
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.8) 0%, rgba(7, 9, 13, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-sticky-wrapper.scrolled,
header.navbar,
body:not(.home-page) .header-sticky-wrapper {
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.nav-actions .btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  gap: 7px;
}

.nav-actions .btn i {
  font-size: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-dark);
  color: #ffffff;
  font-size: 1.25rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (VIDEO / POSTER BACKGROUND + CIRCULAR BADGE)
   ========================================================================== */
.hero-restaurant {
  position: relative;
  min-height: 650px;
  height: 85vh;
  max-height: 880px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #07090d;
}

.hero-media-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 9, 13, 0.45) 0%, rgba(7, 9, 13, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  margin-top: 40px;
}

.hero-badge-wrap {
  margin-bottom: 24px;
  display: inline-block;
}

.hero-badge-img {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
  animation: floatSlow 5s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 680px;
  margin: 0 auto 34px auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.section {
  padding: 95px 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
}

.section-darker {
  background-color: var(--bg-darker);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   SECTION 1: 3-COLUMN AMBIENCE / DISH CARDS (ambience1, 2, 3)
   ========================================================================== */
.showcase-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.showcase-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 175, 55, 0.1);
}

.showcase-img-wrap {
  width: 100%;
  height: 310px;
  overflow: hidden;
  position: relative;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase-card:hover .showcase-img {
  transform: scale(1.06);
}

.showcase-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showcase-card-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.showcase-card-title {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.showcase-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

.showcase-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.showcase-card-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ==========================================================================
   SECTIONS 2 & 3: SPLIT DISH SHOWCASES (dish3.jpg and dish4.jpg)
   ========================================================================== */
.split-dish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-dish-grid.reverse {
  direction: rtl;
}

.split-dish-grid.reverse > * {
  direction: ltr;
}

.split-dish-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.split-dish-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.split-dish-img-wrap:hover .split-dish-img {
  transform: scale(1.04);
}

.split-dish-content h2 {
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 18px;
}

.split-dish-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.dish-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-right: 10px;
  margin-bottom: 24px;
}

/* ==========================================================================
   SECTION 4: CHEF TASTING & SPECIAL SELECTION (dish5 & dish6)
   ========================================================================== */
.tasting-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tasting-dual-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dual-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  height: 380px;
  box-shadow: var(--shadow-md);
}

.dual-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dual-img-card:hover img {
  transform: scale(1.06);
}

.tasting-features-list {
  list-style: none;
  margin: 26px 0 34px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tasting-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.5;
}

.tasting-features-list li i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION 5: DIGITAL MENU WITH QR CODE (dish2, badge.png, dish1)
   ========================================================================== */
.digital-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 30px;
  align-items: center;
}

.digital-dish-side {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-md);
  height: 420px;
}

.digital-dish-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.digital-dish-side:hover img {
  transform: scale(1.05);
}

.digital-qr-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 175, 55, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code-img-wrap {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 22px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.qr-code-img-wrap:hover {
  transform: scale(1.04);
}

.qr-code-img {
  width: 160px;
  height: auto;
  display: block;
}

.digital-qr-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.digital-qr-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 380px;
}

/* ==========================================================================
   SECTION 6: PRENOTAZIONE TAVOLO & FORM (content_id_13689)
   ========================================================================== */
.reservation-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 50px 45px;
  box-shadow: var(--shadow-lg);
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.booking-form-full {
  grid-column: span 3;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.form-control-dark {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control-dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.privacy-notice-box {
  background: rgba(7, 9, 13, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  max-height: 110px;
  overflow-y: auto;
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 18px;
}

.privacy-check-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-restaurant {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-gold);
  padding: 70px 0 35px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 35px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  height: 60px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-light);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .digital-menu-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .digital-dish-side {
    height: 320px;
  }
  .showcase-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    gap: 18px;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .split-dish-grid,
  .split-dish-grid.reverse,
  .tasting-split-grid {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }
  .booking-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-form-full {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .showcase-grid-3 {
    grid-template-columns: 1fr;
  }
  .booking-form-grid {
    grid-template-columns: 1fr;
  }
  .booking-form-full {
    grid-column: span 1;
  }
  .tasting-dual-images {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-restaurant {
    min-height: 560px;
    height: 75vh;
  }
  .reservation-wrap {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   SECONDARY PAGES STYLES (menu, degustazione, piatto, cantina, chi-siamo, etc.)
   ========================================================================== */
.page-hero-luxury {
  padding: 130px 0 50px 0;
  text-align: center;
  background: linear-gradient(180deg, #07090d 0%, #0d1117 100%);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
}

.page-hero-luxury h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: #ffffff !important;
  margin-bottom: 14px;
}

.page-hero-luxury p {
  color: var(--text-muted) !important;
  font-size: 1.05rem;
}

/* Category Filter Pills */
.filter-pills-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  color: var(--gold-light);
}

.filter-pill-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #ffffff;
  border-color: var(--gold);
}

.filter-pill-btn.active {
  background: var(--gold-gradient);
  color: #07090d;
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Dishes Catalog Grid */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.dish-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 175, 55, 0.12);
}

.dish-img-box {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  background: var(--bg-darker);
}

.dish-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dish-card:hover .dish-img-box img {
  transform: scale(1.06);
}

.dish-price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(7, 9, 13, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dish-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dish-category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}

.dish-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.dish-name a {
  color: inherit;
  text-decoration: none;
}

.dish-name a:hover {
  color: var(--gold-light);
}

.dish-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.dish-pairing {
  font-size: 0.84rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.dish-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-dark);
  padding-top: 14px;
}

.dish-detail-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.dish-detail-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Luxury Card for Callouts & Degustazione */
.content-card-luxury {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  color: var(--text-main);
}

.content-card-luxury h2,
.content-card-luxury h3,
.content-card-luxury h4 {
  color: #ffffff !important;
}

.content-card-luxury p {
  color: var(--text-muted) !important;
}

.dish-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Dish Single Detail (piatto.php) */
.dish-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.dish-gallery-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-darker);
  box-shadow: var(--shadow-lg);
}

.dish-gallery-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* General form control dark */
.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Responsive for dishes-grid */
@media (max-width: 1200px) {
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dish-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dishes-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-luxury {
    padding-top: 100px;
  }
  .page-hero-luxury h1 {
    font-size: 2.1rem;
  }
}


/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
