/* ==========================================================================
   IL BAR GENOVA - MODERN ITALIAN CAFÉ & BISTRO STYLESHEET
   Side-to-Side Screen Navigation & Dual Dynamic Galleries
   Supports:
   - "warm-bistro" (Style 1: Warm Espresso, Crema & Terracotta)
   - "dark-slate"  (Style 2: Dark Slate / Charcoal & Burnished Brass)
   ========================================================================== */

:root {
  /* Default: Warm Italian Espresso & Terracotta (Style 1) */
  --bg-primary: #181513;
  --bg-surface: #221d19;
  --bg-surface-elevated: #2d2621;
  --bg-subtle: #362e28;
  --bg-light-accent: #f5efe6;

  --text-main: #fcf9f4;
  --text-muted: #c7beaf;
  --text-dim: #998e7f;

  --accent-gold: #cfa152;
  --accent-gold-hover: #e0b467;
  --accent-terracotta: #c4683c;
  --accent-terracotta-hover: #d8794b;

  --border-subtle: rgba(207, 161, 82, 0.22);
  --border-card: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
}

/* Style 2: Modern Dark Slate & Burnished Brass */
[data-theme="dark-slate"] {
  --bg-primary: #0f1216;
  --bg-surface: #171b21;
  --bg-surface-elevated: #21262f;
  --bg-subtle: #2b323e;
  --bg-light-accent: #edf0f5;

  --text-main: #f5f7fa;
  --text-muted: #b8c1cc;
  --text-dim: #828d9c;

  --accent-gold: #d4af37;
  --accent-gold-hover: #e6c55c;
  --accent-terracotta: #3988b8;
  --accent-terracotta-hover: #4ea0d4;

  --border-subtle: rgba(212, 175, 55, 0.25);
  --border-card: rgba(255, 255, 255, 0.07);
}

/* Base Reset & Layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: linear-gradient(to bottom, rgba(24, 21, 19, 0.98), rgba(24, 21, 19, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark-slate"] .site-header {
  background: linear-gradient(to bottom, rgba(15, 18, 22, 0.98), rgba(15, 18, 22, 0.92));
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand-container {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  line-height: 1;
}

.brand-title span {
  color: var(--accent-gold);
}

.brand-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

/* Nav Links - Tab Items */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

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

.nav-link.active {
  color: #16120e;
  background-color: var(--accent-gold);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(207, 161, 82, 0.35);
}

[data-theme="dark-slate"] .nav-link.active {
  color: #0f1216;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: 50px;
  padding: 0.15rem;
}

.lang-btn {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 50px;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background-color: var(--accent-gold);
  color: #16120e;
}

/* Style Switch Button */
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  transition: var(--transition);
}

.theme-btn:hover {
  color: var(--accent-gold);
  border-color: var(--border-subtle);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 26px;
  height: 20px;
  background: transparent;
  z-index: 1001;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ==========================================================================
   PAGE VIEW CONTAINER & SIDE-TO-SIDE SLIDE TRANSITIONS
   ========================================================================== */
.main-viewport {
  flex: 1;
  padding-top: 4.8rem;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.page-view {
  display: none; /* Non-selected pages are hidden */
  width: 100%;
  min-height: calc(100vh - 4.8rem);
  padding: 3.5rem 0 5rem;
  animation-duration: 0.32s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

.page-view.active {
  display: block;
}

/* Slide in from Right (Moving Forward) */
.page-view.slide-in-right {
  animation-name: slideInRight;
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(45px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide out to Left */
.page-view.slide-out-left {
  animation-name: slideOutLeft;
}
@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-45px);
  }
}

/* Slide in from Left (Moving Backward) */
.page-view.slide-in-left {
  animation-name: slideInLeft;
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-45px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide out to Right */
.page-view.slide-out-right {
  animation-name: slideOutRight;
}
@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(45px);
  }
}

/* Bottom Pagination Bar */
.page-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
}

