/* ==========================================================================
   Enoteca 34 Bar à Vin - Lodi
   ========================================================================== */

:root {
  --bg-paper: #FAF8F4;
  --bg-sand: #F1ECE3;
  --bg-card: #FFFFFF;
  --ink: #1E1D1B;
  --ink-muted: #5E5850;
  --burgundy: #6E1E2B;
  --burgundy-dark: #541520;
  --olive: #4A5D45;
  --wa-green: #2D6A4F;
  --wa-green-dark: #23553E;
  --terracotta: #A85A43;
  --border: #DDD5C7;
  --border-strong: #C9BFAE;

  /* Colori distintivi per la carta dei vini */
  --wine-rosso: #6E1E2B;
  --wine-bianco: #CFB45E;
  --wine-bianco-ink: #7F681D;
  --wine-bollicine: #B67D38;
  --wine-bollicine-ink: #84551B;
  --wine-rose: #C47A7D;
  --wine-rose-ink: #8E474B;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 8px 26px rgba(30, 29, 27, 0.055);
  --shadow-lift: 0 14px 36px rgba(30, 29, 27, 0.11);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* Bottoni */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--burgundy);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--burgundy-dark);
}

.btn-secondary {
  background-color: rgba(250, 248, 244, 0.14);
  color: #FAF8F4;
  border-color: rgba(250, 248, 244, 0.55);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background-color: rgba(250, 248, 244, 0.24);
  border-color: #FAF8F4;
}

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

.btn-outline:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.btn-whatsapp {
  background-color: var(--wa-green);
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: var(--wa-green-dark);
}

.btn-whatsapp:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-text-danger {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
  margin: 4px auto 0;
  display: block;
}

.btn-text-danger:hover {
  color: var(--burgundy);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background-color: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brand-logo.is-loaded {
  position: static;
  height: 44px;
  width: auto;
  opacity: 1;
  object-fit: contain;
  pointer-events: auto;
}

.brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-text small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--burgundy);
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-trigger:hover {
  border-color: var(--burgundy);
  box-shadow: var(--shadow-soft);
}

.cart-trigger-label {
  display: none;
}

@media (min-width: 480px) {
  .cart-trigger-label {
    display: inline;
  }
}

.cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--burgundy);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  display: flex;
  align-items: center;
  padding: 72px 0 64px;
  color: #FAF8F4;
  background:
    radial-gradient(circle at 82% 24%, rgba(168, 90, 67, 0.34), transparent 46%),
    radial-gradient(circle at 18% 85%, rgba(110, 30, 43, 0.45), transparent 52%),
    linear-gradient(135deg, #27211E 0%, #3A2622 52%, #241D1B 100%);
}

