
:root{
  --brand:#821515;
  --brand2:#241f6b;
}
body{ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", "Apple Color Emoji", "Segoe UI Emoji"; }
.hero{
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 70% -10%, #f3f3ff, transparent), #fff;
}
.hero .card{
  max-width: 680px;
}
.category-card .cover{
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
}
.item-card .cover{
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.sticky-top-title{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.allergen-icon{
  width: 28px; height: 28px;
  object-fit: contain;
  margin-right: .35rem;
}
.price{
  font-weight: 700;
  color: var(--brand2);
}
.navbar-brand img{ height:40px; }
footer{ border-top:1px solid #eee; }
.btn-brand{ background: var(--brand); color:#fff; }
.btn-brand:hover{ background: #590f0f; color:#fff; }
.badge-soft{ background:#f2f2ff; color:#4b3ccf; }
.form-switch .form-check-input{ cursor:pointer; }




:root {
  --ds-bg-1: #170d13;
  --ds-bg-2: #26141d;
  --ds-bg-3: #3a1024;
  --ds-card: rgba(58, 24, 36, 0.86);
  --ds-card-2: rgba(255, 255, 255, 0.055);
  --ds-border: rgba(244, 190, 96, 0.18);
  --ds-border-soft: rgba(255, 255, 255, 0.10);
  --ds-gold: #f4bd63;
  --ds-gold-2: #ffd27c;
  --ds-text: #fff7ef;
  --ds-muted: rgba(255, 247, 239, 0.72);
  --ds-muted-2: rgba(255, 247, 239, 0.52);
  --ds-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --ds-radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ds-text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(244, 189, 99, 0.14), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(118, 35, 66, 0.38), transparent 38%),
    linear-gradient(135deg, #120a0f 0%, #23131c 42%, #3a1024 100%);
  background-attachment: fixed;
}

/* Barra alta */
.sticky-top-title {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 14px 0 !important;
  background:
    linear-gradient(90deg, rgba(45, 24, 30, 0.96), rgba(72, 19, 43, 0.94)),
    rgba(23, 13, 19, 0.92);
  border-bottom: 1px solid rgba(244, 189, 99, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.sticky-top-title .container {
  gap: 12px;
}

.sticky-top-title h5 {
  margin: 0;
  color: #fff9f1;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Pulsante indietro */
.sticky-top-title .btn {
  min-height: 42px;
  padding: 10px 18px;
  color: #1b1010;
  background: linear-gradient(135deg, var(--ds-gold), var(--ds-gold-2));
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(244, 189, 99, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sticky-top-title .btn:hover {
  color: #1b1010;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(244, 189, 99, 0.34);
}

/* Link allergeni */
.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--ds-text);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  transition: all 0.2s ease;
}

.text-link:hover {
  color: var(--ds-gold-2);
  border-color: rgba(244, 189, 99, 0.34);
  background: rgba(244, 189, 99, 0.10);
  transform: translateY(-2px);
}

/* Contenitore principale */
body > .container.py-3 {
  max-width: 980px;
  padding-top: 28px !important;
  padding-bottom: 60px !important;
}

/* Nota iniziale */
body > .container.py-3 > .container {
  max-width: 100%;
  margin-bottom: 22px !important;
  padding: 18px 20px;
  color: var(--ds-muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(57, 22, 36, 0.72);
  border: 1px solid var(--ds-border);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

body > .container.py-3 > .container p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Spaziatura lista */
.row.g-3 {
  --bs-gutter-y: 18px;
}

/* Card prodotto */
.item-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  color: var(--ds-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--ds-card);
  border: 1px solid var(--ds-border) !important;
  border-radius: var(--ds-radius);
  box-shadow: var(--ds-shadow) !important;
  backdrop-filter: blur(14px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.item-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgba(244, 189, 99, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 42%);
  opacity: 0.85;
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 189, 99, 0.38) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48) !important;
}

.item-card .row {
  position: relative;
  z-index: 1;
  min-height: 168px;
}

/* Immagini */
.cover {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  display: block;
  border-radius: var(--ds-radius) 0 0 var(--ds-radius) !important;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.item-card:hover .cover {
  transform: scale(1.045);
  filter: saturate(1.16) contrast(1.08);
}

/* Card senza immagine visibile */
.item-card .cover[style*="display: none"] {
  display: block !important;
  opacity: 0;
}

.item-card .col-4:has(.cover[style*="display: none"]) {
  background:
    radial-gradient(circle at center, rgba(244, 189, 99, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(244, 189, 99, 0.10), rgba(255, 255, 255, 0.03));
}

/* Testi */
.card-body {
  height: 100%;
  padding: 22px 22px 18px;
}

.card-title {
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.card-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ds-gold), transparent);
}

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

.card-body p.small {
  margin-top: 13px;
  font-size: 0.98rem;
  line-height: 1.48;
}

/* Icone allergeni */
.allergen-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 5px;
  margin: 5px 7px 0 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(244, 189, 99, 0.34);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

/* Micro animazione ingresso */
.col-12 {
  animation: dsFadeUp 0.45s ease both;
}

@keyframes dsFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .sticky-top-title {
    padding: 10px 0 !important;
  }

  .sticky-top-title .container {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 9px;
    text-align: center;
  }

  .sticky-top-title h5 {
    order: -1;
    font-size: 1rem;
  }

  .sticky-top-title .btn,
  .text-link {
    width: 100%;
    min-height: 40px;
    font-size: 0.92rem;
  }

  body > .container.py-3 {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 18px !important;
  }

  body > .container.py-3 > .container {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .item-card {
    border-radius: 22px;
    min-height: 142px;
  }

  .item-card .row {
    min-height: 142px;
  }

  .item-card .col-4 {
    width: 38%;
  }

  .item-card .col-8 {
    width: 62%;
  }

  .cover {
    min-height: 142px;
    border-radius: 22px 0 0 22px !important;
  }

  .card-body {
    padding: 16px 15px 14px;
  }

  .card-title {
    font-size: 1.22rem;
  }

  .card-title::after {
    width: 36px;
    height: 2px;
    margin-top: 8px;
  }

  .card-body p.small {
    margin-top: 10px;
    margin-bottom: 8px !important;
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .allergen-icon {
    width: 29px;
    height: 29px;
    padding: 4px;
    margin-right: 5px;
  }
}

@media (max-width: 430px) {
  .item-card .col-4 {
    width: 34%;
  }

  .item-card .col-8 {
    width: 66%;
  }

  .card-body {
    padding: 14px 13px;
  }

  .card-title {
    font-size: 1.08rem;
  }

  .card-body p.small {
    font-size: 0.82rem;
  }
}