.page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.page-nav-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.page-nav-link.next {
  margin-left: auto;
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.click-hint {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--accent-gold);
  background: rgba(207, 161, 82, 0.1);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #16120e;
  box-shadow: 0 4px 14px rgba(207, 161, 82, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 161, 82, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.badge-gold {
  background: rgba(207, 161, 82, 0.18);
  color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   PAGE 1: HOME / HERO
   ========================================================================== */
#page-home {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.hero-screen {
  position: relative;
  min-height: calc(100vh - 4.8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(24, 21, 19, 0.4) 0%, rgba(24, 21, 19, 0.95) 100%),
              linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
  z-index: -1;
}

[data-theme="dark-slate"] .hero-overlay {
  background: radial-gradient(circle at center, rgba(15, 18, 22, 0.4) 0%, rgba(15, 18, 22, 0.95) 100%),
              linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-pill svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* ==========================================================================
   PAGE 2: ABOUT (CHI SIAMO)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-tag {
  text-align: left;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.about-sub {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(4px);
  border-color: var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(207, 161, 82, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  font-size: 1.3rem;
}

.feature-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* About Collage */
.about-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
}

.about-img-box img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.about-img-box:hover img {
  transform: scale(1.04);
}

.about-img-tall {
  grid-row: span 2;
  height: 100%;
  min-height: 420px;
}

.about-img-short {
  height: 200px;
}

.about-stamp {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.stamp-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.stamp-sub {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   PAGE 3: COSA OFFRIAMO (MOMENTI)
   ========================================================================== */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.moment-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.moment-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.moment-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.moment-img-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

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

.moment-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(24, 21, 19, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
}

.moment-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.moment-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.7rem;
}

.moment-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.daily-banner {
  background: linear-gradient(135deg, rgba(207, 161, 82, 0.12), rgba(196, 104, 60, 0.12));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem 2rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

/* ==========================================================================
   PAGE 4: LE FROLLE DEL CORSO
   ========================================================================== */
.frolle-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.frolle-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.frolle-brand-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  margin: 0.8rem 0 0.4rem;
}

.frolle-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.8rem;
}

.frolle-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.22);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
  border-left: 3px solid var(--accent-gold);
}

.frolle-story-grid p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.frolle-story-grid p strong {
  color: var(--text-main);
}

/* Banner image inside Frolle */
.frolle-hero-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid var(--border-card);
  max-height: 280px;
}

.frolle-hero-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* Products Grid */
.frolle-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

.frolle-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.frolle-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.frolle-img-wrap {
  height: 180px;
  overflow: hidden;
  background: #110e0c;
}

.frolle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.frolle-card:hover .frolle-img-wrap img {
  transform: scale(1.08);
}

.frolle-card-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.frolle-card-body h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.frolle-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.frolle-counter-callout {
  background: rgba(207, 161, 82, 0.1);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* ==========================================================================
   PAGES 5 & 6: DYNAMIC GALLERIES (PIATTI & GALLERIA)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  cursor: pointer;
  background: var(--bg-surface);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.2rem;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.gallery-zoom-icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: var(--text-main);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   PAGE 7: ORARI & POSIZIONE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  color: var(--text-main);
  font-weight: 500;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--accent-gold);
  font-weight: 600;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.detail-text p, .detail-text a {
  font-size: 0.98rem;
  color: var(--text-main);
}

.detail-text a:hover {
  color: var(--accent-gold);
}

.detail-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  min-height: 420px;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
  filter: contrast(1.05) saturate(0.95);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #100e0c;
  border-top: 1px solid var(--border-card);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

[data-theme="dark-slate"] .site-footer {
  background-color: #0b0d10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.footer-desc {
  max-width: 380px;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.legal-notice {
  font-size: 0.78rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 0.4rem;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-images {
    order: -1;
  }
  .frolle-box {
    padding: 2.5rem 1.8rem;
  }
  .frolle-story-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.6rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stamp {
    position: static;
    margin-top: 1rem;
  }

  .map-container {
    min-height: 320px;
  }
  .map-container iframe {
    min-height: 320px;
  }
}