@media (min-width: 768px) {
  .hero {
    min-height: 580px;
    padding: 96px 0 84px;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-img.is-loaded {
  opacity: 1;
}

.hero-arch-decor {
  position: absolute;
  right: 8%;
  bottom: -40px;
  width: 340px;
  height: 440px;
  border: 1px solid rgba(250, 248, 244, 0.14);
  border-radius: 170px 170px 0 0;
}

.hero-arch-decor::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(250, 248, 244, 0.08);
  border-radius: 152px 152px 0 0;
}

.hero-media.has-photo .hero-arch-decor {
  display: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(24, 19, 17, 0.84) 0%, rgba(24, 19, 17, 0.62) 55%, rgba(24, 19, 17, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-left: 0;
}

@media (min-width: 1180px) {
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 1180px;
  }

  .hero-content > * {
    max-width: 640px;
  }
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #E2C9B4;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.55rem, 6vw, 4.3rem);
  font-weight: 600;
  color: #FAF8F4;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  color: rgba(250, 248, 244, 0.88);
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-cta .btn {
  flex: 1 1 200px;
}

@media (min-width: 520px) {
  .hero-cta .btn {
    flex: 0 0 auto;
  }
}

.today-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 999px;
  background-color: rgba(250, 248, 244, 0.1);
  border: 1px solid rgba(250, 248, 244, 0.2);
  font-size: 0.86rem;
  color: #FAF8F4;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #C9BFAE;
  flex-shrink: 0;
}

.status-dot.is-open {
  background-color: #74C69D;
  box-shadow: 0 0 0 4px rgba(116, 198, 157, 0.22);
}

.status-dot.is-closed {
  background-color: #D98A6C;
}

/* Come funziona */

.how-it-works {
  background-color: var(--bg-sand);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  padding-top: 2px;
}

.step-item h2 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-item p {
  font-size: 0.89rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Sezioni comuni */

.section-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

@media (min-width: 860px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
  }
}

.catalog-notice-box {
  max-width: 560px;
  padding: 13px 16px;
  background-color: var(--bg-sand);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.catalog-notice-box strong {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Carta dei Vini Editoriale (Catalogo)
   ========================================================================== */

.catalog-section {
  padding: 64px 0 76px;
}

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 25;
  background-color: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-top-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 860px) {
  .filter-top-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.type-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.type-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-card);
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pill:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.pill.is-active {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #FAF8F4;
}

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch-rosso { background-color: var(--wine-rosso); }
.swatch-bianco { background-color: var(--wine-bianco); }
.swatch-bollicine { background-color: var(--wine-bollicine); }
.swatch-rose { background-color: var(--wine-rose); }

.search-wrap {
  position: relative;
  flex: 1 1 auto;
  max-width: 100%;
}

@media (min-width: 860px) {
  .search-wrap {
    max-width: 310px;
  }
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 9px 34px 9px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-card);
  font-size: 0.89rem;
  color: var(--ink);
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--burgundy);
}

.search-wrap input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--bg-sand);
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  color: var(--burgundy);
}

.filter-controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

@media (min-width: 720px) {
  .filter-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
}

.select-wrap {
  min-width: 0;
}

@media (min-width: 720px) {
  .select-wrap {
    flex: 0 1 215px;
  }
}

.select-wrap select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-card);
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E5850' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.select-wrap select:focus {
  outline: none;
  border-color: var(--burgundy);
}

.btn-reset {
  grid-column: 1 / -1;
  justify-self: start;
  background: none;
  border: none;
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 2px;
}

@media (min-width: 720px) {
  .btn-reset {
    margin-left: auto;
  }
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Lista editoriale: 1 colonna su mobile, 2 colonne pulite su desktop */
.wine-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 820px) {
  .wine-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
  }
}

.wine-row {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--wine-rosso);
  border-radius: var(--radius-sm);
  padding: 16px 18px 16px 19px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.wine-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.wine-row[data-type="Rosso"] { border-left-color: var(--wine-rosso); }
.wine-row[data-type="Bianco"] { border-left-color: var(--wine-bianco); }
.wine-row[data-type="Bollicine"] { border-left-color: var(--wine-bollicine); }
.wine-row[data-type="Rosé"] { border-left-color: var(--wine-rose); }

.wine-main {
  min-width: 0;
}

.wine-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 5px;
}

