/* ═══════════════════════════════════════════════
   RISTORANTE LA GROTTA — gallery.css
   Stili specifici della galleria (IT/EN/ES/FR)
   ═══════════════════════════════════════════════ */

/* ── HERO ── */
.hero-galleria {
  padding: 120px 0 56px;
  background: var(--bianco);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--testo-light);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--testo-light);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--mare); }
.breadcrumb i { font-size: 9px; }
.hero-galleria h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: var(--testo);
  line-height: 1.06;
  margin-bottom: 12px;
}
.hero-galleria p {
  font-size: 16px;
  color: var(--testo-light);
}

/* ── FILTRI ── */
.filtri-wrap {
  padding: 32px 0 48px;
  background: var(--bianco);
  border-bottom: 1px solid rgba(26,58,92,0.07);
  position: sticky;
  top: 64px;
  z-index: 50;
}
.filtri {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filtro-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1px solid rgba(26,58,92,0.15);
  border-radius: 2px;
  background: #fff;
  color: var(--testo-light);
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  font-family: inherit;
}
.filtro-btn:hover {
  border-color: var(--mare);
  color: var(--mare);
}
.filtro-btn.attivo {
  background: var(--mare);
  border-color: var(--mare);
  color: #fff;
}
.filtro-btn .conteggio {
  font-size: 11px;
  opacity: 0.6;
}

/* ── GRIGLIA UNIFORME ── */
.galleria-wrap {
  padding: 56px 0 80px;
  background: var(--bianco);
}
.galleria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.galleria-item {
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(26,58,92,0.04);
}
.galleria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.galleria-item:hover img {
  transform: scale(1.03);
}
.galleria-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(15,38,64,0.75), transparent);
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.25s;
}
.galleria-item:hover figcaption {
  opacity: 1;
}
.galleria-item[data-hidden="true"] {
  display: none;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,20,35,0.94);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.aperto {
  display: flex;
}
.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}
.lightbox-caption {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  letter-spacing: 0.3px;
}
.lightbox-chiudi {
  position: fixed;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.15s;
  z-index: 1000;
}
.lightbox-chiudi:hover { color: #fff; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 1000;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.15); color: #fff; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-contatore {
  position: fixed;
  top: 24px; left: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}

/* ── CTA FINALE ── */
.cta-galleria {
  padding: 72px 0;
  background: var(--bianco-caldo);
  text-align: center;
}
.cta-galleria h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  color: var(--testo);
  margin-bottom: 12px;
}
.cta-galleria p {
  font-size: 15px;
  color: var(--testo-light);
  margin-bottom: 32px;
}
.cta-galleria-azioni {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-mare {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mare); color: #fff;
  padding: 15px 28px; border-radius: 2px;
  text-decoration: none; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}
.btn-mare:hover { background: var(--onda); transform: translateY(-1px); }
.btn-outline-mare {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(26,58,92,0.25); color: var(--mare);
  padding: 15px 28px; border-radius: 2px;
  text-decoration: none; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-mare:hover { border-color: var(--mare); background: rgba(26,58,92,0.04); }

/* ── FLOATING CTA ── */
.floating-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
}
.fcta-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 2px;
  text-decoration: none;
  font-size: 13px; letter-spacing: 0.5px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.fcta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.22); }
.fcta-wa  { background: #25D366; color: #fff; }
.fcta-ren { background: var(--mare); color: #fff; }
@media (max-width: 480px) {
  .fcta-label { display: none; }
  .fcta-btn { padding: 14px; border-radius: 50%; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .galleria-grid { grid-template-columns: repeat(2, 1fr); }
  .filtri-wrap { top: 58px; }
}
@media (max-width: 600px) {
  .galleria-grid { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
}