.wine-producer {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.wine-sep {
  color: var(--border-strong);
  font-size: 0.78rem;
}

.wine-region {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.wine-type-tag {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.wine-type-tag[data-type="Rosso"] {
  color: var(--wine-rosso);
  background-color: rgba(110, 30, 43, 0.08);
  border-color: rgba(110, 30, 43, 0.18);
}

.wine-type-tag[data-type="Bianco"] {
  color: var(--wine-bianco-ink);
  background-color: rgba(207, 180, 94, 0.18);
  border-color: rgba(207, 180, 94, 0.42);
}

.wine-type-tag[data-type="Bollicine"] {
  color: var(--wine-bollicine-ink);
  background-color: rgba(182, 125, 56, 0.14);
  border-color: rgba(182, 125, 56, 0.34);
}

.wine-type-tag[data-type="Rosé"] {
  color: var(--wine-rose-ink);
  background-color: rgba(196, 122, 125, 0.16);
  border-color: rgba(196, 122, 125, 0.36);
}

.wine-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
}

.wine-note {
  margin-top: 5px;
  font-size: 0.83rem;
  color: var(--ink-muted);
  line-height: 1.42;
}

.wine-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.wine-price {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.btn-add-quick {
  width: 38px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--burgundy);
  background-color: transparent;
  color: var(--burgundy);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn-add-quick:hover {
  background-color: var(--burgundy);
  color: #FFFFFF;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--burgundy);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #FFFFFF;
}

.qty-btn {
  width: 30px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--burgundy);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: rgba(110, 30, 43, 0.08);
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 0.87rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background-color: var(--bg-sand);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
}

.empty-state p {
  margin-bottom: 16px;
  color: var(--ink-muted);
}

/* La Cantina */

.cantina-section {
  background-color: var(--bg-sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}

.cantina-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .cantina-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 52px;
  }
}

.cantina-copy h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  margin-bottom: 18px;
}

.cantina-copy p + p {
  margin-top: 14px;
}

.cantina-copy p {
  color: var(--ink-muted);
}

.cantina-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cantina-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  aspect-ratio: 4 / 3;
}

.gallery-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.gallery-card img,
.storefront-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.gallery-card img.is-loaded,
.storefront-card img.is-loaded {
  opacity: 1;
}

.gallery-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 24px 14px 11px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #FAF8F4;
  background: linear-gradient(0deg, rgba(24, 19, 17, 0.72) 0%, transparent 100%);
}

.photo-fallback {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #FAF8F4;
}

.fallback-brick {
  background:
    radial-gradient(circle at 20% 20%, rgba(168, 90, 67, 0.45), transparent 55%),
    linear-gradient(135deg, #472923 0%, #2C1D1A 100%);
}

.fallback-wood {
  background:
    radial-gradient(circle at 80% 25%, rgba(110, 30, 43, 0.4), transparent 55%),
    linear-gradient(135deg, #3D3028 0%, #241E1A 100%);
}

.fallback-olive {
  background:
    radial-gradient(circle at 30% 80%, rgba(74, 93, 69, 0.5), transparent 55%),
    linear-gradient(135deg, #353C31 0%, #20241E 100%);
}

.fallback-map {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, #352B27 0%, #1F1C1A 100%);
}

.fallback-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E2C9B4;
  margin-bottom: 6px;
}

.photo-fallback p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  max-width: 260px;
}

.has-photo .photo-fallback {
  display: none;
}

/* Prenotazione Tavolo */

.booking-section {
  padding: 76px 0;
}

.booking-shell {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 860px) {
  .booking-shell {
    grid-template-columns: 0.85fr 1.15fr;
    padding: 44px;
    gap: 48px;
  }
}

.booking-info h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  margin-bottom: 14px;
}

.booking-info > p {
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.booking-notes {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.booking-notes li::before {
  content: "•";
  color: var(--terracotta);
  font-weight: 700;
  margin-right: 9px;
}

.booking-form,
.cart-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.field label,
.field-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-paper);
  font-size: 0.94rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background-color: #FFFFFF;
}

.field textarea {
  resize: vertical;
}

.guest-picker-wrap {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 8px;
  align-items: stretch;
}

.guest-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.guest-btn {
  padding: 10px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-paper);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.guest-btn:hover {
  border-color: var(--burgundy);
}

.guest-btn.is-active {
  background-color: var(--burgundy);
  border-color: var(--burgundy);
  color: #FFFFFF;
}

.guest-custom-input {
  text-align: center;
  padding: 10px 8px !important;
  font-variant-numeric: tabular-nums;
}

.guest-custom-input.is-active {
  border-color: var(--burgundy);
  background-color: #FFFFFF;
  font-weight: 700;
  color: var(--burgundy);
}

.field-alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background-color: #FDF2EE;
  border: 1px solid #E5B9A9;
  color: #7D3321;
  font-size: 0.86rem;
  font-weight: 500;
}

.form-error {
  color: var(--burgundy);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Recensioni */

.reviews-section {
  background-color: var(--bg-sand);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 68px 0;
}

.reviews-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 30px;
}

.reviews-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-card);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.rating-score {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--burgundy);
}

.stars,
.review-stars {
  color: #B88735;
  letter-spacing: 0.1em;
  font-size: 0.92rem;
}

.rating-summary a {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: underline;
}

.rating-summary a:hover {
  color: var(--burgundy);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 800px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card p {
  font-size: 0.93rem;
  color: var(--ink);
  flex: 1;
}

.review-card footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid #EFEAE0;
  font-size: 0.84rem;
}

.review-card footer span {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

/* Dove Siamo & Orari */

.location-section {
  padding: 76px 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.location-details h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  margin-bottom: 14px;
}

.address-line {
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hours-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.hours-card h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.hours-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.hours-list > div.is-today {
  background-color: var(--bg-sand);
  font-weight: 600;
}

.hours-list dt {
  color: var(--ink);
}

.hours-list dd {
  margin: 0;
  color: var(--ink-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours-list dd.is-closed {
  color: var(--terracotta);
  font-weight: 600;
}

.storefront-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  aspect-ratio: 4 / 4.2;
  box-shadow: var(--shadow-soft);
}

.map-pin-svg {
  width: 52px;
  height: 52px;
  color: #E2C9B4;
  margin-bottom: 12px;
}

.storefront-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 16px 20px;
  background-color: rgba(30, 29, 27, 0.88);
  color: #FAF8F4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
}

.storefront-card figcaption a {
  color: #E2C9B4;
  font-weight: 600;
  white-space: nowrap;
}

.storefront-card figcaption a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  background-color: var(--ink);
  color: rgba(250, 248, 244, 0.82);
  padding: 48px 0 36px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.14);
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #FAF8F4;
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(250, 248, 244, 0.7);
}

.footer-fiscal {
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-links a:hover,
.link-btn:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(250, 248, 244, 0.65);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.alcohol-notice {
  color: rgba(250, 248, 244, 0.85);
}

/* Barra Mobile */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background-color: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(30, 29, 27, 0.08);
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

.mobile-bar-btn {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
}

.mobile-bar-secondary {
  background-color: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--ink);
}

.mobile-bar-primary {
  background-color: var(--burgundy);
  color: #FFFFFF;
}

.mobile-bar-summary {
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.88;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Drawer Carrello */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(24, 21, 19, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-paper);
  box-shadow: -12px 0 40px rgba(24, 21, 19, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.drawer-header h2 {
  font-size: 1.65rem;
}

.drawer-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.icon-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--bg-paper);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-close:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 28px;
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
}

.cart-empty p {
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.cart-items {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-producer {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 700;
}

.cart-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 2px 0;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.cart-subtotal-box {
  background-color: var(--bg-sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-subtotal-box span {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.cart-subtotal-box small {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.cart-subtotal-box strong {
  font-size: 1.28rem;
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
}

.options-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options-group legend {
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-card);
  cursor: pointer;
}

.check-card input {
  margin-top: 3px;
  accent-color: var(--burgundy);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.check-card strong {
  display: block;
  font-size: 0.9rem;
}

.check-card small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.pickup-weekend-note {
  font-size: 0.8rem;
  color: var(--olive);
  background-color: rgba(74, 93, 69, 0.08);
  border-left: 3px solid var(--olive);
  padding: 9px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Modale Privacy & Toast */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background-color: rgba(24, 21, 19, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  background-color: var(--bg-paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}

.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h2 {
  font-size: 1.5rem;
}

.modal-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.modal-body strong {
  color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 55;
  transform: translate(-50%, 16px);
  background-color: var(--ink);
  color: #FAF8F4;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .toast {
    bottom: 28px;
  }
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
